Welcome back
As of today my server has been up and running for 28 days 24 minutes and 23 seconds (type "uptime" in the terminal). No problems yet. I have received several emails asking when my next tutorial will be out and I appologize for the wait but I've been busy with school and work, also PHP 5 was giving me a tough time, but I finally figured it out. So any ways here it is. I'm still sticking with my original views and trying to keep it as simple as I can.
Jinzora?
The name might not be flattering but it's truly a great application. "Jinzora enables you to stream your digital music and videos to any internet connected computer using a web browser." So basically, listen to your music and watch your videos from anywhere in the world. This tutorial does not go that deep, but in a future one, it will.
Setup Process
I'm assuming you have read my previous tutorial so you should be able to follow along fairly easily on this one. To start off, open Putty and SSH into your server.
1. Update Ubuntu
Again, this may take some time. Only took a few minutes on my computer, not much has been updated in a month. Should be the same for you.Sudo apt-get update
sudo apt-get upgrade
2.Install Apache 2, PHP 5, MYSQL and GD
Learn more about Apache. I have no experience with Lighttpd therefore I chose Apache, if anyone is wondering.
Learn more about PHP.
Learn more about MYSQL.
Learn more about GD.sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo apt-get install php5-gd
3. Configure PHP 5
Now that LAMP (Linux Apache MYSQL PHP) is installed we have to configure PHP 5 to meet the Jinzora2 requirements.sudo pico /etc/php5/apache2/php.ini
Now set"max_execution_time" to 300
"memory_limit" to 128M
"post_max_size" to 32M
"file_uploads" to On
"upload_max_filesize" to 32M
4. Configure MYSQL
We must also configure MYSQL so that the database can be accessed from the client computer.sudo pico /etc/mysql/my.cnf
Change
bind-address = localhost
to
#bind-address = localhost
Set root password (self explanatory. Replace "yourpassword" with your password "yourusername" with your username and so on...)sudo mysql -u root
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
GRANT ALL PRIVILEGES ON *.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
/q
5. Restart and test Apache
Just to make sure everything is running correctly.sudo /etc/init.d/apache2 restartIn your browser type in the internal IP of the server, you should already know that from the last tutorial. If you see "Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at 192.168.0.100 Port 80" or something close to that its working, if not, go back to previous steps.
6. Install Jinzora2... finally
First off the download must occur. (Latest Jinzora at time of creation)wget http://www.jinzora.com/downloads/jz275.tar.gzNow the unpacking and moving. (reverse pun?) Also deleting and permission setting.sudo tar xvzf jz275.tar.gzYou can close out Putty, your SSH client, and open up your web browser and type in the internal IP of your server once more. Once there click the link that says "jinzora2/".
sudo mv jinzora2 /var/www/jinzora2
sudo rm jz275.tar.gz
sudo chmod -R 777 /var/www/jinzora2
If all went well, you should be welcomed with the pretty Jinzora setup screen.Click the "Proceed to Requirements>>" button.
Read through all the information on the screen, you should not see any red words under "Requirements" other than the proceed button.
Yes, good? Click the "Proceed to License>>" button.
Agree and continue.
Click the "Proceed to Main Settings>>"button.
Fill out the text boxes, but this time leaving "Default Access Level:" and "Backend Type:" as is and continue.
Once again fill out the text boxes leaving "Database Server:" and "Database Type:" and changing "Create Database:" to true. Continue.
Everything should have been successful. If it says failed created database, double check that on the previous page you used the same user name and password you created when setting up MYSQL. Hit "Proceed to Import Media>>"
Here is where you specify the location of your media, if you did not change it from the previous tutorial it will be in /media/samba/. So navigate to that directory and select analyze. How much media you have will determine how long it will take to import. About 15 songs per second.
Click "Proceed to Save Config>>," "Proceed to Launch Jinzora>>," choose to share anonymous stats or not and finally click "Launch Jinzora"
Login and explore. Now it should say something about it not being secure, so open up ssh again and from the terminal type.sudo rm -r /var/www/jinzora2/installRefresh and explore.
7. Get yourself an application such as VLC media player to stream the media to
That's it.
So maybe this tutorial isn't as easy as I'd like it, but it works.
It has come to my attention that upon reboot the MYSQL database is
no longer accessible. when I have more time I will figure this one out,
I think its just not starting. Help would be appreciated. For the
meantime, don't reboot.
EDIT:
This should fix it. Not sure if you have to do that every reboot but I'm assuming so.
From the terminal typesudo /etc/init.d/mysql restart
Continuum of tutorial
How to access your files from anywhere in the world (3 of ?)
Coming soon...
How to access your files from any where in the world.
I don't know. Leave me some ideas here.
