Added some stuff

v3d 2016-12-07 23:22:34 +00:00
parent 9fedce6c76
commit 6ec7ac78b0

@ -21,17 +21,18 @@ Choose your system. Well be using Linux + dd.
Once thats done, connect your RPi to a DHCP network with an ethernet cable and power it on. Depending on your network configuration, you can login to your RPi using it's hostname "raspberry", or use a network discovery tool to find it's IP address.
We will use nmap to scan our DHCP IP range for all hosts that are up. Replace 10.0.0.1/24 with your IP address range. You can also check you router's settings to see all devices connected to your network and their IPs.
nmap 10.0.0.1/24
`nmap 10.0.0.1/24`
Login to your pi using SSH with username: pi password: raspberry.
ssh pi@{10.0.0.5}
`ssh pi@{10.0.0.5} `
(Replace 10.0.0.5 with your Rpi's IP)
### Expand your filesystem
sudo raspi-config (select the first option from the menu).
`sudo raspi-config`
(select the first option from the menu).
Select finish and reboot.
@ -39,7 +40,7 @@ SSH back into your RPi
Check used and available storage with
df -h
`df -h`
### Upgrade your system
@ -49,7 +50,7 @@ sudo apt-get update && sudo apt-get upgrade
Lighttpd (pronounced "lighty") is an open-source web server optimized for speed-critical environments while remaining standards-compliant, secure and flexible.
sudo apt-get install lighttpd
`sudo apt-get install lighttpd`
You can now navigate to your Rpi's IP (or hostname - raspberry) using a browser.
@ -57,7 +58,7 @@ You will see lighttpd's placeholder page.
### Install PHP and modules
sudo apt-get install php5-cgi
`sudo apt-get install php5-cgi`
PHP (Hypertext Preprocessor) is a server-side scripting language designed primarily for (but not limited to) web development. We use it to run our basic gallery generation script.
@ -69,23 +70,28 @@ Apt will install all required dependencies.
Enable the fastcgi module and the php configuration with
sudo lighty-enable-mod fastcgi
`sudo lighty-enable-mod fastcgi `
sudo lighty-enable-mod fastcgi-php
`sudo lighty-enable-mod fastcgi-php`
Reload the lighttpd daemon
sudo service lighttpd force-reload
`sudo service lighttpd force-reload`
### Install Hostapd
sudo apt-get install hostapd
`sudo apt-get install hostapd`
Hostapd (Host access point daemon) is a user space software access point capable of turning normal network interface cards into access points and authentication servers. We use it, in conjuction with dnsmaq, to turn the Rpi into a Wifi access point.
If you pull Pivilion scripts and settings from the default SSID will be "Pivilion" and the default WPA2 passphrase will be "darknetofthings".
These can be edited in /etc/hostapd/hostapd.conf by issuing
`sudo nano /etch/hostapd/hostapd.conf`
### Install Dnsmasq
sudo apt-get install dnsmasq
`sudo apt-get install dnsmasq`
Dnsmasq is a Domain Name System (DNS) forwarder and Dynamic Host Configuration Protocol (DHCP) server for small computer networks. We use it to provide the clients connected to our access point with IP addresses.
@ -95,7 +101,7 @@ sudo apt-get install git. Git (/ɡɪt/) is a version control system (VCS) that i
### Install Tor
sudo apt-get install tor
`sudo apt-get install tor`
You can now choose to either pull the Pivilion scripts and Tor / Rpi configuration (if so skip to here) from our Gitlab or make the next step manually and make your own Tor hidden service without Pivilion.
@ -103,7 +109,7 @@ You can now choose to either pull the Pivilion scripts and Tor / Rpi configurati
Edit Tor's configuration file /etc/tor/torrc by issuing
sudo nano /etc/tor/torrc
`sudo nano /etc/tor/torrc`
Uncomment RunAsDeamon 1
@ -123,11 +129,11 @@ Write your changes to the file with Ctrl + O. Exit nano with Ctrl + X.
Now restart tor
sudo systemctl restart tor
`sudo systemctl restart tor`
Tor will generate a hostname. to view your hostname run
sudo cat /var/lib/tor/hidden_service/hostname
`sudo cat /var/lib/tor/hidden_service/hostname`
Check if your hidden service works by opening Tor Browser and navigating to your onion domain.
@ -139,24 +145,24 @@ Our script assumes that your user is named pi. It will create direcotries in pi'
Make sure you are root before doing these steps. The root account is disabled on Raspbian, so you will have to become root using by issuing
sudo -s
`sudo -s`
### Pull config and settings from Gitlab
cd / (DO NOT SKIP THIS STEP)
`cd /` (DO NOT SKIP THIS STEP)
git init
`git init`
git remote add origin https://gitlab.com/hacklab01/pivilion.git
`git remote add origin https://gitlab.com/hacklab01/pivilion.git`
git fetch origin
`git fetch origin`
git checkout -f --track origin/master
`git checkout -f --track origin/master`
### Fix some permission issues
Git creates everything as root so we have to fix stuff in Pi's home directory by issuing
sudo chown -R pi:pi /home/pi
`sudo chown -R pi:pi /home/pi`
That's it - everything should be working now!