<?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>TechPitcher &#187; Linux</title>
	<atom:link href="http://www.techpitcher.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techpitcher.com</link>
	<description></description>
	<lastBuildDate>Sat, 29 May 2010 13:50:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Starting tomcat in debug mode &#8211; Linux</title>
		<link>http://www.techpitcher.com/starting-tomcat-in-debug-mode-linux.html</link>
		<comments>http://www.techpitcher.com/starting-tomcat-in-debug-mode-linux.html#comments</comments>
		<pubDate>Sat, 29 May 2010 13:50:19 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[J2ee]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techpitcher.com/?p=224</guid>
		<description><![CDATA[To start tomcat in debug mode, you need to set JPDA_TRANSPORT=dt_socket and JPDA_ADDRESS=9000 environment variable.  To set these variable for a session only, open command prompt and run following commands

export CATALINA_HOME=/home/xyz/opt/tomcat
export JPDA_TRANSPORT=dt_socket
export JPDA_ADDRESS=9000

now start tomcat using following command

$ %CATALINA_HOME%/bin/catalina.sh jpda start

Setting this variable in your personal ~/.bashrc file has the advantage that it will [...]]]></description>
			<content:encoded><![CDATA[<p>To start <a href="http://www.techpitcher.com/installing-tomcat-in-ubuntulinux.html">tomcat</a> in debug mode, you need to set JPDA_TRANSPORT=dt_socket and JPDA_ADDRESS=9000 environment variable.  To set these variable for a session only, open command prompt and run following commands</p>
<pre class="brush: xml;">
export CATALINA_HOME=/home/xyz/opt/tomcat
export JPDA_TRANSPORT=dt_socket
export JPDA_ADDRESS=9000
</pre>
<p>now start tomcat using following command<br />
<code><br />
$ %CATALINA_HOME%/bin/catalina.sh jpda start<br />
</code></p>
<p>Setting this variable in your personal ~/.bashrc file has the advantage that it will always be set (for you, as a user) each time you log in or reboot the system. To do so, open ~/.bashrc in a text editor (or create the file if it doesn&#8217;t already exist) and insert the following line anywhere in the file</p>
<pre class="brush: xml;">
export CATALINA_HOME=/home/xyz/opt/tomcat
export JPDA_TRANSPORT=dt_socket
export JPDA_ADDRESS=9000
</pre>
<p>Save and close .bashrc.<br />
You must logout and login again to  make your change take effect. or source your .bashrc file to make your change take effect for the current session<br />
<code><br />
$ source ~/.bashrc<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/starting-tomcat-in-debug-mode-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running a process in background/foreground in linux</title>
		<link>http://www.techpitcher.com/running-a-process-in-backgroundforeground-in-linux.html</link>
		<comments>http://www.techpitcher.com/running-a-process-in-backgroundforeground-in-linux.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 07:18:51 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[disown]]></category>
		<category><![CDATA[foreground]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[top]]></category>

		<guid isPermaLink="false">http://www.techpitcher.com/?p=180</guid>
		<description><![CDATA[Run process in background
To run a command in background, you can use following command at command prompt

$ command &#38;

Above command will make your process run in background. You need to make sure that process is finished before logging off. A process run by above command will be terminated as soon as you logout.
If you want [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Run process in background</strong><br />
To run a command in background, you can use following command at command prompt</p>
<div class="terminal">
$ command &amp;
</div>
<p>Above command will make your process run in background. You need to make sure that process is finished before logging off. A process run by above command will be terminated as soon as you logout.<br />
If you want to run a command in background even after you logout then you can use following command</p>
<div class="terminal">
$ nohup command &amp;
</div>
<p><em>nohup</em><strong> </strong> Run a command immune to hang ups, with output to a non-tty.<br />
This command will run your process in background even if you logs out.</p>
<p><strong>Making current process to run in background</strong><br />
You can make current process as a background process by issuing following commands.</p>
<div class="terminal">
$ [ctrl] + z<br />
$ bg
</div>
<p>You need to remember that the process is running in background, if you logs out then process will be terminated. You can <em>disown</em> to avoid killing the process after you close the terminal. </p>
<div class="terminal">
$ [ctrl] + z<br />
$ bg<br />
$ disown
</div>
<p>Execute following command to run any process in background</p>
<div class="terminal">
$ bg process_id
</div>
<p>You can find process id by issues <em>ps</em> command. It displays the list of currently running process and their process ids. Use <em>ps aux</em> to see all the process currently running on your system including from other users. Use <em>top</em> to get updated list of all the processes running currently.</p>
<p>Run a process in foreground</p>
<div class="terminal">
$ fg process_id
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/running-a-process-in-backgroundforeground-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpm command &#8211; can&#8217;t create transaction lock</title>
		<link>http://www.techpitcher.com/rpm-command-cant-create-transaction-lock.html</link>
		<comments>http://www.techpitcher.com/rpm-command-cant-create-transaction-lock.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 18:52:57 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=164</guid>
		<description><![CDATA[In case if you are getting error on running rpm command e.g.

$ rpm -e jdk-wrapper-1.5.0_15-1.gdg.noarch
error: can't create transaction lock on /var/lib/rpm/__db.000

]]></description>
			<content:encoded><![CDATA[<p>In case if you are getting error on running rpm command e.g.</p>
<pre class="brush: xml;">
$ rpm -e jdk-wrapper-1.5.0_15-1.gdg.noarch
error: can't create transaction lock on /var/lib/rpm/__db.000
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/rpm-command-cant-create-transaction-lock.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing eclipse in ubuntu/linux</title>
		<link>http://www.techpitcher.com/installing-eclipse-in-ubuntulinux.html</link>
		<comments>http://www.techpitcher.com/installing-eclipse-in-ubuntulinux.html#comments</comments>
		<pubDate>Sun, 08 Feb 2009 18:49:49 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[J2ee]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=115</guid>
		<description><![CDATA[Download eclipse from http://www.eclipse.org/downloads/
Make an opt directory in user&#8217;s home directory

$ mkdir ~/opt

Go to the directory where you have downloaded eclipse

$ tar -xvf eclipse-SDK-3.4.1-linux-gtk.tar.gz &#38;&#38; mv eclipse ~/opt

Make a bin folder in user&#8217;s home directory

$ mkdir ~/bin

Next create an executable for Eclipe at ~/bin/eclipse

$ vi ~/bin/eclipse

Add the following lines in this file

export MOZILLA_FIVE_HOME=&#34;/usr/lib/mozilla/&#34;
export ECLIPSE_HOME=&#34;$HOME/opt/eclipse&#34;
$ECLIPSE_HOME/eclipse $*

Finally [...]]]></description>
			<content:encoded><![CDATA[<p>Download eclipse from http://www.eclipse.org/downloads/<br />
Make an opt directory in user&#8217;s home directory</p>
<pre class="brush: xml;">
$ mkdir ~/opt
</pre>
<p>Go to the directory where you have downloaded eclipse</p>
<pre class="brush: xml;">
$ tar -xvf eclipse-SDK-3.4.1-linux-gtk.tar.gz &amp;&amp; mv eclipse ~/opt
</pre>
<p>Make a bin folder in user&#8217;s home directory</p>
<pre class="brush: xml;">
$ mkdir ~/bin
</pre>
<p>Next create an executable for Eclipe at ~/bin/eclipse</p>
<pre class="brush: xml;">
$ vi ~/bin/eclipse
</pre>
<p>Add the following lines in this file</p>
<pre class="brush: xml;">
export MOZILLA_FIVE_HOME=&quot;/usr/lib/mozilla/&quot;
export ECLIPSE_HOME=&quot;$HOME/opt/eclipse&quot;
$ECLIPSE_HOME/eclipse $*
</pre>
<p>Finally make script executable</p>
<pre class="brush: xml;">
$ chmod +x ~/bin/eclipse
</pre>
<p>You can now execute that file to start up Eclipse.</p>
<p><a href='http://techpitcher.com/setting-up-j2ee-developer-environment-in-ubuntulinux.html'><< Back to Setting up j2ee developer environment ... </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/installing-eclipse-in-ubuntulinux.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing JDK in ubuntu/linux</title>
		<link>http://www.techpitcher.com/installing-jdk-in-ubuntulinux.html</link>
		<comments>http://www.techpitcher.com/installing-jdk-in-ubuntulinux.html#comments</comments>
		<pubDate>Wed, 04 Feb 2009 18:23:13 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=112</guid>
		<description><![CDATA[To install jdk6.0 type the following command in terminal window

$ sudo apt-get install sun-java6-jdk

Provide password for root. It will show you agreement. Select  and wait for installation to be completed.
We should set JAVA_HOME environment variable after successful installation of jdk.

$ vi ~/.bashrc

Insert following line in above file

export JAVA_HOME=/usr/lib/jvm/java-6-sun

 ]]></description>
			<content:encoded><![CDATA[<p>To install jdk6.0 type the following command in terminal window</p>
<pre class="brush: xml;">
$ sudo apt-get install sun-java6-jdk
</pre>
<p>Provide password for root. It will show you agreement. Select  and wait for installation to be completed.<br />
We should set <code>JAVA_HOME</code> environment variable after successful installation of jdk.</p>
<pre class="brush: xml;">
$ vi ~/.bashrc
</pre>
<p>Insert following line in above file</p>
<pre class="brush: xml;">
export JAVA_HOME=/usr/lib/jvm/java-6-sun
</pre>
<p><a href="http://techpitcher.com/setting-up-j2ee-developer-environment-in-ubuntulinux.html"> << Back to Setting up j2ee developer environment ... </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/installing-jdk-in-ubuntulinux.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ifconfig command : Manage network configuration in linux</title>
		<link>http://www.techpitcher.com/ifconfig-command-manage-network-configuration-in-linux.html</link>
		<comments>http://www.techpitcher.com/ifconfig-command-manage-network-configuration-in-linux.html#comments</comments>
		<pubDate>Tue, 20 Jan 2009 19:34:49 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=106</guid>
		<description><![CDATA[The most frequent use of ifconfig command is setting an interface&#8217;s IP address and netmask, and disabling or enabling a interface.
To see IP address of the machine, open terminal  and type ifconfig
It&#8217;ll list all the interfaces connected to the device e.g.

root@ubuntu:~$ ifconfig
eth0    Link encap:Ethernet  HWaddr 00:1c:23:a4:ed:b0
     [...]]]></description>
			<content:encoded><![CDATA[<p>The most frequent use of <code>ifconfig</code> command is setting an interface&#8217;s IP address and netmask, and disabling or enabling a interface.<br />
To see IP address of the machine, open terminal  and type <code>ifconfig</code><br />
It&#8217;ll list all the interfaces connected to the device e.g.</p>
<pre class="brush: xml;">
root@ubuntu:~$ ifconfig
eth0    Link encap:Ethernet  HWaddr 00:1c:23:a4:ed:b0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:160524 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59261 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:40668433 (40.6 MB)  TX bytes:14468340 (14.4 MB)
          Interrupt:17 

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:21240 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21240 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3990382 (3.9 MB)  TX bytes:3990382 (3.9 MB)
</pre>
<p>To view a particular interface, provide interface name after <code>ifconfig</code> command.</p>
<pre class="brush: xml;">
root@ubuntu:~$ ifconfig eth0
eth0    Link encap:Ethernet  HWaddr 00:1c:23:a4:ed:b0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:160524 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59261 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:40668433 (40.6 MB)  TX bytes:14468340 (14.4 MB)
          Interrupt:17
</pre>
<p>here are few more frequent usages of <code>ifconfig</code><br />
<b>ifconfig eth0 down</b><br />
This flag causes eth0 interface to be shut down.<br />
<b>ifconfig eth0 up</b><br />
If interface eth0 is in the down state then by setting this flag will make eth0 interface active.</p>
<p>ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.20<br />
Assign eth0 with the above values for IP, netmask and broadcast address.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/ifconfig-command-manage-network-configuration-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup of mysql database</title>
		<link>http://www.techpitcher.com/backup-of-mysql-database.html</link>
		<comments>http://www.techpitcher.com/backup-of-mysql-database.html#comments</comments>
		<pubDate>Wed, 22 Oct 2008 18:09:40 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=75</guid>
		<description><![CDATA[Use the following command to get backup of complete mysql database.

shell&#62; mysqldump -u [username] -p[password] –all-databases &#62; [backupfile.sql]
–if you want to take backup of selective database then u need to specify database name like
shell&#62; mysqldump -u [username] -p[password] –databases [databasename] &#62; [backupfile.sql]

Syntax in above commands are explained below
username &#8211; User name of mysql database
password &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Use the following command to get backup of complete mysql database.</p>
<pre class="brush: xml;">
shell&gt; mysqldump -u [username] -p[password] –all-databases &gt; [backupfile.sql]
–if you want to take backup of selective database then u need to specify database name like
shell&gt; mysqldump -u [username] -p[password] –databases [databasename] &gt; [backupfile.sql]
</pre>
<p>Syntax in above commands are explained below<br />
username &#8211; User name of mysql database<br />
password &#8211; Password of mysql database<br />
databasename &#8211; Name of the database you want to take backup<br />
backupfile &#8211; Name of the backup file<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/backup-of-mysql-database.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting httpd in linux</title>
		<link>http://www.techpitcher.com/starting-httpd-in-linux.html</link>
		<comments>http://www.techpitcher.com/starting-httpd-in-linux.html#comments</comments>
		<pubDate>Tue, 19 Aug 2008 17:45:03 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=7</guid>
		<description><![CDATA[To start httpd, you need to type following commands
&#60;br&#62;
[root@momo ~]# cd /etc/rc.d/init.d/&#60;br&#62;
[root@momo ~]# ./httpd start&#60;br&#62;


To test is httpd service is running, type following command
&#60;br&#62;
[root@momo ~]# ps -ef&#124;grep httpd&#60;br&#62;


and this will give you results like
&#60;br&#62;
apache    2862  2860  0 Aug18 ?        00:00:00 /usr/sbin/httpd&#60;br&#62;
apache   [...]]]></description>
			<content:encoded><![CDATA[<p>To start httpd, you need to type following commands</p>
<pre class="brush: xml;">&lt;br&gt;
[root@momo ~]# cd /etc/rc.d/init.d/&lt;br&gt;
[root@momo ~]# ./httpd start&lt;br&gt;
</pre>
<p>
To test is httpd service is running, type following command</p>
<pre class="brush: xml;">&lt;br&gt;
[root@momo ~]# ps -ef|grep httpd&lt;br&gt;
</pre>
<p>
and this will give you results like</p>
<pre class="brush: xml;">&lt;br&gt;
apache    2862  2860  0 Aug18 ?        00:00:00 /usr/sbin/httpd&lt;br&gt;
apache    2863  2860  0 Aug18 ?        00:00:00 /usr/sbin/httpd&lt;br&gt;
apache    2864  2860  0 Aug18 ?        00:00:00 /usr/sbin/httpd&lt;br&gt;
</pre>
<p>
To check if your httpd is installed in the system, type below command in the console</p>
<pre class="brush: xml;">&lt;br&gt;
[root@momo ~]# httpd -version&lt;br&gt;
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/starting-httpd-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
