You're viewing old version number 29. - Current version

1 min

Installing thttpd and tor to create a .onion website

jun 1, 2016

whew. took a while. a lot of fussing. by i have an onion website running on my linux computer in my home.

zwdqwr2p2xwkpbyv.onion


installing on my home linux computer.

http://www.acme.com/software/thttpd

downloaded thttpd-2.27.tar.gz

su to root

tar -zxvf thttpd-2.27.tar.gz

cd into directory

./configure

make

make install


my files:

/usr/local/sbin/thttpd

/usr/local/www/thttpd_config

/usr/local/sbin/thttpd_wrapper

/usr/local/www/data/index.html


https://www.torproject.org/docs/tor-hidden-service.html.en

http://nekhbet.com/nginx_onion.shtml

https://www.deepdotweb.com/2013/10/19/how-to-safely-host-your-own-tor-hidden-service/

/home/veery/tor/tor-browser_en-US/Browser/TorBrowser/Data/Tor

https://gitweb.torproject.org/tor.git/tree/src/config/torrc.sample.in

http://tor.stackexchange.com/questions/6662/my-hidden-service-doesnt-load-unless-the-tor-browser-is-open-on-the-server

http://stackoverflow.com/questions/13060096/why-tor-cant-access-localhost-pages

https://wiki.archlinux.org/index.php/tor

http://tor.stackexchange.com/questions/1065/what-happened-to-torrc-in-tor-browser-bundle

kill -USR1 `cat /var/run/tor/tor.pid`

/usr/sbin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --hush


http://www.onlamp.com/pub/a/bsd/2005/10/13/thttpd.html?page=3
http://linux.derkeiler.com/Newsgroups/comp.os.linux/2005-11/0109.html

http://www.acme.com/software/thttpd/notes.html

https://www.pantz.org/software/thttpd/thttpdconfig.html

http://nginxlibrary.com/running-cgi-scripts-using-thttpd/

http://www.techrepublic.com/article/use-thttpd-as-your-web-server-when-apache-is-overkill/

https://calomel.org/thttpd.html

https://ubuntuforums.org/showthread.php?t=1648470


sudo apt-get install tor

created directory called: hidden_service
in /var/lib/tor

while in /var/lib/tor
chown -R debian-tor:debian-tor hidden_service

vim /usr/share/tor/tor-service-defaults-torrc

add two lines:

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:8080

tor daemon log file: /var/log/tor/log

ps aux | grep tor

start up tor if not already running:

/usr/sbin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --hush

or restart tor daemon

kill -USR1 `cat /var/run/tor/tor.pid`

then in the hidden_service directory, two new files will be created:

private_key
hostname

the hostname file contains the .onion address that points to the website hosted by the thttpd install above.


git clone my wren web publishing app.


http://jothut.com/cgi-bin/junco.pl/blogpost/21154/14May2015/Installing-nodejs-nginx-mysql-junco-and-ghost-on-Digital-Ocean-Droplet#Installing-Nginx

installed nginx
installed fastcgi

installed wren, which meant installing perl modules

perl -MCPAN -e 'install HTML::Template'

this is a big install that takes a few minutes.
perl -MCPAN -e 'install JSON::Any'

perl -MCPAN -e 'install JSON::XS'

moron. i should have installed only JSON::PP instead of the two json modules above.

perl -MCPAN -e 'install WWW::Mailgun'


/etc/init.d

/usr/local/etc/rc.d --- not used

From JR's : articles
234 words - 3106 chars - 1 min read
created on
updated on - #
source - versions



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 15, 2024 - 1:45 a.m. EST