Ubuntu Main Menu
| How to Audio/Video Streaming and File Sharing with Ampache |
|
|
|
Written by myOltrans
Sunday, 26 July 2009 11:41
Last Updated on Monday, 03 August 2009 19:54
Ampache is a web based audio/video streaming application and file manager allowing you to access your music & videos from anywhere, using almost any internet enabled device. Ampache is in the archive of Ubuntu 9.04. To install Ampache: sudo apt-get install ampache Follow the steps. If you have already installed a Mysql database or any other, set up the Ampache to use it. Some errors If you run on the following error: Errors were encountered while processing: To correct this remove the folder /var/lib/mysql and install mysql: sudo mv /var/lib/mysql /var/lib/mysql.old If after installation there is this error: /var/lib/dpkg/info/mysql-server-5.0.postinst: line 144: /etc/mysql/conf.d/old_passwords.cnf: No such file or directory Use this code to correct it: mkdir /etc/mysql/conf.d Both solutions were taken from the thread problem with installing myqsl-server. Cyrillic CharactersIf you wish to insert id3tags (encoded in Cyrillic CP1251 or in Japanese Shift_JIS) into database, change the following code in the file /usr/share/ampache/www/modules/getid3/getid3.php
public $encoding = 'ISO-8859-1'; // CASE SENSITIVE! - i.e. (must be supported by iconv() - see http://www.gnu.org/software/libiconv/). Examples: ISO-8859-1 UTF-8 UTF-16 UTF-16BE. to public $encoding = 'UTF-8'; // CASE SENSITIVE! - i.e. (must be supported by iconv() - see http://www.gnu.org/software/libiconv/). Examples: ISO-8859-1 UTF-8 UTF-16 UTF-16BE. Save the file and reload the catalogue. Using RhythmboxOpen Ampache in your web browser. Go to the admin tab, and choose Add Catalog. Fill in the form and submit. This can take some time for large file systems. In the admin tab, choose Add Users and add as many users as you need. Still in the admin tab, choose add acl and add in some access control lists. Make the first one
make another one
In your terminal sudo gedit /var/www/music/config/ampache.cfg.php and find the section that looks like this ; Use Access List and change it to look like this ; Use Access List Save the file and exit gedit. Repeat this next section on every client computer:
These instructions are taken from Awesome Music server = Your existing Ubuntu 8.10 Desktop + Ampache + Rhythmbox, Oh My!. Other links |


