Monday, August 13, 2012

VMPlayer on ubuntu precise (12.04 LTS)

Now when I tried show Windows the door at office, well every one knows, it's only in my dreams.

Now, at home well, you know, it has always been Linux.

So wanted to setup Windows as VM to run some age old stuffs, Tried Virtual box, KVM and now VMPlayer (Yes, its open source now).

Well, as usual some hickups - I see this as an opport. to explore and confirm Linux is the way forward.

To the point -
When running vmplayer 4.0.4 - couldn't compile stuffs for Virtual network device.

The solution is to run a patch, available here - runme

If you get version not supported, edit the patch*.sh and change 4.0.2 to 4.0.4

Also, you have to sudo.

~Peace

Tuesday, June 19, 2012

Whats with the nofile?

Well, as with today, I faced a new issue - not really an issue - but more of an application requirement, in terms of configuration and performance.

We had need to increase the open files descriptor.

"Too many open files' error" - was the talk of the day.

Well here is how we solved it.

/etc/security/limits.conf , added two lines one for soft and another for hard.
user soft nofile 2048 (default 1024)
user hard nofile 65536 

Then, edited the following files under the /etc/pam.d directory for login, sshd, sudo - to check if the following entries are present.

session required pam_limits.so

Then verified with ulimit -Hn and -Sn options to see the changes reflect.

Sometimes a logoff or a system restart is required.

~Peace.

Wednesday, March 7, 2012

Search for a process and issue UNIX signals

Hello,

I found this command or rather a sequence these commands to help search and issue signals defined under kill list.

Please see kill -l for the comprehensive list of Unix defined SIGNALS.

now the cool stuff

ps -aef | grep "text/command signature you wanted to search for" | awk '{print $2}' | xargs kill -2

awk - will search and give you the second column value
xargs - passes the pipelined arguments to the following command - Read from the previous command.

kill -2 - SIGINT

Besides, having fun as usual.

~Dixie Sebastianappan

Thursday, January 5, 2012

Parted an easier way to go.. (Simple tools to partition and specify RAIDS, Flags, so on)

Had an interesting opportunity to partition an enterprise server at work, this is normally done by the Server Management Team.

This time around I had to do it, for some reason...

Simple and sleek commands.. I usually use the GUI to partition, but there was an issue with VNC server with our installation..

Anyways

# parted
(parted) -
()print all
()mkpart extended ext2 50.4gb 322gb
()mkpartfs logical ext2 50.4gb 322gb
()print all

shows the new /dev/sda5 or other sequence number

Now,

/etc/fstab should be updated

/dev/sda5 /mount_point defaults 0 0

Done...