Archive for the 'Linux' Category

Increasing disk size of a VMWare image

Tuesday, August 26th, 2008

Very useful tip from Novel CoolSolutions on how to increase the disk size of a VMWare image: http://www.novell.com/coolsolutions/tip/15344.html

I currently develop mostly in Windows using Eclipse, so I decided to create an openSuse 11.0 vmware image to test some of my code, as our product supports various platforms, including some flavors of Linux. The 10GB disk size soon became too small and now I need to increase it. Here are the steps I had to do:

To resize the guest Os hard disk size, I issued:

    vmware-vdiskmanager -x 15GB opensSuse.vmdk

However, step 1 only resized the disk, not the partitions. Starting the partition manager from within the guest Os didn’t work, because the partition can’t be altered while it is still mounted. A simple solution to overcome this issue is to use a Live CD. I still had the openSuse live CD ISO image I used to install the guest Os, so I just pointed the guest OS cd-rom drive to that .iso file.

After booting from the CD-ROM drive, go to Yast -> System -> Partitioner , select the partition you want to expand and click Resize. Select the new size for the partition and click Ok to apply the changes to the partition table.

Reboot your machine and voila! You existing partition will now have the new size.

Popularity: 4% [?]

Reset user account in AIX

Friday, December 1st, 2006

This seems to be the trouble week. After struggling with Websphere errors, then it was DB2 and now AIX. I changed my password, but at the same time I had an FTP connection opened to the machine using SmartFTP client. It happens that the connection timed out and the FTP client tried to login again.. and again and again… with the old password :-)

Result: account blocked! Message displayed:

3004-303 There have been too many unsuccessful login attempts; pleasesee the system administrator.

Procedure to reset the account:
1.  chsec -f
/etc/security/lastlog -a "unsuccessful_login_count=0" -s username

2. 

chuser
"account_locked=false" username

 

Popularity: 15% [?]

Backspace in Vim

Friday, November 24th, 2006

One of the things I like to have in VIM is the backspace key working just like in all the other editors. I like the backspace key to delete the characters in in the right-to-left direction and delete also the line breaks when it gets to the beginning of a line. However, most of default vimrc files I find don’t have this enabled. Sometimes the backspace doesn’t delete at all, other times it doe not delete the line breaks…. arghh…

To have the backspace key in VIM behaving just like in all the other text editors,  just add the following line to your vimrc file:

set backspace=indent,eol,start 

Popularity: 25% [?]


Close
E-mail It