Setting up a Linux home server based on a low cost and low power hardware (Pc Engines Alix) – Part2
Debian is installed and our new green home server is up running but first of all we have to set a password for root.
Connected via null-modem console cable (you can use for example Putty COMx, 38400) you have to log on with user root and launch the command “passwd”.
The system is now manageable via SSH.
Now we have to do tuning to the OS for having a stable and problem-free system.
Most of Alix boards don’t have onboard clock battery, it very important to adjust time at each boot via NTP (Network Time Protocol.
Let’s install ntpdate for adjusting manually the clock:
homeserver:~# apt-get update
homeserver:~# apt-get install ntpdate
To manually adjust clock we can launch this command:
homeserver:~# ntpdate ntp1.ien.it
We are now ready for installing and configuring the ntp server and the time-sync tool adjtimex
homeserver:~# apt-get install ntp adjtimex
Let’s modify the ntp configuration file /etc/ntp.conf adding our custom ntp server below the row “#server ntp.your-provider.example” :
server ntp1.ien.it
server ntp2.ien.it
Now restart the ntp service with:
homeserver:~# /etc/init.d/ntp restart
If you have an Internet connection with dynamic IP like residential DSL you should install a Dynamic DNS client like No-ip, Dyndns etc
For expample this is the command for installing no-ip.com Linux client (remember first to register your free account in the website and add your host).
homeserver:~# apt-get install noip2
The configuration wizard is very simple.
No comments yet.
Leave a comment
Categories
- AskoziaPBX (6)
- cisco (1)
- Debian Lenny (6)
- general (1)
- Home server (6)
- Linux (6)
- m0n0wall (1)
- switching (1)
- voice (1)
- Voyage Linux (6)
