website diff en/doc/handbook/system-admin.html @ rev 15
Added PPPoE and Firewall to Handbook (en)
author | Paul Issot <paul@slitaz.org> |
---|---|
date | Fri Apr 04 22:48:44 2008 +0000 (2008-04-04) |
parents | 50e15b2b22ac |
children | 2ceb4453710d |
line diff
1.1 --- a/en/doc/handbook/system-admin.html Sat Mar 29 12:05:31 2008 +0100 1.2 +++ b/en/doc/handbook/system-admin.html Fri Apr 04 22:48:44 2008 +0000 1.3 @@ -31,55 +31,13 @@ 1.4 <h2><font color="#df8f06">System administration</font></h2> 1.5 1.6 <ul> 1.7 - <li><a href="#network">Network configuration.</a></li> 1.8 <li><a href="#devices">Devices and disks access.</a></li> 1.9 <li><a href="#users-admin">Users, groups and passwords.</a></li> 1.10 <li><a href="#locale">Language and keyboard.</a></li> 1.11 - <li><a href="#bash">Install the Bash shell</a></li> 1.12 - <li><a href="#time">Set the system time</a></li> 1.13 + <li><a href="#bash">Install the Bash shell.</a></li> 1.14 + <li><a href="#time">Adjust the system time.</a></li> 1.15 </ul> 1.16 1.17 -<a name="network"></a> 1.18 -<h3>Network configuration</h3> 1.19 -<p> 1.20 -By default SliTaz starts a DHCP client (udhcpc) on eth0 at boot time. If your 1.21 -network card has been identified as an <code>eth0</code> interface and you use 1.22 -a router, your connection should already be working. DHCP is dynamically 1.23 -configured, on each boot the client asks for a new IP address from 1.24 -the DHCP server, which is integrated into the router, or on another computer. 1.25 -If you need a static IP, you can directly edit config files or use the GUI 1.26 -<code>netbox</code> available from JWM menu --> System tools. In a terminal 1.27 -or a Linux console, you can list all available network interfaces with the 1.28 -command <code>ifconfig</code> followed by the <code>-a</code> option: 1.29 -</p> 1.30 -<pre> 1.31 - $ ifconfig -a 1.32 -</pre> 1.33 -<p> 1.34 -The system wide network configuration file is <code>/etc/network.conf</code>, 1.35 -it can be graphically configured with <code>netbox</code> or directly edited by 1.36 -the root administrator. 1.37 -</p> 1.38 -<h4>Install network card driver</h4> 1.39 -<p> 1.40 -In case you need a network card driver and dont know the driver name, you can 1.41 -use the command <code>lspci</code> to find your card and then <code>modprobe</code> 1.42 -to load a module. In Live mode you can use the SliTaz boot option 1.43 -<code>modprobe=modules</code> to automatically load Kernel modules. To get a 1.44 -list of all available network card drivers, display PCI eth cards and load a 1.45 -module: 1.46 -</p> 1.47 -<pre> 1.48 - # modprobe -l | grep drivers/net 1.49 - # lspci | grep [Ee]th 1.50 - # modprobe -v module_name 1.51 -</pre> 1.52 -<p> 1.53 -On an installed system you just need to add the module_name to the variable 1.54 -<code>LOAD_MODULES </code> in <code>/etc/rcS.conf</code> to load your module 1.55 -on each boot. 1.56 -</p> 1.57 - 1.58 <a name="devices"></a> 1.59 <h3>Devices and disks access</h3> 1.60 <p> 1.61 @@ -119,7 +77,8 @@ 1.62 user passwords and a single user can only change his/her own password. To add 1.63 or remove a user named linux: 1.64 </p> 1.65 -<pre> # adduser linux 1.66 +<pre> 1.67 + # adduser linux 1.68 # deluser linux 1.69 </pre> 1.70 <p> 1.71 @@ -127,9 +86,18 @@ 1.72 <code>delgroup</code>. To change the current user password or change the 1.73 password of a specific user, you must use the command <code>passwd</code>: 1.74 </p> 1.75 -<pre> $ passwd 1.76 +<pre> 1.77 + $ passwd 1.78 # passwd username 1.79 </pre> 1.80 +<h4>Audio group</h4> 1.81 +<p> 1.82 +If you want a new user to be able to listen to music he must be in the 1.83 +<code>audio</code> group. To add an existing user to the audio group: 1.84 +</p> 1.85 +<pre> 1.86 + # adduser -G audio user_name 1.87 +</pre> 1.88 1.89 <a name="locale"></a> 1.90 <h3>Language and keyboard layout</h3> 1.91 @@ -150,9 +118,11 @@ 1.92 To check all available locales or your current configuration you can use the 1.93 command <code>locale</code> as a single user or root (C for English): 1.94 </p> 1.95 -<pre> $ locale -a 1.96 +<pre> 1.97 + $ locale -a 1.98 $ locale 1.99 </pre> 1.100 + 1.101 <a name="bash"></a> 1.102 <h3>Bash Shell</h3> 1.103 <p> 1.104 @@ -161,7 +131,7 @@ 1.105 as <code>su</code> install bash, copy the <code>.profile</code> found in your 1.106 home directory and rename it <code>.bashrc</code>, then edit the 1.107 <code>/etc/passwd</code> file with your favorite text editor and change your 1.108 -shell to :/bin/bash 1.109 +shell to: /bin/bash 1.110 </p> 1.111 <pre> 1.112 # tazpkg get-install bash 1.113 @@ -182,7 +152,8 @@ 1.114 can edit with your favorite text editor or simply <code>echo</code> the changes. 1.115 Here's an example using the timezone Europe/London: 1.116 </p> 1.117 -<pre># echo "Europe/London" > /etc/TZ 1.118 +<pre> 1.119 + # echo "Europe/London" > /etc/TZ 1.120 </pre> 1.121 <h4>Rdate</h4> 1.122 <p> 1.123 @@ -195,8 +166,7 @@ 1.124 <p> 1.125 To display the time on the remote server, use the <code>rdate -p</code> command. 1.126 </p> 1.127 -<pre> 1.128 - $ rdate -p tick.grayware.com 1.129 +<pre> $ rdate -p tick.grayware.com 1.130 </pre> 1.131 <h4>Hwclock</h4> 1.132 <p> 1.133 @@ -237,3 +207,4 @@ 1.134 1.135 </body> 1.136 </html> 1.137 +