Changes between Version 82 and Version 83 of doc/TorInChroot


Ignore:
Timestamp:
Jan 5, 2012, 1:47:57 AM (5 years ago)
Author:
Neo139
Comment:

I chroot my relay under ubuntu/linux mint. A few minor details added

Legend:

Unmodified
Added
Removed
Modified
  • doc/TorInChroot

    v82 v83  
    44 * [http://www.debian.org/ Debian] Lenny and Tor 0.2.0.35
    55 * [http://www.archlinux.org/ Archlinux] 2009.02 and Tor 0.2.0.35
     6 * [http://www.linuxmint.com Linux Mint] 9 (Ubuntu 10.04) and Tor 0.2.2.35
    67but should work on any linux distribution.
    78
     
    4748sudo cp `ldd $TORCHROOT/tor/bin/tor | awk '{print $3}'|grep "^/"` $TORCHROOT/lib
    4849sudo cp /lib/libnss* /lib/libnsl* /lib/ld-linux.so.2 /lib/libresolv* /usr/lib/libnss3.so /usr/lib/libgcc_s.so.* $TORCHROOT/lib
     50}}}
     51On Ubuntu libgcc_s.so.1 is in /lib and depending on your hardware architecture ld-linux.so.2 may be ld-linux-x86-64.so.2 in /lib64
     52{{{
     53sudo cp /lib/libgcc_s.so.* $TORCHROOT/lib
     54sudo mkdir $TORCHROOT/lib64
     55sudo cp /lib64/ld-linux-x86-64.so.2 $TORCHROOT/lib64/
    4956}}}
    5057
     
    7380sudo cp $TORCHROOT/tor/etc/tor/torrc.sample $TORCHROOT/tor/etc/tor/torrc
    7481}}}
     82(Tor will look for this file in various places based on your platform: https://wiki.torproject.org/noreply/TheOnionRouter/TorFAQ#torrc)
     83
    7584Since chroot needs to be run as root, but Tor does not we configure Tor to drop its privileges after start. With adding the following line into the '''$TORCHROOT/tor/etc/tor/torrc''' file:
    7685{{{