|
|||
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 |
|
|||
Quote:
We should Code:
cp /etc/rc.conf /etc/rc.conf.local Code:
local_rcconf=”/etc/rc.conf.local” Code:
[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line |
|
|||
Quote:
Just keep the things you specifically need in rc.conf.local.
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems. |
|
||||
Yes, according to intro(8)
Quote:
__________________
That's nothing a couple o' pints wouldn't fix. |
|
|||
Sorry(Lexus45), you can simply use it like for example:
pkg_add squid touch /etc/rc.conf.local and add the following to this file pkg_scripts="squid" If you want to disable a service started from a fresh system for example disable sendmail, add this to /etc/rc.conf.local sendmail_flags=NO And if you want to start some scripts you can add them to the file /etc/rc.local ;-) Wesley. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic NAT trouble for a newbie | maxleonca | NetBSD General | 2 | 17th June 2010 04:44 AM |
Start problem after the installation of OpenBSD 4.6 | aleunix | OpenBSD Installation and Upgrading | 12 | 21st December 2009 06:59 PM |
how setup arpwatch for OpenBSD | mfaridi | OpenBSD Packages and Ports | 1 | 11th December 2008 05:22 PM |
start KDE on OpenBSD LiveCD | ccc | OpenBSD Installation and Upgrading | 5 | 3rd November 2008 10:24 PM |
need some basic help on ifconfig | daemon-dd | FreeBSD General | 4 | 29th July 2008 03:21 PM |