Sitemap | Terms

Very small how-to on how to compile Firefox on Debian. I needed this for solving a bug. But it is also a nice start for an optimized Firefox build. Maybe I can find time for that some day.

wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/source/firefox-3.6.3.source.tar.bz2
tar -xvvjf firefox-3.6.3.source.tar.bz2

echo 'ac_add_options --enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-optimize
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox' > ~/.mozconfig

sudo apt-get build-dep iceweasel
cd mozilla-1.9.2/
sudo aptitude install libdbus-glib-1-2 build-essential libdbus-glib-1-dev libnotify-dev libasound2-dev
libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev libidl-dev
make -f client.mk build

##Make tarballs
cd ..
cd firefox
make -C browser/installer


Further reading:
http://forums.debian.net/viewtopic.php?f=16&t=37044
https://developer.mozilla.org/en/Linux_Build_Prerequisites
http://sourceforge.net/projects/spicebird/forums/forum/809252/topic/2019903


Last week Apple updated iTunes, lots of people had to convert their libraries before they could start listening to music again.

Anyway I don't use iTunes or any other big time program to play music. The reason for that is that it takes to long for such programs to load my collection of MP3 files. I have over 7000 music files and it takes minutes to load them in VLC playlist, iTunes or Rhythmbox.

This script will find music files recursively, and start playing them in shuffle mode. Takes less than 10 seconds to load 7000 audio files the first time. Any subsequent time, it will start playing in less than 1 second.
#!/bin/bash

PLAYLIST="$HOME/playlist.pls"
AUDIOPATH='/media/bar/Muziek/' ## Enter a path to start from

function mk_playlist
{   
   touch $PLAYLIST
   TEMPORARYPLAYLIST="$HOME/temporaryplaylist"
   touch $TEMPORARYPLAYLIST

   find "$AUDIOPATH" -print -type f > $TEMPORARYPLAYLIST
   grep -i 'mp3$' $TEMPORARYPLAYLIST > "$PLAYLIST"
   grep -i 'ogg$' $TEMPORARYPLAYLIST >> "$PLAYLIST"
   grep -i 'm4a$' $TEMPORARYPLAYLIST >> "$PLAYLIST"
   grep -i 'mid$' $TEMPORARYPLAYLIST >> "$PLAYLIST"
   grep -i 'wma$' $TEMPORARYPLAYLIST >> "$PLAYLIST"
   grep -i 'flac$' $TEMPORARYPLAYLIST >> "$PLAYLIST"
   grep -i 'mp4$' $TEMPORARYPLAYLIST >> "$PLAYLIST"

   rm $TEMPORARYPLAYLIST

   echo Total files: $(wc -l "$PLAYLIST")
}

if [ ! -f "$PLAYLIST" ]; then
    mk_playlist
    mplayer -shuffle -playlist "$PLAYLIST"
else
    mplayer -shuffle -playlist "$PLAYLIST"
fi
Just copy paste the code above in a play.sh file, chmod +x play.sh and update the path at line: AUDIOPATH='/media/bar/Muziek/' If you don't know where your music is, just enter '/home/'.

If you ever tried to get photos from a Nokia n96 you found that there are a lot of folders, with sub folders containing photos.

Here is a small bash script that will recursively search for files larger than 250kB and copy them to a flat folder. Leaving you with a folder with all your photos.
find /source/folder -size +250k | \
while read file
do
     cp  "$file"  /destination/folder/`basename "$file"`
done
For some time I could not install VLC on Debian, tried everything I could imagine... but nog luck. Gives me something like this:

[0x9ffdf08] main interface error: no interface module matched "globalhotkeys,none"
[0x9ffdf08] main interface debug: TIMER module_need() : 0.098 ms - Total 0.098 ms / 1 intvls (Avg 0.098 ms)
[0x9ffdf08] main interface error: no suitable interface module
[0x9ffd8a8] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x9ffd8a8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.

A pretty vague error message if you ask me, Christophe Mutricy offered a solution to this problem:
Remove all config: rm -rf ~/.config/vlc;rm ~/.cache/vlc

Comment:
#/usr/local/lib
in file
/etc/ld.so.conf.d/libc.conf

now run: sudo ldconfig and reinstall vlc with the repository. Works like a charm.

Show/hide all debug information
I have created a script that puts multiple JPG files and one MP3 file into an AVI video file. Very nice if you like to make slideshows or photo impressions for on the web or on YouTube.

It can be integrated in Thunar or run directly from terminal, read instructions in the file: jpg-mp3-to-avi.sh

Combine it with this command to get it in a flash player:
ffmpeg -i output.avi output.flv



A random image
Butterflies (© Mariska de Graaff)


Comments
 
Tell me what's on your mind Facebook Twitter Hyves YouTube

A random image
Mushrooms (© Mariska de Graaff)