# HG changeset patch # User Oleksandr Gavenko # Date 1464873585 -10800 # Node ID 80c59ee7cfdc3027154061617e863baaef2c1509 # Parent ad12707cb8ded909bc413f8d22f800a501a19afa User management. diff -r ad12707cb8de -r 80c59ee7cfdc netbsd.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netbsd.rst Thu Jun 02 16:19:45 2016 +0300 @@ -0,0 +1,53 @@ +.. -*- coding: utf-8; -*- + +======== + NetBSD +======== +.. contents:: + :local: + +User management +=============== + +User in ``wheel`` group automatically get ``root`` permission with ``su`` +command, use one of:: + + $ su + $ su - + +To set user password:: + + $ passwd $USER + +To set user shell:: + + $ chsh + $ chpass -s /bin/ksh + +Network configuration +===================== + +Set host name:: + + $ hostname $HOST + $ echo $HOST > /etc/myname + +Manually setup DHCP:: + + $ ifconfig # find out available interfaces + $ dhclient $IF + $ ifconfig # check out if thinks go ok + + +Package management +================== + +Easy way to install packages is to put:: + + export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/7.0/All + +into ``/root/.profile`` and run as root one of:: + + $ pkg_add emacs + $ pkg_add -v emacs +