LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-18-2007, 10:51 PM   #1
bojingles
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian/Xfce
Posts: 9

Rep: Reputation: 0
Question Problems on installing Tor on Debian/Xfce


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.
 
Old 07-19-2007, 11:14 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Code:
sudo apt-get install tor
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).
 
Old 07-19-2007, 12:06 PM   #3
bojingles
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian/Xfce
Posts: 9

Original Poster
Rep: Reputation: 0
How do I run the command to give it to me as root? I've googled it but I can't find it.
 
Old 07-19-2007, 12:44 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
?


At the command prompt, type
Code:
sudo apt-get install tor
It will ask you for YOUR password.

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.
 
Old 07-19-2007, 12:51 PM   #5
fair_is_fair
Member
 
Registered: May 2005
Posts: 516

Rep: Reputation: 52
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.

/etc/init.d/tor stop
/etc/init.d/tor start

Your Privoxy "conf" should look like mine below.


# Sample Configuration File for Privoxy
#
forward-socks4a / localhost:9050 .
#
# Id: config,v
#
# Copyright (C) 2001-2006 Privoxy Developers http://privoxy.org
 
Old 07-19-2007, 01:01 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Your Privoxy "conf" should look like mine below.
Please note this is not the only configurable part of the config. The only thing this does is forward traffic to the default TOR port.


Quote:
You will, most likely, want the Privoxy package too.
...and if you find Privoxy gets way slow after loading huge custom rulesets there's a lightweight alternative: Polipo.
 
Old 07-19-2007, 01:03 PM   #7
fair_is_fair
Member
 
Registered: May 2005
Posts: 516

Rep: Reputation: 52
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.
 
Old 07-19-2007, 01:10 PM   #8
fair_is_fair
Member
 
Registered: May 2005
Posts: 516

Rep: Reputation: 52
Good info unSpawn. I was looking at Polipo the other day. Can you give us some configuration details. I wouldn't mind trying it out.
 
Old 07-19-2007, 02:14 PM   #9
bojingles
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian/Xfce
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 07-19-2007, 02:36 PM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Are you entering the password to your normal user account, or to root's account? With su you need to enter root's password. Assuming it has one.
 
Old 07-19-2007, 02:45 PM   #11
bojingles
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian/Xfce
Posts: 9

Original Poster
Rep: Reputation: 0
I am entering my user password. How do I find the root password, or if it doesnt have one, make one/use su?
 
Old 07-19-2007, 04:42 PM   #12
bojingles
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian/Xfce
Posts: 9

Original Poster
Rep: Reputation: 0
I found out how to set the root password and did so, but I used the command and received this:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package tor

What went wrong?
 
Old 07-20-2007, 10:44 AM   #13
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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.
 
Old 07-20-2007, 01:55 PM   #14
bojingles
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian/Xfce
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 07-20-2007, 02:09 PM   #15
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You can just apt-get install privoxy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help installing blossom with TOR blimey Linux - Software 3 05-16-2007 01:06 PM
Problems installing Debian antoniodourado Debian 1 11-21-2006 12:05 PM
Problems installing TOR Cabeza de Huevo Linux - Newbie 5 06-27-2006 03:45 PM
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 05:29 AM
tor + ssh problems tgo Linux - Software 0 10-22-2005 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration