Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I open a terminal and type in "apt-get install tor" and receive:
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
My linux experience is around a couple hours. Is this similar to some sort of "admin" type restriction? I'm not sure I understand the error message. Any help would be appreciated.
You need to be root (the super-user) to install things like that. "sudo" will ask you for your password, then run the command you give it as root. If sudo doesn't work, do "su" then enter root's password, then do the apt-get command (no sudo needed when you are root), then Google how to give yourself sudo access.
On a related note, I recommend adding the following line to your /etc/apt/sources.list:
Code:
deb http://mirror.noreply.org/pub/tor VERSION main
. Replace VERSION with "etch" or "sarge" or "lenny", whichever you are running. I recommend this because tor is only in Debian's unstable ("sid") repository, and is still a version behind. So if you want to run the latest version of tor, or are not running your system on unstable, you need that line (after saving the file -- which btw you need to edit as root -- do an "apt-get update" and then do the apt-get install).
If you get USER is not in the sudoers file. This incident will be reported. or similar, instead try su, which will ask you for ROOT's password, when you give it you'll be at a prompt that ends with a #, this is the root prompt. Type apt-get install tor then. Type exit to get back your non-privileged-user prompt. And then you can Google how to add yourself to the sudoers file so you can just use sudo and not have to go through su.
Open a console - type "su" - enter password for root - type "apt-get update" - type "apt-get install tor". Do not type in the "s.
You will, most likely, want the Privoxy package too.
You will not need to update apt again although it should be updated every couple of days or more.
The tricky part with Privoxy is navagating to the "etc" folder. There you will find the Privoxy folder. Open the folder and open the "conf" file. You will need to add "forward-socks4a / localhost:9050 ." without the quotes of course. Make sure there is no "#" in front. Make sure to add the "." one space after 9050. You need to edit this file as root. Set your browser to use proxy 127.0.0.1 with port 8118 and you are good to go. When tor slows down or starts acting up you will need these commands to start and restart tor.
You may want to install Synaptic. It is great for searching out packages and getting descriptions for them. It is handy for installing single programs. Do not do any major upgrades via Synaptic though.
You can add "http://www.debian-multimedia.org/" to your repository list or sources list in Apt-get to get much needed extras.
I type in "su" and get the password prompt, however when I enter my password, it says authentication failure. I know I have typed in my password correctly. Why would it say this?
You did not apt-get update, or you do not have the unstable or mirror.noreply.org/pub/tor repositories enabled in your /etc/apt/sources.list. If the latter, add the line like I said in my first post, then apt-get update, then apt-get install (all of these must be done as root).
Last edited by AlucardZero; 07-20-2007 at 10:46 AM.
I've messed around for a few more hours today and I believe I finally have it correct, however I need socks support. Sourceforge is currently down, that site that holds privoxy, so I will try the other mentioned program and see if that gives me the support.
Thanks a lot for the help all of you, this is quite a challenge at first. However, the more I try the more experience I get, and this is turning out to be enjoyable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.