Skip to main content

Posts

Showing posts from December, 2012

OpenBSD 5.2 - NTP

This is how you can stay sync your server time with the world time from ntp.org Installing from ports: #cd /usr/ports/net/ntp #make install Once install, look for ntp readme # more /usr/local/share/doc/pkg-readmes/ntp-4.2.6pl5p0 $OpenBSD: README,v 1.5 2012/04/22 11:41:55 ajacoutot Exp $ +----------------------------------------------------------------------- | Running ntp-4.2.6pl5p0 on OpenBSD +----------------------------------------------------------------------- Several steps need to be taken to properly configure the NTP daemon. 1. First, create or update the file /etc/ntp.conf.  Several    example configuration files can be found here:      /usr/local/share/examples/ntp 2. Now xntpd can be started with:      /etc/rc.d/xntpd start    Or to start 'xntpd' at every boot, add it to pkg_scripts in    /etc/rc.conf.local. #vi /etc/rc.conf.local Add as following : pkg_scripts="xntpd" Edit /etc/ntp.conf as f

OpenBSD 5.2 - Fetch ports tree

Sometimes we may use some of the ports tree for our usage instead of using the pkg_add method. Default installation, the ports tree is not included and you have to fetch it manually. This is the how-to : for more reliable you can install wget instead of ftp pkg_add -i wget #cd /tmp #wget -c ftp://ftp.openbsd.org/pub/OpenBSD/5.2/ports.tar.gz once done #cd /usr #tar xzvf /tmp/ports.tar.gz Done!