No users in GDM list on FreeBSD? Here’s a fix

14 May 2010

So today GNOME finally finished compiling on this Compaq Evo N610c laptop which I installed FreeBSD 8.0 on the other day. It only took about 3 days to compile. (Only! Mind you, it pulled in all sorts of stuff, like Epiphany, which includes WebKit.)

After making sure GDM would come up on startup by adding this to /etc/rc.conf

dbus_enable="YES"
hald_enable="YES"
gnome_enable="YES"

(For some reason, lshal wouldn’t run if gnome_enable="YES" was the only line.)

…I was dismayed to discover that there were no users showing up in the GDM login form. Not even the “Other” option was available to let me log in manually.

Frustrated, I went to search Google. I started typing “freebsd gdm” and then Google Suggest popped up:

FreeBSD GDM no users

Looks like I’m not the only one Googling for that. Turns out I couldn’t find anything on Google — nobody seems to have been bothered to write anything up in an FAQ (which is why I’m writing this post).

On the offchance, I looked in /var/log/messages, and saw some messages quite like the following:

console-kit-daemon[60290]: WARNING: kvm_getenvv failed: cannot open /proc/60378/mem

Turns out FreeBSD doesn’t mount /proc by default, but it is required for GDM to work properly (and, I’d hazard a guess, OpenOffice.org and a whole lot of other stuff). You can easily enable procfs by adding this line to /etc/fstab:

proc /proc procfs rw 0 0

Then, reboot (or if you’re a clever clogs and mounted /proc by hand with mount, restart GDM /usr/local/etc/rc.d/gdm restart), and you should see the users in the login form!

How to fix menu icons in GNOME 2.28

23 September 2009

For some reason, the folks at GNOME (the “usability” team) decided to turn off icons in menus. Not only does it make them look ugly as hell, but it is nigh on impossible to navigate menus visually.

I am a very visually-oriented person, so this makes GNOME very difficult to use. I find myself constantly selecting the wrong items, even though removing the icons doesn’t actually change their position.

But as if that wasn’t bad enough, the “usability” team has taken the KDE approach to the problem. Rather than setting an obvious and sane default (i.e. enable icons in menus), there is a checkbox to enable the icons again. Brilliant! (not)

So you can go to System → Preferences (the first item in the menu, in case you prefer to navigate visually with icons like me) → Appearance (the second item in the menu), and under the Interface tab, you can check the box “Show icons in menus” to get the menu icons back, which gives temporary relief.

Enable menu icons illustration

Like many GNOME features, this one is only partly implemented. GNOME’s new ‘feature’ also removes stock icons from buttons, and the above option does not put them back (well, seeing as though it is captioned “Show icons in menus” I don’t see why it would, but if you’re going to take the KDE approach, you may as well go the whole hog and add another option still).

At first, I thought this was a bug in Ubuntu Karmic (I am running the alpha on my desktop right now). While there’s nothing like being able to have the suspense of not knowing whether your computer will boot up in the morning, I thought this was preposterous. After I found out it was an intentional change (167 KB PDF), it now seems that it’s plain baloney.

Make Metacity compositing smoother

25 October 2008

If you’re like me, you’ll drink Coke and disrupt your sleeping cycle on a regular basis. You’ll also be frustrated that Metacity’s compositing is horribly jerky. Well, as I found out from chatting on IRC one day, Metacity’s compositor is hard-coded to run at 50fps.

Normally, your monitor’s refresh rate will be something around 75hz, so 50fps, which is less than your monitor’s refresh rate, is hardly optimal. Fortunately, you can fix it with this simple patch: Read more…

Nautilus easter egg

9 October 2008

I went to clear my Nautilus history just now, as it seems to remember the history of removable drives, which doesn’t make sense after you’ve ejected them. (Bug?)

When the dialog came up, I was greeted by an amusing message:

Indeed, it was an easter egg, because every other time I brought up the dialog, it displayed a normal message instead.

Get classic GNOME logout/shutdown menus in Ubuntu

12 July 2008

I don’t like Ubuntu’s default shutdown menu. (You know, the one that appears when you press System → Quit and pops up a dialog with buttons for each option.)

GNOME, by default, doesn’t actually have the “Quit” menu. Instead, it has “Log Out username” and “Shut Down”. Those menus bring up dialogs that have a timer, so if you don’t click Shut Down/Log Out or Cancel in the resulting dialog, it will go ahead and shut down anyway.

Handy for if you click System → Shut Down when you’re in a rush to get out of the house, and forget about the dialog that comes up, because you ran off before it came up.

It’s really easy to enable. Just type this in a terminal:

$ gconftool-2 --type bool --set /apps/panel/global/upstream_session true

Either type killall gnome-panel, or log out and log on to see the changes.