Using On Board WiFi

sudo apt update
sudo apt upgrade
sudo apt install git 

sudo reboot
--------------------------------------
git clone https://github.com/unixabg/RPI-Wireless-Hotspot.git
cd RPI-Wireless-Hotspot
sudo ./install

"Y" to agree to terms
"Y" to use preconfigured DNS
"Y" to use Unblock-Us DNS servers
"N" for WiFi defaults
Type in a new WiFi password (it will be checked)
Type in a new SSID
Type in your desired WiFi channel (1, 6, 11)
Type "N" when asked - "Are you using a rtl871x chipset?" -- 
Type "N" for chromecast support (unless you plan to use a chromecast w/RasTor)
------------------------------------------------
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo systemctl start hostapd

sudo reboot
------------------------------------------------
Connect To Your New SSID With A Phone Or Computer To Check If You Have Full Internet Connection.
------------------------------------------------
sudo apt install tor

sudo nano /etc/tor/torrc

Add The Following At The Bottom Of The File:

Log notice file /var/log/tor/notices.log
VirtualAddrNetwork 10.192.0.0/10
AutomapHostsSuffixes .onion,.exit
AutomapHostsOnResolve 1
TransPort 9040
TransListenAddress 192.168.42.1
DNSPort 53
DNSListenAddress 192.168.42.1

-------------------------------------------------
Iptable Routes:

sudo iptables -F && sudo iptables -t nat -F
sudo iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 53
sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040

-------------------------------------------------
Check Routes:

sudo iptables -t nat -L

Save Routes:

sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"

--------------------------------------------------
Create Log File:

sudo touch /var/log/tor/notices.log 
sudo chown debian-tor /var/log/tor/notices.log
sudo chmod 644 /var/log/tor/notices.log

------------------------------------------------
To Start TOR:

sudo service tor start

Check To See If TOR Is Running:

sudo service tor status

-----------------------------------
Run TOR Service At Boot:

sudo update-rc.d tor enable
sudo reboot

---------------------------------------------------
Optional: Install Monit Service To Reload Tor Service If Down

sudo apt install monit
sudo nano /etc/monit/monitrc

Add Those Lines To The End Of The Config:

check process gdm with pidfile /var/run/tor/tor.pid
   start program = "/etc/init.d/tor start"
   stop program = "/etc/init.d/tor stop"

---------------------------------------------   
Reload And Add Monit To Startup

sudo monit reload
sudo update-rc.d monit enable