Wednesday, May 21, 2008

Perl tutorial

I wanted to read PERL for a long time and finally was forced to read it :P
This amazing tutorial helped me out for a start.

Thanks to keyur :P if you are reading :P

Installing sopcast on Linux (Ubuntu 7.10)

Sopcast was a better alternative to a lot of people who looked for streaming content online. It was meant for Windows users all this while, though the linux users too wanted something similar there were no proper tutorials which explained the setup on linux. After a lot of googling, I found this one article which explained clearly step by step. I didn't want the article to be lost, so hence i am digitizing a copy of that in my own blog.

All credits to this guy who wrote this in the first place. The original found in his site


Installing SOPCAST in Linux Ubuntu 7.10

Note this will vary on different versions, but this guide is intended for Ubuntu 7.10 Gutsy.

Adding Repositories


Run these commands in the terminal:

gksu gedit /etc/apt/sources.list

Add this line: "deb http://packages.medibuntu.org/ gutsy free non-free"

sudo apt-get update

sudo apt-get install qt3-apps-dev vlc build-essential

Downloading the latest Sop Cast binary

http://download.sopcast.cn/download/sp-auth.tgz

Unzip it and cd into that directory using terminal. Then run:

sudo cp sp-sc-auth /usr/bin/sp-sc

Downloading and building the latest GUI


Download the most recent source package from this page:
http://code.google.com/p/qsopcast/downloads/list

Aga‌in, unzip it and cd into that (src) directory using terminal. Then run

sudo qmake
sudo make
sudo make install

This should compile the source and install the binary into the correct location.

Creating an menu shortcut

Go to System / Preferences / Main Menu... then 'Internet' and 'Add New Item'. Give it the name "QSopCast" and command "qsopcast". You should now be able to launch from the main menu.

This didn't work for some reason in my machine, so I open "qsopcast" direct from the extracted folder. Next is to update the played to vlc and channel URL :P(given below)

Setting up the GUI

Once the gui is open, goto config then config again. Make sure that the player settings are all set to "vlc" and that the channel URL is set to "http://www.sopcast.com/gchlxml"

You should now be able to watch sop casts by selecting a channel, launching it and then hitting player when the stream is at 100%

Thanks. Sopcast rocks. :D