mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2025-04-29 16:47:17 +00:00
Added some stuff
parent
ca6db12a8a
commit
9fedce6c76
@ -57,16 +57,26 @@ You will see lighttpd's placeholder page.
|
||||
|
||||
### Install PHP and modules
|
||||
|
||||
sudo apt-get install php5-cgi php5-gd
|
||||
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.
|
||||
|
||||
The GD library (php5-gd) is a graphics drawing library that provides tools for manipulating image data.
|
||||
|
||||
php5-cgi is a PHP to CGI interpreter. CGI (Common Gateway Interface ) offers a standard protocol for web servers to interface with executable programs running on a server that generate web pages dynamically. The interpreter is how Lighty handles PHP.
|
||||
|
||||
Apt will install all required dependencies.
|
||||
|
||||
### Enable PHP support in Lighty
|
||||
|
||||
Enable the fastcgi module and the php configuration with
|
||||
|
||||
sudo lighty-enable-mod fastcgi
|
||||
|
||||
sudo lighty-enable-mod fastcgi-php
|
||||
|
||||
Reload the lighttpd daemon
|
||||
|
||||
sudo service lighttpd force-reload
|
||||
|
||||
### Install Hostapd
|
||||
|
||||
sudo apt-get install hostapd
|
||||
@ -132,7 +142,7 @@ Make sure you are root before doing these steps. The root account is disabled on
|
||||
sudo -s
|
||||
|
||||
### Pull config and settings from Gitlab
|
||||
cd / (DO NOT TO SKIP THIS STEP)
|
||||
cd / (DO NOT SKIP THIS STEP)
|
||||
|
||||
git init
|
||||
|
||||
@ -140,4 +150,16 @@ git remote add origin https://gitlab.com/hacklab01/pivilion.git
|
||||
|
||||
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
|
||||
|
||||
That's it - everything should be working now!
|
||||
|
||||
Please note that Pivilion is in public beta and is sure to have some errors. Don't hesitate to help development by raising issues here https://gitlab.com/hacklab01/pivilion/issues
|
||||
|
||||
Now go make some darknet of things galleries! :)
|
Loading…
x
Reference in New Issue
Block a user