slitaz-forge view arm/codex/setup.html @ rev 532

arm: small typo and more info on lighthy configs
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 30 17:23:10 2014 +0200 (2014-04-30)
parents 408b3c869c14
children eebec8d5fda8
line source
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <title>SliTaz ARM Codex - Setup</title>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <link rel="stylesheet" type="text/css" href="style.css" />
8 <link rel="stylesheet" type="text/css" href="style-tiny.css" />
9 </head>
10 <body bgcolor="#ffffff">
12 <div id="header">
13 <div id="network"><a href="http://arm.slitaz.org/">SliTaz ARM</a></div>
14 <h1><a href=".">SliTaz ARM Codex</a></h1>
15 </div>
17 <nav id="nav" role="navigation" tabindex="0">
18 <ul>
19 <li><a class="nav1" href="faq.html">FAQ</a></li>
20 <li><a class="nav2" href="system.html">System</a></li>
21 <li><a class="nav1" href="apps.html">Apps</a></li>
22 <li><a class="nav2" href="setup.html">Setup</a></li>
23 </ul>
24 </nav>
26 <!-- Content -->
27 <div id="content">
29 <h2>Services setup guides</h2>
31 <p>
32 Setup a web server or an IRC bouncer on your nifty ARM board.
33 </p>
35 <ul>
36 <li><a href="#httpd">HTTP Web server</a></li>
37 <li><a href="#znc">IRC bouncer setup</a></li>
38 <li><a href="#ntpd">Lightweight time server</a></li>
39 </ul>
41 <h2 id="httpd">HTTP Web server</h2>
43 <p>
44 SliTaz ARM can be turned into a powerful web server, since the included
45 Busybox HTTPd daemon has some limitations, we recommend using the
46 light and fast 'lighttpd' package with modules, CGI and advanced
47 configuration support:
48 </p>
50 <pre>
51 # spk-add lighttpd
52 </pre>
54 <ul>
55 <li>Main config files: <b>/etc/lighttpd/lighttpd.conf</b></li>
56 <li>Virtual hosts configs: <b>/etc/lighttpd/vhosts.conf</b></li>
57 </ul>
59 <h2 id="znc">IRC bouncer setup</h2>
61 <p>
62 The goal is to stay connected to your favorite IRC channels. And playback
63 the IRC messages when you are back online. To setup the IRC bouncer we
64 are going to use a SliTaz RPi base or desktop system combined with
65 <a href="http://wiki.znc.in/ZNC">ZNC</a>. First off install the package
66 and create a configuration file:
67 </p>
69 <pre>
70 # spk-add znc
71 # znc --makeconf
72 </pre>
74 <p>
75 The ZNC server will listen on port 1025 to provide the web interface.
76 To start or kill the ZNC bouncer server:
77 </p>
79 <pre>
80 # znc
81 # killall znc
82 </pre>
84 <h2 id="ntpd">Lightweigt time server</h2>
85 <p>
86 SliTaz Busybox multi-tool binary provide a built-in NTP
87 (Network Time Protocol) client/server. If you have many machines
88 in a local network that need to keep system clock up-to-date, it
89 may be useful to setup your own NTP server to save traffic to
90 the web. To start the NTP daemon using '0.pool.ntp.org' server
91 has reference:
92 </p>
94 <pre>
95 # ntpd -l -p 0.pool.ntp.org
96 </pre>
98 <p>
99 You can add this command to '/etc/init.d/local.sh' to start the daemon
100 on each boot. Then from a other local mahine you just have to edit
101 /etc/rcS.conf to set NTPD_HOST with the IP address of you NTP server.
102 You can also test the server with:
103 </p>
105 <pre>
106 # ntpd -q -p 192.168.x.xxx
107 </pre>
110 <!-- Close content -->
111 </div>
113 <div id="footer">
114 &copy; 2014 - <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a>
115 </div>
117 </body>
118 </html>