WebDAV and Calendar files

For a long time I was having a fight with WebDAV… But I found the problem! In the http.conf file you need to put a line like:DAVLockDB /usr/local/apache/var/DAVLock/DAVLockDBThis is the Lock-database for WebDAV… but not only the file needs t…

No panic for the “Kernel Panic!”

Recently at work I had to migrate a physical server to a VMWare-instance. First I made a dump of the live (!!!) system using dd.

dd if=/dev/sda
| ssh [email protected]
‘cat – > /opt/vmware/oldserver/oldhd.dd’

When this was done, I had to create a VMDK-file, otherwise VMWare-server doesn’t understand (there is no support to add ‘raw’ images to an instance. You can create a VMDK-file using dd2vmdk :-P

After this, I added the virtual-disk to the virtual instance. :-)

So I powerup the vmware-instance… and guess what… A Kernel Panic occurs :'(

But… no panic… I started digging into the initial ramdisk. And I found that the SATA-module, which is required for booting a VMWare-SCSI disk, is not available in the initrd :-(

So, I had two options:

  1. Create a new ramdisk with the right modules;
  2. Change the type of the virtual disk into IDE.

I choose for the second option, the main VMDK-file is a plaintext file and all you have to do is change the entry:

ddb.adapterType = “lsilogic”

into

ddb.adapterType = “ide”

And after powerup the system again… It worked :-P

Cool… Win32 Malware on my Gentoo-laptop :D

Today, some stupid virus-writers do think they are smart… although… they scanned my Gentoo Laptop on virusess and mallware…And guess, what… they found malware… Win32 malware…cool:Damn… these people are really stupid, they also offer…

Passed LPIC-1 exam

Today I received an e-mail that I passed the LPIC101 and LPIC102 exams.The results of LPIC101:Your Score: 660Required Passing Score: 500Status: PassTest Section InformationPercent Correct Section 50% Hardware Architecture100% …

Built in referer check of apache httpd

Recently I found that it is possible to do a referer check within the Apache Webserver, so you don’t need any PHP-voodoo… :-D

All you need is the next few lines in your httpd.conf file:


SetEnvIfNoCase Referer “^http://www.example.com/” ownsite

<Directory “/usr/sites/www.example.com/pics”>
Order deny,allow
Allow from env=ownsite
Deny from all
</Directory>


So other sites will receive a 403 forbidden message from you webserver if they try to link to a file in your pics map :-D

Connected Gentoo laptop to Vodafone UMTS

I have from Snow a Nokia N80ie, with UMTS capabilities. Now I wanted to be able to use UMTS on my Gentoo Laptop… After some puzzeling I got it working using bluetooth and wvdial.

First of all you need to make sure that you have the next support enabled in your kernel:

  • Bluetooth
  • PPP (in module or build in)

So first we need to configure bluetooth… so let’s edit /etc/bluetooth/rfcomm.conf :


rfcomm0 {

        bind yes;
        device 00:12:D1:89:FF:FF;
        channel 1;
        comment “Nokia N80ie”;
}


You need to update your device ID with your ID, more information can be found on the wiki of Gentoo.

And last but not least… use the next config for wvdial:


[Dialer Defaults]
Modem = /dev/rfcomm0
ISDN = off
Modem Type = Analog Modem
Baud = 460800
Init = ATX3
Init2 = AT&F Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+cgdcont=1,”IP”,”office.vodafone.nl”
Init4 =
Init5 =
Init6 =
Init7 =
Init8 =
Init9 =
Phone = *99***1#
Phone1 = *99***1#
Phone2 =
Phone3 =
Phone4 =
Dial Prefix =
Dial Attempts = 20
Dial Command = ATM1L3DT
Ask Password = off
Password = vodafone
Username = vodafone
Auto Reconnect = off
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on No Dialtone = on
Stupid Mode = on
Idle Seconds = 0
Auto DNS = on


VMWare on 64bit Gentoo

Currently I installed VMWare on a dual opteron system (with 4GB memory). At this moment I have installed the next virtual machines:Debian 4.0 r1RedHat Enterprise Linux 5Solaris 10Everything works fine and I use it to play with the different syste…

LPIC1 preperations

On the 1st of November I will do the LPIC-101 and LPIC-102 examsn during ‘Linux World’ in Utrecht. So currently I am reading/learning out of a very big book of O’Reilly. I am very curious and I hope that I pass the test in one time But I will ke…

Almost RHCE…

Previous week I had the RHCE Rapid Course… I passed the RHCT exam (100/100 points), but didn’t pass the RHCE exam (needed 70 points… had 67.9).So I requested to do the exam again asap… And I know what I did wrong, but I am not allowed to t…

A memory hole of 512MB

Recently I installed 4 time 1Gigabyte memory in my Dual Opteron at home… I started it up… and the BIOS showed the 4GB (so I was happy), after that Gentoo got booted.

After that Gentoo was booted… I missed 512MB of memory. First I thought it was a Linux problem, but it wasn’t. So I did a major upgrade of the BIOS… and hoped it works… but it didn’t. After some google searched, it seems to be a Tyan Thunder K8W problem.. but there are solutions… but didn’t figure it out yet :-(
Â