PuTTY ssh without password
you can do a ssh without password.. Today we will see how to do this with putty. Generate public/private (DSA)key pair using puttygen. copy the public key to ~/.ssh/authourized_keys on your server (moonware/sunware/skyware). Same key can be used on all the servers. make sure that your home directory permissions are 755 directory permission for .ssh is 700 file permission for authourized_keys is 600 now login using putty and specify your private key in the configuration of putty and also specify your username. Continue readingHow To Install Ailurus On Fedora
For those who have not yet heard about ailurus: <img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/ailuruslogo.png" alt="" width="24" height="24" />What is Ailurus? Ailurus is cross-Linux-<a class="zem_slink freebase/en/linux_distribution" title="Linux distribution" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux_distribution">distribution <a class="zem_slink freebase/en/gnu_general_public_license" title="GNU General Public License" rel="wikipedia" href="http://en.wikipedia.org/wiki/GNU_General_Public_License">GPL <a class="zem_slink freebase/en/computer_software" title="Computer software" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_software">software, which aims at making Linux easier to use, for newcomers. <img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/ailuruslogo.png" alt="" width="24" height="24" />What does Ailurus hope to do? Ailurus hopes to reduce the difficulty which newcomers encounter when they are using Linux. Continue readingSecurity — Installing and monitoring snort logs.
Snort is a very good security tool to install if you are concerned about the security of your system. I find it really useful but the problem is I keep forgetting to monitor the logs so what did I do, I installed snort and configured cron to send to logs everyday, here’s how. On fedora, snort is available in the repository but the rules are not. So to install snort just type in the following in a terminal: Continue readingLinux Community\’s unoffical mascot taken by Microsoft
Ok, this is mostly a Linux advocacy and I kind of completely agree with <a href="http://linuxlock.blogspot.com/2008/11/congrats-linux-community-youve-been.html" target="_blank">this. Here’s the main text, but dont forget to go to the page to read the comments( quite good and interesting thoughts by lot of people). OK group…let’s see a show of hands… How many people believe that the current way Linux markets itself is sufficient? That would be the combination of apathy, inertia and a smattering of guerrilla marketing. Continue readingModifying the <dot>bashrc or bash startup files.
Find the article <a href="http://blog.infinitered.com/entries/show/4">here.
Copy here:<div class="entrybody">
If you’ve been learning the <a set="yes" linkindex="8" href="http://en.wikipedia.org/wiki/Command_line_interface" title="Wikipedia Entry: Command line interface">command-line and you have the basics down (you should be, as the most effective way to use a computer is a combination of a GUI and command-line), the next step is to customize your environment.<div class="info_box">
<span class="info_box_title">Beginner’s Tip: ”command-line” and ”shell” are often used synonymously. In unix, technically speaking, the shell is what processes the command-line, but usually, they mean the same thing
The ability to fully customize your <a set="yes" linkindex="9" href="http://en.wikipedia.org/wiki/Unix_shell" title="Wikipedia Entry: Unix Shell (computing)">shell is one of the most powerful things about the command-line. It’s a dry subject, and mastering it won’t get you favors from the opposite sex (although it should), but it can be very useful.
There are many ways to customize your shell, but the first one you should learn is modifying your <a linkindex="10" href="http://en.wikipedia.org/wiki/bash" title="Wikipedia Entry: bash">Bash startup files (assuming your shell is Bash, which is the default in OS X, Linux, and many other unices).
When I first learned how to customize bash, I found an overwhelming amount of information and opinion, which made it difficult. This article is intended to give you the fundamental concepts so that you can create your own startup files, and understand how they work. To give you an example, I go through a subset of my own files, section by section.
Let’s install the example startup files<div class="info_box">
<span class="info_box_title">Beginner’s Tip: Directory and folder are synonymous. Often folder is used in Windows and OS X and directory is used in Linux, however even Linux represents a directory as a folder graphically
Below are the two example startup files: .bashrc and .bash_profile.
If you would like to use these as your startup files, follow the following directions for your OS.
OS X:
-
If you want a backup of your existing files, use the following commands (if the files don’t already exist, you will get an error. The files will be named .bashrc_ORIGINAL and .bash_profile_ORIGINAL in your home folder):<pre class="textmate-source">cp ~/.bashrc ~/.bashrc_ORIGINAL ; cp ~/.bash_profile ~/.bash_profile_ORIGINAL
-
Copy <a linkindex="11" href="http://www.infinitered.com/settings/dotfiles/osx/.bash_profile">.bash_profile and <a linkindex="12" href="http://www.infinitered.com/settings/dotfiles/osx/.bashrc">.bashrc to your home folder.
There are a variety of ways to do this, but the simplest is to use the <a linkindex="13" href="http://en.wikipedia.org/wiki/cURL" title="Wikipedia Entry: cURL">curl command:<pre class="textmate-source">curl -o ~/.bash#1 "http://www.infinitered.com/settings/dotfiles/osx/.bash{rc,_profile}" -
You do not need to log out, just create a new window or tab in iTerm, or a new window in Terminal.
Linux and other unices:
-
If you want a backup of your existing files, use the following commands (if the files don’t already exist, you will get an error. The files will be named .bashrc_ORIGINAL and .bash_profile_ORIGINAL in your home folder):<pre class="textmate-source">cp ~/.bashrc ~/.bashrc_ORIGINAL ; cp ~/.bash_profile ~/.bash_profile_ORIGINAL
-
Copy <a linkindex="14" href="http://www.infinitered.com/settings/dotfiles/generic/.bash_profile">.bash_profile and <a linkindex="15" href="http://www.infinitered.com/settings/dotfiles/generic/.bashrc">.bashrc to your home directory.
There are a variety of ways to do this, but the simplest is to use the <a linkindex="16" href="http://en.wikipedia.org/wiki/Wget" title="Wikipedia Entry: Wget">wget (or curl for BSD and others) commands:<pre class="textmate-source">wget -O ~/.bashrc "http://www.infinitered.com/settings/dotfiles/generic/.bashrc"
wget -O ~/.bash\_profile \"http://www.infinitered.com/settings/dotfiles/generic/.bash\_profile\"</pre>
**or** <pre class=\"textmate-source\">curl -o ~/.bash#1 \"http://www.infinitered.com/settings/dotfiles/generic/.bash{rc,_profile}\"</pre>
- Log out then log back in in order to load .bash_profile. Alternatively, you can do a source ~/.bash_profile to run the files.
What the heck are bash Startup Files?<div class="info_box">
<span class="info_box_title">Beginner’s Tip: ~ represents your home folder, it is short-hand notation so that you don’t have to type the whole thing; it is also used when you don’t know the home folder; for example, my code above works, no matter where your home folder/directory is.