--- a/netbsd.rst Thu Jun 02 16:19:45 2016 +0300
+++ b/netbsd.rst Thu Jun 02 17:06:55 2016 +0300
@@ -15,6 +15,8 @@
$ su
$ su -
+Also ``wheel`` group allow access to system logs.
+
To set user password::
$ passwd $USER
@@ -38,6 +40,24 @@
$ dhclient $IF
$ ifconfig # check out if thinks go ok
+Set DNS resolution by modifying ``/etc/resolve.conf``::
+
+ domain example.local
+ nameserver DNS1
+ nameserver DNS2
+
+Set local host name resolution by modifying ``/etc/hosts``::
+
+ ::1 localhost localhost.
+ 127.0.0.1 localhost localhost.
+
+Set static IP address to interface by adding file ``/etc/hostname.$IF``::
+
+ inet IP NETMASK
+
+Applay network configuration::
+
+ $ /etc/rc.d/network restart
Package management
==================
@@ -51,3 +71,45 @@
$ pkg_add emacs
$ pkg_add -v emacs
+System wide environment variable set in ``/etc/profile``.
+
+Update userland packages::
+
+ $ pkg_add -uu $PKG1 $PKG2
+
+Remove installed package::
+
+ $ pkg_delete $PKG
+
+
+Halting
+=======
+::
+
+ $ shutdown -p now
+
+Enable SSH
+==========
+
+Add ``ntpd=YES`` to ``/etc/rc.conf``.
+
+Enable NTP
+==========
+
+Adjust server in ``/etc/ntp.conf``::
+
+ server time.mit.edu
+
+Add ``ntpd=YES`` to ``/etc/rc.conf``.
+
+Bootloader
+==========
+
+To enable VESA framebuffer edit ``/boot.cfg``::
+
+ menu=Boot NetBSD:vesa 1280x800;boot netbsd
+
+To disable ACPI edit ``/boot.cfg``::
+
+ default=3
+