Category Archives: Linux

Extract MP3 from SWF files on Linux (Ubuntu)

We will use a tool called swfextract contained on the package swftools, so first we will install it

  2. sudo apt-get install swftools

Once installed first we will see wich media we can extract from our swf file.

  2. rene@rene-desktop:~/Music$ swfextract test.swf
  3. Objects in file test.swf:
  4.  [-i] 5 Shapes: ID(s) 7, 14, 22, 23, 28
  5.  [-j] 16 JPEGs: ID(s) 1-6, 11-13, 16-21, 27
  6.  [-s] 1 Sound: ID(s) 29
  7.  [-F] 1 Font: ID(s) 8
  8.  [-f] 1 Frame: ID(s) 0
  9.  [-m] 1 MP3 Soundstream

Then just use the option between brackets and the ID the element you want to extract, in our example we will extract the sound with ID 29, but you can extract also images if you want

  2. rene@rene-desktop:~/Music$ swfextract -s 29 test.swf -o test.mp3

Check memory and hard drive usage on linux

Here are two very useful commands to see available memory and hard drive space on linux

To see available memory we will use free

  2. # -h give us the output on a format readble for humans :)
  3. $ free -h
  5.              total       used       free     shared    buffers     cached
  6. Mem:          7.8G       3.6G       4.2G         0B       356M       924M
  7. -/+ buffers/cache:       2.3G       5.4G
  8. Swap:          18G         0B        18G

Yo see hard drive usage we will use df

  3. # the same h stands for human readble
  4. $ df -h
  6. Filesystem      Size  Used Avail Use% Mounted on
  7. /dev/sda3       193G   20G  163G  11% /
  8. udev            3.9G  4.0K  3.9G   1% /dev
  9. tmpfs           1.6G  1.1M  1.6G   1% /run
  10. none            5.0M     0  5.0M   0% /run/lock
  11. none            3.9G  1.5M  3.9G   1% /run/shm
  12. none            100M   12K  100M   1% /run/user
  13. cgroup          3.9G     0  3.9G   0% /sys/fs/cgroup

Test your sites on IE from linux

I work all the time on Linux, but unfortunately there are some bugs that happened just for Internet Explorer so i used to reboot, test on windows, fix it, and then reboot and continue working on linux.

This process is annoying reboot, fix, test, etc. but thanks to Wine. We can install Internet Explorer on Linux, for that we can use:

IEs4Linux this script can install several versions of IE 5, 5.5, 6 even you can install IE 7 (not fully supported)

Here are some screenshots of the process and IE running

Another option is to use Wine-Doors, it’s an script that help us installing window’s software like Ares, Flash 8, Internet Explorer 6 etc.


With the previous options IE not always runs like on windows. There is another option running windows under Linux as a virtual machine for that purpose you can use virtual box, qemu, vmware.

My choose is Virtual Box Open Source Edition, here is a good tutorial on how to install it and some screenshots of my virtual box running IE6 and IE7

Virtual Box