Tweak gdm for web browsing without login

With the new gdm its possible to tweak the login screen to do some fancy stuff (see forum post http://ubuntuforums. … thread.php?t=1333683). By following these steps we can enable web browsing without user login.

1. To allow a network connection:

sudo cp /usr/share/app-install/desktop/nm-applet.desktop /usr/share/gdm/autostart/LoginWindow

2. Install alltray (needed to get Firefox into the bottom tray):

sudo apt-get install alltray

3. To add Firefox in the bottom tray:
Drag and drop Firefox from the menu to your desktop and copy it to the autostart directory of user gdm:

sudo cp /home/<user>/Desktop/firefox.desktop /usr/share/gdm/autostart/LoginWindow/

Change the desktop file to start Firefox in alltray:

sudo sed -i 's/^Exec=/Exec=alltray /' /usr/share/gdm/autostart/LoginWindow/firefox.desktop

4. Logout again to see the changes of gdm.
If you have created your wireless connections as a normal user before and flagged the connection data to be used for all users, wireless should work without setting up a password. Else you have to follow the instructions in the forum post ( http://ubuntuforums. … thread.php?t=1333683) to set up the network.

There is only one issues, but I can live with it. The Firefox tray starter will vanish after closing Firefox and the browser can not be started again from the login screen.

Back to top

Cowon D2, ffmpeg and Ubuntu 10.04 Lucid Lynx

I’ve installed Ubuntu 10.04 Lucid Lynx in order to replace my main desktop running 8.10. The biggest problem I’ve encountered yet was that ffmpeg can no longer encode videos for my little Cowon D2 media player.

I was using this command to encode the videos and it worked well under 8.10:

ffmpeg -i <file> -r 25 -b 600k -mbd rd -flags +4mv+aic -cmp 2 -subcmp 2 -g 300 -vcodec libxvid -acodec libmp3lame -ab 128k -async 1 -s 320x240 -aspect 4:3 <outfile>

On Lucid ffmpeg gives this version

FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1

on Intrepid it’s this one


I tried to install the latest ffmpeg (http://ubuntuforums. … wthread.php?t=786095) but the problem remained. So I checked the version on 8.10 and compiled an old ffmpeg version like this, assuming you compile everything under /home/myname/software.

1. To build xvidcore, get xvidcore-1.1.2 and extract it to /home/myname/software/

cd /home/myname/software
cd xvidcore-1.1.2/build/generic

2. Build a static executable of an “old” ffmpeg version by checking out the version from 2008-02-06:

cd /home/myname/software
svn checkout -r {2008-02-06} svn:// ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-x11grab --enable-libxvid --extra-libs=/home/myname/software/xvidcore-1.1.2/build/generic/=build/libxvidcore.a  --disable-shared --enable-static --extra-libs=-static --extra-cflags=--static

The library options are there to build a static version including the xvid codec.

Now I’ve got some compilation errors and had to fix some lines in file ffmpeg/libswscale/swscale.h (I’ve attached the file). The compilation did run through now and created a static ffmpeg. With this new “old” ffmpeg a can encode the videos again for the D2 with the command mentioned above.

I’ve also attached my static version. It can be executed on it’s own from any directory.

Back to top