02
Sofwares required and setup
You are on a fresh minimal "etch" debian system logged as root.
First upgrade the whole system (it might take some time depending on the version you installed)
$> apt-get update
then
$> apt-get upgrade
If the system ask you to restart (because it changed something around the kernel) DO IT ! (re log as root after that)
here are the software we need to run the Kiosk :
apache2 (webserver)
php5
mysql-server-5.0 (mysql server)
mpd (music player daemon, a mp3 player)
x-window-system-core (of course)
mozilla-firefox (browser, we'll see later the extensions and setup we need for this one, in debian it might be called "ice-weasel")
vsftpd (ftp server for uploading the antibox client and populating the music directory)
ssh (for remote maintenance and configuration)
rungetty (for autologin the kiosk)
industrial-cursor-theme (because they are nice ;))
also an Arial font would be nice for the front end appearance, try to find one somewhere...
Installing the whole stuff like a brute :
$> apt-get install apache2 mysql-server-5.0 php5 rungetty mozilla-firefox x-window-system-core mpd industrial-cursor-theme ssh vsftpd
Answer yes to any dependencies (you may need to use the netinst cd)
this WILL take some time !!!
the X server might ask you several question, do your best with your knoledge of the hardware present in your box. Knowing that the antibox client is designed to use a 800x600 resolution
Now that all softwares are installed we need to configure several of them.
First vsftpd
edit /etc/vsftpd.conf uncomment and adjust the following lines
...
anonymous_enable=NO
local_enable=YES
write_enable=YES
anon_upload_enable=NO
...
Then save, exit and restart vsftpd
$> /etc/init.d/vsftpd restart
Second we test if the sound works ok
installing mpg321 to check sound play :
$> apt-get install mpg321
Download an mp3 :
$> wget http://82.236.238.137/html/the_sarko_skanking.mp3
try to listen to it using mpg321 :
$> mpg321 the_sarko_skanking.mp3
If sound is ok skip the next step
If no sound is heard try this (it's a dirty but quick solution) :
install packet "alsa" and "alsa-utils"
$> apt-get install alsa alsa-utils
first stop mpd
$> /etc/init.d/mpd stop
then run alsaconf (utility used to configure soundcards, that has loads of drivers so your audio card may be listed)
$> alsaconf
follow on-screen configuration steps...
Try to listen to the mp3 using mpg321, should be ok, then remove alsa-utils that is quite fat
$> apt-get remove alsa-utils
Ok time to setup Xfree for a 800x600 display, edit the X window config file /etc/X11/xorg.conf, and find the following parts :
Section "Screen"
...
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
...
Now edit the user .bashrc, add at the end of the file /home/YOUR_USER/.bashrc :
...
xinit
Now we'll make the user to autologin at boot by editing /etc/inittab :
section : /sbin/getty invocations for the runlevels
line :
1:2345:respawn:/sbin/getty 38400 tty1
replaced by :
1:2345:respawn:/sbin/rungetty --autologin YOUR_USER tty1
Restart the system to see if it works, it should boot, autolog and run Xfree.