nav-left cat-right
cat-right

How to change SSH login banner messages?...

Ever wondered how to change SSH login banner messages? Look at the Banner and PrintMotd options options available with SSH. Banner: In some jurisdictions, sending a warning message before authentication may be relevant for getting legal protection. The contents of the specified file are sent to the remote user before authentication is allowed. This option is only available for protocol version 2. By default, no banner...

Music album from GEC SKP : Invitation...

Click Here to Listen the Promo Click Here to Register for Samagamam –

Reminder – Alumni GEC Sreekrishnapuram...

Hi, This is to remind every one to register your presence for “Samagamam – 2009″ as early as possible. Please understand that without an idea of the number of people it will be very hard to organize the whole events as this is our first alumni get together. So kindly take few minutes to inform your presence for 5th & 6th DEC through the below link. For girls, we are trying to arrange accommodation...

Samagamam 2009...

The Principal, Members of Staff and Students of Govt. Engineering College, Sreekrishanapuram Cordially invite you with family to attend The first Reunion of  the alumnus (Samagamam 2009) at the College Campus on Saturday 05/12/2009. Click here and mark your presence for the event PROGRAMME – 05/12/2009 (SATURDAY) 0800 Hrs onwards Alumni arrive in the Campus Reception & Registration (In Mannampatta Campus / Main...

SED: change/insert/append lines after matching a p...

Do you want to change/insert/append lines after matching a pattern from a file? If yes, you can use sed to do that. I’m pasting the relevant parts from sed manpage followed by some examples. a \ text - Append text, which has each embedded newline preceded by a backslash. i \ text - Insert text, which has each embedded newline preceded by a backslash. c \ text - Replace the selected lines with text, which has each...

Linux commands: cut and paste...

cut and paste can be handy sometimes, especially when you have to manipulate files based on rows and columns. simple usages of cut and paste: file1 ****** first second first second first second file2 ****** 3 4 3 4 3 4 Let me say, I want to cut first column of file2 and paste them as last column of file1. Here you go # cut -d" " -f1 file2 |paste -d" " file1 - first second 3 first second 3 first second...

SNMP packages for Debian Machine...

If you want to configure SNMP on a Debian machine, you should install the following packages. You can use apt-get to install all these packages. libsensors3_1%3a2.10.1-3_i386.deb libsnmp9_5.2.3-7etch2_i386.deb libsnmp-base_5.2.3-7etch2_all.deb libsysfs2_2.1.0-1_i386.deb snmp_5.2.3-7etch2_i386.deb snmpd_5.2.3-7etch2_i386.deb ~mohammed

SED: newline and embedded newline characters...

The multiline Next (N) command creates a multiline pattern space by reading a new line of input and appending it to the contents of the pattern space. The original contents of pattern space and the new input line are separated by a newline. The embedded newline character can be matched in patterns by the escape sequence “\n”. In a multiline pattern space, the metacharacter “^” matches the very...

How to remove non-printable/control characters fro...

You may find difficulties with non-printables in your files. You can see such characters if you open your files in editors like vi. Eventhough commands like “cat” won’t output such non-printable characters into console by default, you can’t remove them by redirecting “cat” output to a different file. Here is a way to remove non-printable characters with a combination of sed and tr commands. Step...

TMOUT: How to set auto-logout time for SSH session...

If you want to set timeouts for user sessions on your Linux machine, you can use the variable TMOUT. You can set a value for TMOUT in bash_profile or bashrc file. # auto-logout if the shell session is idle for 1 hour TMOUT=3600 ~mohammed

« Previous Entries