| Contributed by: | based on contribution from Michael Smith |
| Created/Updated: | 09-02-2004 . Updated to support 5.6/6.0 and Netjuke version 1.0 (RC2) |
| Versions supported: | 5.5, 5.6 and 6.0 |
Why Netjuke? Why not simply stick with the
MP3 Jukebox blade? Well, the Jukebox blade is great but it's slow on older
server hardware and it requires a lot of thought in planning your directory
structure. Netjuke uses a real, live MySQL database to store music info, so you
can access your entire music collection by artist, track title, album title,
genre -- or a random selection from any and all of the above.
First create a MySQL database for netjuke:
[root@e-smith
]# mysqladmin create netjuke
[root@e-smith ]# mysql --user=root mysql
mysql>GRANT ALL ON netjuke.* TO netjuke@localhost IDENTIFIED BY 'netjukepassword';
mysql>flush privileges;
mysql>quit
Then create an ibay from the server manager:
| Information bay name | netjuke |
| Description | Networked Jukebox |
| Group | Admin |
| User access | Write=group, Read=everyone |
| Public access | As you like it |
| Execution of dynamic content | enabled |
I recommend not setting a password on this ibay as Netjuke has build-in access
control.
From the console or shell prompt fire of the following commands. Make sure to get the latest
version of netjuke from netjuke.org
[root@e-smith
]# cd /home/e-smith/files/ibays/netjuke
[root@e-smith
]# wget http://sme.swerts-knudsen.dk/downloads/Netjuke/netjuke-1.0-rc2.tar.gz
[root@e-smith
]# tar -xvzf netjuke-1.0-rc2.tar.gz
This will unzip all files into a subfolder called "netjuke". What we
have to do now is move the contents of THAT folder into the ibay's
"html" folder.
[root@e-smith
]# cd /home/e-smith/files/ibays/netjuke/netjuke
[root@e-smith
]# mv * ../html/
[root@e-smith ]# cd ..
[root@e-smith
]# rmdir netjuke
Check to see that you can access the "netjuke" ibay from your network.
If you cannot, you have a login name/password problem.
Now we're ready to run the installer. The next step is from a web browser:
http://(YOUR SME SERVER)/netjuke/installer/installer.php
You will be asked for the name of the netjuke database you created (most likely
nejuke), user (most likely netjuke), and password (what was specified above in
"netjukepassword" . You must also set up an admin login & password.
| DB Type | MySql |
| DB Host | localhost |
| DB User | netjuke |
| DB Password | "netjukepassword" |
| DB Name | netjuke |
This will generate & offer to download a file named "inc-prefs.php". For a reason I don't know, I
was unable to save it directly into the location it needs to be in, namely, the
"etc" folder under the "html" folder in the netjuke ibay. So
I saved it into the "html" folder, which I was able to access easily
via Network Neighborhood, then used the Linux "mv" command from the
console to move inc-prefs.php to the etc. folder, like so:
[root@e-smith
]# cd /home/e-smith/files/ibays/netjuke/html
[root@e-smith
]# mv inc-prefs7.php ./etc/
[root@e-smith ]# chown -R admin:admin /home/e-smith/files/ibays/netjuke/html
[root@e-smith
]# chmod -R o-w /home/e-smith/files/ibays/netjuke/html
I also deleted the index.html file from the netjuke ibay, so I wouldn't get the
default SME page if I neglected to specify "index.php" when logging in
to the jukebox.
[root@e-smith
]# cd /home/e-smith/files/ibays/netjuke/html
[root@e-smith
]# rm -rf index.html
Also deleted the
"installer" directory for better security.
[root@e-smith
]# rm -rf installer
Now you should be able to return to your web browser and access your new Netjuke
setup with the following URL:
http://(YOUR SME SERVER)/netjuke
Use the Admin function to customize. I set my Security Mode to 0.1 so I could
login from anywhere but no one could create a user.
Now load some music: everything goes in /home/e-smith/files/ibays/netjuke/html/var/music
Once you've loaded some music, it's time to tell Netjuke what it is. Use the
"Recursive File Finder"; it will go through all your music files and
extract whatever information it can from ID3 tags on MP3 files.
Go back to "Browse" and enjoy.