Installing Tor

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Installing Tor

Post by zAchAry »

Code: Select all

$ gnsu spi -i tor
The following packages will be installed:
 tor 
Fetching README...Done
Fetching README.SLACKWARE...Done
Fetching doinst.sh...Done
Fetching logrotate.tor...Done
Fetching rc.tor...Done
Fetching slack-desc...Done
Fetching tor.SlackBuild...Done
Fetching tor.info...Done
Fetching torrc...Done
Fetching https://www.torproject.org/dist/tor-0.2.4.21.tar.gz...Failed
Next step, downloading, manually, tor-0.2.4.22.tar.gz.
Running tor.SlackBuild

Code: Select all

$ gnsu sh tor.SlackBuild
  You must have a tor user and tor group to run this script. 
  Something like this should suffice for most systems: 
    # groupadd -g 220 tor 
    # useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor 
Group

Code: Select all

$ gnsu groupadd -g 220 tor
Succeeded

User

Code: Select all

$ gnsu useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor
$ gnsu useradd -u 220 -g 220 -c 'The Onion Router' -d /dev/null -s /bin/false tor
Failed

I did not have this sort of problem with Avahi

Code: Select all

$ gnsu groupadd -g 214 avahi
$ gnsu useradd -u 214 -g 214 -c 'Avahi' -d /dev/null -s /bin/false avahi
It was different with Privoxy

Code: Select all

$ gnsu groupadd -g 206 privoxy
$ gnsu useradd -u 206 -g privoxy -d /dev/null -s /bin/false privoxy
I use Salix Xfce 14.1 (32-Bit).
Image
Help to make Slackware easier Donate to Salix
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Installing Tor

Post by gapan »

Why did it fail? Are there any errors? And why don't you just run the command with sudo?
Image
Image
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Installing Tor

Post by zAchAry »

This is what I get:

Code: Select all

$ gnsu useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor
Usage: useradd [options] LOGIN
       useradd -D
       useradd -D [options]

Options:
  -b, --base-dir BASE_DIR       base directory for the home directory of the
                                new account
  -c, --comment COMMENT         GECOS field of the new account
  -d, --home-dir HOME_DIR       home directory of the new account
  -D, --defaults                print or change default useradd configuration
  -e, --expiredate EXPIRE_DATE  expiration date of the new account
  -f, --inactive INACTIVE       password inactivity period of the new account
  -g, --gid GROUP               name or ID of the primary group of the new
                                account
  -G, --groups GROUPS           list of supplementary groups of the new
                                account
  -h, --help                    display this help message and exit
  -k, --skel SKEL_DIR           use this alternative skeleton directory
  -K, --key KEY=VALUE           override /etc/login.defs defaults
  -l, --no-log-init             do not add the user to the lastlog and
                                faillog databases
  -m, --create-home             create the user's home directory
  -M, --no-create-home          do not create the user's home directory
  -N, --no-user-group           do not create a group with the same name as
                                the user
  -o, --non-unique              allow to create users with duplicate
                                (non-unique) UID
  -p, --password PASSWORD       encrypted password of the new account
  -r, --system                  create a system account
  -R, --root CHROOT_DIR         directory to chroot into
  -s, --shell SHELL             login shell of the new account
  -u, --uid UID                 user ID of the new account
  -U, --user-group              create a group with the same name as the user
I use gnsu because I need to use Shift key for capital letters or special characters such as !@#$%^&*(). This does not work with sudo, unfortunately, but CapsLock does solve this issue, as long as these characters !@#$%^&*() are not used.
Image
Help to make Slackware easier Donate to Salix
User avatar
ElderDryas
Posts: 144
Joined: 3. Nov 2011, 22:06
Location: Lincoln, Nebraska USA

Re: Installing Tor

Post by ElderDryas »

I guess my question would be why install TOR from the repos at all. With all due respect to the Salix Team (really :) ), some apps in the repos fall quickly behind the current versions, and TOR is one of those apps I would really want to keep current (see the decrepency between the what spi tried to download, 2.4.21, what you manually downloaded, 2.4.22 and the current version 3.6.2).

Working from memory here, but I think the TOR Project recommends NOT using any TOR version from a distro's repos for that very reason.

DL'ing TOR from the website, unpacking it and then just running it from the resultant TOR directory just plain works, no mess, no fuss, no users/groups to add. Updating is a snap, just DL the new version, unpack, move any config files you want from OLD to NEW TOR directory, delete the OLD.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Installing Tor

Post by zAchAry »

Running useradd in xfce4-terminal as root ($ gnsu xfce4-terminal) seems to work.

Code: Select all

# useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor
Why did not it work with $ gnsu?
Image
Help to make Slackware easier Donate to Salix
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Installing Tor

Post by mimosa »

Because "gnsu's not su" ;)
Post Reply