Redirect

Install tor and vidalia   #pacman -S tor Run the services #systemctl enable tor #systemctl start tor Create this bash script: ...

Install and configure tor (ARCH Linux)


Install tor and vidalia

  #pacman -S tor

Run the services
#systemctl enable tor
#systemctl start tor

Create this bash script:

#############################################################
#!/bin/bash
export TORCHROOT=/opt/torchroot

mkdir -p $TORCHROOT
mkdir -p $TORCHROOT/etc/tor
mkdir -p $TORCHROOT/dev
mkdir -p $TORCHROOT/usr/bin
mkdir -p $TORCHROOT/usr/lib64
mkdir -p $TORCHROOT/var/lib

ln -s /usr/lib  $TORCHROOT/lib64
cp /etc/hosts           $TORCHROOT/etc/
cp /etc/host.conf       $TORCHROOT/etc/
cp /etc/localtime       $TORCHROOT/etc/
cp /etc/nsswitch.conf   $TORCHROOT/etc/
cp /etc/resolv.conf     $TORCHROOT/etc/
cp /etc/tor/torrc       $TORCHROOT/etc/tor/

cp /usr/bin/tor         $TORCHROOT/usr/bin/
cp /lib/libnss* /lib/libnsl* /lib/ld-linux.so* /lib/libresolv* /lib/libgcc_s.so* $TORCHROOT/u$
cp $(ldd /usr/bin/tor | awk '{print $3}'|grep "^/") $TORCHROOT/usr/lib64/
cp -r /var/lib/tor      $TORCHROOT/var/lib/
chown -R tor:tor $TORCHROOT/var/lib/tor

sh -c "grep ^tor /etc/passwd > $TORCHROOT/etc/passwd"
sh -c "grep ^tor /etc/group > $TORCHROOT/etc/group"

mknod -m 644 $TORCHROOT/dev/random c 1 8
mknod -m 644 $TORCHROOT/dev/urandom c 1 9
mknod -m 666 $TORCHROOT/dev/null c 1 3
#################################################################

Run that script

Copy file in /usr/lib/ld-linux-x86-64.so* to /opt/torchroot/usr/lib/
Run chroot
# chroot /opt/torchroot /usr/bin/tor
 Firefox

In Preferences > Advanced > Network tab > Settings manually
set Firefox to use the SOCKS proxy localhost with port 9050.
Then you must type about:config into the address bar and void your warranty.
Change network.proxy.socks_remote_dns to true and restart the browser.
This channels all DNS requests through TOR's socks proxy.

Alternatively, install the Tor Browser Bundle (tor-browser-en)
from the AUR. This will allow you to toggle very easily between
Tor navigation and normal navigation instead of changing the preferences.

0 comments: