Archive
Why I switched from Ubuntu to Arch Linux
Ubuntu is a great GNU/Linux distribution. I have been using it since 2004, and except for one LTS (long term support) upgrade a couple years back everything was fine. That LTS upgrade a couple years back screwed up the X system, leaving me with the bash shell. Don’t get me wrong: I enjoy dabling with my Linux system, but an LTS upgrade should be safe.
Well, this was years ago.
After upgrading from Ubuntu 11.10 to 12.04 the same thing happened again: No X system.
I have a cheap Nvidia card with dual head setup (dual head means you can plug in 2 monitors). Worked fine with Ubuntu since 2009. So I upgraded to Ubuntu 12.04. And I’m back to: No X system.
I was not amused.
It was not a hardware problem: The old OS (Ubuntu 11.10) worked fine. It was not the fault of Nvidia. I am talking about a video card for 20-50 bucks! Not one of those high-end video cards.
Instead of switching to another deb or rpm based system I decided to switch to one of those “rolling” distributions like Gentoo or Arch. I picked the later and have so far not regrated the decision.
Arch Linux is my home production system of choice.
PS1 prompt
Here’s my current PS1 prompt for bash with optional git support: https://gist.github.com/3324534
Converting a Mercurial repository to Git
Note to self:
Converting Hg repos to git using hg-fast-export.
Installation:
$ sudo aptitude install hg-fast-export
Usage:
$ cd new_git_dir
$ git init
$ hg-fast-export -r <hg-repo>
Works with:
git version 1.7.5.4
hg version 2.1
Converting a Subversion repository to Git
Just discovered this:
John Albin wrote an excellent article on how to convert a subversion repository to git:
Workaround for VirtualBox 4.0.8 regression bug
The current version of Oracle’s VirtualBox (4.0.8) has Version 4.0.8 had a regression bug which seems to only manifest itself when using Debian based hosts with 64-bit and Windows 7 64-bit guest system.
Here is the summary of the workaround posted as VirtualBox Ticket 8948:
- Edit the settings file to allow the VM to start again (Replace control characters in line 315 with 4.0.8).
- Start the Windows guest
- Run regedit
- Go to HKLM\SOFTWARE\Oracle\VirtualBox Guest Additions
- Create a string key VersionEx (use exactly this spelling)
- Give it a reasonable value (ie 4.0.8)
- Shut down the VM.
- Repeat step 1
- Restart and shutdown windows guest again
Adding Truecrypt to Ubuntu’s Unity panel
To add applications like Truecrypt to Ubuntu’s Unity panel the application has to be “white listed”.
- Install dconf-editor (ie sudo aptitude install dconf-editor)
- Go to section desktop | unity | panel and add ‘Truecrypt’ to the systray-whitelist variable
- Restart Unity (or log out and back in again)
Snippet for adding unknown files/dirs to Subversion (command line)
svn add `svn st | grep "^?" | awk '{print $2}'`
Configure VirtualBox Windows guest system to use 2 monitors
Purpose
Our host system for VirtualBox is GNU/Linux. We want our guest system, windows, to use two monitors.
This solution should work for all Linux distributions supported by VirtualBox4.
Required software
- Ubuntu 10.10 (aka Maverick) as host for VirtualBox4
- VirtualBox 4
- VirtualBox guest sytem: Windows XP (incl. VirtualBox guest additions)
Configuration
- Setup virtual guest machine (windows) within vm host system (GNU/Linux) to use two monitors:
- Within virtual guest (windows): Configure dual monitor setup:
Side note
Upgrading from VirtualBox owned by Sun to VirtualBox owned by Oracle was very smooth. Even for Linux host systems. Oracle, thanks for that!
Emacs: murrine_style_draw_box: assertion `height >= -1′ failed
This nasty bug has been around for over a year: Calling Emacs on Ubuntu from the console outputs
murrine_style_draw_box: assertion `height >= -1′ failed
after every action within Emacs.
The solution is simple, but has not been integrated in the Ubuntu repository yet.
Here it is:
In the file
/usr/share/themes/Ambiance/gtk-2.0/gtkrc
change
GtkRange::trough-under-steppers = 0
to
GtkRange::trough-under-steppers = 1
For details see Bug #538541, Bug #550532 and Resolving “murrine_style_draw_box: assertion `height >= -1′”


Recent Comments