Since Posterous closed down, I just imported all my posts into WordPress. Official address on wordpress is mortencb.wordpress.org, but the old addresses blog.mortencb.cx and posterous.mortencb.cx are being redirected here as well. Hope everything works, please …
Author: mortencb
Fixing drive failure when using mdadm/raid1 on boot device (CentOS 5)
I am using CentOS 5 for one of my servers, and use raid1 and md for the mirroring between two drives. Then one of the drives fail (which they eventually will), here is how you fix it: I have taken info from these pages for this blog post: http://w…
hw.no/panda/adblock
Som de fleste geeks bruker jeg adblock til å surfe uten plagsomme reklamer. Jeg skjønner at hardware.no antakelig blir hardere rammet enn andre av at deres brukere i stor stil bruker adblock. Men etter et forsøk på å laste websiden deres uten adbl…
Android 4 and Calendar crash
After I got a new phone with Android 4 (ICS), my calendar crashed as soon as I enabled sync of my google calendar. After *lots* of googling, I finally found the cause: At least one of the events in the calendar is “corrupt”, and in earlier Android…
amixer in ubuntu
If you want to change the volume in Ubuntu 11.10 it seems that amixer is kind of bugged when it comes to toggle (mute/unmute). When toggling Master, it also mutes all the separate groups (Front, headphone, PCM and so on), but when toggled again it…
Cutting bits from avi-file with ffmpeg/mencoder
I wanted to cut out two bits from an avi-file and then join them to get one small file from a large file. I thought using ffmpeg would be easy for this, but it turns out it might have a but with avi/wmv so I ended up using mencoder instead. The or…
Google Chrome and Kerberos
Just a short tip for those of you that use Google Chrome and want to utilize Kerberos to login to sites: You need to start Chrome with an extra command-line option. Why this isn’t configurable inside Chrome is a mystery, but anyways – here is the …
How to make IE8 trust a self-signed certificate in 20 irritating steps (and also for Google Chrome)
Browse to the site whose certificate you want to trust. When told “There is a problem with this website’s security certificate.”, choose “Continue to this website (not recommended).” Select Tools->Internet Options. Select Security->Trusted sites->…
API and RedHat Network
If you use RedHat Enterprise Linux in a big environment, you probably use RedHat Network (RHN) as well. RHN has a very well documented API, which can be used for all tasks you want to do. Here is a small script I wrote to list out all of our syste…
Wlan Password for guests
If you, as me, have a very long password for your wlan, it’s tiresome to give out the password to random guests who need to connect. Easy solution: Go to this web page and choose Wifi Network. Then fill in your ssid, password and type of encryptio…