ATI dual head xorg.conf

Just to keep a record of a configuration working on my home box:

 

cat /etc/X11/xorg.conf

Section "Screen"
 Identifier "Default Screen"
 DefaultDepth 24
 Monitor "Monitor0"
 DefaultDepth 24
 SubSection "Display"
 Modes "1680x1050" "1680x1050"
 Virtual 3360 2100 
EndSubSection
EndSection
Section "Module"
 Load "glx"
EndSection
Section "ServerLayout"
 Identifier "Default Layout"
 Screen "Default Screen" 0 0
 Option "AIGLX" "on"
EndSection
Section "Device"
 Identifier "Default Device"
 Driver "fglrx"
 Option "UseFastTLS" "1"
 BusID "PCI:4:0:0"
 Option "Monitor-DVI-I-0" "Monitor0" 
 Option "Monitor-DVI-I-1" "Monitor1"
EndSection
Section "Monitor"
 Identifier "Monitor0"
 Option "Primary" "True"
EndSection
Section "Monitor"
 Identifier "Monitor1"
 Option "RightOf" "Monitor0" 
 Option "Primary" "False"
EndSection

“GNU GRUB version 1.97″beta 4 [ Minimal BASH-

Today I was updating an Ubuntu 9.04 virtual machine to 12.04. I went successfully to the 10.04 but after the 11.10 upgrade, at the reboot I had the following message:

“GNU GRUB version 1.97″beta 4 [ Minimal BASH-like line editing is supported.For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device/file completions]

sh:grub>

Awkward! Couple of Google queries and I ran into help.ubuntu.com, where I found this pretty nice solution:

ls
set prefix=(hd0,1)/boot/grub
set root=(hd0,1)
set
ls /boot
insmod /boot/grub/linux.mod
linux /vmlinuz root=/dev/sda1
initrd /initrd.img
boot

Give this commands on Grub command line and keep in mind that I’m using sda1 (sda=hd0 | partition=1) and both /root and /boot are on the same partition.

As the system boots, login and issue the following command as root:

grub-install /dev/sda
update-grub

Then reboot. The system should boot up fine now!

ERROR Could not initialize NSS on Debian x86_64

Few days ago I felt the need to setup Icedove so I could read my company email messages on my Debian 6.0 x86_64 notebook. Well, since we use Exchange I had to rely on Davmail to exchange emails with Exchange (sorry, I could not resist the joke). Well, as I checked the emails from my work account, Davmail sported the error “Could not initialize NSS”.

Since I am a lazy guy, I checked Google for an answer, you can find it here. I had to make just a little change cause I use a x64 OS:

uname -m
x86_64

Edit the file

/usr/lib/jvm/java-6-openjdk/jre/lib/security/nss.cfg

And in this snippet

name = NSS
nssLibraryDirectory = /usr/lib
nssDbMode = noDb
attributes = compatibility

you have to change the nssLibraryDirectory value to

name = NSS
nssLibraryDirectory = /usr/lib/x86_64-linux-gnu
nssDbMode = noDb
attributes = compatibility

If you have any problems with the nss.cfg file (backup it before you edit it),  you can always find a fresh copy in:

dpkg -S /etc/java-6-openjdk/security/nss.cfg
openjdk-6-jre-headless: /etc/java-6-openjdk/security/nss.cfg

ASCII Bouquet

for i in {1..12} $(grep ^ru <<<$LANG);do printf "\033[32m%10s{\033[31m@\n\033[0m"|tr " " =; done

RT @climagic