This shows you the differences between two versions of the page.
|
os:openbsd [2008/02/17 14:03] axelle created |
os:openbsd [2009/02/28 15:21] (current) |
||
|---|---|---|---|
| Line 148: | Line 148: | ||
| The OpenBSD installation is basically finished. It'll ask for a few other questions (do you want to start sshd by default etc), and then, you may reboot the computer (remove the installation CD from the reader). | The OpenBSD installation is basically finished. It'll ask for a few other questions (do you want to start sshd by default etc), and then, you may reboot the computer (remove the installation CD from the reader). | ||
| + | |||
| + | ====== Configuration ====== | ||
| + | |||
| + | ===== Networking ===== | ||
| + | |||
| + | * to use dhcp for a given interface: echo dhcp > /etc/hostname.<interface> (e.g /etc/hostname.rl0) | ||
| + | * to have the DHCP server always provide the same IP address: this configuration concerns the DHCP server. My current ISP is Free . The freebox can be configured to always return a given IP address for a given MAC address. The freebox needs to be rebooted. To get one's MAC address: ifconfig prints it. | ||
| + | * to restart the network: sh -x /etc/netstart | ||
| + | |||
| + | ===== User management ===== | ||
| + | |||
| + | * use: useradd, usermod etc or directly write to /etc/passwd and /etc/group | ||
| + | * you need to be in the wheel group if you intend to 'su root' from your own user account | ||
| + | |||
| + | ===== Package management ===== | ||
| + | |||
| + | ==== Pkg_add ==== | ||
| + | |||
| + | You need to be root | ||
| + | |||
| + | <code> | ||
| + | export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386 | ||
| + | pkg_add <packagename> (e.g pkg_add emacs-21.4p1-no_x11.tgz) | ||
| + | </code> | ||
| + | |||
| + | This downloads and installs the package from FTP to your host | ||
| + | <code> | ||
| + | emacs-21.4p1-no_x11: complete | ||
| + | </code> | ||
| + | |||
| + | ==== Interesting packages ==== | ||
| + | |||
| + | emacs-21.4p1-no_x11 | ||
| + | |||
| + | |||