equal
deleted
inserted
replaced
12 User in ``wheel`` group automatically get ``root`` permission with ``su`` |
12 User in ``wheel`` group automatically get ``root`` permission with ``su`` |
13 command, use one of:: |
13 command, use one of:: |
14 |
14 |
15 $ su |
15 $ su |
16 $ su - |
16 $ su - |
|
17 |
|
18 Also ``wheel`` group allow access to system logs. |
17 |
19 |
18 To set user password:: |
20 To set user password:: |
19 |
21 |
20 $ passwd $USER |
22 $ passwd $USER |
21 |
23 |
36 |
38 |
37 $ ifconfig # find out available interfaces |
39 $ ifconfig # find out available interfaces |
38 $ dhclient $IF |
40 $ dhclient $IF |
39 $ ifconfig # check out if thinks go ok |
41 $ ifconfig # check out if thinks go ok |
40 |
42 |
|
43 Set DNS resolution by modifying ``/etc/resolve.conf``:: |
|
44 |
|
45 domain example.local |
|
46 nameserver DNS1 |
|
47 nameserver DNS2 |
|
48 |
|
49 Set local host name resolution by modifying ``/etc/hosts``:: |
|
50 |
|
51 ::1 localhost localhost. |
|
52 127.0.0.1 localhost localhost. |
|
53 |
|
54 Set static IP address to interface by adding file ``/etc/hostname.$IF``:: |
|
55 |
|
56 inet IP NETMASK |
|
57 |
|
58 Applay network configuration:: |
|
59 |
|
60 $ /etc/rc.d/network restart |
41 |
61 |
42 Package management |
62 Package management |
43 ================== |
63 ================== |
44 |
64 |
45 Easy way to install packages is to put:: |
65 Easy way to install packages is to put:: |
49 into ``/root/.profile`` and run as root one of:: |
69 into ``/root/.profile`` and run as root one of:: |
50 |
70 |
51 $ pkg_add emacs |
71 $ pkg_add emacs |
52 $ pkg_add -v emacs |
72 $ pkg_add -v emacs |
53 |
73 |
|
74 System wide environment variable set in ``/etc/profile``. |
|
75 |
|
76 Update userland packages:: |
|
77 |
|
78 $ pkg_add -uu $PKG1 $PKG2 |
|
79 |
|
80 Remove installed package:: |
|
81 |
|
82 $ pkg_delete $PKG |
|
83 |
|
84 |
|
85 Halting |
|
86 ======= |
|
87 :: |
|
88 |
|
89 $ shutdown -p now |
|
90 |
|
91 Enable SSH |
|
92 ========== |
|
93 |
|
94 Add ``ntpd=YES`` to ``/etc/rc.conf``. |
|
95 |
|
96 Enable NTP |
|
97 ========== |
|
98 |
|
99 Adjust server in ``/etc/ntp.conf``:: |
|
100 |
|
101 server time.mit.edu |
|
102 |
|
103 Add ``ntpd=YES`` to ``/etc/rc.conf``. |
|
104 |
|
105 Bootloader |
|
106 ========== |
|
107 |
|
108 To enable VESA framebuffer edit ``/boot.cfg``:: |
|
109 |
|
110 menu=Boot NetBSD:vesa 1280x800;boot netbsd |
|
111 |
|
112 To disable ACPI edit ``/boot.cfg``:: |
|
113 |
|
114 default=3 |
|
115 |