Gnome

Disable automatic start of the GUI in Ubuntu 9.10 (Karmic Koala)

Apparently Ubuntu changed the startup process significantly in Karmic, since GDM is now not started by a startup script in one of the the /etc/rc[0-9].d directories, but something else. Even the /etc/init.d/gdm filesystem entry was changed: it's now a symlink pointing to /lib/init/upstart-job. The latter is part of the upstart package which has the following description ...

Description: event-based init daemon
Upstart is a replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

Running a script on logout from Gnome

There's a nice Python script for the job at linuxquestions.org written by Seamus Phelan. I've tested it, found a few problems and fixed them.

How to connect to the GDM X session via VNC

There're quite a few howtos on the topic already, but most involve a lot more steps than what I've found. If you need a quick&dirty way to connect to the already running GDM, here's how to do it (ssh into the server and run as root):
$ apt-get install x11vnc
(...)
$ ps ax | egrep '(auth.*gdm|gdm.*auth)'
6022 tty7     Ss+    0:10 /usr/X11R6/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
11322 pts/8    S+     0:00 egrep (auth.*gdm|gdm.*auth)
# Take the display and the auth file from the gdm command line above.
$ x11vnc -forever -display :0 -auth /var/lib/gdm/:0.Xauth

Now you can use your VNC client to connect to the VNC server which is most probably running on the standard 5900 port.

Gnome settings, changing global defaults and setting a keyboard shortcut for all users

If you're into reading manuals, then start with "Using GCong" in the "GNOME Desktop System Administration Guide". It has almost all the info that I'm going to describe here. However if you're just interested in how to set up global Gnome defaults (ie. defaults for all users), then read on.

Temperature and the "feels like" value in Gnome Panel's clock

Gnome Panel has a built-in clock that can display weather information as well. If you enable the display of temperature and/or the weather in the clock applet's preferences (and set a location too), then hovering the mouse over the weather or temp. icon will show a detailed description (including wind speed) of the current weather in your area. There's also an "apparent" temperature at the end of the line that starts with the text "feels like". Eg. yesterday my reading said: "34.0 °C, feels like 36.6 °C". I've always wondered how this "feels like" value is calculated. Smiling

Zenity - Gtk+ dialogs for shell scripts

Just found out about this: "Zenity is a tool that allows you to display Gtk+ dialog boxes from the command line and through shell scripts. It is similar to gdialog, but is intended to be saner. It comes from the same family as dialog, Xdialog, and cdialog, but it surpasses those projects by having a cooler name." Seems to be pretty useful. The original project homepage is at GNOME Live.

Gnome-panel eating up CPU

The phenomenon is nothing new: there're at least a dozen bug reports on gnome-panel eating up CPU and/or RAM.
Eg.:

Gnome screensaver remains blank not allowing to unlock

For the last couple of weeks I had an issue with Gnome Screensaver: it locked my screen and despite me moving the mouse or pressing any keys, the unlock dialog would not appear and the screen stayed blank (since I had the "Blank screen" selected in preferences). On every action (keypress or move of the mouse) the cursor appeared briefly, but only for the split of a second.

Mysterious disappearance of Gnome Panel

From time to time it happened to me (and a couple of my colleagues) that after a successful login to our Ubuntu server my Gnome Panels would not appear. It took not too much to discover that starting with a clean HOME directory solved the issue ... however it was quite annoying and building up a new HOME from scratch and copying stuff from the old HOME one by one ... not too much joy. Last week I had enough and tracked down the problem by removing stuff from my HOME one-by-one til the issue was gone.

Gedit and file encodings

Gnome's default file editor is gedit. It has builtin encoding auto-detection thus if you double-click a text file, chances are high that it'll recognize the encoding of the file properly. However if not, you can start gedit with the --encoding command line option.

Syndicate content