<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3252331681151286458</id><updated>2024-09-09T07:33:45.978-07:00</updated><category term="HowTo"/><category term="Tips amp; Tricks"/><category term="Mysql"/><category term="Linux Commands"/><category term="Security"/><category term="Scripts"/><category term="Networking"/><category term="Iptables"/><category term="Unix/Solaris"/><category term="Backup"/><category term="LDAP server"/><category term="Denyhost"/><category term="Problems amp; Solutions"/><category term="Troubleshooting"/><category term="Configure Services"/><category term="Joomla"/><category term="Nagios"/><category term="Qmail"/><category term="Rsync"/><category term="Samba server"/><category term="Sed"/><category term="Subversion"/><category term="Tools amp; Software"/><category term="Update system"/><category term="User Administration"/><title type='text'>Linux Tips &amp;amp; Tricks ,Helps, Tutorials and An Ideas</title><subtitle type='html'>Remote Server Management&#xa;Code Management&#xa;Network Management&#xa;Automation&#xa;System Administration&#xa;Linux&#xa;Solaris, &#xa;Backup, &#xa;Networking, &#xa;Security, &#xa;Mysql, &#xa;Script, &#xa;Tips &amp;amp; Tricks</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>89</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-4336425102713337103</id><published>2011-01-13T00:44:00.000-08:00</published><updated>2011-01-13T00:44:04.231-08:00</updated><title type='text'>Configure Services in CentOs5/RHEL5</title><content type='html'>&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 13px/19px Georgia, &#39;Times New Roman&#39;, &#39;Bitstream Charter&#39;, Times, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.6em; padding-left: 0.6em; padding-right: 0.6em; padding-top: 0.6em;&quot;&gt;&lt;strong&gt;1)&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;List All services&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/listservices.jpg&quot; alt=&quot;listservices&quot; class=&quot;alignnone size-full wp-image-280&quot; height=&quot;34&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/listservices.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;listservices&quot; width=&quot;515&quot; /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;2) &amp;nbsp;List Running services at Runlevel 3&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/listservices34.jpg&quot; alt=&quot;listservices34&quot; class=&quot;alignnone size-full wp-image-281&quot; height=&quot;34&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/listservices34.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;listservices34&quot; width=&quot;516&quot; /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;3) Start service&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/startservices.jpg&quot; alt=&quot;startservices&quot; class=&quot;alignnone size-full wp-image-282&quot; height=&quot;98&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/startservices.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;startservices&quot; width=&quot;521&quot; /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stop service&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/stopservice.jpg&quot; alt=&quot;stopservice&quot; class=&quot;alignnone size-full wp-image-283&quot; height=&quot;90&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/stopservice.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;stopservice&quot; width=&quot;522&quot; /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;5) &amp;nbsp; Start service on different RunLevel&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/stopservice1.jpg&quot; alt=&quot;stopservice&quot; class=&quot;alignnone size-full wp-image-284&quot; height=&quot;90&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/stopservice1.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;stopservice&quot; width=&quot;522&quot; /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;6) &amp;nbsp;Restart services&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/restartservice.jpg&quot; alt=&quot;restartservice&quot; class=&quot;alignnone size-full wp-image-285&quot; height=&quot;30&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/restartservice.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;restartservice&quot; width=&quot;509&quot; /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;7) &amp;nbsp;Add services&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/addservice.jpg&quot; alt=&quot;addservice&quot; class=&quot;alignnone size-full wp-image-286&quot; height=&quot;89&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/addservice.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;addservice&quot; width=&quot;514&quot; /&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;8 ) Remove Services&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;img _mce_src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/deleteservice1.jpg&quot; alt=&quot;deleteservice&quot; class=&quot;alignnone size-full wp-image-290&quot; height=&quot;90&quot; src=&quot;http://sanjaybdalal.wordpress.com/files/2009/09/deleteservice1.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;deleteservice&quot; width=&quot;514&quot; /&gt;&lt;/strong&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/4336425102713337103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/4336425102713337103' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4336425102713337103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4336425102713337103'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2011/01/configure-services-in-centos5rhel5.html' title='Configure Services in CentOs5/RHEL5'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-2294485524383757095</id><published>2011-01-13T00:42:00.001-08:00</published><updated>2011-01-13T00:42:47.478-08:00</updated><title type='text'>Solaris and Linux Runlevel</title><content type='html'>&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 13px/19px Georgia, &#39;Times New Roman&#39;, &#39;Bitstream Charter&#39;, Times, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.6em; padding-left: 0.6em; padding-right: 0.6em; padding-top: 0.6em;&quot;&gt;&lt;strong&gt;Default Linux Run Level: Total 7 Run Level&lt;/strong&gt;&lt;br /&gt;
RunLevel 0: Halt System - To shutdown the system&lt;br /&gt;
RunLevel 1: Single user mode&lt;br /&gt;
RunLevel 2: Basic multi user mode without NFS&lt;br /&gt;
RunLevel 3: Full multi user mode (text based)&lt;br /&gt;
RunLevel 4: unused&lt;br /&gt;
RunLevel 5: Multi user mode with Graphical User Interface&lt;br /&gt;
RunLevel 6: Reboot System&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Default Solaris Run Level: Total 8 Run Level&lt;/strong&gt;&lt;br /&gt;
RunLevel S: Single user state (useful for recovery)&lt;br /&gt;
RunLevel 0: Access Sun Firmware (ok&amp;gt; prompt)&lt;br /&gt;
RunLevel 1: System administrator mode&lt;br /&gt;
RunLevel 2: Multi-user w/o NFS&lt;br /&gt;
RunLevel 3: Multi-user with NFS&lt;br /&gt;
RunLevel 4: Unused&lt;br /&gt;
RunLevel 5: Completely shutdown the host (like performing a power-off)&lt;br /&gt;
RunLevel 6: Reboot but depend upon initdefault entry in /etc/inittab&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/2294485524383757095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/2294485524383757095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2294485524383757095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2294485524383757095'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2011/01/solaris-and-linux-runlevel.html' title='Solaris and Linux Runlevel'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-4316441366019836446</id><published>2011-01-13T00:34:00.001-08:00</published><updated>2011-01-13T00:34:59.108-08:00</updated><title type='text'>Call to undefined function:  mysql_connect()</title><content type='html'>&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font: normal normal normal 13px/19px Georgia, &#39;Times New Roman&#39;, &#39;Bitstream Charter&#39;, Times, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.6em; padding-left: 0.6em; padding-right: 0.6em; padding-top: 0.6em;&quot;&gt;&lt;strong&gt;Solutions:&lt;/strong&gt;&lt;br /&gt;
Solution 1) &amp;nbsp; Remove php5-mysql with “apt-get remove php5-mysql” &amp;nbsp;and install it again or&lt;br /&gt;
Solution 2) &amp;nbsp; Check your php.ini file to ensure it’s including the mysql.so library (extension=mysql.so) &amp;nbsp;or&lt;br /&gt;
Solution 3) &amp;nbsp; Type “dpkg-reconfigure php5-mysql” (For ubuntu and debian users)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/4316441366019836446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/4316441366019836446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4316441366019836446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4316441366019836446'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2011/01/call-to-undefined-function-mysqlconnect.html' title='Call to undefined function:  mysql_connect()'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-5386974356550978406</id><published>2011-01-04T02:49:00.000-08:00</published><updated>2011-01-04T02:49:02.922-08:00</updated><title type='text'>Vncserver configuration file to start GNOME</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #2a2a2a;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The configuration is kept in the file /home/userxx/.vnc/xstartup I edited this file so that I can start the server with gnome. My file looks exactly like below.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;# Uncomment the following two lines for normal desktop:&lt;br /&gt;
unset SESSION_MANAGER&lt;br /&gt;
exec /etc/X11/xinit/xinitrc&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;gnome-session &amp;amp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;[ -x /etc/vnc/xstartup ] &amp;amp;&amp;amp; exec /etc/vnc/xstartup&lt;br /&gt;
[ -r $HOME/.Xresources ] &amp;amp;&amp;amp; xrdb $HOME/.Xresources&lt;br /&gt;
xsetroot -solid grey&lt;br /&gt;
vncconfig -iconic &amp;amp;&lt;br /&gt;
# xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &amp;amp;&lt;br /&gt;
twm &amp;amp;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/5386974356550978406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/5386974356550978406' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/5386974356550978406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/5386974356550978406'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2011/01/vncserver-configuration-file-to-start.html' title='Vncserver configuration file to start GNOME'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-9124762286853449620</id><published>2009-12-30T02:36:00.000-08:00</published><updated>2011-01-13T01:08:51.495-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Subversion"/><title type='text'>Setup Subversion Server on Ubuntu 9.04</title><content type='html'>&lt;strong&gt;Step: 1 Installing the Subversion package&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#apt-get install subversion&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step:2  Configure Subversion Directory&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#mkdir –p  /home/svn/repository&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 3 Configure Subversion group&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#groupadd svn&lt;br/&gt;&lt;br/&gt;#chgrp svn /home/svn/repository&lt;br/&gt;&lt;br/&gt;#chmod g+rw /home/svn/repository&lt;br/&gt;&lt;br/&gt;(you need to make sure that all new files and directories created in the &lt;code&gt;repos&lt;/code&gt; directory (in other words, anything committed to the repositories) will also be owned by the group)&lt;br/&gt;&lt;br/&gt;#chmod g+s /home/svn/repository&lt;br/&gt;&lt;br/&gt;#usermod –a –G svn user1 (Assign users to svn group)&lt;br/&gt;&lt;br/&gt;#usermod –a –G svn user2 (Assign users to svn group)&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 4: &lt;/strong&gt;&lt;strong&gt;Creating&lt;/strong&gt;&lt;strong&gt; a New repository&lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#svnadmin create /home/svn/repository/test&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 5: Checkout Repository&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#svn checkout file:///home/svn/repository/test&lt;strong&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Output: Checked out revision 0&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 6: Add new files to Empty repository&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#cd test&lt;br/&gt;&lt;br/&gt;# echo &#39;Hello, World!&#39; &amp;gt; hello.txt&lt;br/&gt;&lt;br/&gt;#svn add hello.txt&lt;br/&gt;&lt;br/&gt;Output : A         hello.txt&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 7 : Commit files&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#svn commit -m &quot;Added a &#39;hello world&#39; text file.&quot;&lt;br/&gt;&lt;br/&gt;Output :&lt;br/&gt;&lt;br/&gt;Adding         hello.txt&lt;br/&gt;&lt;br/&gt;Transmitting file data .&lt;br/&gt;&lt;br/&gt;Committed revision 1.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Accessing SVN repository&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 1:  Configure Users for Access SVN repository.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#vi /home/svn/repository/conf/authz&lt;br/&gt;&lt;br/&gt;(Add below entry)&lt;br/&gt;&lt;br/&gt;[/]&lt;br/&gt;&lt;br/&gt;User1 = rw&lt;br/&gt;&lt;br/&gt;[/test]&lt;br/&gt;&lt;br/&gt;User1 = rw&lt;br/&gt;&lt;br/&gt;User2 = rw&lt;br/&gt;&lt;br/&gt;(save file)&lt;br/&gt;&lt;br/&gt;#vi /home/svn/repository/conf/passwd&lt;br/&gt;&lt;br/&gt;(Add below entry)&lt;br/&gt;&lt;br/&gt;User1=password1&lt;br/&gt;&lt;br/&gt;User2=password2&lt;br/&gt;&lt;br/&gt;(save file)&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 2: Configure files for authentication&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;# rm –rf /home/svn/repository/test/conf/authz&lt;br/&gt;&lt;br/&gt;# rm –rf /home/svn/repository/test/conf/passwd&lt;br/&gt;&lt;br/&gt;#vi /home/svn/repository/conf/svnserve.conf&lt;br/&gt;&lt;br/&gt;[general]&lt;br/&gt;&lt;br/&gt;anon-access = none&lt;br/&gt;&lt;br/&gt;password-db = /home/svn/repository/conf/passwd&lt;br/&gt;&lt;br/&gt;realm = Team&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 3: Start repository&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#svnserve -d --foreground -r /home/svn/ repository&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 4 : Test the Repository&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#svn checkout svn://ipaddress/test --username user1&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 5: Initialize the Script at Startup&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;#wget &lt;a href=&quot;http://odyniec.net/articles/ubuntu-subversion-server/svnserve&quot;&gt;http://odyniec.net/articles/ubuntu-subversion-server/svnserve&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#move svnserve /etc/init.d/&lt;br/&gt;&lt;br/&gt;# chmod +x /etc/init.d/subserve&lt;br/&gt;&lt;br/&gt;#update-rc.d svnserve defaults</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/9124762286853449620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/9124762286853449620' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/9124762286853449620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/9124762286853449620'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/12/setup-subversion-server-on-ubuntu-904.html' title='Setup Subversion Server on Ubuntu 9.04'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-2752976128450495335</id><published>2009-10-23T06:49:00.000-07:00</published><updated>2011-01-13T01:08:51.501-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Problems amp; Solutions"/><title type='text'>Call to undefined function: mysql_connect()</title><content type='html'>&lt;strong&gt;Solutions:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Solution 1)   Remove php5-mysql with “apt-get remove php5-mysql”  and install it again or&lt;br/&gt;&lt;br/&gt;Solution 2)   Check your php.ini file to ensure it’s including the mysql.so library (extension=mysql.so)  or&lt;br/&gt;&lt;br/&gt;Solution 3)   Type “dpkg-reconfigure php5-mysql” (For ubuntu and debian users)</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/2752976128450495335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/2752976128450495335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2752976128450495335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2752976128450495335'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/10/call-to-undefined-function-mysqlconnect.html' title='Call to undefined function: mysql_connect()'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-4604847043183409087</id><published>2009-09-29T23:43:00.000-07:00</published><updated>2011-01-13T01:08:51.505-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Solaris"/><title type='text'>Solaris and Linux Runlevel</title><content type='html'>&lt;strong&gt;Default Linux Run Level: Total 7 Run Level&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;RunLevel 0: Halt System - To shutdown the system&lt;br/&gt;RunLevel 1: Single user mode&lt;br/&gt;RunLevel 2: Basic multi user mode without NFS&lt;br/&gt;RunLevel 3: Full multi user mode (text based)&lt;br/&gt;RunLevel 4: unused&lt;br/&gt;RunLevel 5: Multi user mode with Graphical User Interface&lt;br/&gt;RunLevel 6: Reboot System&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Default Solaris Run Level: Total 8 Run Level&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;RunLevel S: Single user state (useful for recovery)&lt;br/&gt;&lt;br/&gt;RunLevel 0: Access Sun Firmware (ok&amp;gt; prompt)&lt;br/&gt;&lt;br/&gt;RunLevel 1: System administrator mode&lt;br/&gt;&lt;br/&gt;RunLevel 2: Multi-user w/o NFS&lt;br/&gt;&lt;br/&gt;RunLevel 3: Multi-user with NFS&lt;br/&gt;&lt;br/&gt;RunLevel 4: Unused&lt;br/&gt;&lt;br/&gt;RunLevel 5: Completely shutdown the host (like performing a power-off)&lt;br/&gt;&lt;br/&gt;RunLevel 6: Reboot but depend upon initdefault entry in /etc/inittab</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/4604847043183409087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/4604847043183409087' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4604847043183409087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4604847043183409087'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/09/solaris-and-linux-runlevel.html' title='Solaris and Linux Runlevel'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-22924337286305744</id><published>2009-09-29T04:51:00.000-07:00</published><updated>2011-01-13T01:08:51.508-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Update system"/><title type='text'>Update system</title><content type='html'>&lt;img class=&quot;alignnone size-full wp-image-294&quot; title=&quot;update&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/update.jpg&quot; alt=&quot;update&quot; width=&quot;515&quot; height=&quot;29&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/22924337286305744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/22924337286305744' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/22924337286305744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/22924337286305744'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/09/update-system.html' title='Update system'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-1162608248910763592</id><published>2009-09-29T03:45:00.000-07:00</published><updated>2011-01-13T01:08:51.512-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Configure Services"/><title type='text'>Configure Services in CentOs5/RHEL5</title><content type='html'>&lt;strong&gt;1) &lt;/strong&gt;&lt;strong&gt;List All services&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-280&quot; title=&quot;listservices&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/listservices.jpg&quot; alt=&quot;listservices&quot; width=&quot;515&quot; height=&quot;34&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;2)  List Running services at Runlevel 3&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-281&quot; title=&quot;listservices34&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/listservices34.jpg&quot; alt=&quot;listservices34&quot; width=&quot;516&quot; height=&quot;34&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;3) Start service&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-282&quot; title=&quot;startservices&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/startservices.jpg&quot; alt=&quot;startservices&quot; width=&quot;521&quot; height=&quot;98&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;4)      Stop service&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-283&quot; title=&quot;stopservice&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/stopservice.jpg&quot; alt=&quot;stopservice&quot; width=&quot;522&quot; height=&quot;90&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;5)   Start service on different RunLevel&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-284&quot; title=&quot;stopservice&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/stopservice1.jpg&quot; alt=&quot;stopservice&quot; width=&quot;522&quot; height=&quot;90&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;6)  Restart services&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-285&quot; title=&quot;restartservice&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/restartservice.jpg&quot; alt=&quot;restartservice&quot; width=&quot;509&quot; height=&quot;30&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;7)  Add services&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-286&quot; title=&quot;addservice&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/addservice.jpg&quot; alt=&quot;addservice&quot; width=&quot;514&quot; height=&quot;89&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;8 ) Remove Services&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-290&quot; title=&quot;deleteservice&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/deleteservice1.jpg&quot; alt=&quot;deleteservice&quot; width=&quot;514&quot; height=&quot;90&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/1162608248910763592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/1162608248910763592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/1162608248910763592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/1162608248910763592'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/09/configure-services-in-centos5rhel5.html' title='Configure Services in CentOs5/RHEL5'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-8961201177280772097</id><published>2009-09-28T22:17:00.000-07:00</published><updated>2011-01-13T01:08:51.516-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="User Administration"/><title type='text'>CentOS5/RHEL5 User Administration</title><content type='html'>&lt;strong&gt;1)	Add User&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-262&quot; title=&quot;Useradd&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/useradd2.jpg&quot; alt=&quot;Useradd&quot; width=&quot;585&quot; height=&quot;194&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;2)      Delete user&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-263&quot; title=&quot;Userdel&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/userdel2.jpg&quot; alt=&quot;Userdel&quot; width=&quot;584&quot; height=&quot;123&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;3)      Modify user&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-266&quot; title=&quot;Usermod&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/usermod2.jpg&quot; alt=&quot;Usermod&quot; width=&quot;585&quot; height=&quot;209&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;4) &lt;/strong&gt;&lt;strong&gt;Add Group&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-269&quot; title=&quot;gpasswd&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/gpasswd.jpg&quot; alt=&quot;gpasswd&quot; width=&quot;596&quot; height=&quot;193&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;5) Delete group&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-268&quot; title=&quot;groupdel&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/groupdel.jpg&quot; alt=&quot;groupdel&quot; width=&quot;589&quot; height=&quot;37&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;6) &lt;/strong&gt;&lt;strong&gt;Modify group&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;img class=&quot;alignnone size-full wp-image-270&quot; title=&quot;groupmod&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/groupmod.jpg&quot; alt=&quot;groupmod&quot; width=&quot;587&quot; height=&quot;69&quot; /&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;7) &lt;/strong&gt;&lt;strong&gt;Add User to Group&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Syntax&lt;/strong&gt;:&lt;br/&gt;&lt;br/&gt;useradd -G {group-name1},{group-name2} username (for secondary group)&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;useradd -g {group-name} username (for primary group)&lt;br/&gt;&lt;br/&gt;&lt;img class=&quot;alignnone size-full wp-image-275&quot; title=&quot;useradd1&quot; src=&quot;http://sanjaybdalal.files.wordpress.com/2009/09/useradd14.jpg&quot; alt=&quot;useradd1&quot; width=&quot;574&quot; height=&quot;155&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/8961201177280772097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/8961201177280772097' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/8961201177280772097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/8961201177280772097'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/09/centos5rhel5-user-administration.html' title='CentOS5/RHEL5 User Administration'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-5698013599546413928</id><published>2009-09-15T02:01:00.000-07:00</published><updated>2011-01-13T01:08:51.521-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Denyhost"/><title type='text'>Automated Installation of DenyHost on RedHat/Fedora</title><content type='html'>#Script&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;#!/bin/bash&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;# This script installs Deny Host on RedHat(RHEL) or Fedora.&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;################################################################################&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;# This script comes with no warranty or guarantee. Please review the script&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;# before you run it to ensure that it will not cause adverse effects on your&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;# system.&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;#&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;# If you have any questions or comments, please e-mail: sanjaydalal4u@gmail.com&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;################################################################################&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;sudo echo&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;if [ -f /etc/init.d/denyhosts ]; then&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo Removing existing init scripts&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;sudo /etc/init.d/denyhosts stop&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;sudo rm -rf /etc/init.d/denyhosts&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;sudo chkconfig --remove denyhosts&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;fi&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;if [ -d /usr/share/denyhosts/ ]; then&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo Removing existing installation&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;sudo rm -rf /usr/share/denyhosts&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;fi&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo Installing &#39;python&#39; and dependencies.&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;sudo yum -y install python&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;cd /root&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo Downloading DenyHost&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;wget http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz?use_mirror=biznetnetworks&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position:absolute;left:-10000px;top:0;width:1px;height:1px;&quot;&gt;echo Unpacking DenyHost&lt;/div&gt;&lt;br/&gt;#!/bin/bash&lt;br/&gt;&lt;br/&gt;# This script installs Deny Host on RedHat(RHEL) or Fedora.&lt;br/&gt;&lt;br/&gt;################################################################################&lt;br/&gt;&lt;br/&gt;# This script comes with no warranty or guarantee. Please review the script&lt;br/&gt;&lt;br/&gt;# before you run it to ensure that it will not cause adverse effects on your&lt;br/&gt;&lt;br/&gt;# system.&lt;br/&gt;&lt;br/&gt;# If you have any questions or comments, please e-mail: sanjaydalal4u@gmail.com&lt;br/&gt;&lt;br/&gt;################################################################################&lt;br/&gt;&lt;br/&gt;sudo echo&lt;br/&gt;&lt;br/&gt;if [ -f /etc/init.d/denyhosts ]; then&lt;br/&gt;&lt;br/&gt;echo Removing existing init scripts&lt;br/&gt;&lt;br/&gt;sudo /etc/init.d/denyhosts stop&lt;br/&gt;&lt;br/&gt;sudo rm -rf /etc/init.d/denyhosts&lt;br/&gt;&lt;br/&gt;sudo chkconfig --remove denyhosts&lt;br/&gt;&lt;br/&gt;echo &#39;*********************&#39;&lt;br/&gt;&lt;br/&gt;echo&lt;br/&gt;&lt;br/&gt;fi&lt;br/&gt;&lt;br/&gt;if [ -d /usr/share/denyhosts/ ]; then&lt;br/&gt;&lt;br/&gt;echo Removing existing installation&lt;br/&gt;&lt;br/&gt;sudo rm -rf /usr/share/denyhosts&lt;br/&gt;&lt;br/&gt;echo &#39;*********************&#39;&lt;br/&gt;&lt;br/&gt;echo&lt;br/&gt;&lt;br/&gt;fi&lt;br/&gt;&lt;br/&gt;echo Installing &#39;python&#39; and dependencies.&lt;br/&gt;&lt;br/&gt;sudo yum -y install python&lt;br/&gt;&lt;br/&gt;echo &#39;*********************&#39;&lt;br/&gt;&lt;br/&gt;echo&lt;br/&gt;&lt;br/&gt;cd /root&lt;br/&gt;&lt;br/&gt;echo Downloading DenyHost&lt;br/&gt;&lt;br/&gt;wget http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz?use_mirror=biznetnetworks&lt;br/&gt;&lt;br/&gt;echo &#39;*********************&#39;&lt;br/&gt;&lt;br/&gt;echo&lt;br/&gt;&lt;br/&gt;echo Unpacking DenyHost&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div&gt;tar -xzf DenyHosts-2.6.tar.gz&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;cd /root/DenyHosts-2.6&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo Installing DenyHost&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo python setup.py install&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;cd /usr/share/denyhosts&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo Configuring DenyHost&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo cp denyhosts.cfg-dist denyhosts.cfg&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\s*\(SECURE_LOG\s*=.*\)$/#\1/&#39; denyhosts.cfg&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\s*#\s*SECURE_LOG\s*=\s*\/var\/log\/secure/SECURE_LOG = \/var\/log\/secure/&#39; denyhosts.cfg&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\s*\(LOCK_FILE\s*=.*\)$/#\1/&#39; denyhosts.cfg&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\s*#\s*LOCK_FILE\s*=\s*\/var\/run\/denyhosts.pid/LOCK_FILE = \/var\/run\/denyhosts.pid/&#39; denyhosts.cfg&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\s*\(BLOCK_SERVICE\s*=.*\)$/#\1/&#39; denyhosts.cfg&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\s*#\s*BLOCK_SERVICE\s*=\s*ALL/BLOCK_SERVICE  = ALL/&#39; denyhosts.cfg&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo Configuring executable&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo cp daemon-control-dist daemon-control&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\(\s*DENYHOSTS_BIN\s*=\s\).*$/\1&quot;\/usr\/bin\/denyhosts.py&quot;/&#39; daemon-control&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\(\s*DENYHOSTS_LOCK\s*=\s\).*$/\1&quot;\/var\/run\/denyhosts.pid&quot;/&#39; daemon-control&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo sed -i.bak &#39;s/^\(\s*DENYHOSTS_CFG\s*=\s\).*$/\1&quot;\/usr\/share\/denyhosts\/denyhosts.cfg&quot;/&#39; daemon-control&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo chown root daemon-control&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo chmod 700 daemon-control&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo Adding ddclient to rc scripts&lt;/div&gt;&lt;br/&gt;&lt;div&gt;cd /etc/init.d&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo ln -s /usr/share/denyhosts/daemon-control denyhosts&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo chkconfig --add denyhosts&lt;/div&gt;&lt;br/&gt;&lt;div&gt;sudo chkconfig --level 35 denyhosts on&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo &#39;*********************&#39;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;echo&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/5698013599546413928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/5698013599546413928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/5698013599546413928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/5698013599546413928'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/09/automated-installation-of-denyhost-on.html' title='Automated Installation of DenyHost on RedHat/Fedora'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-4311283043736285543</id><published>2009-07-31T22:05:00.000-07:00</published><updated>2011-01-13T01:08:51.525-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Commands"/><title type='text'>How to Open 7zip Files Under Ubuntu</title><content type='html'>&lt;strong&gt;Step 1 : Install application&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#sudo apt-get install p7zip&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 2 : Exectute this command&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#p7zip -d filename.7z&lt;strong&gt;&lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/4311283043736285543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/4311283043736285543' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4311283043736285543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4311283043736285543'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/how-to-open-7zip-files-under-ubuntu.html' title='How to Open 7zip Files Under Ubuntu'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-3402286554552179497</id><published>2009-07-26T23:44:00.000-07:00</published><updated>2011-01-15T03:42:21.404-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Samba server"/><title type='text'>Setup SAMBA server on Ubuntu</title><content type='html'>&lt;strong&gt;Step 1: Installation&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
#apt-get install samba&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Step 2: Configuration&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Configuration file : /etc/samba/smb.conf&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Edit below section&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Workgroup = EXAMPLE&lt;br /&gt;
&lt;br /&gt;
…………&lt;br /&gt;
&lt;br /&gt;
Security = user&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Create a new section at the bottom of the file /etc/samba/smb.conf&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
[Samba Share]&lt;br /&gt;
&lt;br /&gt;
Comment= Samba&amp;nbsp; File Server Share&lt;br /&gt;
&lt;br /&gt;
Path=/path to directory&lt;br /&gt;
&lt;br /&gt;
Browsable = yes&lt;br /&gt;
&lt;br /&gt;
Guest ok = yes&lt;br /&gt;
&lt;br /&gt;
Read only = no&lt;br /&gt;
&lt;br /&gt;
Create mask = 0755&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Step 3: Create directory and change permissions&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
#mkdir /path to directoy&lt;br /&gt;
&lt;br /&gt;
#chown&amp;nbsp; -R nobody:nobody /path to directory&lt;br /&gt;
&lt;br /&gt;
Step 4 : Restart Samba service&lt;br /&gt;
&lt;br /&gt;
#/etc/init.d/samba restart&lt;br /&gt;
&lt;br /&gt;
Enjoy!!!!!!!!!!!!</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/3402286554552179497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/3402286554552179497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/3402286554552179497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/3402286554552179497'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/setup-samba-server-on-ubuntu-904.html' title='Setup SAMBA server on Ubuntu'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-6736692887873889849</id><published>2009-07-09T05:23:00.000-07:00</published><updated>2011-01-13T01:08:51.530-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Iptables"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>Open ports using IPTABLES</title><content type='html'>&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;If you want your machine to respond to requests initiated from elsewhere on the &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:&amp;quot;&quot;&gt;internet&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt; you need to open the required ports. You need to know below details first:&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;1. Service name you want to open up&lt;br/&gt;2. Is it a tcp or udp service?&lt;br/&gt;3. Port number(s) uses by service?&lt;/span&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;To enable ssh access to your box from anywhere on for Class A networks, you could use something like&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;iptables -A allowed -p tcp --dport 22 -s 10.2.0.0/16 -j ACCEPT&lt;br/&gt;iptables -A allowed -p udp --dport 22 -s 10.2.0.0/16 -j ACCEPT&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;iptables -A allowed -p tcp --dport 22 -s 10.8.0.0/16 -j ACCEPT&lt;br/&gt;iptables -A allowed -p udp --dport 22 -s 10.8.0.0/16 -j ACCEPT&lt;/span&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;This allows both udp and tcp traffic from either of the two class A networks to access port 22 on your machine. &lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/6736692887873889849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/6736692887873889849' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6736692887873889849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6736692887873889849'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/open-ports-using-iptables.html' title='Open ports using IPTABLES'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-1634469904037842158</id><published>2009-07-09T05:05:00.000-07:00</published><updated>2011-01-13T01:08:51.537-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>Work with tcpwrappers hosts.deny and hosts.allow</title><content type='html'>&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;You can use tcpwrappers to Block user,ip,daemon from outside or your inside newwork. For allow use host.allow file and to block use host.deny file.&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;Step 1. Use your favorite editor like vi.&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt; Step 2. Type vi /etc/hosts.deny&lt;br/&gt;Step 3. At the bottom line just type “ALL:ALL:deny” to restricted all of daemon process&lt;br/&gt;Step 4. Save it.&lt;br/&gt;Step 5. Open “/etc/hosts.allow” with vi editor&lt;br/&gt;Step 6. At the buttom line “ALL :(some ip that you allow):allow” to allow anything from my IP address&lt;br/&gt;Step 7. Save it.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/1634469904037842158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/1634469904037842158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/1634469904037842158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/1634469904037842158'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/work-with-tcpwrappers-hostsdeny-and.html' title='Work with tcpwrappers hosts.deny and hosts.allow'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-2623472587286098609</id><published>2009-07-02T00:00:00.000-07:00</published><updated>2011-01-13T01:08:51.540-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Commands"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips amp; Tricks"/><title type='text'>Working with tar and tar Encryption</title><content type='html'>&lt;strong&gt;STEP 1 :  (Using the tar command on the directory /example)&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Suppose you have a directory /stuff. To tar everything in stuff to create a “.tar” file.&lt;br/&gt;&lt;br/&gt;# tar -cvf example.tar example&lt;br/&gt;&lt;br/&gt;It will create example.tar file.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;STEP 2 :  (Using the tar command to create a “.tar.gz” of /example)&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;# tar -czf example.tar.gz example&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;STEP 3 :  (List the files in the archive)&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;# tar -tzf example.tar.gz&lt;br/&gt;or&lt;br/&gt;# tar -tf example.tar&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;STEP 4 :   (ENCRYPTION)&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;# tar -zcvf – example | openssl des3 -salt -k secretpassword | dd of=example.des3&lt;br/&gt;&lt;br/&gt;This will create example.des3…Please don’t forget the password you put in place of secretpassword.&lt;br/&gt;&lt;br/&gt;If you want to do this interactively then&lt;br/&gt;&lt;br/&gt;# dd if=example.des3 |openssl des3 -d -k secretpassword|tar zxf -</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/2623472587286098609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/2623472587286098609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2623472587286098609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2623472587286098609'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/working-with-tar-and-tar-encryption.html' title='Working with tar and tar Encryption'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-6506406426658768007</id><published>2009-07-01T23:37:00.000-07:00</published><updated>2011-01-13T01:08:51.543-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>Multiple IP address on Single NIC (Redhat/Fedora)</title><content type='html'>We can setup two Ipaddress on single NIC.&lt;br/&gt;&lt;br/&gt;Below i have mentioned for Redhat/Fedora/CentOs system.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;STEP 1 : (Initial/First IP address)&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#cat /etc/sysconfig/network-scripts/ifcfg-eth0&lt;br/&gt;&lt;br/&gt;DEVICE=eth0&lt;br/&gt;BOOTPROTO=static&lt;br/&gt;BROADCAST=10.8.0.255&lt;br/&gt;IPADDR=10.8.0.10&lt;br/&gt;NETMASK=255.255.255.0&lt;br/&gt;NETWORK=10.8.0.0&lt;br/&gt;ONBOOT=yes&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;STEP 2 : (Second IP address)&lt;/strong&gt;&lt;br/&gt;#cat /etc/sysconfig/network-scripts/ifcfg-eth0:1&lt;br/&gt;&lt;br/&gt;DEVICE=eth0:1&lt;br/&gt;BOOTPROTO=static&lt;br/&gt;BROADCAST=10.8.0.255&lt;br/&gt;IPADDR=10.8.0.11&lt;br/&gt;NETMASK=255.255.255.0&lt;br/&gt;NETWORK=10.8.0.0&lt;br/&gt;ONBOOT=yes</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/6506406426658768007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/6506406426658768007' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6506406426658768007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6506406426658768007'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/multiple-ip-address-on-single-nic.html' title='Multiple IP address on Single NIC (Redhat/Fedora)'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-570542169539441575</id><published>2009-07-01T23:31:00.000-07:00</published><updated>2011-01-13T01:08:51.546-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>View Routing Table and Change your default Gateway</title><content type='html'>The netstat -nr command will provide the contents of the touting table.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; # netstat -nr&lt;br/&gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Kernel IP routing table&lt;br/&gt;&lt;br/&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;br/&gt;&lt;br/&gt;10.8.0.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0&lt;br/&gt;&lt;br/&gt;169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0&lt;br/&gt;&lt;br/&gt;0.0.0.0         10.8.0.1        0.0.0.0         UG        0 0          0 eth0&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Change Your Default Gateway &lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;You will need to update your /etc/sysconfig/network file to reflect the change. This file is used to configure your default gateway&lt;br/&gt;&lt;br/&gt;NETWORKING=yes&lt;br/&gt;HOSTNAME=newhost&lt;br/&gt;GATEWAY=10.8.0.2</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/570542169539441575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/570542169539441575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/570542169539441575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/570542169539441575'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/view-routing-table-and-change-your.html' title='View Routing Table and Change your default Gateway'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-6087116734062443899</id><published>2009-07-01T23:23:00.000-07:00</published><updated>2011-01-13T01:08:51.548-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Commands"/><title type='text'>Use of Netstat Commands</title><content type='html'>Netstat (network statistics) is a command-line tool that displays network connections (both incoming and outgoing), routing tables, and a number of network interface statistics. Netstat is a useful tool for checking your network configuration and activity.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Check tcp connection established on your machine using below command&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;1: netstat --tcp&lt;br/&gt;&lt;br/&gt;% netstat --tcp --numeric&lt;br/&gt;Active Internet connections (w/o servers)&lt;br/&gt;&lt;br/&gt;Proto Recv-Q Send-Q Local Address           Foreign Address         State&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:ldap          nexubuntu:38885         ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:38885         nexubuntu:ldap          ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:ssh           10.8.0.151:50776        ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:microsoft-ds  nexubuntu:59000         ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:38875         nexubuntu:ldap          ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:ldap          nexubuntu:52342         ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:ssh           10.8.0.151:50775        ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp      244      0 nexubuntu:59004         nexubuntu:microsoft-ds  ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp      244      0 nexubuntu:59000         nexubuntu:microsoft-ds  ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:ldap          nexubuntu:38875         ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:microsoft-ds  nexubuntu:59004         ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:52343         nexubuntu:ldap          TIME_WAIT&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:52342         nexubuntu:ldap          ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:microsoft-ds  nexubuntu:58998         ESTABLISHED&lt;br/&gt;&lt;br/&gt;tcp      244      0 nexubuntu:58998         nexubuntu:microsoft-ds  ESTABLISHED&lt;br/&gt;&lt;br/&gt;If you want to see what (TCP) ports your machine is listening on, use netstat --tcp --listening. Another useful flag to add to this is --programs which indicates which process is listening on the specified port.&lt;br/&gt;&lt;br/&gt;2: netstat --tcp --listening --programs&lt;br/&gt;&lt;br/&gt;# sudo netstat --tcp --listening --programs&lt;br/&gt;Active Internet connections (only servers)&lt;br/&gt;&lt;br/&gt;Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name&lt;br/&gt;&lt;br/&gt;tcp        0      0 *:nfs                   *:*                     LISTEN      -&lt;br/&gt;&lt;br/&gt;tcp        0      0 *:ldap                  *:*                     LISTEN      2715/slapd&lt;br/&gt;&lt;br/&gt;tcp        0      0 *:ftp                   *:*                     LISTEN      3302/vsftpd&lt;br/&gt;&lt;br/&gt;tcp        0      0 *:ssh                   *:*                     LISTEN      4022/sshd&lt;br/&gt;&lt;br/&gt;tcp        0      0 nexubuntu:postgresql    *:*                     LISTEN      2680/postgres&lt;br/&gt;&lt;br/&gt;tcp        0      0 *:smtp                  *:*                     LISTEN      3259/master&lt;br/&gt;&lt;br/&gt;tcp        0      0 *:58777                 *:*                     LISTEN      2098/rpc.statd&lt;br/&gt;&lt;br/&gt;tcp        0      0 *:microsoft-ds          *:*                     LISTEN      3283/smbd&lt;br/&gt;&lt;br/&gt;tcp6       0      0 [::]:ldap               [::]:*                  LISTEN      2715/slapd&lt;br/&gt;&lt;br/&gt;tcp6       0      0 [::]:www                [::]:*                  LISTEN      3750/apache2&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Uses netstat --route to display the routing table.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;3: netstat --route&lt;br/&gt;&lt;br/&gt;% netstat --route&lt;br/&gt;Kernel IP routing table&lt;br/&gt;&lt;br/&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;br/&gt;&lt;br/&gt;10.8.0.0        *               255.255.255.0   U         0 0          0 eth0&lt;br/&gt;&lt;br/&gt;link-local      *               255.255.0.0     U         0 0          0 eth0&lt;br/&gt;&lt;br/&gt;default         mygateway1.ar7  0.0.0.0         UG        0 0          0 eth0&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Uses the --statistics flag to display networking statistics&lt;/strong&gt;.&lt;br/&gt;&lt;br/&gt;Using this flag by itself displays all IP, TCP, UDP, and ICMP connection statistics.&lt;br/&gt;&lt;br/&gt;4: netstat --statistics --route</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/6087116734062443899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/6087116734062443899' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6087116734062443899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6087116734062443899'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/use-of-netstat-commands.html' title='Use of Netstat Commands'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-2075329233305021825</id><published>2009-07-01T23:07:00.000-07:00</published><updated>2011-01-13T01:08:51.553-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips amp; Tricks"/><title type='text'>Network configuration for Debian</title><content type='html'>&lt;strong&gt;Ip from dhcp&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#/etc/network/interfaces&lt;br/&gt;# The loopback network interface&lt;br/&gt;auto lo&lt;br/&gt;iface lo inet loopback&lt;br/&gt;&lt;br/&gt;# The primary network interface&lt;br/&gt;auto eth0&lt;br/&gt;iface eth0 inet dhcp&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;For a static IP&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;#/etc/network/interfaces&lt;br/&gt;# The loopback network interface&lt;br/&gt;auto lo&lt;br/&gt;iface lo inet loopback&lt;br/&gt;&lt;br/&gt;# The primary network interface&lt;br/&gt;auto eth0&lt;br/&gt;iface eth0 inet static&lt;br/&gt;address 10.8.0.100&lt;br/&gt;netmask 255.255.255.0&lt;br/&gt;gateway 10.8.0.1&lt;br/&gt;broadcast 10.8.0.255</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/2075329233305021825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/2075329233305021825' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2075329233305021825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/2075329233305021825'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/network-configuration-for-debian.html' title='Network configuration for Debian'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-5221220757309093737</id><published>2009-07-01T23:01:00.000-07:00</published><updated>2011-01-13T01:08:51.561-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>How to add multiple IP addresses manually</title><content type='html'>&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;# ifconfig&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;will output all the configured addresses&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;eth0: inet addr:10.8.0.10 Bcast:10.8.0.255 Mask:255.255.255.0&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;To add on extra IP addresses execute below command:&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;# ifconfig eth0:1 10.8.0.12 netmask 255.255.255.0&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;For additional IP addresses, make sure you increment the 1 in eth0:1&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;Third ip address would be like this&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;# ifconfig eth0:2 10.8.0.13 netmask 255.255.255.0&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/5221220757309093737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/5221220757309093737' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/5221220757309093737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/5221220757309093737'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/how-to-add-multiple-ip-addresses.html' title='How to add multiple IP addresses manually'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-4825290149252599166</id><published>2009-07-01T22:57:00.000-07:00</published><updated>2011-01-15T03:41:48.656-08:00</updated><title type='text'>How to add multiple IP addresses manually?</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/4825290149252599166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/4825290149252599166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4825290149252599166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4825290149252599166'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/how-to-add-multiple-ip-addresses_01.html' title='How to add multiple IP addresses manually?'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-1525245623504164443</id><published>2009-07-01T22:53:00.000-07:00</published><updated>2011-01-13T01:08:51.568-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips amp; Tricks"/><title type='text'>Assigning a virtual IP to a NIC</title><content type='html'>Assigning a virtual IP to a NIC is a very easy task either you use the &lt;strong&gt;system-config-network&lt;/strong&gt; tool or just do some &lt;strong&gt;text file editing&lt;/strong&gt;. The script &lt;strong&gt;ifconfig&lt;/strong&gt; can also be used to create a virtual network interface, but this would not be permanent since the changes ifconfig makes do not survive a reboot.&lt;br/&gt;&lt;br/&gt;In Fedora, all information about the network interfaces is kept in the following directories:&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;&lt;strong&gt;/etc/sysconfig/network-scripts/&lt;/strong&gt;&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;&lt;strong&gt;/etc/sysconfig/networking/&lt;/strong&gt;&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;strong&gt;My NIC configuration script is /etc/sysconfig/network-scripts/ifcfg-eth0&lt;/strong&gt; looks like this:&lt;br/&gt;&lt;br/&gt;DEVICE=eth0&lt;br/&gt;&lt;br/&gt;BOOTPROTO=static&lt;br/&gt;&lt;br/&gt;BROADCAST=192.168.0.255&lt;br/&gt;&lt;br/&gt;HWADDR=00:00:00:00:00:00&lt;br/&gt;&lt;br/&gt;IPADDR=192.168.0.1&lt;br/&gt;&lt;br/&gt;NETMASK=255.255.255.0&lt;br/&gt;&lt;br/&gt;NETWORK=192.168.0.0&lt;br/&gt;&lt;br/&gt;ONBOOT=yes&lt;br/&gt;&lt;br/&gt;TYPE=Ethernet&lt;br/&gt;&lt;br/&gt;GATEWAY=192.168.0.254&lt;br/&gt;&lt;br/&gt;Make a copy of this in the same directory naming the new file &lt;strong&gt;ifcfg-eth0:1&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;# cp ifcfg-eth0 ifcfg-eth0\:1&lt;br/&gt;&lt;br/&gt;Modification in file ifcfg-eth0\:1 is shown in bold&lt;br/&gt;&lt;br/&gt;DEVICE=&lt;strong&gt;eth0:1&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;BOOTPROTO=static&lt;br/&gt;&lt;br/&gt;BROADCAST=192.168.0.255&lt;br/&gt;&lt;br/&gt;HWADDR=00:00:00:00:00:00&lt;br/&gt;&lt;br/&gt;IPADDR=&lt;strong&gt;192.168.0.101&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;NETMASK=255.255.255.0&lt;br/&gt;&lt;br/&gt;NETWORK=192.168.0.0&lt;br/&gt;&lt;br/&gt;ONBOOT=yes&lt;br/&gt;&lt;br/&gt;TYPE=Ethernet&lt;br/&gt;&lt;br/&gt;GATEWAY=192.168.0.254&lt;br/&gt;&lt;br/&gt;So, its IP address will be &lt;strong&gt;192.168.0.101&lt;/strong&gt;. Save the file and copy it to&lt;strong&gt;/etc/sysconfig/networking/devices/&lt;/strong&gt;:&lt;br/&gt;&lt;br/&gt;# cp ifcfg-eth0\:1 /etc/sysconfig/networking/devices/&lt;br/&gt;&lt;br/&gt;Also, copy it to your default network profile or whichever profile you use:&lt;br/&gt;&lt;br/&gt;# cp ifcfg-eth0\:1 /etc/sysconfig/networking/profiles/default/&lt;br/&gt;&lt;br/&gt;Now, bring up the new interface using the &lt;strong&gt;ifup&lt;/strong&gt; script:&lt;br/&gt;&lt;br/&gt;# ifup eth0\:1&lt;br/&gt;&lt;br/&gt;Running &lt;strong&gt;ifconfig&lt;/strong&gt;, the new interface should be listed. You can also check it by pinging:&lt;br/&gt;&lt;br/&gt;# ping 192.168.0.101</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/1525245623504164443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/1525245623504164443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/1525245623504164443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/1525245623504164443'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/assigning-virtual-ip-to-nic.html' title='Assigning a virtual IP to a NIC'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-6725264681476395089</id><published>2009-07-01T02:59:00.000-07:00</published><updated>2011-01-13T01:08:51.571-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Commands"/><title type='text'>Commands related to Process Control</title><content type='html'>&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;Here &quot;PID&quot; is refer to the process ID, that you can get from command &quot;ps -aux&quot; &lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#fg PID&lt;/strong&gt;&lt;br/&gt;It Brings a background or stopped process to the foreground.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#bg PID&lt;/strong&gt;&lt;br/&gt;It sends the process to the background.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#any command &amp;amp;&lt;/strong&gt;&lt;br/&gt;Run any command in the background (the symbol &quot;&amp;amp;&quot; means &quot;run the proceeding command in the background&quot;).&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#batch any command&lt;/strong&gt;&lt;br/&gt;Run any command when the system load is low. I can logout and the process will keep running.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#at 18:00&lt;/strong&gt;&lt;br/&gt;Execute a command at a specified time. You will be prompted for the command(s) to run, until you press d.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#kill PID&lt;/strong&gt;&lt;br/&gt;To shutdown process by force. First determine the PID of the process to kill using ps.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#killall program name&lt;/strong&gt;&lt;br/&gt;Kill program(s) by name.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#nice program_name&lt;/strong&gt;&lt;br/&gt;Run program name adjusting its priority. The priority value may be in the range -20 to 19. Only root may specify negative values. Use &quot;top&quot; to display the priorities of the running processes.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;p style=&quot;line-height:14.25pt;background:white;&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;color:black;&quot;&gt;&lt;strong&gt;#renice -1 PID&lt;/strong&gt;&lt;br/&gt;(&lt;span&gt;&lt;em&gt;&lt;em&gt;as root&lt;/em&gt;&lt;/em&gt;&lt;/span&gt;) Change the priority of a running process to -1. Normal users can only adjust processes they own, and only up from the current value (&lt;span&gt;&lt;em&gt;&lt;em&gt;make them run slower&lt;/em&gt;&lt;/em&gt;&lt;/span&gt;).&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/6725264681476395089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/6725264681476395089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6725264681476395089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/6725264681476395089'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/commands-related-to-process-control.html' title='Commands related to Process Control'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3252331681151286458.post-4213728064738621488</id><published>2009-07-01T02:42:00.000-07:00</published><updated>2011-01-13T01:08:51.574-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Commands"/><title type='text'>Useful commands for Ubuntu</title><content type='html'>&lt;strong&gt;Privileges Commands&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;sudo command - run command as root&lt;br/&gt;sudo su – root shell open&lt;br/&gt;sudo su user – open shell as a user&lt;br/&gt;sudo -k – forget your password sudo&lt;br/&gt;gksudo command – sudo visual dialog (GNOME)&lt;br/&gt;kdesudo command – sudo visual dialog (KDE)&lt;br/&gt;sudo visudo – edit / etc / sudoers&lt;br/&gt;gksudo nautilus – root file manager (GNOME)&lt;br/&gt;kdesudo konqueror – root file manager (KDE)&lt;br/&gt;passwd – change your password&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;Network Commands&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;ifconfig – displays information network&lt;br/&gt;iwconfig – displays information from &lt;a href=&quot;http://linuxpoison.blogspot.com/2008/10/useful-commands-in-ubuntu.html&quot; target=&quot;undefined&quot;&gt;wireless&lt;/a&gt;&lt;br/&gt;sudo iwlist scan – scan wireless networks&lt;br/&gt;sudo /etc/init.d/networking restart – reset the network&lt;br/&gt;(file) /etc/network/interfaces – manual configuration&lt;br/&gt;ifup interface – bring online interface&lt;br/&gt;ifdown interface – disable interface&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Display Commands&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;sudo /etc/init.d/gdm restart – reset X (Gnome)&lt;br/&gt;sudo /etc/init.d/kdm restart – reset X (KDE)&lt;br/&gt;(file) /etc/X11/xorg.conf – show Configuration&lt;br/&gt;sudo dpkg-reconfigure - reconfigure xserver-xorg-phigh - reset configuration X&lt;br/&gt;Ctrl+Alt+Bksp – X display reset if frozen&lt;br/&gt;Ctrl+Alt+FN – switch to tty N&lt;br/&gt;Ctrl+Alt+F7 – switch back to X display&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Service System Commands.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;start service – service to start work (Upstart)&lt;br/&gt;stop service – service to stop working (Upstart)&lt;br/&gt;status service – check if service is running (Upstart)&lt;br/&gt;/etc/init.d/service start – start service (SysV)&lt;br/&gt;/etc/init.d/service stop – stop service (SysV)&lt;br/&gt;/etc/init.d/service status – check service (SysV)&lt;br/&gt;/etc/init.d/service restart – reset service (SysV)&lt;br/&gt;runlevel – get current runlevel&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Firewall related commands&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;ufw enable – turn on the firewall&lt;br/&gt;ufw disable – turn off the firewall&lt;br/&gt;ufw default allow – allow all connections by default&lt;br/&gt;ufw default deny – drop all connections by default&lt;br/&gt;ufw status – current rules and&lt;br/&gt;ufw allow port – to allow traffic on port&lt;br/&gt;ufw deny port – port block&lt;br/&gt;ufw deny from ip – ip block&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;System Commands.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;lsb_release -a – get the version of Ubuntu&lt;br/&gt;uname -r – get kernel version&lt;br/&gt;uname -a – get all the information kernel&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;Commands for Package Manager.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;apt-get update – refresh updates available&lt;br/&gt;apt-get upgrade – update all packages&lt;br/&gt;apt-get dist-upgrade – version update&lt;br/&gt;apt-get install pkg – installing pkg&lt;br/&gt;apt-get remove pkg – uninstall pkg&lt;br/&gt;apt-get autoremove – removing packages obsotletos&lt;br/&gt;apt-get -f install – try to fix packages&lt;br/&gt;dpkg –configure -a – try to fix a broken package&lt;br/&gt;dpkg -i pkg.deb – install file pkg.deb&lt;br/&gt;(file) /etc/apt/sources.list – list of repositories APT&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Commands Special Packages.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;ubuntu-desktop – Setting the standard Ubuntu&lt;br/&gt;kubuntu-desktop – KDE Desktop&lt;br/&gt;xubuntu-desktop – desktop XFCE&lt;br/&gt;ubuntu-minimal – core earnings Ubuntu&lt;br/&gt;ubuntu-standard – the standard utilities Ubuntu&lt;br/&gt;ubuntu-restricted-extras – not free, but useful&lt;br/&gt;kubuntu-restricted-extras – ditto KDE&lt;br/&gt;xubuntu-restricted-extras – ditto XFCE&lt;br/&gt;build-essential – packages used to compile&lt;br/&gt;linux-image-generic – latest generic kernel image&lt;br/&gt;linux-headers-generic – latest headlines&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Applications commands.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;nautilus – File Manager (GNOME)&lt;br/&gt;dolphin – File Manager (KDE)&lt;br/&gt;konqueror – Web browser (KDE)&lt;br/&gt;kate – text editor (KDE)&lt;br/&gt;gedit – text editor (GNOME)</content><link rel='replies' type='application/atom+xml' href='http://sanjaybdalal.blogspot.com/feeds/4213728064738621488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3252331681151286458/4213728064738621488' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4213728064738621488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3252331681151286458/posts/default/4213728064738621488'/><link rel='alternate' type='text/html' href='http://sanjaybdalal.blogspot.com/2009/07/useful-commands-for-ubuntu.html' title='Useful commands for Ubuntu'/><author><name>sanjay dalal</name><uri>http://www.blogger.com/profile/06294540442120943049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oi2RooI0nWMcprWYjnCcpSqmu6IWCfWQJUqRqJjAsYoTuOC-gzNt3iwbX-HyREf3IkPYTGp5qY0y3_TX0e5VpAs8trwvSpDoR5BD73xpgqTg10VJyXwwdq8n4xlGCg/s220/Picture%2824%29.jpg'/></author><thr:total>0</thr:total></entry></feed>