Quick install

How make a linux jukebox (my old paper)

iTux - English - Italian

Install iSmash on iTux box

INSTALL - English

Search

 

Contribute

 

Do you want to develop iSmash? You can develop code, plugins, create theme or translate iSmash in other languages. Contact me to nixw0rm [at] gmail [dot] com

transform your old pc into a linux jukebox

iTUX: LINUX & MUSIC JUKEBOX
by nixw0rm

INTRODUCTION

In recent years the development of technology, increased bandwidth of
the Internet, and the development of web applications deployed on UNIX
platforms has made the opportunity to give vent to the creativity of
many developers, system analysts and computer enthusiasts.
Just think, for example, projects such as YouTube, to radio online,
or even real operating systems on line as EyeOS ... Well, I must say
that getting to this point has not been not easy, indeed, it was because
of people who have had patience, sacrifice and sleepless nights
try and try until it works .....
In this article we will focus on how you can create a music jukebox to put
room, simply using the old PC you have in the attic (a Pentium 1 with
network adapter and sound card is perfect !!!!)
and a distribution of Linux ..

MATERIAL

What do we need? here is the hardware required:
An old PC that meets the minimum requirements:

Pentium 120Mhz or higher

32 MB RAM or higher

network card 10Mbps (recommended 100Mbps)

4GB hard drive (better if larger to put more MP3)

Sound card 16-bit or higher

CDROM 8x (at least)
a good sound system (better if you have a hi-fi)



OPERATING SYSTEM
The system that will install on the jukebox linux debian the minimum
version ...
First we must download the installation CD ... to tell the truth, the
CD is one: we will do a basic installation and add the packages that
we need over the network (preferably a fast internet connection) ...
For those who do not have the connection will acquire the entire cd of
debian ... CDs can be downloaded from http://www.debian.org, but the
installation that we will refer you that with minimal additional
functionality over the network ..here is the download for this cd:

http://cdimage.debian.org/debian-cd/4.0_r3/i386/iso-cd/debian-40r3-i386- ...

download this image and burn it with nero to a blank CD.

Now restart the (future) jukebox booting from the new CD ...
After that you start the installation of Debian which is obviously
intuitive and then I will not much to talk about it.
Select your language, partitioned the hard disk and install only the
packages needed for a minimal system with the OpenSSH server and
client, and possibly it may want to configure a LAMP server
(for this guide refer to to kiuz:

http://kiuzdesign.altervista.org/cms/?q=node/23

seems pretty simple :-)),

add a new user, install the boot-loader and reboot ...

Now you log in with the root account and install the needed packages:
update the package database:

# apt-get update

install ssh client and server to log-in:

# apt-get install ssh

Even assuming that your sound card works (otherwise run alsaconf)
install the programs needed to adjust the volume, turn off some exits ....

# apt-get install alsa-utils

and finally install the necessary software to listen to the mp3:
Mp3blaster

# apt-get install mpg321 mpg123

Without this now we can do is set the folder of MP3 ..
We need to load the music on the jukebox or through a CD, a pen drive or
via network (via ftp or via ssh with the command scp).
Suppose that the music is loaded in / home / user / music where user is your
username to access the jukebox, prepare a list of songs to listen with the
find command:

# cd /home/user/music

# find. / | Grep mp3> lista.lst

# chmod o + w lista.lst

Adjust the volumes with alsamixer:

# alsamixer

done that you can connect the sound card output jukebox AUX inputs on your hi-fi
(sales of special cables, 3 euros, made on purpose) and the line of sound card
jukebox connected (not necessary) some other audio device (such as TV, MP3 player,
or your pc fixed).
As for the network there are several ways: connect the jukebox with an ethernet
cable to your router, set the static ip and then login via ssh from your PC drive
(for Windows users can Download PuTTY the site

http://www.chiark.greenend.org.uk/~sgtatham /putty/download.html

and login with it)

If for example the ip 10.0.0.2 and the jukebox is one of the PC disk is 10.0.0.1,
enter a terminal (linux) PC disk:

$ ssh 10.0.0.1-l user

--- You must be replaced with your username -----

If you are asked to accept the key typed yes and enter the password.
Got inside we enter into music and launch mp3blaster:

$ cd music

$ mp3blaster-l lista.lst

and there is an interface (semi) graphics with the list of your favorite MP3 ...

The keys are:
5 = play / pause
4 = prev
6 = next
2 = stop
3 = FFWD
1 = rew

to start the program automatically logs in to create a script file with

# echo > .profile

open the file with a text editor:

# pico .profile

and add the following lines:

cd music /

find. / | grep mp3 > lista.lst &

mp3blaster-l lista.lst

press the key combination CTRL + X and Y and then save the file.

Without this, the jukebox will automatically update your list as you load the music
Login and start directly mp3blaster ....

WARNING: If you close the drive from your PC terminal that is open ssh then
the jukebox stops playing, as closing the ssh session is closed ...
To overcome this inconvenience I'm trying (at leisure) to implement a PHP web
interface that the jukebox will continue even if you close your browser or turn off
your computer client .... (autonomy in the jukebox) ... I need time .... I promise
that it will soon be online ... Currently
settle to the above :-)

PS: Sorry for my english, isn't my native language

nixw0rm