<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nozell, rhymes with Oh Hell &#187; homeserver</title>
	<atom:link href="http://nozell.com/blog/tag/homeserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://nozell.com/blog</link>
	<description>Marc Nozell's random stuff -- mostly GNU/Linux, technology, genealogy, family</description>
	<lastBuildDate>Tue, 13 Mar 2012 01:18:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>SheevaPlug is now my main home server</title>
		<link>http://nozell.com/blog/2009/06/26/sheevaplug-is-now-my-main-home-server/</link>
		<comments>http://nozell.com/blog/2009/06/26/sheevaplug-is-now-my-main-home-server/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 18:04:40 +0000</pubDate>
		<dc:creator>Marc Nozell</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[SheevaPlug]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[homeserver]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[lordshiva]]></category>
		<category><![CDATA[sheevaplug]]></category>

		<guid isPermaLink="false">http://nozell.com/blog/?p=769</guid>
		<description><![CDATA[I&#8217;m finally at the point where the little SheevaPlug can replace the aging Compaq DeskPro EN that has been our main home server. Functions: mail hub network print server scan server mp3 file server system monitor proxy server Here are the detailed steps needed to convert this $99 low power server into something useful: Connect [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m finally at the point where the little SheevaPlug can replace the aging Compaq DeskPro EN that has been our main home server.</p>
<p>Functions:</p>
<ul>
<li>mail hub</li>
<li>network print server</li>
<li>scan server</li>
<li>mp3 file server</li>
<li>system monitor</li>
<li>proxy server</li>
</ul>
<p>Here are the detailed steps needed to convert this $99 low power server into something useful:</p>
<p><span id="more-769"></span></p>
<p><strong>Connect to the SheevaPlug console</strong></p>
<p>* Connect the mini-USB/USB cable to a handy Linux box<br />
* Load the appropriate kernel module:<br />
<code>sudo modprobe ftdi_sio vendor=0x9e88 product=0x9e8f </code><br />
* Install gtkterm if you don&#8217;t already have it:<br />
<code>apt-get install gtkterm</code><br />
* Configure gtkterm to connect to port /dev/ttyUSB1 (or whatever the SheevaPlug reports as, <code>ls /dev/ttyUSB*</code> to find out)<br />
* Power up and watch the boot</p>
<p>= Start with Martin&#8217;s file system =</p>
<p>See the excellent description of getting the Debian/Lenny filesystem snapshot that Martin Michlmayr has provided:<br />
<a href="http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html">http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html</a></p>
<p>In addition to building an MMC card with the initial Debian file system, also upgrade the firmware to the one provided by user <a href="http://plugcomputer.org/plugforum/index.php?action=profile;u=221">kwonsk</a> at the <a href="http://plugcomputer.org/plugforum/index.php?topic=183.0">PlugComputer.org forum</a>.  You will likely need to install the tftp server somewhere on your network &#8212; <code>apt-get install tftpd</code> and put the u-boot.bin binary in <code>/srv/tftp/</code></p>
<p>= Initial steps =</p>
<p>* Login as root via the console change the root password: <code>passwd<br />
* Note the ip address (</code><code>/sbin/ifconfig eth0</code>ntpdate pool.ntp.org<br />
* Change the ssh keys:<br />
<code><br />
<strong>rm /etc/ssh/ssh_host*</strong><br />
<strong>ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""</strong><br />
Generating public/private dsa key pair.<br />
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.<br />
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.<br />
The key fingerprint is:<br />
b0:25:d2:d8:5c:89:9c:07:bc:94:cf:be:26:d5:ee:66 root@debian<br />
The key's randomart image is:<br />
+--[ DSA 1024]----+<br />
|     o.=..       |<br />
|     =B.o        |<br />
|    o.*=.        |<br />
|     ..=o        |<br />
|      ..S.       |<br />
|        o .      |<br />
|       . o       |<br />
|      . o E      |<br />
|       o +.      |<br />
+-----------------+<br />
<strong>ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""</strong><br />
Generating public/private rsa key pair.<br />
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.<br />
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.<br />
The key fingerprint is:<br />
4f:e4:64:bc:bc:20:5b:3c:7d:8a:5f:b9:70:9c:e2:b5 root@debian<br />
The key's randomart image is:<br />
+--[ RSA 2048]----+<br />
|                 |<br />
|         .       |<br />
|          =      |<br />
|       . B .     |<br />
|      . S * .    |<br />
|       + * = o   |<br />
|      . . * B    |<br />
|         o * o   |<br />
|          o E    |<br />
+-----------------+<br />
</code></p>
<p>* Unless you live in the same region as Martin, change /etc/apt/sources.list to use a closer Debian repository:<br />
<code>perl -pi~ -e 's/ftp.at/ftp.us/' /etc/apt/sources.list</code></p>
<p>* Same with timezone and locale: <code>dpkg-reconfigure tzdata &#038;&#038; dpkg-reconfigure locales</code></p>
<p>* Pick a hostname, I&#8217;m using lordshiva<br />
<code><br />
perl -pi~ -e 's/debian/lordshiva/' /etc/hostname<br />
hostname -F /etc/hostname<br />
</code></p>
<p>* Update/Upgrade<br />
<code>apt-get update &#038;&#038; apt-get upgrade </code></p>
<p>* Add users <code>adduser marc</code>, etc</p>
<p>= Initial tools =</p>
<p>Add openntpd to keep the time in sync</p>
<p><code>apt-get install openntpd<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following NEW packages will be installed:<br />
  openntpd<br />
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 0B/45.7kB of archives.<br />
After this operation, 188kB of additional disk space will be used.<br />
Selecting previously deselected package openntpd.<br />
(Reading database ... 16890 files and directories currently installed.)<br />
Unpacking openntpd (from .../openntpd_3.9p1-7_armel.deb) ...<br />
Processing triggers for man-db ...<br />
Setting up openntpd (3.9p1-7) ...<br />
Starting openntpd: ntpd.<br />
</code></p>
<p>So you don&#8217;t get tempted to use root all the time, get sudo and add appropriate user accounts:</p>
<p><code>apt-get install sudo<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following NEW packages will be installed:<br />
  sudo<br />
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 180kB of archives.<br />
After this operation, 438kB of additional disk space will be used.<br />
Get:1 http://ftp.us.debian.org lenny/main sudo 1.6.9p17-2 [180kB]<br />
Fetched 180kB in 1s (140kB/s)<br />
Selecting previously deselected package sudo.<br />
(Reading database ... 16906 files and directories currently installed.)<br />
Unpacking sudo (from .../sudo_1.6.9p17-2_armel.deb) ...<br />
Processing triggers for man-db ...<br />
Setting up sudo (1.6.9p17-2) ...<br />
No /etc/sudoers found... creating one for you.<br />
lordshiva# <strong>visudo</strong><br />
add a line line this:<br />
<strong>marc    ALL=(ALL) ALL</strong><br />
</code></p>
<p>Log out as root and reconnect as your new username to continue.</p>
<p>= Handy tools =</p>
<p>Install a number of handy tools: emacs (without X), usbutils, telnet, rsync, screen, htop</p>
<p><code><br />
marc@lordshiva:~$ sudo apt-get install emacs22-nox rsync screen htop sudo: unable to resolve host lordshiva</p>
<p>We trust you have received the usual lecture from the local System<br />
Administrator. It usually boils down to these three things:</p>
<p>    #1) Respect the privacy of others.<br />
    #2) Think before you type.<br />
    #3) With great power comes great responsibility.</p>
<p>[sudo] password for marc:<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  emacs22-bin-common emacs22-common emacsen-common libasound2<br />
Suggested packages:<br />
  emacs22-el emacs22-common-non-dfsg libasound2-plugins<br />
The following NEW packages will be installed:<br />
  emacs22-bin-common emacs22-common emacs22-nox emacsen-common htop libasound2 rsync screen<br />
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 18.5MB of archives.<br />
After this operation, 63.9MB of additional disk space will be used.<br />
Do you want to continue [Y/n]?<br />
</code></p>
<p>= The avahi daemon =</p>
<p>Avahi is handy on small home networks because it lets you refer to systems with DHCP provided address by name without having to update everyone&#8217;s /etc/hosts file.  eg: ssh lordshiva.local</p>
<p><code>sudo apt-get install avahi-daemon<br />
marc@lordshiva:~$ sudo apt-get install avahi-daemon<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  dbus dbus-x11 libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0 libdbus-1-3 libexpat1 libnss-mdns libx11-6 libx11-data libxau6 libxcb-xlib0 libxcb1<br />
  libxdmcp6<br />
Suggested packages:<br />
  avahi-autoipd<br />
The following NEW packages will be installed:<br />
  avahi-daemon dbus dbus-x11 libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0 libdbus-1-3 libexpat1 libnss-mdns libx11-6 libx11-data libxau6<br />
  libxcb-xlib0 libxcb1 libxdmcp6<br />
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 1721kB of archives.<br />
After this operation, 7250kB of additional disk space will be used.<br />
Do you want to continue [Y/n]?</code></p>
<p>= Making the SheevaPlug a printserver =</p>
<p>I have an hp PSC 1510 All-in-One printer/scanner that I want to share to the other workstations at home.</p>
<p>Install cups which pulls in a ton of other packages as well as the open source print management tools from Hewlett-Packard, hplip</p>
<p><code>marc@lordshiva:~$ sudo apt-get install cups hplip<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  avahi-utils cpp cpp-4.3 cups-client cups-common cupsddk cupsddk-drivers<br />
  defoma fontconfig fontconfig-config foomatic-db foomatic-db-engine<br />
  foomatic-filters gconf2 gconf2-common ghostscript ghostscript-x gksu<br />
  gnome-keyring gs-common gs-esp gsfonts hicolor-icon-theme hpijs hplip-data<br />
  hplip-gui libatk1.0-0 libatk1.0-data libaudio2 libavahi-client3<br />
  libavahi-compat-libdnssd1 libcairo2 libcups2 libcupsimage2 libdatrie0<br />
  libdbus-glib-1-2 libdirectfb-1.0-0 libdrm2 libexif12 libffi5 libfontconfig1<br />
  libfontenc1 libfreetype6 libgconf2-4 libgksu2-0 libgl1-mesa-glx libglade2-0<br />
  libglib2.0-0 libglib2.0-data libglu1-mesa libgmp3c2 libgnome-keyring0<br />
  libgphoto2-2 libgphoto2-port0 libgs8 libgtk2.0-0 libgtk2.0-bin<br />
  libgtk2.0-common libgtop2-7 libgtop2-common libhal-storage1 libhal1 libice6<br />
  libidl0 libieee1284-3 libjpeg62 liblcms1 libltdl3 libmng1 libmpfr1ldbl<br />
  libmysqlclient15off liborbit2 libpam-gnome-keyring libpango1.0-0<br />
  libpango1.0-common libpaper-utils libpaper1 libperl5.10 libpixman-1-0<br />
  libpng12-0 libpoppler3 libqt3-mt libqt4-assistant libqt4-dbus<br />
  libqt4-designer libqt4-help libqt4-network libqt4-qt3support libqt4-script<br />
  libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-test libqt4-webkit libqt4-xml<br />
  libqt4-xmlpatterns libqtcore4 libqtgui4 libsane libsane-extras libsensors3<br />
  libslp1 libsm6 libsnmp-base libsnmp15 libstartup-notification0 libsysfs2<br />
  libtalloc1 libthai-data libthai0 libtiff4 libts-0.0-0 libwbclient0<br />
  libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1 libxdamage1<br />
  libxext6 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxmu6 libxmuu1<br />
  libxrandr2 libxrender1 libxt6 libxxf86vm1 mysql-common openssl<br />
  openssl-blacklist poppler-utils psfontmgr psmisc python-dbus<br />
  python-elementtree python-gobject python-imaging python-qt3 python-qt4<br />
  python-qt4-common python-reportlab python-sip4 python-support qt4-qtconfig<br />
  samba-common sane-utils smbclient ssl-cert ttf-bitstream-vera ttf-dejavu<br />
  ttf-dejavu-core ttf-dejavu-extra ttf-dustin x-ttcidfont-conf x11-common<br />
  xauth xfonts-encodings xfonts-utils<br />
Suggested packages:<br />
  cpp-doc gcc-4.3-locales cups-bsd cups-driver-gutenprint xpdf-korean<br />
  xpdf-japanese xpdf-chinese-traditional xpdf-chinese-simplified cups-pdf<br />
  kdeprint gtklp cups-pt xpp defoma-doc dfontmgr foomatic-db-hpijs<br />
  foomatic-db-gutenprint foo2zjs cupsys foomatic-gui hpijs-ppds hplip-doc<br />
  openprinting-ppds nas libfreetype6-dev gphoto2 gtkam librsvg2-common<br />
  liblcms-utils ttf-kochi-gothic ttf-kochi-mincho ttf-thryomanes ttf-baekmuk<br />
  ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp<br />
  ttf-arphic-bkai00mp libqt3-mt-mysql libqt3-mt-odbc libqt3-mt-psql libqt4-dev<br />
  hpoj lm-sensors slpd openslp-doc ca-certificates python-dbus-dbg<br />
  python-dbus-doc python-elementtree-doc python-gobject-dbg python-imaging-doc<br />
  python-imaging-dbg python-qt3-doc python-qt3-gl python-qt4-dbg pdf-viewer<br />
  python-egenix-mxtexttools python-reportlab-doc unpaper smbfs<br />
Recommended packages:<br />
  libft-perl cupsys-client lpr lprng pdq rlpr python-renderpm<br />
The following NEW packages will be installed:<br />
  avahi-utils cpp cpp-4.3 cups cups-client cups-common cupsddk cupsddk-drivers<br />
  defoma fontconfig fontconfig-config foomatic-db foomatic-db-engine<br />
  foomatic-filters gconf2 gconf2-common ghostscript ghostscript-x gksu<br />
  gnome-keyring gs-common gs-esp gsfonts hicolor-icon-theme hpijs hplip<br />
  hplip-data hplip-gui libatk1.0-0 libatk1.0-data libaudio2 libavahi-client3<br />
  libavahi-compat-libdnssd1 libcairo2 libcups2 libcupsimage2 libdatrie0<br />
  libdbus-glib-1-2 libdirectfb-1.0-0 libdrm2 libexif12 libffi5 libfontconfig1<br />
  libfontenc1 libfreetype6 libgconf2-4 libgksu2-0 libgl1-mesa-glx libglade2-0<br />
  libglib2.0-0 libglib2.0-data libglu1-mesa libgmp3c2 libgnome-keyring0<br />
  libgphoto2-2 libgphoto2-port0 libgs8 libgtk2.0-0 libgtk2.0-bin<br />
  libgtk2.0-common libgtop2-7 libgtop2-common libhal-storage1 libhal1 libice6<br />
  libidl0 libieee1284-3 libjpeg62 liblcms1 libltdl3 libmng1 libmpfr1ldbl<br />
  libmysqlclient15off liborbit2 libpam-gnome-keyring libpango1.0-0<br />
  libpango1.0-common libpaper-utils libpaper1 libperl5.10 libpixman-1-0<br />
  libpng12-0 libpoppler3 libqt3-mt libqt4-assistant libqt4-dbus<br />
  libqt4-designer libqt4-help libqt4-network libqt4-qt3support libqt4-script<br />
  libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-test libqt4-webkit libqt4-xml<br />
  libqt4-xmlpatterns libqtcore4 libqtgui4 libsane libsane-extras libsensors3<br />
  libslp1 libsm6 libsnmp-base libsnmp15 libstartup-notification0 libsysfs2<br />
  libtalloc1 libthai-data libthai0 libtiff4 libts-0.0-0 libwbclient0<br />
  libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1 libxdamage1<br />
  libxext6 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxmu6 libxmuu1<br />
  libxrandr2 libxrender1 libxt6 libxxf86vm1 mysql-common openssl<br />
  openssl-blacklist poppler-utils psfontmgr psmisc python-dbus<br />
  python-elementtree python-gobject python-imaging python-qt3 python-qt4<br />
  python-qt4-common python-reportlab python-sip4 python-support qt4-qtconfig<br />
  samba-common sane-utils smbclient ssl-cert ttf-bitstream-vera ttf-dejavu<br />
  ttf-dejavu-core ttf-dejavu-extra ttf-dustin x-ttcidfont-conf x11-common<br />
  xauth xfonts-encodings xfonts-utils<br />
0 upgraded, 163 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 123MB of archives.<br />
After this operation, 332MB of additional disk space will be used.<br />
Do you want to continue [Y/n]?<br />
</code></p>
<p>Setup the printer:</p>
<p><code><br />
marc@lordshiva:~$ <strong>sudo hp-setup -i -a      </strong></p>
<p>HP Linux Imaging and Printing System (ver. 2.8.6b)<br />
Printer/Fax Setup Utility ver. 7.2</p>
<p>Copyright (c) 2001-8 Hewlett-Packard Development Company, LP<br />
This software comes with ABSOLUTELY NO WARRANTY.<br />
This is free software, and you are welcome to distribute it<br />
under certain conditions. See COPYING file for more details.</p>
<p>--------------------------<br />
| CHOOSE CONNECTION TYPE |<br />
--------------------------</p>
<p>  Num.        Connection  Connection Type Description<br />
              Type<br />
  ----------  ----------  ----------------------------------------<br />
  0*          usb         Universal Serial Bus (USB)<br />
  1           net         Network/Ethernet/Wireless (direct<br />
                          connection or JetDirect)<br />
  2           par         Parallel Port (LPT:)                    </p>
<p>Enter number 0...2 for connection type (q=quit, enter=usb*) ? </p>
<p>Using connection type: usb</p>
<p>--------------------<br />
| DEVICE DISCOVERY |<br />
--------------------</p>
<p>Using device: hp:/usb/PSC_1500_series?serial=MY5CFD14F40498</p>
<p>Setting up device: hp:/usb/PSC_1500_series?serial=MY5CFD14F40498</p>
<p>---------------------<br />
| PRINT QUEUE SETUP |<br />
---------------------</p>
<p>Using queue name: PSC_1500</p>
<p>Found a possible PPD file: drv:///hpijs.drv/hp-psc_1500_series-hpijs.ppd<br />
Desc: HP PSC 1500 series Foomatic/hpijs</p>
<p>Adding print queue to CUPS:<br />
Device URI: hp:/usb/PSC_1500_series?serial=MY5CFD14F40498<br />
Queue name: PSC_1500<br />
PPD file: drv:///hpijs.drv/hp-psc_1500_series-hpijs.ppd<br />
Location:<br />
Information: Automatically setup by HPLIP</p>
<p>---------------------<br />
| PRINTER TEST PAGE |<br />
---------------------</p>
<p>HP Linux Imaging and Printing System (ver. 2.8.6b)<br />
Testpage Print Utility ver. 5.1</p>
<p>Copyright (c) 2001-8 Hewlett-Packard Development Company, LP<br />
This software comes with ABSOLUTELY NO WARRANTY.<br />
This is free software, and you are welcome to distribute it<br />
under certain conditions. See COPYING file for more details.</p>
<p>warning: hp-testpage should not be run as root.</p>
<p>Printing test page to printer PSC_1500...<br />
request id is PSC_1500-1 (1 file(s))<br />
Test page has been sent to printer.</p>
<p>note: If an error occured, or the test page failed to print, refer to the HPLIP website<br />
note: at: http://hplip.sourceforge.net for troubleshooting and support.</p>
<p>Done.</p>
<p>Done.<br />
marc@lordshiva:~$<br />
</code></p>
<p>Now you want to be able to manage the print server remotely via the web interface, so you&#8217;ll have to edit /etc/cups/cupsd.conf.</p>
<p><code>sudo $EDITOR /etc/cups/cupsd.conf</code><br />
&#8230;find the three places that look like this:<br />
 Location /<br />
 Location /admin<br />
 Location /admin/conf </p>
<p>and add the following after the &#8220;Order allow,deny&#8221; lines:</p>
<p><code> Allow @LOCAL</code></p>
<p>Also change the line from:<br />
<code>Listen localhost:631</code><br />
to<br />
<code>Port 631</code></p>
<p>Then  restart the cups daemon: <code> sudo /etc/init.d/cups restart</p>
<p>How you will be able to use a web browser to manage your system here:   http://lordshiva.local:631/  using your root credentials.  In the "Manager Server" section, enable "Share published printers connected to this system"</p>
<p>= scan server =</p>
<p>The tools xsane and gimp can take advantage of a network sane scanner.  To enable this, edit /etc/sane.d/scand.conf and add either the hostnames you'll be scanning from our a netblock.</p>
<p>Then tell inetd to start listening on the sane-port (6566)</p>
<p></code><code>marc@lordshiva:/etc/sane.d$ sudo update-inetd --enable sane-port</code></p>
<p>Now all you need to do on the system you are going to scan from, edit /etc/sane.d/net.conf and add lordshiva.local (or whatever you named yours ;-)</p>
<p>= Sharing MP3 =</p>
<p>gnump3d is a nice tool to share mp3 files on the home network.</p>
<p>Downloaded gnump3d-3.0.tar.gz from http://www.gnu.org/software/gnump3d/index.html</p>
<p>which needs make&#8230;</p>
<p><code><br />
 sudo apt-get install make<br />
sudo apt-get install make<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
Suggested packages:<br />
  make-doc<br />
The following NEW packages will be installed:<br />
  make<br />
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 0B/385kB of archives.<br />
After this operation, 1233kB of additional disk space will be used.<br />
</code></p>
<p>Back to gnump3&#8230;</p>
<p><code><br />
cd /usr/src/<br />
sudo tar zxvf ~/gnump3d-3.0.tar.gz<br />
cd gnump3d-3.0<br />
sudo make install<br />
install -d //etc/gnump3d<br />
install -d //usr/bin<br />
install -d //usr/share/gnump3d<br />
install -d //usr/local/man/man1<br />
install -d /`perl bin/getlibdir`/gnump3d/plugins<br />
install -d /`perl bin/getlibdir`/gnump3d/lang<br />
install -d //var/log/gnump3d<br />
install -d //var/cache/gnump3d<br />
chmod 777 //var/cache/gnump3d<br />
install -d //var/cache/gnump3d/serving<br />
chmod 777 //var/cache/gnump3d/serving<br />
chmod a+rx /`perl bin/getlibdir`/gnump3d/<br />
chmod a+rx /`perl bin/getlibdir`/gnump3d/plugins<br />
chmod a+rx /`perl bin/getlibdir`/gnump3d/lang<br />
cp lib/gnump3d/*.pm /`perl bin/getlibdir`/gnump3d<br />
cp lib/gnump3d/plugins/*.pm /`perl bin/getlibdir`/gnump3d/plugins<br />
rm /`perl bin/getlibdir`/gnump3d/plugins/bug.pm<br />
rm: cannot remove `//usr/share/perl5/gnump3d/plugins/bug.pm': No such file or directory<br />
make: [install] Error 1 (ignored)<br />
cp lib/gnump3d/lang/*.pm /`perl bin/getlibdir`/gnump3d/lang<br />
cp bin/gnump3d2 //usr/bin<br />
chmod 755 //usr/bin/gnump3d2<br />
ln -sf //usr/bin/gnump3d2 //usr/bin/gnump3d<br />
cp bin/gnump3d-top //usr/bin<br />
chmod 755 //usr/bin/gnump3d-top<br />
cp bin/gnump3d-index //usr/bin<br />
chmod 755 //usr/bin/gnump3d-index<br />
cp man/gnump3d-top.1 //usr/local/man/man1<br />
cp man/gnump3d-index.1 //usr/local/man/man1<br />
cp man/gnump3d.1 //usr/local/man/man1<br />
cp man/gnump3d.conf.1 //usr/local/man/man1<br />
cp -R templates/* //usr/share/gnump3d<br />
chmod -R a+r //usr/share/gnump3d<br />
chmod +rx //usr/share/gnump3d/*/<br />
if [ -e //etc/gnump3d/gnump3d.conf ]; then cp //etc/gnump3d/gnump3d.conf //etc/gnump3d/gnump3d.conf-orig ; fi<br />
sed "s#PLUGINDIR#`perl bin/getlibdir`#g" etc/gnump3d.conf > //etc/gnump3d/gnump3d.conf<br />
cp etc/mime.types //etc/gnump3d<br />
cp etc/file.types //etc/gnump3d<br />
rm -f /`perl bin/getlibdir`/gnump3d/FreezeThaw.pm<br />
rm -f /`perl bin/getlibdir`/gnump3d/playlist.pm<br />
marc@lordshiva:/usr/src/gnump3d-3.0$ </p>
<p></code></p>
<p>Now to configure gnump3 is pretty simple, edit /etc/gnump3d/gnump3d.conf and set root = /media/mp3 or wherever the music is. </p>
<p>To start it up:</p>
<p>sudo gnump3d &#038;</p>
<p>Then point a browser to http://lordshiva.local:8888/ and listen or download music. This comes in very handy for the kids when they need to load up their mp3 players.</p>
<p>= monitoring system =</p>
<p>I like to use munin to keep an eye on how the home systems are doing.</p>
<p><code><br />
sudo apt-get install munin munin-node munin-plugins-extra apache2<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  apache2-mpm-worker apache2-utils apache2.2-common gawk libapr1 libaprutil1<br />
  libdate-manip-perl libhtml-template-perl libio-multiplex-perl<br />
  libnet-cidr-perl libnet-server-perl libnet-snmp-perl libpq5 librrd4<br />
  librrds-perl rrdtool<br />
Suggested packages:<br />
  apache2-doc apache2-suexec apache2-suexec-custom libipc-sharedcache-perl<br />
  libio-socket-ssl-perl libcrypt-des-perl libdigest-hmac-perl<br />
  libdigest-sha1-perl libio-socket-inet6-perl httpd libwww-perl<br />
  liblwp-useragent-determined-perl libnet-irc-perl mysql-client smartmontools<br />
  acpi lm-sensors ethtool libdbd-pg-perl logtail libnet-netmask-perl<br />
The following NEW packages will be installed:<br />
  apache2 apache2-mpm-worker apache2-utils apache2.2-common gawk libapr1<br />
  libaprutil1 libdate-manip-perl libhtml-template-perl libio-multiplex-perl<br />
  libnet-cidr-perl libnet-server-perl libnet-snmp-perl libpq5 librrd4<br />
  librrds-perl munin munin-node munin-plugins-extra rrdtool<br />
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 2144kB/5263kB of archives.<br />
After this operation, 14.4MB of additional disk space will be used.<br />
Do you want to continue [Y/n]?<br />
</code></p>
<p>Now setup munin-node to know what to monitor locally.  I like to run munin-node-configure with the &#8211;shell option to see what my choices are and then cut-n-paste the ones I&#8217;m interested in.</p>
<p><code><br />
marc@lordshiva:~$ sudo munin-node-configure --shell --families=auto &#038;&#038; sudo munin-node-configure --shell --families=contrib &#038;&#038; sudo munin-node-configure --shell --families=manual</code></p>
<p>And then just pick: (jump into a root shell first, sudo -i)<br />
<code><br />
ln -s /usr/share/munin/plugins/apt /etc/munin/plugins/apt<br />
ln -s /usr/share/munin/plugins/apt_all /etc/munin/plugins/apt_all<br />
ln -s /usr/share/munin/plugins/df_abs /etc/munin/plugins/df_abs<br />
ln -s /usr/share/munin/plugins/fw_packets /etc/munin/plugins/fw_packets<br />
ln -s /usr/share/munin/plugins/multips /etc/munin/plugins/multips<br />
ln -s /usr/share/munin/plugins/munin_graph /etc/munin/plugins/munin_graph<br />
ln -s /usr/share/munin/plugins/munin_update /etc/munin/plugins/munin_update<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_8888<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_ipp<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_munin<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_sane-port<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_smtp<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_ssh<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_sunrpc<br />
ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_www<br />
ln -s /usr/share/munin/plugins/uptime /etc/munin/plugins/uptime<br />
</code></p>
<p>And restart munin-node</p>
<p><code>sudo /etc/init.d/munin-node restart<br />
Stopping Munin-Node: done.<br />
Starting Munin-Node: done.<br />
</code></p>
<p>Come back later and look at http://lordshiva.local/munin/</p>
<p>= fetchmail =</p>
<p>I pull email from my web hoster, drop a copy of the email and forward a copy to gmail use procmail.</p>
<p><code>sudo apt-get install fetchmail procmail<br />
marc@lordshiva:~$ sudo apt-get install fetchmail procmail<br />
[sudo] password for marc:<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
procmail is already the newest version.<br />
The following extra packages will be installed:<br />
  ca-certificates<br />
Suggested packages:<br />
  fetchmailconf resolvconf<br />
The following NEW packages will be installed:<br />
  ca-certificates fetchmail<br />
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 813kB of archives.<br />
After this operation, 2597kB of additional disk space will be used.<br />
Do you want to continue [Y/n]?<br />
</code></p>
<p>My fetchmail configuration looks like this:</p>
<p><code><br />
cat ~/.fetchmailrc<br />
set logfile /home/marc/fetchmail.log</p>
<p>poll pop.nozell.com<br />
 with proto POP3 timeout 600<br />
       user 'XXX@XXXX.XXX' there with password 'XXX' is 'marc' here options fetchall<br />
</code></p>
<p>And here is my .procmailrc</p>
<p><code><br />
cat .procmailrc<br />
LOGFILE=/home/marc/procmail.log<br />
MAILDIR=ImapFolders</p>
<p>:0<br />
{<br />
	:0 c<br />
	! nozell@gmail.com<br />
}</p>
<p>:0<br />
Unsorted.Inbox.`date +%Y-%m`<br />
</code>  </p>
<p>= reconfigure the local mail server =</p>
<p>sudo dpkg-reconfigure exim4-conf</p>
<p>And pick the smarthost option and point it to the appropriate upstream mail server.</p>
<p>= squid =</p>
<p><code><br />
sudo apt-get install squid<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  squid-common<br />
Suggested packages:<br />
  squidclient squid-cgi logcheck-database resolvconf winbind<br />
The following NEW packages will be installed:<br />
  squid squid-common<br />
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 497kB/1224kB of archives.<br />
After this operation, 6816kB of additional disk space will be used.<br />
Do you want to continue [Y/n]?<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nozell.com/blog/2009/06/26/sheevaplug-is-now-my-main-home-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

