<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Person @ CREATIVEDESK &#187; GNU / Linux</title>
	<atom:link href="http://hardik.in/category/gnu-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://hardik.in</link>
	<description>Hardik Dalwadi</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:47:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Quickest Way To Create ISO Image in GNU/Linux Using Command Line</title>
		<link>http://hardik.in/2009/06/25/quickest-way-to-create-iso-image-in-gnulinux-using-command-line/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://hardik.in/2009/06/25/quickest-way-to-create-iso-image-in-gnulinux-using-command-line/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:34:38 +0000</pubDate>
		<dc:creator>Hardik Dalwadi</dc:creator>
				<category><![CDATA[Archives]]></category>
		<category><![CDATA[GNU / Linux]]></category>
		<category><![CDATA[Time Pass]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://hardik.in/?p=30</guid>
		<description><![CDATA[I am assuming that you have mount CDROM on your GNU/Linux base machine, now you want to create ISO image of that CD. Generally people will do that using a dd command. person@CREATIVEDESK:/$ dd if=/dev/cdrom of=deepOfix.iso You can do same thing by using cat person@CREATIVEDESK:/$ cat /dev/cdrom > deepOfix.iso That&#8217;s all for now&#8230;]]></description>
			<content:encoded><![CDATA[<p><cite>I am assuming that you have mount CDROM on your GNU/Linux base<br />
machine, now you want to create ISO image of that CD. Generally people<br />
will do that using a <a href="http://en.wikipedia.org/wiki/Dd_(Unix)">dd</a> command.<br />
</cite></p>
<pre>
person@CREATIVEDESK:/$ dd if=/dev/cdrom of=deepOfix.iso
</pre>
<p>You can do same thing by using  <a href="http://en.wikipedia.org/wiki/Cat_(Unix)">cat</a></p>
<pre>
person@CREATIVEDESK:/$ cat /dev/cdrom > deepOfix.iso
</pre>
<p>That&#8217;s all for now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hardik.in/2009/06/25/quickest-way-to-create-iso-image-in-gnulinux-using-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH Tips and Tricks</title>
		<link>http://hardik.in/2009/06/25/ssh-tips-and-tricks/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://hardik.in/2009/06/25/ssh-tips-and-tricks/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:47:47 +0000</pubDate>
		<dc:creator>Hardik Dalwadi</dc:creator>
				<category><![CDATA[Archives]]></category>
		<category><![CDATA[GNU / Linux]]></category>
		<category><![CDATA[Time Pass]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://hardik.in/?p=34</guid>
		<description><![CDATA[Many of you know that how to do password less login with SSH. Here is simple way to do that. First of all, please generate authentication keys for ssh by using ssh-keygen command. #ssh-keygen -t dsa Above command will generate authentication keys for ssh in our home directory. For password less login we need &#8216;id_dsa.pub&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p><cite>Many of you know that how to do password less login with SSH.<br />
Here is simple way to do that. First of all, please generate authentication keys for ssh by using <a href="http://www.linuxmanpages.com/man1/ssh-keygen.1.php">ssh-keygen</a> command.</p>
<pre>#ssh-keygen -t dsa</pre>
<p>Above command will generate authentication keys for ssh in our home directory. For password less login we need &#8216;id_dsa.pub&#8217; file. Now we have to transfer this key to our server where we have to enable public key authentication. ssh-copy-id is best friend to copy that key to our server&#8217;s ~.ssh/authorized_keys file.</p>
<pre>#ssh-copy-id -i /root/.ssh/id_dsa.pub person@CREATIVEDESKDESK</pre>
<p>After giving password it will copy those key to our server. That&#8217;s it, you have enable your password less login from your Linux<br />
Laptop/Desktop to your server. Just ssh to our server to see the magic.</p>
<pre>#ssh person@CREATIVEDESKDESK</pre>
<p>If you want to know other way to do this, i will recomend to visit <a href="http://www.biostat.jhsph.edu/bit/nopassword.html<br />
"> [1] </a> befor going further.</p>
<p>[1] http://www.biostat.jhsph.edu/bit/nopassword.html</p>
<p>Now my magic will start from here. For example, one often needs to log in to servers  CREATIVEDESK, red, green, blue.</p>
<p>  1. create a simple script called &#8216;ssh-to-server&#8217; and put it in<br />
     /usr/local/sbin:</p>
<pre>      #! /bin/bash

     ssh `basename $0` $*</pre>
<p>  2. create symlinks with names of the servers:</p>
<pre>      # cd /usr/local/sbin

     # chmod 0755 ssh-to-server

     # ln -s ssh-to-server CREATIVEDESK

     # ln -s ssh-to-server red

     # ln -s ssh-to-server green

     # ln -s ssh-to-server blue</pre>
<p>Then (if your path includes /usr/local/sbin) one can simply ssh to &#8216;CREATIVEDESK&#8217; server by typing &#8216;CREATIVEDESK&#8217; (or run a command on the &#8216;CREATIVEDESK&#8217; server by &#8216;CREATIVEDESK uptime&#8217;). If the servers need to be accessed by fully qualified domain name, symbolic link to the ssh-to-server script to the FQDN.</p>
<p>Examples,</p>
<p>1. Server&#8217;s uptime</p>
<pre>#CREATIVEDESK uptime
 18:34:28 up 62 days, 22:49,  2 users,  load average: 0.12, 0.05, 0.01</pre>
<p>2. Copy sinlge or multiple file with or without archive</p>
<p>Transfering Single file:</p>
<pre># cat foo | CREATIVEDESK cat > foo</pre>
<p>Transfering Multiple files with archive in desire remote location:</p>
<pre>#tar -c -f - bar | CREATIVEDESK "cd /tmp; tar -x -f -"</pre>
<p>You can find lot SSH Tips and Tricks on the internet. I have a good <a href="http://www.dearm.co.uk/cotwssh/">reference </a> for you.</p>
<p>That&#8217;s all for now&#8230;<br />
</cite></p>
]]></content:encoded>
			<wfw:commentRss>http://hardik.in/2009/06/25/ssh-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitor Debian server with monit</title>
		<link>http://hardik.in/2009/06/25/monitor-debian-server-with-monit/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://hardik.in/2009/06/25/monitor-debian-server-with-monit/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 19:13:05 +0000</pubDate>
		<dc:creator>Hardik Dalwadi</dc:creator>
				<category><![CDATA[Archives]]></category>
		<category><![CDATA[GNU / Linux]]></category>
		<category><![CDATA[Public]]></category>
		<category><![CDATA[Time Pass]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Monit]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://hardik.in/?p=56</guid>
		<description><![CDATA[Monit is a system monitoring utility which allows an admin to easily monitor files, processes, directories, or devices on your Debian system. It can also be used for automatic maintenance/repairs &#8211; by executing particular commands when errors arise. To ease of administration monit provide a web based monitoring interface, with SSL support. To install monit [...]]]></description>
			<content:encoded><![CDATA[<p><cite>Monit is a system monitoring utility which allows an admin to easily monitor files, processes, directories, or devices on your Debian system. It can also be used for automatic maintenance/repairs &#8211; by executing particular commands when errors arise. To ease of administration monit provide a web based monitoring interface, with SSL support. To install monit in to your Debian server, Simply use apt-get:</cite></p>
<pre>
#apt-get install monit
</pre>
<p>Once installed, you&#8217;ll find the main configuration file located at /etc/monit/monitrc. Below is sample global configuration file, which will also explain some keywords. for more information do <a href="http://mmonit.com/monit/documentation/monit.html">man monit</a></p>
<pre>
# poll at 2-minute intervals. Monit will wakeup every two minute to
# monitor things. Time must be given in seconds.
set daemon  120

#If port 25 broken for primary SMTP server,
#all alerts will redirect to secondary SMTP server or
#localhost after 15 seconds timeout.
set mailserver mail.bar.com, mail.foo.com port 10025,
    localhost with timeout 15 seconds

# You can define your mail-notification format. Do man monit
mail-format {
   from: foo@bar.com
   subject: $SERVICE $EVENT at $DATE
   message: Monit $ACTION $SERVICE at $DATE on $HOST,

   Yours sincerely,
   Foo Bar.
   }

# Make monit start its web-server. So you can access it from webrowser.
set httpd port 2812 and
use address 192.168.0.1 # or bar.com

##Monit web-server ACL.
allow localhost       # allow localhost to connect to the server and
allow 192.168.1.2     # allow 192.168.1.2 to connect to the server,
                     # You can give only one entry per line.

allow foo:bar     # user name and password for authentication.

allow bar:bar   # set multiple user to access through browser.
</pre>
<p>Below is some of the checks that can monitor the various services on the server.</p>
<pre>
check process apache with pidfile /var/run/apache2.pid
  start program = "/etc/init.d/apache2 start"
  stop  program = "/etc/init.d/apache2 stop"
  if failed host 127.0.0.1 port 80
       protocol http then restart
  if 5 restarts within 5 cycles then timeout

check process mysql with pidfile /var/run/mysqld/mysqld.pid
  group database
  start program = "/etc/init.d/mysql start"
  stop program = "/etc/init.d/mysql stop"
  if failed host 127.0.0.1 port 3306 then restart
  if 5 restarts within 5 cycles then timeout

check process sshd with pidfile /var/run/sshd.pid
  start program  "/etc/init.d/ssh start"
  stop program  "/etc/init.d/ssh stop"
  if failed port 22 protocol ssh then restart
  if 5 restarts within 5 cycles then timeout

check process named with pidfile /var/run/named.pid
  start program = "/etc/init.d/bind start"
  stop program = "/etc/init.d/bind stop"
  if failed host 127.0.0.1 port 53 type tcp then alert
  if failed host 127.0.0.1 port 53 type udp then alert
  if 5 restarts within 5 cycles then timeout

check process exim4 with pidfile /var/run/exim4/exim.pid
  start program = "/etc/init.d/exim4 start"
  stop program = "/etc/init.d/exim4 stop"
  if failed host 127.0.0.1 port 25 protocol smtp then alert
  if 5 restarts within 5 cycles then timeout

check process clamavd with pidfile /var/run/clamav/clamd.pid
  start program = "/etc/init.d/clamav-daemon start"
  stop  program = "/etc/init.d/clamav-daemon stop"
  if failed unixsocket /var/run/clamav/clamd.ctl then restart
  if 5 restarts within 5 cycles then timeout
</pre>
<p>You can also include other configuration files via include directives:</p>
<pre>
include /etc/monit/default.monitrc
include /etc/monit/mysql.monitrc
</pre>
<p>After modifying the configuration file you should check for the syntax to make sure they are correct. To do this run:</p>
<pre>
# monit -t
</pre>
<p>Now you can run monit directly:</p>
<pre>
# monit
</pre>
<p>Once monit is running you can check for activity with your web-browser. You can of course use the Debian init script to start the monitoring:</p>
<pre>
/etc/init.d/monit start
</pre>
<p>For this to work you must enable the service by changing the file /etc/default/monit:</p>
<pre>
# You must set this variable to for monit to start
startup=1

# To change the intervals which monit should run uncomment
# and change this variable.
# CHECK_INTERVALS=180
</pre>
<p>For more example of monit check the <a href="http://www.tildeslash.com/monit/">monit homepage</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hardik.in/2009/06/25/monitor-debian-server-with-monit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is Free Software?  Translated in Gujarati.</title>
		<link>http://hardik.in/2009/06/26/what-is-free-software-translated-in-gujarati/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://hardik.in/2009/06/26/what-is-free-software-translated-in-gujarati/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 14:43:53 +0000</pubDate>
		<dc:creator>Hardik Dalwadi</dc:creator>
				<category><![CDATA[Archives]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[GNU / Linux]]></category>
		<category><![CDATA[Gujarati]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Translation]]></category>

		<guid isPermaLink="false">http://hardik.in/?p=65</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_66" class="wp-caption alignnone" style="width: 622px"><a href="http://hardik.in/2009/06/26/what-is-free-software-translated-in-gujarati/free-software-defination-gujarati/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" rel="attachment wp-att-66"><img src="http://hardik.in/wp-content/uploads/2009/06/Free-Software-Defination-Gujarati.png" alt="Free Software Defination in Gujarati" title="Free-Software-Defination-Gujarati" width="612" height="792" class="size-full wp-image-66" /></a><p class="wp-caption-text">Free Software Defination in Gujarati</p></div>
]]></content:encoded>
			<wfw:commentRss>http://hardik.in/2009/06/26/what-is-free-software-translated-in-gujarati/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For Python, ASCII, Console lovers&#8230;</title>
		<link>http://hardik.in/2009/06/26/for-python-ascii-console-lovers/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://hardik.in/2009/06/26/for-python-ascii-console-lovers/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 14:50:52 +0000</pubDate>
		<dc:creator>Hardik Dalwadi</dc:creator>
				<category><![CDATA[GNU / Linux]]></category>
		<category><![CDATA[Time Pass]]></category>

		<guid isPermaLink="false">http://hardik.in/?p=75</guid>
		<description><![CDATA[#!/bin/usr/python class community while community: try: if Are you python, ASCII, Console lover: Are you believe in sweet, simple and straight forward presentation: If you don't want to load OO Presentation: then Check the console-presenter [1]. Working in Jaunty (9.04, Intrepid (8.10) and Hardy (8.04 U2). [1] https://launchpad.net/~hardik-dalwadi/+archive/ppa else: Your Choice]]></description>
			<content:encoded><![CDATA[<pre>
#!/bin/usr/python

class community

while community:
 try:
    if
     Are you python, ASCII, Console lover:
     Are you believe in sweet, simple and straight forward presentation:
     If you don't want to load  OO Presentation:
    then
     Check the console-presenter [1].
     Working in Jaunty (9.04,  Intrepid (8.10) and Hardy (8.04 U2).
     [1] https://launchpad.net/~hardik-dalwadi/+archive/ppa
 else:
  Your Choice  <img src='http://hardik.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hardik.in/2009/06/26/for-python-ascii-console-lovers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
