diff --git a/kinerpisys-1.0.0/debian/.debhelper/generated/kinerpisys/installed-by-dh_installdocs b/kinerpisys-1.0.0/debian/.debhelper/generated/kinerpisys/installed-by-dh_installdocs new file mode 100644 index 0000000..e69de29 diff --git a/kinerpisys-1.0.0/debian/changelog b/kinerpisys-1.0.0/debian/changelog new file mode 100644 index 0000000..1f22fc4 --- /dev/null +++ b/kinerpisys-1.0.0/debian/changelog @@ -0,0 +1,5 @@ +kinerpisys (1.0.0) stable; urgency=medium + + * Initial Release. + + -- Vincent BENOIT Mon, 21 Nov 2022 17:26:48 +0100 diff --git a/kinerpisys-1.0.0/debian/compat b/kinerpisys-1.0.0/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/kinerpisys-1.0.0/debian/compat @@ -0,0 +1 @@ +11 diff --git a/kinerpisys-1.0.0/debian/control b/kinerpisys-1.0.0/debian/control new file mode 100644 index 0000000..80649d4 --- /dev/null +++ b/kinerpisys-1.0.0/debian/control @@ -0,0 +1,12 @@ +Source: kinerpisys +Section: misc +Priority: optional +Maintainer: Vincent BENOIT +Build-Depends: debhelper (>= 11) +Standards-Version: 4.1.3 +Homepage: https://git.nas.benserv.fr/vincent/KineRPISys + +Package: kinerpisys +Architecture: all +Depends: ${misc:Depends}, dnsmasq, hostapd, iptables +Description: Meta-paquet pour la configuration du Système Linux de la Raspberry Pi pour le projet KineInterCOM diff --git a/kinerpisys-1.0.0/debian/install b/kinerpisys-1.0.0/debian/install new file mode 100644 index 0000000..9dd0c1c --- /dev/null +++ b/kinerpisys-1.0.0/debian/install @@ -0,0 +1,5 @@ +dhcpcd.conf /etc/ +dnsmasq.conf /etc/ +hostapd.conf /etc/hostapd/ +hostname /etc/ +hosts /etc/ diff --git a/kinerpisys-1.0.0/debian/rules b/kinerpisys-1.0.0/debian/rules new file mode 100755 index 0000000..f00dbc2 --- /dev/null +++ b/kinerpisys-1.0.0/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +%: + dh $@ diff --git a/kinerpisys-1.0.0/debian/source/format b/kinerpisys-1.0.0/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/kinerpisys-1.0.0/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/kinerpisys-1.0.0/dhcpcd.conf b/kinerpisys-1.0.0/dhcpcd.conf new file mode 100644 index 0000000..d5dca1f --- /dev/null +++ b/kinerpisys-1.0.0/dhcpcd.conf @@ -0,0 +1,66 @@ +# 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. +# Some non-RFC compliant DHCP servers do not reply with this set. +# In this case, comment out duid and enable clientid above. +#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 +# Respect the network MTU. This is applied to DHCP routes. +option interface_mtu + +# Most distributions have NTP support. +#option ntp_servers + +# A ServerID is required by RFC2131. +require dhcp_server_identifier + +# Generate SLAAC address using the Hardware Address of the interface +#slaac hwaddr +# OR generate Stable Private IPv6 Addresses based from the DUID +slaac private + +# Example static IP configuration: +interface eth0 +static ip_address=192.168.10.10/24 +static routers=192.168.10.1 +static domain_name_servers=192.168.10.1 +#static ip6_address=fd51:42f8:caae:d92e::ff/64 +#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1 + +interface wlan0 +static ip_address=10.1.1.10/24 +static routers=10.1.1.1 +static domain_name_servers=10.1.1.1 +nohook wpa_supplicant + +# It is possible to fall back to a static IP if DHCP fails: +# define static profile +#profile static_eth0 +#static ip_address=192.168.1.23/24 +#static routers=192.168.1.1 +#static domain_name_servers=192.168.1.1 + +# fallback to static profile on eth0 +#interface eth0 +#fallback static_eth0 diff --git a/kinerpisys-1.0.0/dnsmasq.conf b/kinerpisys-1.0.0/dnsmasq.conf new file mode 100644 index 0000000..64697ba --- /dev/null +++ b/kinerpisys-1.0.0/dnsmasq.conf @@ -0,0 +1,3 @@ +interface=wlan0 +bind-dynamic +dhcp-range=10.1.1.10,10.1.1.150,255.255.255.0,24h diff --git a/kinerpisys-1.0.0/hostapd b/kinerpisys-1.0.0/hostapd new file mode 100644 index 0000000..978f3e0 --- /dev/null +++ b/kinerpisys-1.0.0/hostapd @@ -0,0 +1,23 @@ +# Defaults for hostapd initscript +# +# WARNING: The DAEMON_CONF setting has been deprecated and will be removed +# in future package releases. +# +# See /usr/share/doc/hostapd/README.Debian for information about alternative +# methods of managing hostapd. +# +# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration +# file and hostapd will be started during system boot. An example configuration +# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz +# +DAEMON_CONF="/etc/hostapd/hostapd.conf" + +# Additional daemon options to be appended to hostapd command:- +# -d show more debug messages (-dd for even more) +# -K include key data in debug messages +# -t include timestamps in some debug messages +# +# Note that -B (daemon mode) and -P (pidfile) options are automatically +# configured by the init.d script and must not be added to DAEMON_OPTS. +# +#DAEMON_OPTS="" diff --git a/kinerpisys-1.0.0/hostapd.conf b/kinerpisys-1.0.0/hostapd.conf new file mode 100644 index 0000000..6361f84 --- /dev/null +++ b/kinerpisys-1.0.0/hostapd.conf @@ -0,0 +1,14 @@ +interface=wlan0 +driver=nl80211 +hw_mode=g +channel=7 +wmm_enabled=0 +macaddr_acl=0 +auth_algs=1 +ignore_broadcast_ssid=0 +wpa=2 +wpa_key_mgmt=WPA-PSK +wpa_pairwise=TKIP +rsn_pairwise=CCMP +ssid=Kine_hotspot +wpa_passphrase=kineintercom diff --git a/kinerpisys-1.0.0/hostname b/kinerpisys-1.0.0/hostname new file mode 100644 index 0000000..f64d28e --- /dev/null +++ b/kinerpisys-1.0.0/hostname @@ -0,0 +1 @@ +kineintercom diff --git a/kinerpisys-1.0.0/hosts b/kinerpisys-1.0.0/hosts new file mode 100644 index 0000000..04cc241 --- /dev/null +++ b/kinerpisys-1.0.0/hosts @@ -0,0 +1,6 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters + +127.0.1.1 kineintercom