Installing VLC-shares in Ubuntu
First of all, go to theÂ VLC-shares websiteÂ and download the â€śvlc-shares_0.5.*.zipâ€ť file. The latest version (as of this post) is version 0.5.3.
Extract the zip file to your Home folder. You should see a folder â€śvlc-sharesâ€ť.
Open a terminal. We are going to install the necessary software.
sudo apt-get install apache2 libapache2-mod-php5 php5 zend-framework zend-framework-bin vlc php5-sqlite php5-cli vlc ffmpeg libavcodec-extra-52 libavcodec-unstripped-52
Next, we are going to enable apache mod_rewrite
sudo a2enmod rewrite
It will prompt you to restart apache. Ignore that for a moment. We will do that later.
Open Zend Framework config file:
sudo gedit /etc/php5/apache2/conf.d/zend-framework.ini
Remove the â€ś;â€ť in front of the second sentence.
Save and close the file.
Back to your terminal, we are going to change the apache config file.
sudo gedit /etc/apache2/sites-enabled/000-default
Scroll down the file until you see the part â€śâ€ś. Underneath that line of code, changeAllowOverride NoneÂ toÂ AllowOverride All.
Save and close the file.
(Assuming you have earlier unpacked the vlc-shares.zip file to your Home folder) We are going to move the VLC-shares folder to the apache folder.
sudo cp -R ~/vlc-shares /var/www
sudo chown -R www-data:www-data /var/www/vlc-shares
sudo chmod a+rwx -R /var/www/vlc-shares/data
Lastly, we are going to restart the apache.
sudo /etc/init.d/apache2 restart
We are almost there. Now, open up a browser and navigate to â€śhttp://localhost/vlc-shares/publicâ€ť (without the quote). You should see the installation dashboard. Go ahead to select all the plugins and click the â€śStart Installationâ€ť button.
The installation shouldnâ€™t take more than a minute. Once it is done, you will see the configuration page. Ignore that (the default configuration should work fine). At the top, click the first Home icon. This will bring you to the Home page.
We are done with your Ubuntu installation. The next step is to configure yourÂ AndroidÂ phone.
Accessing VLC-shares from Android
Before we start the streaming, we need to install a media player app capable of playing stream video. I have tried out RockPlayer and MVideo Player and they failed. VPlayer is the one that works.
InstallÂ VPlayerÂ from the market.
Note:Â If you have firewall installed, remember to configure it to allow incoming connection before proceeding.
If yourÂ AndroidÂ phoneÂ is connected to the same WIFI network as your Ubuntu computer
Open the browser and enter the URL:Â http://your-ubuntu-lan-address/vlc-share/public. Replace â€śyour-ubuntu-lan-addressâ€ť with the physical LAN address of your computer. In thisÂ case, my computer has the address 192.168.0.131, so on my Android browser, I enter â€śhttp://192.168.0.131/vlc-shares/publicâ€ť
Note:Â On Ubuntu machine, you can find out the IP address of your computer by right-clicking the network manager applet and select Connection Information
If yourÂ AndroidÂ phoneÂ is connected via remote network
You have to enable the port forwarding feature in yourÂ router. We wonâ€™t touch on that in this tutorial. Refer to your routerâ€™s user manual for the instruction (orÂ get more detail here).
On your Android browser, you should see the same dashboard interface.