===== Fichier /etc/rc.conf pour serveur ===== # $NetBSD: rc.conf,v 1.97 2014/07/14 12:29:48 mbalmer Exp $ # # See rc.conf(5) for more information. # # Use program=YES to enable program, NO to disable it. program_flags are # passed to the program on the command line. # # Load the defaults in from /etc/defaults/rc.conf (if it's readable). # These can be overridden below. # if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf fi # If this is not set to YES, the system will drop into single-user mode. # rc_configured=NO # Add local overrides below. # dev_exists() { if /sbin/drvctl -l $1 >/dev/null 2>&1 ; then printf YES else printf NO fi } is_cloud() { ret=NO # AWS EC2 if [ "$(dev_exists ena0)" = "YES" ]; then ret=YES fi # Oracle OCI case "$(/sbin/sysctl -n machdep.dmi.chassis-asset-tag 2>/dev/null)" in OracleCloud*) ret=YES ;; esac printf $ret } rc_configured=YES no_swap=YES savecore=NO sshd=YES dhcpcd=YES ntpd=YES ntpd_flags="-g" creds_msdos=YES creds_msdos_partition=/boot certctl_init=YES resize_disklabel=YES resize_root=YES resize_root_flags="-p" resize_root_postcmd="/sbin/reboot -n" mdnsd=YES devpubd=YES wscons=$(dev_exists wsdisplay0) ntpdate=YES hostname=astaroth defaultroute="" ################## ## Ajouts Perso ## ################## wsmoused=YES ## Activer souris en console apache=YES #inetd=YES #httpd=YES #ftpd=YES # activer serveur NFS # rpcbind=yes mountd=yes nfs_server=yes lockd=yes statd=yes # fin activer serveur NFS # # activer client NFS # #rpcbind=yes nfs_client=yes #lockd=yes #statd=yes # fin activer client NFS # #rsyncd=YES #fail2ban=YES modules=YES ## Charger modules au demarrage de NetBSD dans fichier /etc/modules.conf, creer le fichier si il n'existe pas ===== Fichier /etc/rc.conf plus généraliste ===== # $NetBSD: rc.conf,v 1.97 2014/07/14 12:29:48 mbalmer Exp $ # # See rc.conf(5) for more information. # # Use program=YES to enable program, NO to disable it. program_flags are # passed to the program on the command line. # # Load the defaults in from /etc/defaults/rc.conf (if it's readable). # These can be overridden below. # if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf fi # If this is not set to YES, the system will drop into single-user mode. # rc_configured=YES # Add local overrides below. # #dhcpcd=YES #dhcpcd_flags="-qM wm0" #sshd=YES #ntpd=YES #ntpdate=YES #mdnsd=YES #xdm=YES wscons=YES ################## ## Ajouts Perso ## ################## hostname=nbsd93x64 #Nom de l'ordinateur wscons=YES moused=YES ## Interfaces r�seau dhcpcd=YES # Autoconfiguration du r�seau par dhcp dhcpcd_flags="-qM wm0" #dhcpcd_flags="-qM urndis0" #dhcpcd=YES #dhcpcd_flags="-qM bge0" #dhcpcd_flags="-qM urtw0" #wpa_supplicant=YES # Activation service wpa wifi #wpa_supplicant_flags="-i urtw0 -c /etc/wpa_supplicant.conf" ## Service r�seau #ftpd=YES #hostapd=YES #httpd=YES #inetd=YES #ipfilter=YES #lpd=YES ntpd=YES # Activation serveur de temps ntp ntpdate=YES #nfsd=YES #pf=YES #postfix=YES #rpcbind=YES sshd=YES # Acivation serveur sshd ## Xorg configuration #xdm=YES #rpcbind=YES #famd=YES dbus=YES #hal=YES ## Divers #bluetooth=YES #fsck=YES