ré-organisation des fichiers et ajout du script de création du paquet debian
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# /etc/crontab: system-wide crontab
|
||||
# Unlike any other crontab you don't have to run the `crontab'
|
||||
# command to install the new version when you edit this file
|
||||
# and files in /etc/cron.d. These files also have username fields,
|
||||
# that none of the other crontabs do.
|
||||
|
||||
SHELL=/bin/sh
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
# | | .---------- day of month (1 - 31)
|
||||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
|
||||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|
||||
# | | | | |
|
||||
# * * * * * user-name command to be executed
|
||||
0 * * * * root /opt/logrotate
|
||||
17 * * * * root cd / && run-parts --report /etc/cron.hourly
|
||||
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
|
||||
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
|
||||
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
|
||||
#
|
||||
@@ -0,0 +1,42 @@
|
||||
# A sample configuration for dhcpcd.
|
||||
# See dhcpcd.conf(5) for details.
|
||||
|
||||
# Inform the DHCP server of our hostname for DDNS.
|
||||
hostname
|
||||
|
||||
# Use the hardware address of the interface for the Client ID.
|
||||
clientid
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
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
|
||||
@@ -0,0 +1,3 @@
|
||||
interface=wlan0
|
||||
bind-dynamic
|
||||
dhcp-range=10.1.1.11,10.1.1.150,255.255.255.0,12h
|
||||
@@ -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=""
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
kineintercom
|
||||
@@ -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
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# this cronjob persists removals (but not purges)
|
||||
if [ ! -x /usr/sbin/logrotate ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
/usr/sbin/logrotate /etc/logrotate.conf
|
||||
EXITVALUE=$?
|
||||
if [ $EXITVALUE != 0 ]; then
|
||||
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
|
||||
fi
|
||||
exit $EXITVALUE
|
||||
@@ -0,0 +1,73 @@
|
||||
# see "man logrotate" for details
|
||||
|
||||
# system-specific logs may also be configured here.
|
||||
/var/log/syslog {
|
||||
# Les logs sont compréssé avant rotation
|
||||
compress
|
||||
# compression au tour d'après
|
||||
delaycompress
|
||||
# garder 20 archives
|
||||
rotate 20
|
||||
# Fréquence de rotation hebdomadaire
|
||||
daily
|
||||
# Si la taille est supérieure à 20 Mo, déclencher la rotation
|
||||
maxsize 20M
|
||||
# Toutes les archives sont stockées dans /var/log
|
||||
olddir /var/log
|
||||
# Si le fichier est manquant, ne pas générer d'erreur et continuer
|
||||
missingok
|
||||
# On écrit la date dans le nom du fichier
|
||||
dateext
|
||||
dateformat -%Y%m%d_%H%M%S
|
||||
postrotate
|
||||
systemctl restart rsyslog > /dev/null
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/debug
|
||||
/var/log/kern.log
|
||||
/var/log/daemon.log
|
||||
/var/log/dpkg.log
|
||||
/var/log/user.log
|
||||
/var/log/messages {
|
||||
# Les logs sont compréssé avant rotation
|
||||
compress
|
||||
# compression au tour d'après
|
||||
delaycompress
|
||||
# garder 10 archives
|
||||
rotate 10
|
||||
# Fréquence de rotation mensuelle
|
||||
daily
|
||||
# Si la taille est supérieure à 20 Mo, déclencher la rotation
|
||||
maxsize 20M
|
||||
# Toutes les archives sont stockées dans /var/log
|
||||
olddir /var/log
|
||||
# Si le fichier est manquant, ne pas générer d'erreur et continuer
|
||||
missingok
|
||||
# On écrit la date dans le nom du fichier
|
||||
dateext
|
||||
dateformat -%Y%m%d_%H%M%S
|
||||
}
|
||||
|
||||
/var/log/kineintercom/Intercom.log {
|
||||
# Rotate log files set under this user and group
|
||||
# instead of using default user/group (usually root)
|
||||
su root pi
|
||||
# Les logs sont compréssé avant rotation
|
||||
compress
|
||||
# compression au tour d'après
|
||||
delaycompress
|
||||
# garder 30 archives
|
||||
rotate 30
|
||||
# Fréquence de rotation hebdomadaire
|
||||
daily
|
||||
# Si la taille est supérieure à 20 Mo, déclencher la rotation
|
||||
maxsize 20M
|
||||
# Toutes les archives sont stockées dans /var/log
|
||||
olddir /var/log/kineintercom
|
||||
# Si le fichier est manquant, ne pas générer d'erreur et continuer
|
||||
missingok
|
||||
# On écrit la date dans le nom du fichier
|
||||
dateext
|
||||
dateformat -%Y%m%d_%H%M%S
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
# /etc/rsyslog.conf configuration file for rsyslog
|
||||
#
|
||||
# For more information install rsyslog-doc and see
|
||||
# /usr/share/doc/rsyslog-doc/html/configuration/index.html
|
||||
|
||||
|
||||
#################
|
||||
#### MODULES ####
|
||||
#################
|
||||
|
||||
module(load="imuxsock") # provides support for local system logging
|
||||
module(load="imklog") # provides kernel logging support
|
||||
#module(load="immark") # provides --MARK-- message capability
|
||||
|
||||
# provides UDP syslog reception
|
||||
#module(load="imudp")
|
||||
#input(type="imudp" port="514")
|
||||
|
||||
# provides TCP syslog reception
|
||||
#module(load="imtcp")
|
||||
#input(type="imtcp" port="514")
|
||||
|
||||
|
||||
###########################
|
||||
#### GLOBAL DIRECTIVES ####
|
||||
###########################
|
||||
|
||||
#
|
||||
# Use traditional timestamp format.
|
||||
# To enable high precision timestamps, comment out the following line.
|
||||
#
|
||||
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
||||
|
||||
#
|
||||
# Set the default permissions for all log files.
|
||||
#
|
||||
$FileOwner root
|
||||
$FileGroup adm
|
||||
$FileCreateMode 0640
|
||||
$DirCreateMode 0755
|
||||
$Umask 0022
|
||||
|
||||
#
|
||||
# Where to place spool and state files
|
||||
#
|
||||
$WorkDirectory /var/spool/rsyslog
|
||||
|
||||
#
|
||||
# Include all config files in /etc/rsyslog.d/
|
||||
#
|
||||
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||
|
||||
|
||||
###############
|
||||
#### RULES ####
|
||||
###############
|
||||
|
||||
#
|
||||
# First some standard log files. Log by facility.
|
||||
#
|
||||
*.*;auth,authpriv.none -/var/log/syslog
|
||||
daemon.* -/var/log/daemon.log
|
||||
kern.* -/var/log/kern.log
|
||||
user.* -/var/log/user.log
|
||||
|
||||
#
|
||||
# Some "catch-all" log files.
|
||||
#
|
||||
*.=debug;\
|
||||
auth,authpriv.none;\
|
||||
mail.none -/var/log/debug
|
||||
*.=info;*.=notice;*.=warn;\
|
||||
auth,authpriv.none;\
|
||||
cron,daemon.none;\
|
||||
mail.none -/var/log/messages
|
||||
Reference in New Issue
Block a user