The "Accordion ITX"
By Lennie Moore
Posted on 25 May, 2005
Jump to:

How to make your own Enrico

(You must, of course, be root for most of this, and I probably left some things out... sorry)

Install software

  • SuSE 9.1 server edition
  • YaST packages:
    • gcc
    • gcc-c++
    • samba
    • for cddb-py:
      • python-devel
      • pkgconfig
    • aumix
    • for mpd:
      • libao
      • libao-devel
      • zlib
      • zlib-devel
      • libvorbis
      • libvorbis-devel
      • flac
      • audiofile
      • apache2-modphp4
  • Shareware:
    • cddb-py from sourceforge
      • in extracted, run python setup.py install
    • Music Player Daemon from http://musicpd.org/
      • build it and install it
      • get either of the web clients from that site
      • edit the web client config.php file to taste
  • Homespun Stuff:
    • all things under /srv/www
    • /etc/samba/smb.conf
    • /etc/init.d/mpd
    • /etc/mpd.conf

Fixups in the filesystem

  • mir -p /music /usr/share/upload
  • chown wwwrun.www /music /usr/share/upload
  • cd /dev && rm cdrom dvd && ln -s sr0 cdrom dvd
  • cd /usr/sbin && ln -s /etc/init.d/mpd rcmpd
  • mkdir /usr/share/music && chown wwwrun.www /usr/share/music
  • /bin/chmod 777 /dev/sg0
  • /bin/chmod 777 /dev/sr0
  • setup RAID-5 drive mounted at /music

Configuration

  • edit /etc/init.d/boot.local, put these lines at end:
  • samba (edit /etc/samba/smb.conf)
    • map guest to 'wwwrun'
    • create shares for /usr/share/upload and /music
    • add password with sudo smbpasswd -a wwwrun
    • restart samba
  • SMTP
    • configure outgoing SMTP for mdadm alerts
    • redirect root's mail to go off the machine

Firewall Changes

  • open ports 139 and 445 for samba
  • open port 6600 for mpd

Restart services

  • apache
  • samba

/div>