logo



AntiboxKiosk

PagePrincipale :: DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur :: Vous êtes 18-97-9-170.crawl.commoncrawl.org

04

The Antibox client configuration

Login as Root !

- Add these users in the audio and antibox groups ajouter ces users dans les groupes audio et antibox
$>usermod -G audio mpd
$>usermod -G audio antibox
$>usermod -G antibox www-data
$>usermod -G antibox mpd

Setting charset for mpd :
$> echo 'filesystem_charset "ISO-8859-1"' >> /etc/mpd.conf

Creating antibox directory and rights on it :
$> mkdir /var/www/antibox
$> chown antibox:antibox /var/www/antibox/


- Then we need to copy the antibox sources in the directory /var/www/antibox

- Modify the forward to the antibox directory
$> vi /etc/apache2/sites-available/default

- Settings correct permissions on antibox subdirectory :
$> chmod g+rwx /var/www/antibox/templates
$> chmod g+rwx /var/www/antibox/templates_c
$> chmod g+rwx /var/www/antibox/cache


- Adding entries in the fstab file for Usb recognition

$> echo "/dev/sda1 /var/www/antibox/USB auto rw,users,noexec 0 0" >> /etc/fstab
$> echo "/dev/sda2 /var/www/antibox/USB2 auto rw,users,noexec 0 0" >> /etc/fstab
$> echo "/dev/sda3 /var/www/antibox/USB3 auto rw,users,noexec 0 0" >> /etc/fstab
$> echo "/dev/sda4 /var/www/antibox/USB4 auto rw,users,noexec 0 0" >> /etc/fstab
$> echo "/dev/sdb1 /var/www/antibox/USB5 auto rw,users,noexec 0 0" >> /etc/fstab
$> echo "/dev/sdb2 /var/www/antibox/USB6 auto rw,users,noexec 0 0" >> /etc/fstab
$> echo "/dev/sdb3 /var/www/antibox/USB7 auto rw,users,noexec 0 0" >> /etc/fstab
$> echo "/dev/sdb4 /var/www/antibox/USB8 auto rw,users,noexec 0 0" >> /etc/fstab


??????? David ?
$> gcc -o /var/www/antibox/bash/launchCopy /var/www/antibox/bash/launchCopy.c
$> gcc -o /var/www/antibox/bash/launchGetLastMessages /var/www/antibox/bash/launchGetLastMessages.c

$> chmod 4755 /var/www/antibox/bash/getLastMessage.sh
$> chmod 4755 /var/www/antibox/bash/launchCopy.sh
$> chmod 4755 /var/www/antibox/bash/launchGetLastMessages
$> chmod 4755 /var/www/antibox/bash/launchCopy

- Creating Database and user
$> mysql --user=root --password= < /var/www/antibox/table.sql

- Creating the symlink toward the music directory
$> ln -s /home/antibox/music/ /var/www/antibox/music

- The scanMusic.php script scans the music directory and feed the database
http://[antiboxhost]/antibox/scanMusic.php##

- Configure the mpd conf file /etc/mpd.conf (examples are given in the antibox source code)

- Then we have to restart the mpd daemon
/etc/init.d/mpd restart

- Logon via telnet to update the database ( command : update )
telnet 127.0.0.1 6600
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
OK MPD 0.12.1
update
updating_db: 1
OK


<< Firefox setup, Firefox extensions setup InstallToc02 Populating music directory >>

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]