Home
|
UNIX
|
Oracle
|
Code
|
Practical
|
Private
DragonFly BSD configuration
Post installation in brief
- network configuration
- shell configuration
- syslog, screen, indexing and crontab
- thttpd
Network configuration
Proceed,
cd /etc
vi rc.conf
like,
keymap="fr.iso.acc"
hostname="dfly1.example.net"
ifconfig_lnc0="inet 10.1.1.3 netmask 255.255.255.0"
defaultrouter="10.1.1.254"
sshd_enable="YES"
also,
vi hosts
vi resolv.conf
vi ssh/sshd_config
Shell configuration
Install KSH93, screen, and make KSH93 your default shell,
setenv PKG_PATH ftp://mirror.physik-pool.tu-berlin.de/DragonFlyBSD/dflysnap/packages/DragonFly-2.2.1/stable/All
pkg_radd ast-ksh
cd /bin
ln -s ../usr/pkg/bin/ksh93 ksh
vi /etc/shells # /bin/ksh
chpass -s /bin/ksh
Add this variable to your KSH profile,
PKG_PATH=ftp://mirror.physik-pool.tu-berlin.de/DragonFlyBSD/dflysnap/packages/DragonFly-2.2.1/stable/All
export PKG_PATH
Syslog, Screen and Crontab
Configure the system logs,
cd /etc
mv syslog.conf syslog.conf.dist
vi syslog.conf
like,
*.* -/var/log/messages
and secure them,
cd /var/log
chmod 640 messages
apply,
/etc/rc.d/syslogd restart
Install screen and lynx,
pkg_radd screen lynx
configure screen,
cd /usr/local/etc
cd /etc
ln -s /usr/pkg/etc/screenrc
vi screenrc
Generate the locate db,
/usr/libexec/locate.updatedb
Disable 'at',
vi /etc/crontab
comment line,
#*/5 * * * * root /usr/libexec/atrun
Thttpd
Install thttpd and configure,
pkg_radd thttpd
cd /etc
cp /usr/pkg/share/examples/rc.d/thttpd rc.d/
rm /usr/pkg/share/thttpd/index.html
ln -s ../usr/pkg/etc/thttpd.conf
vi rc.conf
like,
thttpd_enable="YES"
apply,
rc.d/thttpd start
Comparison
Note. dflyBSD supports 'tail -F'
References