Archive for the ‘Linux’ Category

VMWare stuck tasks

Monday, February 23rd, 2009

Sometimes I get a stuck or repeating task that prevent’s operations.  This seams to clear it up almost every time:

service mgmt-vmware restart
I’ve read that if that doesn’t work to try:
service vmware-vpxa restart

Sub interfaces in Linux

Tuesday, July 15th, 2008

A friend at work showed me this:

You can add additional IP addresses to your interface.

edit /etc/sysconfig/network-scripts/ifcfg-eth0:1

My origonal nic is eth0, subinterface is eth0:1

DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
HWADDR=00:15:58:73:d8:a9

Then bring up the new interface.

Change MAC address

Tuesday, July 15th, 2008

A friend at work showed me this trick.  It’s usefull if you change network cards and need your old MAC address.

ifconfig eth0 hw ether 00:00:00:00:00:00

 

 

DD progress bar

Wednesday, May 7th, 2008

I was wiping a drive today and didn’t much care for the way dd doesn’t show anything until it’s complete.

I found this:

dd if=/dev/zero of=/dev/hda & watch -n5 -- pkill -USR1 ^dd$

–edit–
A reader posted this, but I accedentally marked him as spam.

dd if=/dev/zero of=/dev/hda & pid=$! && while kill -USR1 $pid; do sleep 15; done