SGNLS

^

KnowledgeBase

Silent Server with DSL (Damn Small Linux)

11:36:32am, 15th Nov 2014

I recently built an entirely silent server, effectively a passive low-consumption unit built with the below-listed components. My only gripe is that it takes around 35 minutes to boot. This is the biggest downside to the platform (and a huge concern, considering the base-image of DSL is ~50MB), but since the motherboard is running a chipset architecture older than myself, the OS of choice (DSL) will boot into RAM first. Once it's booted, it really is quite an impressive little Debian (Knoppix) based operating system, although it doesn't have the gloss and module-flexibility of SLAX, it certainly offers a superbly functional OS for the forgotten architectures. The fact that I will be using it entirely headless means that these are really but small issues. That said, DSL is not without it's own simple expansion methods.

Pretty much everything you need to get running is, as always, documented on the DSL Wiki.

Components

Whilst there are ways around the supremely delayed startup (e.g. the 'home' partition / kernel-flag and installation to local HDD), this machine was built with the intention of leaving it on 24/7, much like my ARM / (ALIX) WRAP-based firewall and I actually intend to run this solely from USB for a number of reasons (e.g. security, flexibility, maintain noise / power consumption etc.).

Retain Functionality on Boot

# files / directories for backup
# path: /home/dsl/.filetool.lst

	# retain root passwd
	etc/shadow
	etc/shadow-

# enable SSH at boot
# path: /opt/bootlocal.sh

	/etc/init.d/ssh start

--##--

# retain RSA key, root passwd and enable SSH / HTTP (monkey) at boot

root@ttyp0[root]# mkdir /home/dsl/sshkeys/root
root@ttyp0[root]# ssh-keygen -t rsa
root@ttyp0[root]# cp /etc/ssh/* /home/dsl/sshkeys/root/
root@ttyp0[root]# cat /home/dsl/.filelist.lst 

	etc/shadow
	etc/shadow-
	home/dsl/sshkeys/root/

root@ttyp0[root]# cat /opt/bootlocal.sh

	#!/bin/bash
	/opt/eth0.sh &
	cp /home/dsl/sshkeys/root/* /etc/ssh/ &
	/etc/init.d/ssh start &
	/opt/monkey/bin/banana start

© Copyright SGNLS.net 2006-2017

v1.1313 | Material and content adheres to the Creative Commons (NC-SA 4.0) license.