PDA

View Full Version : How to Ubuntu Center Pre-Alpha Released with Xampp


nbx909
March 19th, 2006, 05:30 PM
With a little screwing around ttt_travis and i got it to work with xampp. (http://www.apachefriends.org/en/xampp.html) 1st download the source of Ubuntu center here (https://files.bountysource.com/file/show/107/ubuntucenter-prealpha-01-source.tar.gz).
Untar it and place center/center/ in /opt/lampp/htdocs/ .
Now copy center/usr/ to /
Now using phpmyadmin (http://your_ip/phpmyadmin/) create a db named center.
Import center.sql from /usr/share/ubuntucenter/
now do the following commands
cd /home/
sudo su
mkdir Shared
cd Shared
mkdir Incoming
mkdir Music
mkdir Pictures
mkdir Uploads
chmod 777 /home/Shared/
cd /opt/lampp/htdocs/center/
now use gedit, nano, vi or whatever to change the text in .htaccess to
AuthUserFile /opt/lampp/htdocs/center/.htpasswd
AuthName "Ubuntu Center - Authentication Required"
AuthType Basic

<limit GET POST>
require valid-user
</limit>
now go to http://www.flash.net/cgi-bin/pw.pl and type in your desired username and password and paste it into .htpasswd

Then you need to add this to the bottom of /opt/lampp/etc/httpd.conf
#ubuntu center
<Directory /opt/lampp/htdocs/center>
AllowOverride All
</Directory>
Finnally edit the configs of the apps in /opt/lampp/center/content/conf/ following the instuctions at https://ubuntucenter.bountysource.com/wiki/Configuring_Ubuntu_Center
then go to http://myip/center and type in your password and it should work

EDIT 1: if you do not have the id3v2 package you may want to do
sudo apt-get install id3v2 it may be needed for the music feature to work

EDIT 2: To use torrentflux you'll need to change the line that starts with $cfg["btphpbin"] = to
$cfg["btphpbin"] = "/usr/local/TF_BitTornado/btphptornado.py";
and the line that starts with $cfg["btshowmetainfo"] = to
$cfg["btshowmetainfo"] = "/usr/local/TF_BitTornado/btshowmetainfo.py";