Play media files in fedora.

2010-06-06 1 min read Linux
Found <a href="http://fedoraforum.org/forum/showthread.php?t=100206">here .<div class="smallfont"> Media (DVD, web content, video & audio) playback in Fedora <hr style="color: #d1d1e1; background-color: #d1d1e1;" size="1" />

PuTTY ssh without password

2010-06-05 1 min read Linux
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 reading

How To Install Ailurus On Fedora

2010-06-05 2 min read 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 reading

Security — Installing and monitoring snort logs.

2010-06-04 2 min read Fedora Linux
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&#8217;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 reading

Linux Community\’s unoffical mascot taken by Microsoft

2010-06-04 3 min read Linux
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&#8217;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&#8217;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 reading

Modifying the <dot>bashrc or bash startup files.

2010-06-03 20 min read Linux

Find the article <a href="http://blog.infinitered.com/entries/show/4">here.

Copy here:<div class="entrybody">

If you&#8217;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&#8217;s Tip: &#8221;command-line&#8221; and &#8221;shell&#8221; 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&#8217;s a dry subject, and mastering it won&#8217;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&#8217;s install the example startup files<div class="info_box">

<span class="info_box_title">Beginner&#8217;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:

  1. If you want a backup of your existing files, use the following commands (if the files don&#8217;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

  2. 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}"

  3. 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:

  1. If you want a backup of your existing files, use the following commands (if the files don&#8217;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

  2. 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> 
  1. 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&#8217;s Tip: ~ represents your home folder, it is short-hand notation so that you don&#8217;t have to type the whole thing; it is also used when you don&#8217;t know the home folder; for example, my code above works, no matter where your home folder/directory is.

<a linkindex="17" href="http://en.wikipedia.org/wiki/bash" title="Wikipedia Entry: bash">Bash, as well as other <a linkindex="18" href="http://en.wikipedia.org/wiki/Unix_shell" title="Wikipedia Entry: Unix shell">unix shells, have files that run when they start. You can modify these files to set preferences, create aliases and functions (a kind of micro-script), and other such fun.

When you start an interactive shell (log into the console, open terminal/xterm/iTerm, or create a new tab in iTerm) the following files are read and run, in this order:

  1. /etc/profile
  2. /etc/bashrc
  3. ~/.bash_profile
  4. ~/.bashrc (Note: only if you call it in .bash_profile or somewhere else)

When an interactive shell, that is not a login shell, is started (when you call &#8221;bash&#8221; from inside a login shell, or open a new tab in Linux) the following files are read and executed, in this order:

  1. /etc/bashrc
  2. ~/.bashrc<div class="info_box"><span class="info_box_title">Beginner&#8217;s Tip: Normally you can&#8217;t see the . files (files that start with a period) because they are hidden. Depending on your OS, you can simply turn on hidden files. Another option is to open the file in the command-line. Here are a few examples:

In shell: pico .bashrc
In shell: vi .bashrc
In OS X: open .bashrc
In GNOME: gedit .bashrc

/etc/profile and /etc/bashrc are run for all users on the system. Often on your workstation, there is only one user, you. But in systems with more than one user, these files can be used to set generic settings for all users. The files in your home folder, ~/.bashrc and ~/.bash_profile, are only for your particular user (since /etc/bashrc is run before ~/.bashrc, you can override anything in /etc/bashrc by simply setting it again in ~/.bashrc). Normally I only change these, since they are in your home folder, and only you have rights to them, you can change them without worry of affecting anyone else.

When your session starts, these files are run, just as if you typed the commands in yourself. Anything that normally works in the shell works in these files. Since .bash_profile only runs when you first login, you set very little there; the only important thing is your <a linkindex="19" href="http://www.linfo.org/path_env_var.html" title="Path definition">PATH. bashrc is where the meat goes, and will be where you spend all your time.

Continue reading

Logwatch for Linux Systems.

2010-06-02 2 min read Fedora Linux
On my personal <a class="zem_slink freebase/en/client" title="Client (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Client_%28computing%29">desktop at home, I like to see the <a class="zem_slink freebase/en/statistics" title="Statistics" rel="wikipedia" href="http://en.wikipedia.org/wiki/Statistics">statistics at least once a day, for what was installed, what was run with <a class="zem_slink freebase/en/sudo" title="Sudo" rel="homepage" href="http://www.sudo.ws/">sudo and other such details like <a class="zem_slink freebase/en/kernel" title="Kernel (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Kernel_%28computing%29">kernel errors. Running this monotonously every day is quite boring, so comes to rescue is logwatch. I have <a class="zem_slink freebase/en/fedora" title="Fedora" rel="homepage" href="http://fedoraproject. Continue reading
Older posts Newer posts