netbsd.rst
changeset 1982 80c59ee7cfdc
child 1983 af615af2ad5f
equal deleted inserted replaced
1981:ad12707cb8de 1982:80c59ee7cfdc
       
     1 .. -*- coding: utf-8; -*-
       
     2 
       
     3 ========
       
     4  NetBSD
       
     5 ========
       
     6 .. contents::
       
     7    :local:
       
     8 
       
     9 User management
       
    10 ===============
       
    11 
       
    12 User in ``wheel`` group automatically get ``root`` permission with ``su``
       
    13 command, use one of::
       
    14 
       
    15   $ su
       
    16   $ su -
       
    17 
       
    18 To set user password::
       
    19 
       
    20   $ passwd $USER
       
    21 
       
    22 To set user shell::
       
    23 
       
    24   $ chsh
       
    25   $ chpass -s /bin/ksh
       
    26 
       
    27 Network configuration
       
    28 =====================
       
    29 
       
    30 Set host name::
       
    31 
       
    32   $ hostname $HOST
       
    33   $ echo $HOST > /etc/myname
       
    34 
       
    35 Manually setup DHCP::
       
    36 
       
    37   $ ifconfig       # find out available interfaces
       
    38   $ dhclient $IF
       
    39   $ ifconfig       # check out if thinks go ok
       
    40 
       
    41 
       
    42 Package management
       
    43 ==================
       
    44 
       
    45 Easy way to install packages is to put::
       
    46 
       
    47   export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/7.0/All
       
    48 
       
    49 into ``/root/.profile`` and run as root one of::
       
    50 
       
    51   $ pkg_add emacs
       
    52   $ pkg_add -v emacs
       
    53