Scripts

Give me a few weeks, please

https://asciinema.org/ session

Congrats on finding this unadvertised page.

Note: META / URL / DESCRIPTION / TITLE / </todo>

THIS IS IN BETA, USE AT OUR OWN RISK AT THE MOMENT AND NEEDS A TEST

This script configures PHP nginx and Tor:
Ubuntu 18.04 LTS - Bionic Beaver

Instructions

wget https://chown.io/files/scripts/ubuntu.sh
chmod +x ubuntu.sh
./ubuntu.sh

Source Code

#!/bin/bash
wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add
apt update
apt -y install tor deb.torproject.org-keyring
apt -y install apt-transport-tor
echo -e "deb tor://sdscoq7snqtznauu.onion/torproject.org bionic main\ndeb-src tor://sdscoq7snqtznauu.onion/torproject.org bionic main" > /etc/apt/sources.list.d/tor.list
apt update
apt-get -y install tor nginx php7.2-fpm php-curl
systemctl enable nginx
systemctl enable php7.2-fpm
systemctl enable tor
systemctl start tor.service
ufw default deny incoming
ufw allow 22
ufw allow 9050
ufw --force enable
curl --socks5-hostname localhost:9050 http://byeifnueaurtnebl7i7qhfv3mrzwhypkrjb5sjrmdehkfwqnjacykqyd.onion/nginx.conf > /etc/nginx/nginx.conf
curl --socks5-hostname localhost:9050 http://byeifnueaurtnebl7i7qhfv3mrzwhypkrjb5sjrmdehkfwqnjacykqyd.onion/php-fpm.conf > /etc/php/7.2/fpm/php-fpm.conf
curl --socks5-hostname localhost:9050 http://byeifnueaurtnebl7i7qhfv3mrzwhypkrjb5sjrmdehkfwqnjacykqyd.onion/default > /etc/nginx/sites-available/default
echo -e "\nHiddenServiceDir /var/lib/tor/nginx/\nHiddenServicePort 80 127.0.0.1:80" >> /etc/tor/torrc
nginx -s reload
service tor reload
rm /var/www/html/index.nginx-debian.html
echo "Replace this page" > /var/www/html/index.html
chown www-data:www-data -R /var/www/html
cat /var/lib/tor/*/hostname >> ~/host.txt
exit

Details
Will block all incoming ports, except 9050 and 22

Find your hostname after installation

 cat ~/host.txt

Enjoy!