DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th August 2010
wesley wesley is offline
Real Name: Wesley
Fdisk Soldier
 
Join Date: Aug 2009
Location: Reunion Island
Posts: 76
Thanked 1 Time in 1 Post
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
  #2   (View Single Post)  
Old 11th July 2012
Lexus45 Lexus45 is offline
Port Guard
 
Join Date: May 2010
Location: Kurgan, Russia
Posts: 30
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by wesley View Post
On OpenBSD :
Add daemon at startup : /etc/rc.conf.local or /etc/rc.local
Let me correct you :) Never "or".
We should
Code:
cp /etc/rc.conf /etc/rc.conf.local
Then open /etc/rc.conf.local and remove two lines:
Code:
local_rcconf=”/etc/rc.conf.local”
and
Code:
[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line
Then edit /etc/rc.conf.local only, according to your needs, forget about /etc/rc.conf .
Reply With Quote
  #3   (View Single Post)  
Old 12th July 2012
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 116
Thanked 10 Times in 4 Posts
Default

Quote:
Originally Posted by Lexus45 View Post
Let me correct you Never "or".
We should
Code:
cp /etc/rc.conf /etc/rc.conf.local
This seems wrong to me. I bet it would cause problems during upgrades, which is what rc.conf.local is supposed to prevent. Copying /etc/rc.conf isn’t needed, because rc.conf is read anyway and will automatically source rc.conf.local.

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.
Reply With Quote
  #4   (View Single Post)  
Old 12th July 2012
marcolino's Avatar
marcolino marcolino is offline
Real Name: Mark
Custom Title Maker
 
Join Date: May 2008
Location: At the Mountains of Madness
Posts: 113
Thanked 0 Times in 0 Posts
Default

Yes, according to intro(8)
Quote:
To enable or disable daemon processes, administrators should edit the file rc.conf.local(8), which overrides rc.conf(8).
__________________
That's nothing a couple o' pints wouldn't fix.
Reply With Quote
  #5   (View Single Post)  
Old 18th July 2012
wesley wesley is offline
Real Name: Wesley
Fdisk Soldier
 
Join Date: Aug 2009
Location: Reunion Island
Posts: 76
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 06:56 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick