Small Linux Help

Filezilla use a custom settings directory

Create the file ~/.filezilla/fzdefaults.xml with the following settings:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <Setting name="Config Location">/whateverpathyouwish/</Setting>
      <Setting name="Kiosk mode">0</Setting>
      <Setting name="Disable update check">0</Setting>

If you want to know more about the possible options in this configuration files, take a look at

man 5 fzdefaults.xml

and also take a look at


Now you can put your settings directory wherevery you like. This makes it possible to share configurations between Linux and Windows boxes. Personally I store the settings in my DropBox to have them wherever I need them!

Thunderbird does not start when second display is missing

See Bugreport here

Thunderbird works perfectly when a second display is connected. After removing the secondary display and rebooting, thunderbird won't start anymore. As found out through the above bug report with xrandr the default screen ist set to a wrong resolution.

The following command will set the resolution of your default display to the values you enter for [width] and [height] using xrandr.

sudo xrandr --output default --mode [width]x[height]

I think this is still a bug in Thunderbird or (K)Ubuntu but now we have a workarround.

WiCD WLAN does no longer work

Somehow I had some problems connecting to my WLAN at home with WiCD. It always worked well but it stopped working and I did not know why.

When I started wicd-client from the command line I saw some error message like

OverflowError: long too big to convert

I googled a little bit and found a solution.

1) Open up /usr/share/wicd/wicd/ as root

sudo vi /usr/share/wicd/wicd/

2) Find this block of code (should be around line 114):

      if isinstance(ret, (int)):
          except OverflowError:
              ret = long(ret)
      return to_unicode(ret)

And make it look like this

      if isinstance(ret, (int, long)):
          except OverflowError:
              ret = str(ret)
      return to_unicode(ret)

3) Save the changes and restart the client and daemon.

Now you should be able to use WiCD for your wireless lan again.

Cleanup Firefox databases and speedup firefox

Jump to your profiles Dir eg.


If you have more profiles there you can identify the actual one by taking a look at your


and searching for the entry


This should point you to the right location.

When you are in your profiles folder you could execute the following command to compact your firefox sqlite databases:

for i in *.sqlite; do echo "VACUUM;" | sqlite3 $i ; done

If you are on windows execute the following command

for %i in (*.sqlite) do @echo VACUUM; | sqlite3 %i

That's it. Firefox should now be faster!

X Server in a window

I needed an XServer running in a window that can host applications executed on a remote client. In this particular situation a HP-UX machine needed a remote X-Server that I wanted to host on my linux box. I found out an easy way and I don't know if it is good, but I want to write it down here if I need it again.
My system at this point was Ubuntu Linux running KDE4 (Kubuntu).


Creating a dummy user on your system (skip this if you want to use the current)

sudo useradd vncvieweruser

and complete the wizard

Install vnc4server

sudo apt-get install vnc4server

Now start the vncserver as current user

vncserver :1

or as the dummy user

sudo su -c "vnc4server :1" vncvieweruser

You should see something like

sudo su -c "vnc4server :1" jenny
[sudo] password for pcfreak:

New 'yourmachine:1 (vncvieweruser)' desktop is yourmachine:1

Starting applications specified in /home/vncvieweruser/.vnc/xstartup
Log file is /home/vncvieweruser/.vnc/yourmachine:1.log

We have now a “virtual” X-Server on Display :1 that also hosts a VNC Server Now comes the easy part, we just use vncviewer to connect

vncviewer :1

and get asked for a password (we provided earlier)

VNC Viewer Free Edition 4.1.1 for X - built Apr 16 2008 13:02:40
Copyright (C) 2002-2005 RealVNC Ltd.
See for information on VNC.

Wed Mar 24 17:38:49 2010
 CConn:       connected to host localhost port 5901
 CConnection: Server supports RFB protocol version 3.8
 CConnection: Using RFB protocol version 3.8

After authentication we see a wonderful X-Server in a vncviewer connection - Voila!

since we have an xterm we can do all kind of stuff.

We use xhost command to allow a remote connection from IP Type this in the xterm of the vncviewer window

xhost being added to access control list

And then try to start an application on the remote machine that pops out in your X-Server Type this on the remote host.

DISPLAY= xterm

Now a new xterm pops out on your vncserver that comes from the remote machine. You can now have a lot of fun! See this screenshot!

and if you are crazy - see this

To stop the server use this command

for a dummy user

sudo su -c "vnc4server -kill :1" vncvieweruser

and for the current user

vnc4server -kill :1


Xnest ist die einfachste Art einen Test-X-Server aufzusetzen, die ich bisher gefunden habe.

sudo apt-get install xnest

und schon kanns losgehen:

Xnest -ac +kb -sync -name "Xnest XServer" :12
 ac                    disable access control restrictions
 kb                    enable/disable +- the X Keyboard Extension
 sync                  synchronize with the real server
 name string           window name
 :12                   Display :12

Nun kann man z.B. ein xterm auf Display 12 starten

export DISPLAY=:12

und schon kann man im “nested” X-Server “rumspielen”.

public/linux/help.txt · Last modified: 2015/08/11 08:20 (external edit)
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0