mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-02-04 07:40:48 +00:00
first Pivivlion config and scripts
This commit is contained in:
parent
e046535f8c
commit
1599a2b753
61 changed files with 7014 additions and 0 deletions
42
home/pi/config/dhcpcd.deny.wlan0
Normal file
42
home/pi/config/dhcpcd.deny.wlan0
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# A sample configuration for dhcpcd.
|
||||
# See dhcpcd.conf(5) for details.
|
||||
|
||||
# Allow users of this group to interact with dhcpcd via the control socket.
|
||||
#controlgroup wheel
|
||||
|
||||
# Inform the DHCP server of our hostname for DDNS.
|
||||
hostname
|
||||
|
||||
# Use the hardware address of the interface for the Client ID.
|
||||
clientid
|
||||
# or
|
||||
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
|
||||
#duid
|
||||
|
||||
# Persist interface configuration when dhcpcd exits.
|
||||
persistent
|
||||
|
||||
# Rapid commit support.
|
||||
# Safe to enable by default because it requires the equivalent option set
|
||||
# on the server to actually work.
|
||||
option rapid_commit
|
||||
|
||||
# A list of options to request from the DHCP server.
|
||||
option domain_name_servers, domain_name, domain_search, host_name
|
||||
option classless_static_routes
|
||||
# Most distributions have NTP support.
|
||||
option ntp_servers
|
||||
# Respect the network MTU.
|
||||
# Some interface drivers reset when changing the MTU so disabled by default.
|
||||
#option interface_mtu
|
||||
|
||||
# A ServerID is required by RFC2131.
|
||||
require dhcp_server_identifier
|
||||
|
||||
# Generate Stable Private IPv6 Addresses instead of hardware based ones
|
||||
slaac private
|
||||
|
||||
# A hook script is provided to lookup the hostname if not set by the DHCP
|
||||
# server, but it should not be run by default.
|
||||
nohook lookup-hostname
|
||||
denyinterfaces wlan0
|
||||
41
home/pi/config/dhcpcd.orig
Normal file
41
home/pi/config/dhcpcd.orig
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# A sample configuration for dhcpcd.
|
||||
# See dhcpcd.conf(5) for details.
|
||||
|
||||
# Allow users of this group to interact with dhcpcd via the control socket.
|
||||
#controlgroup wheel
|
||||
|
||||
# Inform the DHCP server of our hostname for DDNS.
|
||||
hostname
|
||||
|
||||
# Use the hardware address of the interface for the Client ID.
|
||||
clientid
|
||||
# or
|
||||
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
|
||||
#duid
|
||||
|
||||
# Persist interface configuration when dhcpcd exits.
|
||||
persistent
|
||||
|
||||
# Rapid commit support.
|
||||
# Safe to enable by default because it requires the equivalent option set
|
||||
# on the server to actually work.
|
||||
option rapid_commit
|
||||
|
||||
# A list of options to request from the DHCP server.
|
||||
option domain_name_servers, domain_name, domain_search, host_name
|
||||
option classless_static_routes
|
||||
# Most distributions have NTP support.
|
||||
option ntp_servers
|
||||
# Respect the network MTU.
|
||||
# Some interface drivers reset when changing the MTU so disabled by default.
|
||||
#option interface_mtu
|
||||
|
||||
# A ServerID is required by RFC2131.
|
||||
require dhcp_server_identifier
|
||||
|
||||
# Generate Stable Private IPv6 Addresses instead of hardware based ones
|
||||
slaac private
|
||||
|
||||
# A hook script is provided to lookup the hostname if not set by the DHCP
|
||||
# server, but it should not be run by default.
|
||||
nohook lookup-hostname
|
||||
35
home/pi/config/interfaces.hotspot
Normal file
35
home/pi/config/interfaces.hotspot
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# interfaces(5) file used by ifup(8) and ifdown(8)
|
||||
|
||||
# Please note that this file is written to be used with dhcpcd
|
||||
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
|
||||
|
||||
# Include files from /etc/network/interfaces.d:
|
||||
source-directory /etc/network/interfaces.d
|
||||
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
iface eth0 inet manual
|
||||
|
||||
#avoid stupid Rasbian static IP config via dhcpcd.conf (WTF???)
|
||||
|
||||
#auto eth0
|
||||
#iface eth0 inet static
|
||||
#address 192.168.1.5
|
||||
#netmask 255.255.255.0
|
||||
#gateway 192.168.1.1
|
||||
|
||||
allow-hotplug wlan0
|
||||
iface wlan0 inet static
|
||||
address 10.1.0.1
|
||||
netmask 255.255.255.0
|
||||
network 10.1.0.1
|
||||
broadcast 10.1.0.255
|
||||
|
||||
#allow-hotplug wlan0
|
||||
#iface wlan0 inet manual
|
||||
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
|
||||
#allow-hotplug wlan1
|
||||
#iface wlan1 inet manual
|
||||
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
35
home/pi/config/interfaces.onion
Normal file
35
home/pi/config/interfaces.onion
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# interfaces(5) file used by ifup(8) and ifdown(8)
|
||||
|
||||
# Please note that this file is written to be used with dhcpcd
|
||||
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
|
||||
|
||||
# Include files from /etc/network/interfaces.d:
|
||||
source-directory /etc/network/interfaces.d
|
||||
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
iface eth0 inet manual
|
||||
|
||||
#avoid stupid Rasbian static IP config via dhcpcd.conf (WTF???)
|
||||
|
||||
#auto eth0
|
||||
#iface eth0 inet static
|
||||
#address 192.168.1.5
|
||||
#netmask 255.255.255.0
|
||||
#gateway 192.168.1.1
|
||||
|
||||
#allow-hotplug wlan0
|
||||
#iface wlan0 inet static
|
||||
# address 10.1.0.1
|
||||
# netmask 255.255.255.0
|
||||
# network 10.1.0.1
|
||||
# broadcast 10.1.0.255
|
||||
|
||||
allow-hotplug wlan0
|
||||
iface wlan0 inet manual
|
||||
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
|
||||
allow-hotplug wlan1
|
||||
iface wlan1 inet manual
|
||||
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
24
home/pi/config/rc.local.hotspot
Normal file
24
home/pi/config/rc.local.hotspot
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
# Print the IP address
|
||||
_IP=$(hostname -I) || true
|
||||
if [ "$_IP" ]; then
|
||||
printf "My IP address is %s\n" "$_IP"
|
||||
fi
|
||||
# Display onion domain in MOTD
|
||||
cat /var/lib/tor/hidden_service/hostname > /home/pi/torname
|
||||
hostapd -d /etc/hostapd/hostapd.conf
|
||||
exit 0
|
||||
|
||||
|
||||
23
home/pi/config/rc.local.onion
Normal file
23
home/pi/config/rc.local.onion
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
# Print the IP address
|
||||
_IP=$(hostname -I) || true
|
||||
if [ "$_IP" ]; then
|
||||
printf "My IP address is %s\n" "$_IP"
|
||||
fi
|
||||
# Display onion domain in MOTD
|
||||
cat /var/lib/tor/hidden_service/hostname > /home/pi/torname
|
||||
exit 0
|
||||
|
||||
|
||||
14
home/pi/config/wpa_supplicant.bkp
Normal file
14
home/pi/config/wpa_supplicant.bkp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||
update_config=1
|
||||
|
||||
network={
|
||||
ssid="Inquiry Inc."
|
||||
psk="FormatC.artorg"
|
||||
key_mgmt=WPA-PSK
|
||||
}
|
||||
|
||||
network={
|
||||
ssid="APP-BusWiFi"
|
||||
psk="APP12345"
|
||||
key_mgmt=WPA-PSK
|
||||
}
|
||||
25
home/pi/config/wpa_supplicant.conf
Normal file
25
home/pi/config/wpa_supplicant.conf
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
network={
|
||||
ssid="Tomato24"
|
||||
#psk="hajklab2016"
|
||||
psk=2982ad06a340d993a0baed4daa2928b0ceeb939bf9a1d3cd311cc81b21aa9dcc
|
||||
}
|
||||
network={
|
||||
ssid="Inquiry Inc."
|
||||
#psk="FormatCart.org"
|
||||
psk=33a8a7029b94df469ef4dd67fd8474b02892f15b77dd68dfb106ea197063d181
|
||||
}
|
||||
network={
|
||||
ssid="Inquiry Inc."
|
||||
#psk="FormatC.artorg"
|
||||
psk=4d6e49cef5d4ff65b89fd5100c38fa90a7c28d87298d7b32a70a033c2204b202
|
||||
}
|
||||
network={
|
||||
ssid="GLUO"
|
||||
#psk="1234567890123"
|
||||
psk=eb1a302ce03c3496a931683549e7040048f9b4b74ab0853611ded4e2ace5ac49
|
||||
}
|
||||
network={
|
||||
ssid="VODO1"
|
||||
#psk="12345678"
|
||||
psk=c7bad77ca2fdbf4df64823ca2453b7a9c7fd633ab7050e225f22a7082803c7d1
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue