View Single Post
  #1   (View Single Post)  
Old 25th August 2010
wesley wesley is offline
Real Name: Wesley
Shell Scout
 
Join Date: Aug 2009
Location: Reunion Island
Posts: 92
Post OpenBSD how to start (basic setup)

On OpenBSD :
To configure the hostname : /etc/myname and hostname -s new_name
Modify also /etc/hosts.

To configure Network : ifconfig
And to keep setup at startup, add your config in : /etc/hostname.xxx (xxx=name of network card)
ex : /etc/hostname.fxp0 contain
inet 10.10.10.12 255.255.255.0 NONE

To modify DNS (nameservers) : /etc/resolv.conf

Your gateway : /etc/mygate

A script to restart the network : sh /etc/netstart

Add daemon at startup : /etc/rc.conf.local or /etc/rc.local

Add packages :
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386
Example : add postfix : pkg_add -iv postfix
We can also use /usr/ports (using cvs)

User, group Management with adduser, user, usermod, rmuser, users, groups, group groupdel, groupadd, finger, userinfo, groupinfo

And of course, if you want more information about a command, don't forget man pages and "apropos" !

If someone can post the same things for the 3 others (BSD) :
FreeBSD? Netbsd? and DragonFlyBSD ? It will be usefull ;-)

Thank's
www.mouedine.net

Last edited by wesley; 25th August 2010 at 08:09 AM. Reason: precision
Reply With Quote