Login · Register
September 05 2010 10:13:28

Interesting Websites

Compiling flvstreamer for use on Unslung Linux


Downloading The flvstreamer Source Code

There are two ways to download the source code for flvstreamer. One is to directly download a compressed copy of the code via HTML. The other is to download the latest code from the SVN repository. I shall describe how to download the HTML version as it is the simplest way.

First, you need to browse to http://mirrors.zerg.biz/nongnu/flvstreamer/source/ (on your computer, not the slug). Here you have a list of compressed source code images. You want to copy the URL of the latest *.tar.gz file. Make sure that you do not get the URL of the *.tar.gz.sig as this is just a signature file. The latest file at the time of writing is flvstreamer-1.8k.tar.gz.

Now, on your NSLU2, you need to change the directory to the one where you want to download flvstreamer to. In my case, I want to download flvstreamer to /root.

Code
cd /root




Next, you need to enter "wget" followed by a space and then the full URL of the compressed source code file.

Hint: When using PuTTY, you can copy text and then right click in the PuTTY window to paste that text in. For example, you can right click the URL of the source code file in your browser, select Copy URL and then right click in the putty window to paste it in. This should make the process much quicker & error free.

In my case:


Code
wget http://mirrors.zerg.biz/nongnu/flvstreamer/source/flvstreamer-1.8k.tar.gz




This will download the file to the root directory. The file will have the same name as the one in the URL. You can verify that the file is there by entering "ls". This lists the contents of the current directory. You should see a file with a name similar to flvstreamer-1.8k.tar.gz.

Next we need to uncompress this file. To do this we need to enter "tar xzf" followed by a space and then the file name. To save time you can enter the first few letters of the file name, and then press TAB. This should auto-complete the file name, provided there are no similarly named files in the same directory.

Code
tar xzf flvstreamer-1.8k.tar.gz




This should have created a directory called "flvstreamer". We now need to change to this directory.

Code
cd flvstreamer




The next step is to modify the makefile.

Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.