Wednesday, November 7, 2012 at 2:30 AM | 0 comments  
Installing Openssl locally

 ./config --prefix=./ --openssldir=./openssl enable-cms

make
make test

make install
Posted by Anvesh

An excerpt from

http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/


Kill process using kill command under Linux/UNIX

kill command works under both Linux and UNIX/BSD like operating systems.

Step #1: First, you need to find out process PID (process id)

Use ps command or pidof command to find out process ID (PID). Syntax:
ps aux | grep processname
pidof processname

For example if process name is lighttpd, you can use any one of the following command to obtain process ID:
# ps aux | grep lighttpdOutput:

lighttpd  3486  0.0  0.1   4248  1432 ?        S    Jul31   0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
lighttpd 3492 0.0 0.5 13752 3936 ? Ss Jul31 0:00 /usr/bin/php5-cg

OR use pidof command which is use to find the process ID of a running program:
# pidof lighttpdOutput:

3486

Step #2: kill process using PID (process id)

Above command tell you PID (3486) of lighttpd process. Now kill process using this PID:
# kill 3486
OR
# kill -9 3486
Where,

  • -9 is special Kill signal, which will kill the process.

killall command examples

DO NOT USE killall command on UNIX system (Linux only command). You can also use killall command. The killall command kill processes by name (no need to find PID):
# killall -9 lighttpd
Kill Firefox process:
# killall -9 firefox-bin
As I said earlier killall on UNIX system does something else. It kills all process and not just specific process. Do not use killall on UNIX system (use kill -9).

Posted by Anvesh
Linux distros usually give the option of choosing various environments while setting up itself and the chosen one is installed but not others!
Iam presently doing it in Mandriva 2009.

Sometimes if u want to shift tp another environment
Usually the process is you log out and see that there is an icon to shift another enviroment...so the process is actually Shifting to another session that is another environment like kde , Gnome, etc.

But it may also be the case that the environment you want to shift is not already installed.
So below is the command to install the new environment!
You have to execute this while in root mode or super-user.
Its better to put the Installation CD/DVD in the CD/DVD-Drive as the system may copy the necessary files from the DVD to the system.
Or else if you are connected to the internet it will download itself.


urpmi task-kde

Usually once you type this command it will display the possible options that come with kde specifically.
Like the versions....kde-3, kde-4.1, kde-3-devel, etc

So u can choose the one you want and install accordingly
Posted by Anvesh
The basic command actually is mkfs.vfat /dev/sdb1
vfat is a filesystem for pendrive and is mostly used because it is the filesystem through which u can access the pendrive in linux as well as in windows

The /dev/sdb1 is the address of my pendrive which i have seen after sing the more command.So see accordingly and change the address in the command respectively in your computer.

The Problem i faced while doing this was that mkfs.vfat command was not found.
So when i did some googling i found out that all this things are actually in a package called dostools .

So while in su(super user mode or root) i installed the package dostools by

urpmi dostools

and this installed the dostools package and i found the missing package installed.

So Finally learnt to format a pendrive.
Posted by Anvesh
more /etc/mtab
This is the command we can use to see the devices(external and internal) loaded in your computer in linux.

Im using Madriva 2009.
Posted by Anvesh
http://www.linfo.org/alias.html
Posted by Anvesh
Borrowed from http://ubuntuforums.org/showthread.php?t=396897

@Adramalech
Ctrl+space => set mark
Ctrl+W => cut
Ctrl+Y => paste

supposed you wrote in terminal:
"Im happy using Ubuntu"

and you want to copy the word "using".

Move the cursor to the letter "u" of "using", press ctrl+space. (set mark)
Move the cursor to the "g" of "using", press Ctrl+W (Cut starting from lastmark)
Move the cursor to where you want to paste, press Ctrl+Y (paste)
Posted by Anvesh