DragonFly BSD configuration

Home | UNIX | Oracle | Code | Practical | Private

DragonFly BSD configuration

FreeBSD configuration : pbraun.nethence.com/doc/sysutils_bsd/freebsd.html
DragonFlyBSD configuration : pbraun.nethence.com/doc/sysutils_bsd/dragonfly.html
DragonFly & FreeBSD Jail configuration : pbraun.nethence.com/doc/sysutils_bsd/freebsd-jail.html


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
wget pbraun.nethence.com/code/misc/screenrc
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
DragonFly BSD Handbook : www.dragonflybsd.org/docs/handbook/
DragonFly BSD Download : www.dragonflybsd.org/download/
DragonFly Wiki : wiki.dragonflybsd.org/
FreeBSD Made Easy : www.freebsdmadeeasy.com/
Gateways and Routes : www.freebsd.org/doc/en/books/handbook/network-routing.html


Home | UNIX | Oracle | Code | Practical | Private | Donate | Print | html/css
© 2010 Pierre-Philipp Braun