You are not logged in.
Pages: 1
i did rankmirrors -v.but,where should the contents be pasted so that the mirrors can be used?
Offline
You have to specify file with list of mirrors, for example:
rankmirrors -v /etc/pacman.d/mirrorlist
Offline
i know where it is....but what do i do with this text file containing list?
Offline
Here's an example of using rankmirrors to generate the top 5 mirrors into your list
cd /etc/pacman.d
cp mirrorlist mirrorlist.backup
rm mirrorlist
rankmirrors -n 5 mirrorlist.backup > mirrorlist
Offline
I get:
bash: mirrorlist: Permission denied
even if I sudo the command. Any ideas?
Offline
Are you trying to do this as your regular user or root? /etc/mirrorlist doesn't have write permissions unless you're root.
Offline
honestly I haven't been able to figure out how to open a root shell with lxterminal (lxde)
Offline
honestly I haven't been able to figure out how to open a root shell with lxterminal (lxde)
su -
Offline
heh, wow. I'll hang my head in shame now.
Thanks for the help, it worked fine.
I just have to say, this is a perfect example of how I've been ruined by GUI and other OSes...I'm so used to having a GUI option to click to open a root terminal that I never knew how to do it manually. Not that there is anything wrong with a good gui, but the knowledge of how to do it manually should be there. Again, a reason I love arch.
Offline
stonecoldjha, see cdwillis's post. rankmirrors outputs the new mirrorlist file to stdout. You need to redirect the output to a file.
ctarwater, if you prefer sudo to su, you can use `sudo -i', which is exactly like `su -' (in that it creates a root login shell) except it uses your user password (or none at all, depending upon the contents of /etc/sudoers). You got the permission error when you ran `sudo rankmirrors OLDFILE > /etc/pacman.d/mirrorlist' because sudo didn't get applied to the output redirection.
Offline
or you could pipe (|) the output to sudo tee
does sudo -i keep a record of the commands like you get with running sudo before each command?
Offline
Afaik tee is used in shell scripts to record a program's output to a file while still printing it to stdout. Simple shell redirection is preferred whenever you don't need to print to stdout at the same time.
`sudo -i' creates a root login shell, so commands you enter there will be entered into your root shell's history, not your user's history.
Offline
Pages: 1