login.conf: we don't want coredumps on picobsd
rc.conf: make the system recognise the MAC address and assign an IP automatically from /etc/hosts (or ask the user) sshd_config: don't do x11 forwarding.
This commit is contained in:
parent
e754e5f361
commit
5fed4e9f8c
@ -28,7 +28,7 @@ default:\
|
||||
:memorylocked-cur=10M:\
|
||||
:memoryuse-cur=30M:\
|
||||
:filesize=infinity:\
|
||||
:coredumpsize=infinity:\
|
||||
:coredumpsize=0:\
|
||||
:maxproc-cur=64:\
|
||||
:openfiles-cur=64:\
|
||||
:priority=0:\
|
||||
@ -50,7 +50,7 @@ standard:\
|
||||
:memorylocked=4M:\
|
||||
:memoryuse=8M:\
|
||||
:filesize=8M:\
|
||||
:coredumpsize=8M:\
|
||||
:coredumpsize=0:\
|
||||
:openfiles=24:\
|
||||
:maxproc=32:\
|
||||
:priority=0:\
|
||||
@ -83,7 +83,7 @@ root:\
|
||||
:memorylocked=infinity:\
|
||||
:memoryuse=infinity:\
|
||||
:filesize=infinity:\
|
||||
:coredumpsize=infinity:\
|
||||
:coredumpsize=0:\
|
||||
:openfiles=infinity:\
|
||||
:maxproc=infinity:\
|
||||
:memoryuse-cur=32M:\
|
||||
|
@ -8,8 +8,10 @@
|
||||
# Remaining parameters are set using a switch.
|
||||
|
||||
rc_conf_set_defaults() {
|
||||
syslogd_enable="NO"
|
||||
pccard_enable="NO"
|
||||
swapfile="NO" # Set to name of swapfile if aux swapfile desired.
|
||||
firewall="NO" # firewall type (see /etc/rc.firewall) or NO
|
||||
firewall_enable="NO" # firewall type (see /etc/rc.firewall) or NO
|
||||
tcp_extensions="NO" # Allow RFC1323 & RFC1644 extensions (or NO).
|
||||
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
|
||||
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
|
||||
@ -27,6 +29,18 @@ arpproxy_all="" # replaces obsolete kernel option ARP_PROXYALL.
|
||||
mask="0xffffff00"
|
||||
}
|
||||
|
||||
# the following lets the user specify a name and ip for his system
|
||||
read_address() {
|
||||
echo "Please enter a hostname and IP address for your system $main_ether"
|
||||
read hostname the_ip
|
||||
if [ "X$hostname" != "X" ] ; then
|
||||
echo "# $main_ether $hostname" >> /etc/hosts
|
||||
echo "$the_ip $hostname" >> /etc/hosts
|
||||
else
|
||||
hostname=default
|
||||
fi
|
||||
}
|
||||
|
||||
rc_conf_set_defaults
|
||||
|
||||
hostname=""
|
||||
@ -40,7 +54,12 @@ while read a b c ; do
|
||||
fi
|
||||
done < /etc/hosts
|
||||
if [ "X$hostname" = "X" -o "X$hostname" = "X." ] ; then
|
||||
hostname=default
|
||||
if [ "X$main_ether" = "X" ] ; then
|
||||
echo "No ethernets found, using localhost"
|
||||
hostname=localhost
|
||||
else
|
||||
read_address
|
||||
fi
|
||||
fi
|
||||
|
||||
eval ifconfig_${main_if}=\" \$hostname netmask \$mask\"
|
||||
|
@ -9,7 +9,7 @@ PermitRootLogin yes
|
||||
IgnoreRhosts no
|
||||
StrictModes yes
|
||||
QuietMode no
|
||||
X11Forwarding yes
|
||||
X11Forwarding no
|
||||
X11DisplayOffset 10
|
||||
FascistLogging no
|
||||
PrintMotd yes
|
||||
|
Loading…
Reference in New Issue
Block a user