Web

IP address change notifier script

This is a simple bash script that is run by crontab every 5 minutes on a linux box. It e-mails me the new address when a change of IP address is detected. The script (ipchangemail.sh) #!/bin/bash # Check if IP-address has changed. If a change has occured, mail me the new address # Add the […]

Read More
Misc

Mount a RAID Reconstructor disk image in linux

This post came to life because I had gotten a image file of a 120GB linux ext2 RAID partition that I couldn’t access using Windows software. The partition had been rescued by RAID Reconstructor, a Windows software that can rebuild RAID arrays by combining the disks from the RAID and store it as one image […]

Read More
Misc

Resize a VMWare virtual disk

This post describes how you can resize your VMWare disk in linux using the vmware-vdiskmanager tool, a offline disk manipulation utility. I’ve been using VMWare Workstation version 6.5 on a Ubuntu 8.10 Intrepid Ibex linux installation. Shrink a disk image vmware-vdiskmanager -k diskname.vmdk Expand the disk to the specified capacity vmware-vdiskmanager -x <new-capacity> diskimage.vmdk Example […]

Read More
Misc

Vmware Workstation 6.5 On Ubuntu 8.10 Modifiers Keys Not Working

This post describes a quick fix to enable arrow, delete, ins, end and other special keyboard keys in a VMWare Workstation 6.5 for linux like the norwegian/norske letters/bokstavene ÆØÅ. Solution #1 echo ‘xkeymap.nokeycodeMap = true’ > ~/.vmware/config This has been tested successfully on Windows hosts. Solution #2 Another solution is to paste the following code […]

Read More
Linux

Force a user to change password upon first login

This is how you can force a Redhat user to change his password upon first login on a Redhat 5 installation. This might work on other versions and distributions… First lock the account to prevent the user from logging in until the change has been made # usermod -L <username> Change the password expiration date […]

Read More