.. -*- coding: utf-8; -*-======== NetBSD========.. contents:: :local:User management===============User in ``wheel`` group automatically get ``root`` permission with ``su``command, use one of:: $ su $ su -Also ``wheel`` group allow access to system logs.To set user password:: $ passwd $USERTo set user shell:: $ chsh $ chpass -s /bin/kshNetwork configuration=====================Set host name:: $ hostname $HOST $ echo $HOST > /etc/mynameManually setup DHCP:: $ ifconfig # find out available interfaces $ dhclient $IF $ ifconfig # check out if thinks go okSet DNS resolution by modifying ``/etc/resolve.conf``:: domain example.local nameserver DNS1 nameserver DNS2Set 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 NETMASKApplay network configuration:: $ /etc/rc.d/network restartPackage management==================Easy way to install packages is to put:: export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/7.0/Allinto ``/root/.profile`` and run as root one of:: $ pkg_add emacs $ pkg_add -v emacsSystem wide environment variable set in ``/etc/profile``.Update userland packages:: $ pkg_add -uu $PKG1 $PKG2Remove installed package:: $ pkg_delete $PKGHalting=======:: $ shutdown -p nowEnable SSH==========Add ``ntpd=YES`` to ``/etc/rc.conf``.Enable NTP==========Adjust server in ``/etc/ntp.conf``:: server time.mit.eduAdd ``ntpd=YES`` to ``/etc/rc.conf``.Bootloader==========To enable VESA framebuffer edit ``/boot.cfg``:: menu=Boot NetBSD:vesa 1280x800;boot netbsdTo disable ACPI edit ``/boot.cfg``:: default=3