Showing posts with label Unix. Show all posts
Showing posts with label Unix. Show all posts

Thursday, February 20, 2014

X11 Application - XServer

To run X-window/X11 application from remote machine
**********************************************
Install http://mobaxterm.mobatek.net/
This is XServer and X11Enabeled.

Now if on remote machine user is not enabeled to use X11 application you will notice something like this...

X11 connection rejected because of wrong authentication.
X connection to localhost:11.0 broken (explicit kill or server shutdown).

To solve this problem follow steps below
http://joelinoff.com/blog/?p=729

This one worked for me !

Thursday, November 14, 2013

Some handy Unix/Linux commands

To find a process with specific string and then kill a series of such processes.
-------------------------------------
kill -9 `ps -ef | grep <string> | grep -v grep | awk '{print $2}'`


Make a file void / empty
------------------------------------
cat /dev/null > abc.txt


Super duper command to remove cache/page cache from Linux
---------------------------------------------------------------------------------------
free && sync && echo 3 > /proc/sys/vm/drop_caches && free

More on this refer...
http://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system