Compare commits

...

5 Commits

Author SHA1 Message Date
v3d
d7e2ec6242 Merge branch 'master' of ssh://gitlab.com/hacklab01/pivilion 2022-05-05 16:54:29 +02:00
v3d
2d4e52bf9a uploading apache2 config 2022-05-05 16:48:21 +02:00
v3d
c8ffdb5cf1 Upload New File 2022-05-05 14:38:45 +00:00
v3d
eaa96c6c9a Update usr/local/bin/hotspot, usr/local/bin/onion 2022-05-05 13:32:55 +00:00
v3d
f647b3f1d1 Delete wpa_supplicant.conf 2022-05-05 13:02:27 +00:00
7 changed files with 50 additions and 5 deletions

View File

@ -1,3 +0,0 @@
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=BO

16
etc/apache2/ports.conf Normal file
View File

@ -0,0 +1,16 @@
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 80
Listen 81
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

View File

@ -0,0 +1,31 @@
<VirtualHost *:81>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/pivilion
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -12,8 +12,8 @@ sudo cp -f /home/pi/pivilion/config/dnsmasq.hotspot /etc/dnsmasq.conf
sudo cp -rf /home/pi/pivilion/config/html /var/www/
sudo chown -R www-data:www-data /var/www/html
sudo chown root:www-data /var/www/html/.htaccess
sudo cp -f rc.hotspot /etc/rc.local
sudo cp -f override.hotspot /etc/apache2/conf-available/override.conf
sudo cp -f /home/pi/pivilion/config/rc.hotspot /etc/rc.local
sudo cp -f /home/pi/pivilion/config/override.hotspot /etc/apache2/conf-available/override.conf
sudo a2enconf override
sudo a2enmod rewrite

View File

@ -7,6 +7,7 @@ sudo bash -c 'cat /home/pi/pivilion/config/interfaces.onion > /etc/network/inter
sudo update-rc.d dnsmasq disable
sudo bash -c 'cat /home/pi/pivilion/config/rc.local.onion > /etc/rc.local'
sudo mv /etc/wpa_supplicant/wpa_supplicant.bak /etc/wpa_supplicant/wpa_supplicant.conf
echo "The next time you reboot, your Pi will start in onion mode"!
echo "Your onion domain is `cat /home/pi/pivilion/torname`"

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB