netbsd.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 02 Jun 2016 16:19:45 +0300
changeset 1982 80c59ee7cfdc
child 1983 af615af2ad5f
permissions -rw-r--r--
User management.

.. -*- 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