Some Tor instructions for anyone who may find it useful:
Compile and use Tor - Ubuntu & Debian distros Guide
Reasons for doing this: Many times packages are outdated.
1. Make sure you have all build-essential and automake packages installed.
2. Download latest libevent from :
a.
http://libevent.org/3. Extract the libevent folder (by command or archive manager)
a. tar xzf libevent-2.0.22-stable.tar.gz
4. Compile libevent
a. cd libevent*
b. ./autogen.sh
c. ./configure
d. make
e. sudo make install
f. sudo ldconfig
5. Download the latest Tor source tarball from :
a.
https://www.torproject.org/download/download.html.en6. Extract the Tor folder (by command or archive manager)
a. tar xzf tor-0.2.6.7.tar.gz
b. cd tor*
c. ./configure && make
7. Now you can run tor as src/or/tor
or you can run make install (as root if necessary) to install it into /usr/local/
and then you can start it just by running "tor"
8. Check that the Tor service is running on port 9050:
a. ss -aln | grep 9050
9. Start and stop Tor with:
a. src/or/tor
b. src/or/tor stop
Further instructions:
#Make directory that is readable/writeable by the user that will be running Tor.
mkdir /home/username/hidden_service/
If you installed Tor Browser, look for Browser/TorBrowser/Data/Tor/torrc inside your Tor Browser directory. On OS X, you must right-click or command-click on the Tor Browser icon, and select "Show Package Contents" before the Tor Browser directories become visible. Many distributions default to having a SOCKS proxy listening on port 9050, but others may not. In particular, the Tor Browser Bundle defaults to listening on a random port.
Tor puts the torrc file in /usr/local/etc/tor/torrc if you compiled tor from source, and /etc/tor/torrc or /etc/torrc if you installed a pre-built package.
#Configure torrc, usually found in /usr/local/etc/tor
nano /usr/local/etc/tor/torrc
#add the following & save:
HiddenServiceDir /home/username/hidden_service/
#HiddenServicePort <virtualseenport> <localhostip>:<anyport#>
HiddenServicePort 30137 127.0.0.1:30137
#HiddenServicePort 18333 127.0.0.1:18333
The directory can be different of course, but (both) port numbers should be equal to your P2P listen port
Sling port is 30137, RPC 30138
Be sure to forward the port in router and open in firewall!Once you've changed your torrc, you will need to restart tor for the changes to take effect. (For advanced users, note that you actually only need to send Tor a HUP signal, not actually restart it.)
#Restart Tor
sudo src/or/tor stop
sudo src/or/tor
#Make note of created *hiddenservicename*.onion in:
ls /var/lib/tor
/var/lib/tor/YOURHIDDENSERVICENAME/hostname
#Start up Sling:
./sling-qt -irc=0 -proxy=127.0.0.1:9050 -onlynet=Tor -externalip=yourhiddenservice.onion -listen