<?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: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-7948756701798756282</id><updated>2011-12-03T06:56:09.462-08:00</updated><category term='locks error mysql'/><category term='postfix mysql'/><category term='postfix complete setup'/><category term='ubuntu mobile'/><category term='no listening sockets available'/><category term='Password setup for webdirectory'/><category term='Change the grub splash image in ubuntu 11.10'/><category term='hp2400 scanner installation on ubuntu'/><category term='InstallingWindowsAfterUbuntu'/><category term='Hardware clock time change'/><category term='Ubuntu firwall GUI tool'/><category term='Live CD creation'/><category term='zimbra cluster configuration on Redhat'/><category term='ubuntu linux guide'/><category term='ubuntu new version'/><category term='Linux Security Tips and Tricks'/><category term='more screen resolution'/><category term='linux run level'/><category term='Brasero Burner On Ubuntu'/><category term='run level'/><category term='ubuntu login screen install'/><category term='Some Usefull Linux scripts'/><category term='package installation ubuntu'/><category term='Ftp auto login scripts'/><category term='backup scripts'/><category term='Starting httpd: (98)Address already in use'/><category term='Future of Ubuntu 9.04'/><category term='macrosoft'/><category term='Linux Kernel recompilation with GRSECURITY'/><category term='crontab how to'/><category term='Evolution Backup and Resotre'/><category term='pdf editor'/><category term='Tomcat6 Installation on Ubuntu'/><category term='Segmentation Fault after login and password entered'/><category term='courrier imap'/><category term='squid'/><category term='Features of Ubuntu 9.04 Server Edition'/><category term='shutting down'/><category term='Themes For ubuntu'/><category term='Run Command without SUDO password - Ubuntu'/><category term='NIC card sharing'/><category term='HD to Cd'/><category term='using grep command'/><category term='Effectively Use Your Bandwidth'/><category term='Google Chrome for  Linux'/><category term='How to Effectively Use Your Internet Bandwidth'/><category term='zimbra Collobration suite installation on ubuntu'/><category term='crontab structure'/><category term='Linux Virus'/><category term='Yum Proxy setup'/><category term='webmin mail issue'/><category term='ldap setup'/><category term='Internet sharing'/><category term='grubfix'/><category term='Voice Chat setup on Ubuntu - Using Empathy'/><category term='crontab examples'/><category term='Yum http proxy server'/><category term='active directory in linux'/><category term='make_sock: could not bind to address 0.0.0.0:80'/><category term='network configuration'/><category term='Fatal error: Call to undefined function mysql_connect() in Ubuntu'/><category term='Date change'/><category term='command line package installation ubuntu'/><category term='Linux Security'/><category term='team viewer installation on ubuntu'/><category term='easy'/><category term='Pdf to .doc converting'/><category term='synchronization of hardware clock to date'/><category term='windowsgrubfix'/><category term='table size error'/><category term='Fedora Live CD'/><category term='mbr'/><category term='debian'/><category term='Backup and restore your system'/><category term='Linux Web brwoser'/><category term='not syncing error'/><category term='firewall'/><category term='Mount NTFS / FAT32 partition'/><category term='Installation of Sun xVM VirtualBox on Ubuntu 8.10 Intrepid Ibex and Ubuntu9.04 Jaunty Jackalope'/><category term='virtual consoles Edit'/><category term='ubuntu linux'/><category term='Recompilation of Linux Kernel.Recompilation of Linux Kernel with GRSECURITY'/><category term='kernal panic error in ubuntu 8.10'/><category term='neworksetup ubuntu'/><category term='crontab graphical'/><category term='Automatic login with ssh without a password'/><category term='Mozilla Backup and Resotre'/><category term='The total number of locks exceeds the lock table size'/><category term='ubuntu Backup and restore your system'/><category term='Folder sharing on ubuntu'/><category term='package installation from source packages'/><category term='gruberror'/><category term='grep command'/><category term='login screen download'/><category term='Install OpenOffice 3.0 on Ubuntu 8.10'/><category term='VMware Installation on Ubuntu'/><category term='Virus for Linux'/><category term='initprocess'/><category term='service runlevel change'/><category term='File Recovery Tools for Ext2/Ext3 filesystems'/><category term='Using Vi editior'/><category term='Segmentation Fault Unable to Login the System - Ubuntu 8.10'/><category term='Mysql root password revoking'/><category term='ubuntu 9.04 download'/><category term='Harddisk Backup'/><category term='screen resolution change ubuntu'/><category term='Server constantly emailing'/><category term='linux netwroking'/><category term='Mount windows partition in ubuntu'/><title type='text'>Ubuntu Linux Technical Document</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sahabm.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>78</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5722960519733105025</id><published>2011-10-26T06:46:00.000-07:00</published><updated>2011-10-26T06:47:08.047-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Change the grub splash image in ubuntu 11.10'/><title type='text'>How to Change the grub splash image in ubuntu 11.10</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Open the terminal&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;Type&amp;nbsp; the following cmmand&lt;/div&gt;&lt;h4 dir="ltr"&gt;$wget http://img819.imageshack.us/img819/5632/nebulae.jpg&lt;/h4&gt;&lt;h4 dir="ltr"&gt;$mv $HOME/nebulae.jpg $HOME/nebula.jpg&lt;/h4&gt;&lt;h4 dir="ltr"&gt;$sudo mv $HOME/nebula.jpg /usr/share/images/grub/nebula.jpg&lt;/h4&gt;&lt;/div&gt;enter your root password to place the nebula in your grubs boot images….&lt;br /&gt;now were going to remove the old desktop base script and replace it with a more stellar one….&lt;br /&gt;do this block of code to remove.&lt;br /&gt;&lt;div&gt;&lt;h4 dir="ltr"&gt;&lt;b&gt;sudo rm /usr/share/desktop-base/grub_background.sh&lt;/b&gt;&lt;/h4&gt;&lt;h4 dir="ltr"&gt;&lt;b&gt;For more info&lt;/b&gt;&lt;a href="http://ubuntulinux.co.in/blog/ubuntu/changing-grub-splash-image-in-ubuntu-11-10/"&gt;&lt;b&gt; &lt;/b&gt;Changing grub splash image in ubuntu 11.10&lt;/a&gt;&lt;/h4&gt;&lt;h4 dir="ltr"&gt;&lt;b&gt; &lt;/b&gt;&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5722960519733105025?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5722960519733105025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5722960519733105025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5722960519733105025'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2011/10/how-to-change-grub-splash-image-in.html' title='How to Change the grub splash image in ubuntu 11.10'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3815234605732712519</id><published>2009-08-05T02:02:00.000-07:00</published><updated>2009-08-05T02:24:55.372-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shutting down'/><category scheme='http://www.blogger.com/atom/ns#' term='Starting httpd: (98)Address already in use'/><category scheme='http://www.blogger.com/atom/ns#' term='make_sock: could not bind to address 0.0.0.0:80'/><category scheme='http://www.blogger.com/atom/ns#' term='no listening sockets available'/><title type='text'>apache restart error - Starting httpd: (98)Address already in use</title><content type='html'>[root@]# /etc/init.d/httpd start&lt;br /&gt;Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80&lt;br /&gt;(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80&lt;br /&gt;no listening sockets available, shutting down&lt;br /&gt;Unable to open logs&lt;br /&gt;                                                           [FAILED]&lt;br /&gt;&lt;br /&gt;For resolving this issue grep list of open files and kill that file&lt;br /&gt;[root@]# lsof -i :80&lt;br /&gt;COMMAND  PID   USER   FD   TYPE   DEVICE SIZE NODE NAME&lt;br /&gt;perl    7448 apache    4u  IPv6 33113387       TCP *:http (LISTEN)&lt;br /&gt;&lt;br /&gt;[root@]# kill -9 7448&lt;br /&gt;&lt;br /&gt;[root@]# /etc/init.d/httpd start&lt;br /&gt;Starting httpd:                                            [  OK  ]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3815234605732712519?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3815234605732712519' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3815234605732712519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3815234605732712519'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/08/apache-restart-error-starting-httpd.html' title='apache restart error - Starting httpd: (98)Address already in use'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3690513976563977394</id><published>2009-07-01T00:13:00.001-07:00</published><updated>2009-07-01T00:27:21.181-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Voice Chat setup on Ubuntu - Using Empathy'/><title type='text'>Voice Chat setup on Ubuntu - Using Empathy</title><content type='html'>Empathy consists of a rich set of reusable instant messaging widgets, and a GNOME client using those widgets. It uses Telepathy and Nokia's Mission Control, and reuses Gossip's UI. The main goal is to permit desktop integration by providing libempathy and libempathy-gtk libraries. libempathy-gtk is a set of powerful widgets that can be embeded into any GNOME application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First we will add launchpad repository to get latest binary for ubuntu intrepid and hardy :&lt;br /&gt;&lt;br /&gt;Add these lines to your /etc/apt/sources.list :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$sudo gedit /etc/apt/sources.list&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;For Ubuntu Intrepid :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;deb http://ppa.launchpad.net/telepathy/ppa/ubuntu intrepid main&lt;br /&gt;deb-src http://ppa.launchpad.net/telepathy/ppa/ubuntu intrepid main &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;For Ubuntu Hardy :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;deb http://ppa.launchpad.net/telepathy/ppa/ubuntu hardy main&lt;br /&gt;deb-src http://ppa.launchpad.net/telepathy/ppa/ubuntu hardy main &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now run :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$sudo apt-get update&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Install the required packages and empathy via this command :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$sudo apt-get install empathy telepathy-gabble telepathy-mission-control telepathy-stream-engine telepathy-butterfly python-msn&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SetUp Empathy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start Empathy by going Applications –&gt; Internet –&gt; Empathy Instant Messenger or empathy command&lt;br /&gt;&lt;br /&gt;use your google talk account here and click Advanced and be sure server is talk.google.com , port 5223, and use old ssl is checked.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3690513976563977394?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3690513976563977394' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3690513976563977394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3690513976563977394'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/07/voice-chat-setup-on-ubuntu-using.html' title='Voice Chat setup on Ubuntu - Using Empathy'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-2530425098765698824</id><published>2009-06-27T10:22:00.000-07:00</published><updated>2009-06-27T10:29:52.439-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Web brwoser'/><category scheme='http://www.blogger.com/atom/ns#' term='Google Chrome for  Linux'/><title type='text'>Google Chrome for  Linux</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_6W0mYQajg-E/SkZVvHkyApI/AAAAAAAAAuw/a0E87UgIvx8/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 200px;" src="http://3.bp.blogspot.com/_6W0mYQajg-E/SkZVvHkyApI/AAAAAAAAAuw/a0E87UgIvx8/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5352059475151946386" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Google has also released official builds of Google Chrome for Linux and Mac OS X (see update below).&lt;br /&gt;&lt;/p&gt; &lt;p&gt;The Google Browser port, known as Crossover Chromium, is &lt;a href="http://chromium.codeweavers.com/"&gt;available&lt;/a&gt; for download on Mac OS X as a native Mac .dmg file or on Ubuntu, RedHat, Suse, etc. as standard Linux packages.&lt;/p&gt;&lt;h2&gt;How to Install Google Browser on  Linux&lt;/h2&gt; &lt;p&gt; Linux users should use the appropriate tools for their respective Linux distributions to unpack the installer package. Google Chrome on Linux is available for both 32bit and 64bit versions.&lt;/p&gt; &lt;p&gt;If you installed Google Chrome on Linux using the .deb package, you can uninstall the Google Browser using the Synaptic package manager or via the following command - sudo aptitude purge cxchromium&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Google Chrome for Mac &amp;amp; Linux - Official Builds&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Update: The official builds of Google Chromium are now available for Linux and Mac &lt;a title="nofollow" href="http://build.chromium.org/buildbot/snapshots/"&gt;here&lt;/a&gt;. The interface and features of Chromium for Mac OS X are similar to that of Chrome for Windows but it’s a developer release and not very stable yet.&lt;/p&gt;&lt;p&gt;For Ubuntu 9.04 click &lt;a href="http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/12757/chromium-browser_0.12757-r12757_i386.deb"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-2530425098765698824?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=2530425098765698824' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2530425098765698824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2530425098765698824'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/06/google-chrome-for-linux.html' title='Google Chrome for  Linux'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6W0mYQajg-E/SkZVvHkyApI/AAAAAAAAAuw/a0E87UgIvx8/s72-c/Screenshot.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3243537027047029897</id><published>2009-06-12T23:53:00.000-07:00</published><updated>2009-06-12T23:59:30.074-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crontab structure'/><category scheme='http://www.blogger.com/atom/ns#' term='crontab graphical'/><category scheme='http://www.blogger.com/atom/ns#' term='crontab how to'/><category scheme='http://www.blogger.com/atom/ns#' term='crontab examples'/><title type='text'>Crontab</title><content type='html'>crontab - maintain crontab files for individual users. If the cron.allow file exists, then you must be listed therein in order to be allowed to use this command. If the cron.allow file does not exist but the cron.deny file does exist, then you must not be listed in the cron.deny file in order to use this command. If neither of these files exists, only the super user will be allowed to use this command. See Figure Below for Syntax. &lt;div style="text-align: center;"&gt;&lt;img src="http://itmission.org/cron.png" alt="" title="" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Examples&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This line executes the "ping" command every minute of every hour of every day of every month. The standard output is redirected to dev null so we will get no e-mail but will allow the standard error to be sent as a e-mail. If you want no e-mail ever change the command line to "/sbin/ping -c 1 192.168.2.187 &gt; /dev/null 2&gt;&amp;amp;1".&lt;/p&gt;  &lt;pre class="code" style="height: 50px; font-weight: bold;"&gt;*       *       *       *       *       /sbin/ping -c 1 192.168.2.187 &gt; /dev/null&lt;/pre&gt;    &lt;p&gt;This line executes the "ping" and the "ls" command every 12am and 12pm on the 1st day of every 2nd month. It also puts the output of the commands into the log file /var/log/cronrun.&lt;/p&gt;  &lt;pre class="code" style="height: 50px; font-weight: bold;"&gt;0 0,12 1 */2 * /sbin/ping -c 192.168.2.187; ls -la &gt;&gt;/var/log/cronrun&lt;/pre&gt;   &lt;p&gt;This line executes the disk usage command to get the directory sizes every 2am on the 1st thru the 10th of each month. E-mail is sent to the user executing the jobs e-mail address. Remember if your executing this command as root to go into your /etc/aliases file and put your e-mail in there. You could also put a .forward file in root's home dir to forward to another e-mail address.&lt;/p&gt;  &lt;pre class="code" style="height: 50px; font-weight: bold;"&gt;0 2 1-10 * * du -h --max-depth=1 /&lt;/pre&gt;   &lt;p&gt;This line is and example of running a cron job every month, on Mondays whose dates are between 15-21. This means the third Monday only of the month at 4 a.m.&lt;/p&gt;  &lt;pre class="code" style="height: 50px; font-weight: bold;"&gt;0 4 15-21 * 1 /command&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3243537027047029897?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3243537027047029897' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3243537027047029897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3243537027047029897'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/06/crontab.html' title='Crontab'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-394753585813976522</id><published>2009-06-12T23:43:00.000-07:00</published><updated>2009-06-12T23:53:00.931-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Recompilation of Linux Kernel.Recompilation of Linux Kernel with GRSECURITY'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Kernel recompilation with GRSECURITY'/><title type='text'>Recompilation of  Linux Kernel with GRSECURITY</title><content type='html'>&lt;span style="font-family:lucida grande;"&gt;To recompile the linux kernel, Upgrade to at *least* these software revisions before thinking you've encountered a bug! If you're unsure what version you're currently running, the suggested command should tell you. Grsecurity is an innovative approach to security utilizing a multi-layered detection, prevention, and containment model.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; font-family: lucida grande;"&gt;&lt;img src="http://www.serversignature.com/linux-kernel-recompile.png/linux-kernel-recompile-full;init:.png" alt="" title="" /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;   &lt;span style="font-size:130%;"&gt;cd /usr/src&lt;br /&gt; wget &lt;a class="urllink" href="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.11.tar.bz2" rel="nofollow"&gt;http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.11.tar.bz2&lt;/a&gt;&lt;br /&gt; wget &lt;a class="urllink" href="http://grsecurity.org/grsecurity-2.1.9-2.6.17.11-200608282236.patch.gz" rel="nofollow"&gt;http://grsecurity.org/grsecurity-2.1.9-2.6.17.11-200608282236.patch.gz&lt;/a&gt;&lt;br /&gt; tar -xjvf linux-2.6.17.11.tar.bz2&lt;br /&gt; gunzip &lt; default="0" requirements    ="="&gt;&amp;amp;1|grep reiserfsprogs&lt;br /&gt; o xfsprogs 2.6.0 # xfs_db -V&lt;br /&gt; o pcmciautils 004 # pccardctl -V&lt;br /&gt; o quota-tools 3.09 # quota -V&lt;br /&gt; o PPP 2.4.0 # pppd --version&lt;br /&gt; o isdn4k-utils 3.1pre1 # isdnctrl 2&gt;&amp;amp;1|grep version&lt;br /&gt; o nfs-utils 1.0.5 # showmount --version&lt;br /&gt; o procps 3.2.0 # ps --version&lt;br /&gt; o oprofile 0.9 # oprofiled --version&lt;br /&gt; o udev 081 # udevinfo -V&lt;br /&gt;&lt;br /&gt; Kernel compilationroot@fast [~/support/linux-2.6.20/Documentation]# vi Changes&lt;br /&gt;&lt;br /&gt; Basic tools:&lt;br /&gt;&lt;br /&gt; automake&lt;br /&gt; autocnf&lt;br /&gt; binutils&lt;br /&gt; bison&lt;br /&gt; byac&lt;br /&gt; cdecl&lt;br /&gt; dev86&lt;br /&gt; flex&lt;br /&gt; gcc&lt;br /&gt; gcc-c++&lt;br /&gt; gdb&lt;br /&gt; gettex&lt;br /&gt; libtool&lt;br /&gt; make&lt;br /&gt; perl-CPAN&lt;br /&gt; pkgconfig&lt;br /&gt; python-devel&lt;br /&gt; redhat-rpm-config&lt;br /&gt; rpm-build&lt;br /&gt; strace&lt;br /&gt; texinfo&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p class="vspace"&gt;grsecurity &lt;/p&gt; &lt;p class="vspace"&gt;grsecurity is an innovative approach to security utilizing a multi-layered detection, prevention, and containment model. It is licensed under the GPL. &lt;/p&gt; &lt;p class="vspace"&gt;It offers among many other features: &lt;/p&gt; &lt;ul&gt;&lt;li&gt;An intelligent and robust Role-Based Access Control (RBAC) system that can generate least privilege policies for your entire system with no configuration &lt;/li&gt;&lt;li&gt;Change root (chroot) hardening &lt;/li&gt;&lt;li&gt;/tmp race prevention &lt;/li&gt;&lt;li&gt;Extensive auditing &lt;/li&gt;&lt;li&gt;Prevention of arbitrary code execution, regardless of the technique used (stack smashing, heap corruption, etc) &lt;/li&gt;&lt;li&gt;Prevention of arbitrary code execution in the kernel &lt;/li&gt;&lt;li&gt;Randomization of the stack, library, and heap bases &lt;/li&gt;&lt;li&gt;Kernel stack base randomization &lt;/li&gt;&lt;li&gt;Protection against exploitable null-pointer dereference bugs in the kernel &lt;/li&gt;&lt;li&gt;Reduction of the risk of sensitive information being leaked by arbitrary-read kernel bugs &lt;/li&gt;&lt;li&gt;A restriction that allows a user to only view his/her processes &lt;/li&gt;&lt;li&gt;Security alerts and audits that contain the IP address of the person causing the alert &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-394753585813976522?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=394753585813976522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/394753585813976522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/394753585813976522'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/06/recompilation-of-linux-kernel-with.html' title='Recompilation of  Linux Kernel with GRSECURITY'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1194283025496893569</id><published>2009-06-04T02:24:00.000-07:00</published><updated>2009-06-04T03:15:53.319-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grep command'/><category scheme='http://www.blogger.com/atom/ns#' term='using grep command'/><title type='text'>Using Grep Command</title><content type='html'>Grep is a command line text search utility originally written for Unix. Difference between grep and find command is&lt;span style="color: rgb(255, 0, 0);"&gt; grep is used to search for string in a file, find is used to search files or directories&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The grep command searches files or standard input globally for lines matching a given regular expression, and prints them to the program's standard output.&lt;br /&gt;&lt;br /&gt;      &lt;span style="font-weight: bold;"&gt; sahab@sahab-desktop:~$ grep root /etc/passwd&lt;/span&gt;&lt;br /&gt;       root:x:0:0:root:/root:/bin/bash&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;sahab@sahab-desktop:~$ grep -n root /etc/passwd&lt;/span&gt;&lt;br /&gt;       1:root:x:0:0:root:/root:/bin/bash&lt;br /&gt;        -n, --line-number&lt;br /&gt;           Prefix each line of output with the line number within its input&lt;br /&gt;           file.&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;sahab@sahab-desktop:~$ grep -v bash /etc/passwd | grep -v nologin&lt;/span&gt;&lt;br /&gt;       daemon:x:1:1:daemon:/usr/sbin:/bin/sh&lt;br /&gt;       bin:x:2:2:bin:/bin:/bin/sh&lt;br /&gt;       sys:x:3:3:sys:/dev:/bin/sh&lt;br /&gt;       sync:x:4:65534:sync:/bin:/bin/sync&lt;br /&gt;       games:x:5:60:games:/usr/games:/bin/sh&lt;br /&gt;       man:x:6:12:man:/var/cache/man:/bin/sh&lt;br /&gt;               v, --invert-match&lt;br /&gt;           Invert the sense of matching, to select non-matching lines.&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;sahab@sahab-desktop:~$ grep -c bash /etc/passwd&lt;/span&gt;&lt;br /&gt;       4&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;sahab@sahab-desktop:~$ grep -c nologin /etc/passwd&lt;/span&gt;&lt;br /&gt;       1&lt;br /&gt;            -c, --count&lt;br /&gt;           Suppress normal output; instead print a count of matching  lines&lt;br /&gt;           for  each  input  file.  With the -v, --invert-match option (see&lt;br /&gt;           below), count non-matching lines.&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;sahab@sahab-desktop:~$ grep -i ps ~/.bash*&lt;/span&gt;&lt;br /&gt;       /home/sahab/.bash_history:ps -ax&lt;br /&gt;       /home/sahab/.bash_history:tops&lt;br /&gt;       /home/sahab/.bash_history:ps -ax | grep -i giis&lt;br /&gt;       /home/sahab/.bash_history:ps -ax&lt;br /&gt;       /home/sahab/.bashrc:[ -z "$PS1" ] &amp;amp;&amp;amp; return&lt;br /&gt;       /home/sahab/.bashrc:export HISTCONTROL=$HISTCONTROL$    {HISTCONTROL+,}ignoredups&lt;br /&gt;       /home/sahab/.bashrc:# ... or force ignoredups and ignorespace&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;sahab@sahab-desktop:~$ grep -i ps ~/.bash* | grep -v history&lt;/span&gt;&lt;br /&gt;       /home/sahab/.bashrc:[ -z "$PS1" ] &amp;amp;&amp;amp; return&lt;br /&gt;         -i, --ignore-case        &lt;br /&gt;                 Ignore  case  distinctions  in  both  the  PATTERN and the input&lt;br /&gt;           files.&lt;br /&gt; We now exclusively want to display lines starting with the string "root":&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;$ grep -rwl 'ar' /home/sahab/&lt;/span&gt;&lt;br /&gt; grep: /home/sahab/.kde/socket-sahab-desktop: No such file or directory&lt;br /&gt;grep: /home/sahab/.kde/tmp-sahab-desktop:&lt;br /&gt;-R, -r, --recursive&lt;br /&gt;           Read all files under each directory, recursively; this is equiv-&lt;br /&gt;           alent to the -d recurse option.&lt;br /&gt;-w, --word-regexp&lt;br /&gt;           Select only those  lines  containing  matches  that  form  whole&lt;br /&gt;           words.&lt;br /&gt;-x, --line-regexp&lt;br /&gt;           Select only those matches that exactly match the whole line.&lt;br /&gt;-l, --files-with-matches&lt;br /&gt;           Suppress normal output; instead print the  name  of  each  input&lt;br /&gt;           file  from  which  output would normally have been printed.  The&lt;br /&gt;           scanning will stop on the first match.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ grep ^root /etc/passwd&lt;/span&gt;&lt;br /&gt;root:x:0:0:root:/root:/bin/bash&lt;br /&gt;    The caret ^ and the dollar sign $ are meta-characters that  respectively&lt;br /&gt;    match the empty string at the beginning and end of a line.  The symbols&lt;br /&gt;    \&lt;&gt; respectively match the empty string at the beginning and  end&lt;br /&gt;    of  a  word.   The  symbol \b matches the empty string at the edge of a&lt;br /&gt;    word, and \B matches the empty string provided  not at the edge  of&lt;br /&gt;    a word.&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;$ grep -w / /etc/fstab&lt;/span&gt;&lt;br /&gt;       UUID=8d7122c6-6549-4622-83b8-7855ad822edc /               ext3          relatime,errors=remount-ro 0&lt;br /&gt;  $ grep  / /etc/fstab&lt;br /&gt;#/etc/fstab: static file system information.&lt;br /&gt;       proc            /proc           proc    defaults        0       0&lt;br /&gt;       # /dev/sda6&lt;br /&gt;       UUID=8d7122c6-6549-4622-83b8-7855ad822edc /               ext3          relatime,errors=remount-ro 0       1&lt;br /&gt;       # /dev/sda7&lt;br /&gt;       UUID=f9ca09b2-9a7d-472d-9ecd-a8d156737559 /data           ext3    relatime              0       2&lt;br /&gt;       # /dev/sda3&lt;br /&gt;       /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Here is an example shell command that invokes GNU `grep&lt;/span&gt;':&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;     grep -i 'hello.*world' menu.h main.c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                                       This lists all lines in the files `menu.h' and `main.c' that contain the string `hello' followed by the string `world'; this is because `.*' matches zero or more characters within a line. *Note Regular Expressions::. The `-i' option causes `grep' to ignore case, causing it to match the line `Hello, world!', which it would not otherwise match. *Note Invoking::, for more details about how to invoke `grep'.&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Here are some common questions and answers about `grep' usage.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. How can I list just the names of matching files?&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;grep -l 'main' *.c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  lists the names of all C files in the current directory whose&lt;br /&gt;  contents mention `main'.&lt;br /&gt;&lt;br /&gt;2. How do I search directories recursively?&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;grep -r 'hello' /home/sahab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  searches for `hello' in all files under the directory&lt;br /&gt;  `/home/sahab'.  For more control of which files are searched, use&lt;br /&gt;  `find', `grep' and `xargs'.  For example, the following command&lt;br /&gt;  searches only C files:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;        find /home/sahab -name '*.c' -print | xargs grep 'hello' /dev/null&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  This differs from the command:&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt;grep -r 'hello' *.c&lt;/span&gt;&lt;br /&gt;lists the names of all C files in the current directory whose&lt;br /&gt;    contents mention `main'.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; 3. What if a pattern has a leading `-'?&lt;br /&gt;&lt;br /&gt;         &lt;span style="font-weight: bold;"&gt;grep -e -cut here- *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    searches for all lines matching `--cut here--'.  Without `-e',&lt;br /&gt;    `grep' would attempt to parse `--cut here--' as a list of options.&lt;br /&gt;&lt;br /&gt; 4. Suppose I want to search for a whole word, not a part of a word?&lt;br /&gt;&lt;br /&gt;         &lt;span style="font-weight: bold;"&gt;grep -w 'hello' *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    searches only for instances of `hello' that are entire words; it&lt;br /&gt;    does not match `Othello'.  For more control, use `\&lt;' and `\&gt;' to&lt;br /&gt;    match the start and end of words.  For example:&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt;grep 'hello\&gt;' *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    searches only for words ending in `hello', so it matches the word&lt;br /&gt;    `Othello'.&lt;br /&gt;&lt;br /&gt; 5. How do I output context around the matching lines?&lt;br /&gt;&lt;br /&gt;         &lt;span style="font-weight: bold;"&gt;grep -C 2 'hello' *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    prints two lines of context around each matching line.&lt;br /&gt;&lt;br /&gt; 6. How do I force grep to print the name of the file?&lt;br /&gt;&lt;br /&gt;    Append `/dev/null':&lt;br /&gt;&lt;br /&gt;         &lt;span style="font-weight: bold;"&gt;grep 'test' /etc/passwd /dev/null&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    gets you:&lt;br /&gt;         /etc/passwd:test:x:1002:1002:,,,:/home/test:/bin/bash&lt;br /&gt;&lt;br /&gt; 7. Why do people use strange regular expressions on `ps' output?&lt;br /&gt;&lt;br /&gt;         &lt;span style="font-weight: bold;"&gt;ps -ef | grep '[c]ron'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    If the pattern had been written without the square brackets, it&lt;br /&gt;    would have matched not only the `ps' output line for `cron', but&lt;br /&gt;    also the `ps' output line for `grep'.  Note that some platforms&lt;br /&gt;    `ps' limit the ouput to the width of the screen, grep does not&lt;br /&gt;    have any limit on the length of a line except the available memory.&lt;br /&gt;&lt;br /&gt;8. Why does `grep' report "Binary file matches"?&lt;br /&gt;    If `grep' listed all matching "lines" from a binary file, it would&lt;br /&gt;    probably generate output that is not useful, and it might even&lt;br /&gt;    muck up your display.  So GNU `grep' suppresses output from files&lt;br /&gt;    that appear to be binary files.  To force GNU `grep' to output&lt;br /&gt;    lines even from files that appear to be binary, use the `-a' or&lt;br /&gt;    `--binary-files=text' option.  To eliminate the "Binary file&lt;br /&gt;    matches" messages, use the `-I' or `--binary-files=without-match'&lt;br /&gt;    option.&lt;br /&gt;&lt;br /&gt; 9. Why doesn't `grep -lv' print nonmatching file names?&lt;br /&gt;&lt;br /&gt;    `grep -lv' lists the names of all files containing one or more&lt;br /&gt;    lines that do not match.  To list the names of all files that&lt;br /&gt;    contain no matching lines, use the `-L' or `--files-without-match'&lt;br /&gt;    option.&lt;br /&gt;&lt;br /&gt;10. I can do OR with `|', but what about AND?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;          grep 'sahab' /etc/motd | grep 'ubuntu,jaunty&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    finds all lines that contain both `sahab' and 'ubuntu,jaunty'.&lt;br /&gt;&lt;br /&gt;11. How can I search in both standard input and in files?&lt;br /&gt;&lt;br /&gt;    Use the special file name `-':&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat /etc/passwd | grep 'sahab' - /etc/motd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;12. How to express palindromes in a regular expression?&lt;br /&gt;&lt;br /&gt;    It can be done by using the back referecences, for example a&lt;br /&gt;    palindrome of 4 chararcters can be written in BRE.&lt;br /&gt;&lt;br /&gt;         grep -w -e '\(.\)\(.\).\2\1' file&lt;br /&gt;&lt;br /&gt;    It matches the word "radar" or "civic".&lt;br /&gt;&lt;br /&gt;    Guglielmo Bondioni proposed a single RE that finds all the&lt;br /&gt;    palindromes up to 19 characters long.&lt;br /&gt;&lt;br /&gt;         egrep -e '^(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?).?\9\8\7\6\5\4\3\2\1$' file&lt;br /&gt;&lt;br /&gt;    Note this is done by using GNU ERE extensions, it might not be&lt;br /&gt;    portable on other greps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1194283025496893569?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1194283025496893569' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1194283025496893569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1194283025496893569'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/06/using-grep-command.html' title='Using Grep Command'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3597045588092527328</id><published>2009-05-29T22:01:00.000-07:00</published><updated>2009-05-31T22:13:10.136-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation of Sun xVM VirtualBox on Ubuntu 8.10 Intrepid Ibex and Ubuntu9.04 Jaunty Jackalope'/><title type='text'>Installation of Sun xVM VirtualBox on Ubuntu 8.10 Intrepid Ibex and Ubuntu9.04 Jaunty Jackalope</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_6W0mYQajg-E/SiNi7l93LII/AAAAAAAAAoY/zK6LiiChj9Y/s1600-h/Screenshot-5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_6W0mYQajg-E/SiNi7l93LII/AAAAAAAAAoY/zK6LiiChj9Y/s320/Screenshot-5.png" alt="" id="BLOGGER_PHOTO_ID_5342222358934924418" border="0" /&gt;&lt;/a&gt;This tutorial shows how you can install &lt;a href="http://sahabm.blogspot.com/" target="_blank"&gt;Sun xVM VirtualBox&lt;/a&gt;&lt;span&gt; on Ubuntu 8.10 Intrepid lbex desktop and on Ubuntu9.04 Jaunty &lt;/span&gt;Jackalope .  VirtualBox is similar to Mvware,   &lt;p style="margin-bottom: 0in; font-family: georgia;"&gt;Using &lt;span&gt;&lt;span&gt;Virtualbox you can create and run guest operating systems virtual Machines such as Linux and Windows &lt;/span&gt; under a host operating system.  &lt;/span&gt;&lt;/p&gt;   &lt;p style="margin-bottom: 0in; font-family: georgia;"&gt;&lt;strong&gt;- Install Sun Virtualbox  on Ubuntu9.04 Jaunty Jackalope&lt;/strong&gt; &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-family: georgia;"&gt;you will have just to use this command :&lt;/p&gt;&lt;pre  style="font-family:georgia;"&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;&lt;strong&gt;&lt;span&gt;sudo apt-get install virtualbox &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/pre&gt; &lt;p style="margin-bottom: 0in; font-family: georgia;"&gt; &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-family: georgia;"&gt;&lt;strong&gt;For &lt;/strong&gt;&lt;strong&gt;&lt;span&gt;Ubuntu 8.10 Intrepid &lt;span class="IL_SPAN"&gt;&lt;input name="IL_MARKER" type="hidden"&gt;Ibex&lt;/span&gt; desktop&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-family: georgia;"&gt;First we have to add virtualbox repository to our apt installation the 3 line together one after one  :&lt;/p&gt; &lt;pre  style="color: rgb(51, 51, 51); font-weight: bold;font-family:georgia;"&gt;&lt;span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span&gt;/bin/echo "# VirtualBox repository for Ubuntu 8.10 Intrepid &lt;span class="IL_SPAN"&gt;&lt;input name="IL_MARKER" type="hidden"&gt;Ibex&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre  style="color: rgb(51, 51, 51); font-weight: bold;font-family:georgia;"&gt;&lt;span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;deb http://download.virtualbox.org/virtualbox/debian intrepid non-free" \&lt;/span&gt;&lt;/pre&gt;&lt;pre  style="font-family:georgia;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;&lt;span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; | /usr/bin/sudo /usr/bin/tee /etc/apt/sources.list.d/intrepid-virtualbox.list&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;Then we install the key for this repository :&lt;/span&gt;  &lt;pre style="margin-bottom: 0.2in; font-weight: bold; color: rgb(0, 0, 0); font-family: georgia;"&gt;&lt;span&gt;/usr/bin/wget http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | &lt;span class="IL_SPAN"&gt;&lt;input name="IL_MARKER" type="hidden"&gt;sudo&lt;/span&gt; apt-key add -&lt;/span&gt;&lt;/pre&gt;&lt;p style="margin-bottom: 0in; font-family: georgia;"&gt; Now we have to update our package :  &lt;/p&gt;  &lt;pre style="margin-bottom: 0.2in; color: rgb(0, 0, 0); font-weight: bold; font-family: georgia;"&gt;/usr/bin/sudo /usr/bin/apt-get update&lt;/pre&gt;&lt;p style="margin-bottom: 0in; font-family: georgia;"&gt; At the end install VirtualBox :&lt;/p&gt;  &lt;pre style="margin-bottom: 0.2in; color: rgb(0, 0, 0); font-weight: bold; font-family: georgia;"&gt;/usr/bin/sudo /usr/bin/apt-get install virtualbox-2.0&lt;/pre&gt;&lt;p  style="font-family:georgia;"&gt; &lt;span style="color: rgb(0, 0, 0);"&gt;Now you will find the application on your ubuntu start menu:&lt;/span&gt; &lt;/p&gt;&lt;p  style="font-family:georgia;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Applications &gt; System Tools&lt;/span&gt;  &lt;/p&gt;&lt;p  style="font-family:georgia;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;To be sure that everything will work good, we will recompile the necessary kernels for this software : &lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.2in; font-weight: bold; color: rgb(0, 0, 0); font-family: georgia;"&gt;/usr/bin/sudo /etc/init.d/vboxdrv setup &lt;/pre&gt;&lt;p  style="font-family:georgia;"&gt; &lt;span style="color: rgb(0, 0, 0);"&gt;We advice people that has problem to run the application , to use the command above because will force&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:georgia;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; to lunch the application.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Now we will add the users that has permission to use VirtualBox :&lt;/span&gt; &lt;/p&gt;&lt;pre style="margin-bottom: 0.2in; color: rgb(0, 0, 0); font-weight: bold; font-family: georgia;"&gt;/usr/bin/sudo /usr/sbin/adduser $USER vboxusers &lt;/pre&gt;&lt;pre  style="margin-bottom: 0.2in;font-family:georgia;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;If you will use immediately the application, use the commands below &lt;/span&gt; &lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; color: rgb(0, 0, 0); font-weight: bold; font-family: georgia;"&gt;/usr/bin/sudo /etc/init.d/udev reload /usr/bin/sudo /sbin/modprobe vboxdrv /bin/su -c /usr/bin/VirtualBox $USER &lt;/pre&gt;&lt;p  style="font-family:georgia;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;And is done :)&lt;/span&gt; &lt;/p&gt;&lt;p  style="font-family:georgia;"&gt;&lt;span&gt;Now we are ready to install &lt;span class="IL_SPAN"&gt;&lt;input name="IL_MARKER" type="hidden"&gt;virtual machines&lt;/span&gt; on our VirtualBox, below will describe how to use VirtualBox&lt;/span&gt;&lt;/p&gt;&lt;pre face="georgia" style="margin-bottom: 0.2in;"&gt; to install RHEl 5&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;First open your VirtualBox from Applications &gt;  System Tools see pic1&lt;/p&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;&lt;a class="lightbox" href="http://sahabm.blogspot.com/"&gt;&lt;img class="lightbox" src="http://lh3.ggpht.com/_6W0mYQajg-E/SiDrej3EcAI/AAAAAAAAAno/KR2JcLBbAxM/s512/Screenshot.png" border="0" height="300" width="400" /&gt;&lt;/a&gt; &lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;Pic1&lt;br /&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;Click next and choose to install RHEL 5, give a name to the virtual machine see pic2 :&lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;&lt;a href="http://sahabm.blogspot.com/"&gt;&lt;img class="lightbox" src="http://lh5.ggpht.com/_6W0mYQajg-E/SiDuXxBl7pI/AAAAAAAAAns/B9228v6J7cY/s512/Screenshot-1.png" border="0" height="300" width="400" /&gt;&lt;/a&gt; &lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;Pic2&lt;/p&gt;&lt;p style="font-family: georgia;"&gt;Next you have to choose how much memory you want to give to RHEL 5 (better shoose standard) see and click next&lt;/p&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;&lt;a class="lightbox" href="http://sahabm.blogspot.com/"&gt;&lt;img class="lightbox" src="http://lh5.ggpht.com/_6W0mYQajg-E/SiDu7P5YwZI/AAAAAAAAAnw/7OkTK2YELDA/s512/Screenshot-2.png" border="0" height="300" width="400" /&gt;&lt;/a&gt; &lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;Pic3&lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;Next you have to create partition for RHEL 5 pic4 (me i did soose 2Go) and click next&lt;br /&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;Then choose fixed size image (pic4) and click next&lt;/p&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;&lt;a href="http://sahabm.blogspot.com/" class="lightbox" com="" e="" cap0i="" aaaaaaaaan4="" pyhsxixbcti="" s512="" png=""&gt;&lt;img class="lightbox" src="http://lh6.ggpht.com/_6W0mYQajg-E/SiDwu-caP0I/AAAAAAAAAn4/pYhSxiXbcTI/s512/Screenshot-3.png" height="300" width="400" /&gt;&lt;/a&gt; &lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;and then choose the image and  finish.&lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;&lt;br /&gt;Now before to click finish insert the cd of Rhel 5 then click on finish, a new screen will ask you&lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;&lt;span&gt;from where you want to instal&lt;span style="font-weight: bold;"&gt;l RHEL 5&lt;/span&gt;,choose CD/DVD : &lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0.2in; font-family: georgia;"&gt;Then the installation of RHEL will run automaticaly from the CD/DVD &lt;a class="lightbox" href="http://i547.photobucket.com/albums/hh454/unixmen/unixmen/VB-XP/vb11.png"&gt;&lt;br /&gt;&lt;/a&gt;Now follow the normal installation procedure of &lt;span style="text-decoration: underline;"&gt;RHEL 5&lt;br /&gt;&lt;/span&gt;Now RHEL 5 is installed on your Ubuntu Enoy !!!!!!!!!!!!!!!!! &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3597045588092527328?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3597045588092527328' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3597045588092527328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3597045588092527328'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/installation-of-sun-xvm-virtualbox-on.html' title='Installation of Sun xVM VirtualBox on Ubuntu 8.10 Intrepid Ibex and Ubuntu9.04 Jaunty Jackalope'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6W0mYQajg-E/SiNi7l93LII/AAAAAAAAAoY/zK6LiiChj9Y/s72-c/Screenshot-5.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-4427137041491491574</id><published>2009-05-19T04:56:00.000-07:00</published><updated>2009-05-19T04:59:41.999-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Brasero Burner On Ubuntu'/><title type='text'>Brasero Burner On Ubuntu</title><content type='html'>&lt;p&gt;Brasero now supports multi session, joilet extension, can write an image to a hard drive, and check disc file integrity for data CDs and DVDs. Features for burning audio CDs include write CD-TEXT information, on-the-fly burning, use all audio files handled by Gstreamer local installation (ogg, flac, mp3, ...), and search for audio files inside dropped folders. Using the Brasero burner CD/DVD copy option you can copy a CD/DVD to the hard drive, copy CD and DVD on the fly, use single-session data DVD, and really supports any type of CD. Other features you'll want to take note of are erase CD/DVD feature, save/load projects, burn CD/DVD images and cue files, song image and video previewer, and device detection, and more.&lt;/p&gt;&lt;p&gt;Here you can see Brasero burner is located under Applications --- Sound &amp;amp; Video --- Brasero Disc Burning on the Ubuntu desktop. &lt;/p&gt;&lt;p&gt;&lt;a href="http://sahabm.blogspot.com"&gt;&lt;img src="http://beginlinux.com/images/ub804/articles/brasero1.png" alt="brasero burner on ubuntu 8.04 hardy heron" border="0" height="273" width="248" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After opening Brasero CD/DVD burning program you can see in the screen shot below four options. Create a traditional audio CD, data CD/DVD, copy CD/DVD, and Burn an image to CD/DVD.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://sahabm.blogspot.com"&gt;&lt;img src="http://beginlinux.com/images/ub804/articles/brasero2.png" alt="create a new project with brasero burner on ubuntu 8.04 hardy heron" border="0" height="361" width="559" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;You may be asked to make Brasero burner your default burning application, here you may select yes or no and additionally don't show this dialogue again. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://sahabm.blogspot.com"&gt;&lt;img src="http://beginlinux.com/images/ub804/articles/brasero3.png" alt="make brasero burner your default ubuntu 8.04 hardy heron burning application" border="0" height="161" width="253" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Here we see the data CD creation interface. One nice feature is the many ways that files can be added to the window on the right especially drag and drop to add or remove files. &lt;a href="http://sahabm.blogspot.com"&gt;&lt;img src="http://beginlinux.com/images/ub804/articles/brasero4.png" alt="burn a new data disc with brasero burner on ubuntu 8.04 hardy heron" border="0" height="361" width="559" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;When you've added all of the data files you want, select the burn button.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://beginlinux.com/images/ub804/articles/brasero5.png" border="0" height="34" width="78" /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Now just specify where you're burning to, how many copies you want, your discs label, and other options. Click burn and you're done. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://sahabm.blogspot.com"&gt;&lt;img src="http://beginlinux.com/images/ub804/articles/brasero6.png" alt="disc burning setup and options in brasero burner on ubuntu 8.04" border="0" height="333" width="327" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-4427137041491491574?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=4427137041491491574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4427137041491491574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4427137041491491574'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/brasero-burner-on-ubuntu.html' title='Brasero Burner On Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5158278093048177403</id><published>2009-05-19T04:39:00.001-07:00</published><updated>2009-05-19T04:45:06.534-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tomcat6 Installation on Ubuntu'/><title type='text'>Tomcat6 Installation on Ubuntu</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sahabm.blogspot.com"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 240px; height: 240px;" src="http://1.bp.blogspot.com/_6W0mYQajg-E/ShKa-sa6fdI/AAAAAAAAAnI/q1AzWoGZmuc/s320/apache_tomcat_bag.jpg" alt="" id="BLOGGER_PHOTO_ID_5337498910254071250" border="0" /&gt;&lt;/a&gt;If you are running Ubuntu and want to use the Tomcat servlet container, you should not use the version from the repositories as it just doesn't work correctly. Instead you'll need to use the manual installation process that I'm outlining here.Before you install Tomcat you'll want to make sure that you've installed Java. I would assume if you are trying to install Tomcat you've already installed java, but if you aren't sure you can check with the dpkg command like so: &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;dpkg –get-selections | grep sun-java&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;This should give you this output if you already installed java:&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;install sun-java6-bin&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;   &lt;/span&gt;                               &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;install sun-java6-jdk&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;  &lt;/span&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;install sun-java6-jre&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class="MsoNormal"&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;If that command has no results, you'll want to install the latest version with this command:&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;sudo apt-get install sun-java6-jdk&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 102, 0);"&gt;Installation&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Now we'll download and extract Tomcat from the &lt;a href="http://tomcat.apache.org/"&gt;apache site&lt;/a&gt;. You should check to make sure there's not another version and adjust accordingly.&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;wget http://www.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;Then&lt;/p&gt;  &lt;p style="color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span&gt;&lt;span&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;tar xvzf apache-tomcat-6.0.14.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;The best thing to do is move the tomcat folder to a permanent location. I chose &lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;/usr/local/tomca&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;t&lt;/span&gt;&lt;/span&gt;, but you could move it somewhere else if you wanted to.&lt;/p&gt;  &lt;p style="color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span class="Apple-style-span"&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;sudo mv apache-tomcat-6.0.14 /usr/local/tomcat&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Tomcat requires setting the &lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;JAVA_HOME&lt;/span&gt; variable. The best way to do this is to set it in your &lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;.bashrc&lt;/span&gt;&lt;/span&gt; file. You could also edit your startup.sh file if you so chose.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;The better method is editing your .bashrc file and adding the bolded line there. You'll have to logout of the shell for the change to take effect.&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;nano ~/.bashrc&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;Add the following line:&lt;/p&gt;&lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;export JAVA_HOME=/usr/lib/jvm/java-6-sun&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;At this point you can start tomcat by just executing the &lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;startup.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; script in the &lt;span class="Apple-style-span" style="color: rgb(0, 153, 0);"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;tomcat/bin&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;folder.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 102, 0);"&gt;Automatic Starting&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;To make tomcat automatically start when we boot up the computer, you can add a script to make it auto-start and shutdown.&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;sudo nano /etc/init.d/tomcat6&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;Now paste in the following:&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;# Tomcat auto-start&lt;br /&gt;#&lt;br /&gt;# description: Auto-starts tomcat&lt;br /&gt;# processname: tomcat&lt;br /&gt;# pidfile: /var/run/tomcat.pid&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;export JAVA_HOME=/usr/lib/jvm/java-6-sun&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;case $1 in&lt;br /&gt;start)&lt;br /&gt;        sh /usr/local/tomcat/bin/startup.sh&lt;br /&gt;        ;;&lt;br /&gt;stop)  &lt;br /&gt;        sh /usr/local/tomcat/bin/shutdown.sh&lt;br /&gt;        ;;&lt;br /&gt;restart)&lt;br /&gt;        sh /usr/local/tomcat/bin/shutdown.sh&lt;br /&gt;        sh /usr/local/tomcat/bin/startup.sh&lt;br /&gt;        ;;&lt;br /&gt;esac   &lt;br /&gt;exit 0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;You'll need to make the script executable by running the chmod command:&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;sudo chmod 755 /etc/init.d/tomcat6&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;  &lt;p class="MsoNormal"&gt;The last step is actually linking this script to the startup folders with a symbolic link. Execute these two commands and we should be on our way.&lt;/p&gt;  &lt;blockquote style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;sudo ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat6&lt;br /&gt;sudo ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat6&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5158278093048177403?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5158278093048177403' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5158278093048177403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5158278093048177403'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/tomcat6-installation-on-ubuntu.html' title='Tomcat6 Installation on Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6W0mYQajg-E/ShKa-sa6fdI/AAAAAAAAAnI/q1AzWoGZmuc/s72-c/apache_tomcat_bag.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3146008903843953612</id><published>2009-05-19T02:17:00.000-07:00</published><updated>2009-05-19T02:23:52.892-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Features of Ubuntu 9.04 Server Edition'/><title type='text'>Features of Ubuntu 9.04 Server Edition</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sahabm.blogspot.com"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 200px;" src="http://4.bp.blogspot.com/_6W0mYQajg-E/ShJ5uMPjL6I/AAAAAAAAAm4/gvUJLET512c/s200/Ubuntu_Jaunty_Jackalope_9_04_by_Benja316.png" alt="" id="BLOGGER_PHOTO_ID_5337462342854848418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;The new version of Ubuntu 9.04 is out and users are looking forward to use it. Here are some of the features that you can expect in Ubuntu 9.04 Server Edition.&lt;span id="more-5706"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;1. Ubuntu 9.04 server edition has extended hardware compatibility that ensures it easier for users to deploy it for their needs.&lt;/p&gt; &lt;p&gt;2. OEMs can now pre-install their own default first-boot configuration of Ubuntu Server Edition. This configuration can be replicated across all the Ubuntu servers in their organization.&lt;/p&gt; &lt;p&gt;3. Ubuntu 9.04 server edition on Amazon EC2 makes it happen for businesses to deploy services to external clouds.&lt;/p&gt; &lt;p&gt;4. Ubuntu 9.04 server edition comes with new mail server features that include shared user authentication and enhanced spam protection.&lt;/p&gt; &lt;p&gt;5. Ubuntu 9.04 server edition encourages interoperability by integrating OpenChange and Microsoft Exchange.&lt;/p&gt; &lt;p&gt;For more details about Ubuntu 9.04 server edition, click &lt;a href="http://www.ubuntu.com/news/ubuntu-9.04-server" target="_blank"&gt;this link&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3146008903843953612?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3146008903843953612' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3146008903843953612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3146008903843953612'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/features-of-ubuntu-904-server-edition.html' title='Features of Ubuntu 9.04 Server Edition'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6W0mYQajg-E/ShJ5uMPjL6I/AAAAAAAAAm4/gvUJLET512c/s72-c/Ubuntu_Jaunty_Jackalope_9_04_by_Benja316.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-4297046732333042416</id><published>2009-05-19T01:46:00.000-07:00</published><updated>2009-05-19T01:51:08.192-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Install OpenOffice 3.0 on Ubuntu 8.10'/><title type='text'>How to Install OpenOffice 3.0 on Ubuntu 8.10</title><content type='html'>I think everyone has the answer about why OpenOffice 3.0 is not include in Ubuntu 8.10 (Intrepid Ibex). This is because the delay of OpenOffice 3.0 release and the developer didn't have time to test it, but don't worry they will include the OpenOffice 3.0 for the next Ubuntu.&lt;br /&gt;&lt;br /&gt;Below is the how to install OpenOffice 3.0 on Ubuntu 8.10 (Intrepid Ibex).&lt;br /&gt;&lt;br /&gt;1. &lt;span name="intelliTxt" id="intelliTxt"&gt;Go to &lt;em&gt;System -&gt; Administration -&gt; Software Sources&lt;/em&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sahabm.blogspot.com"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 187px;" src="http://1.bp.blogspot.com/_L08qgRi_0P0/SR0_rpy38eI/AAAAAAAAApo/YKuxrG8YA60/s200/001.png" alt="" id="BLOGGER_PHOTO_ID_5268437158279508450" border="0" /&gt;&lt;/a&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;&lt;em&gt;&lt;br /&gt;2.&lt;/em&gt;&lt;/span&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;Go to the second tab, "Third-Party Software," click on the "Add" button, and paste the line below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;&lt;em&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sahabm.blogspot.com"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 172px;" src="http://2.bp.blogspot.com/_L08qgRi_0P0/SR0_22NjisI/AAAAAAAAApw/_5JvZkG8IY0/s200/002.png" alt="" id="BLOGGER_PHOTO_ID_5268437350591204034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;&lt;em&gt;3. &lt;/em&gt;&lt;/span&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;Then, click the “Close” button, then the “Reload” one and &lt;strong&gt;wait&lt;/strong&gt; for the application to close!&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sahabm.blogspot.com"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 176px;" src="http://4.bp.blogspot.com/_L08qgRi_0P0/SR1ACFOkPiI/AAAAAAAAAp4/oGkLeqOtZF4/s200/003.png" alt="" id="BLOGGER_PHOTO_ID_5268437543600537122" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;4. &lt;/span&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;When the Software Sources window will close itself, the update icon will appear in the system tray&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sahabm.blogspot.com"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 168px; height: 200px;" src="http://1.bp.blogspot.com/_L08qgRi_0P0/SR1AQPq9KLI/AAAAAAAAAqA/WWfMgtpR1IE/s200/004.png" alt="" id="BLOGGER_PHOTO_ID_5268437786922133682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;5. &lt;/span&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;Click on it and update your system!. &lt;/span&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt; Your open source office suite will be up-to-date from now on. Take a look below for some shots of OpenOffice.org 3.0 in Ubuntu 8.10 (Intrepid Ibex).&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sahabm.blogspot.com"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 194px;" src="http://2.bp.blogspot.com/_L08qgRi_0P0/SR1Atebx8GI/AAAAAAAAAqI/zesuR4d8E-Q/s200/005.png" alt="" id="BLOGGER_PHOTO_ID_5268438289101221986" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-4297046732333042416?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=4297046732333042416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4297046732333042416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4297046732333042416'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/how-to-install-openoffice-30-on-ubuntu.html' title='How to Install OpenOffice 3.0 on Ubuntu 8.10'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_L08qgRi_0P0/SR0_rpy38eI/AAAAAAAAApo/YKuxrG8YA60/s72-c/001.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-2740570934477451106</id><published>2009-05-15T01:56:00.000-07:00</published><updated>2009-05-15T02:44:55.871-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Some Usefull Linux scripts'/><title type='text'>Some Usefull scripts</title><content type='html'>&lt;h2&gt;A nice script to find out the no of connection from a particular IP address to the apache&lt;/h2&gt;root@sahab-desktop# netstat -n|grep :80|awk {'print $5'}|awk -F: {'print $1'}&gt;netlist;for i in `sort -u netlist` ;do echo -n$i"-&gt;";grep -c $i netlist; done;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;How to remove frozen messages from mail queue?(exim)&lt;br /&gt;&lt;/h2&gt; This command will help you to remove the frozen messages from the mail queue.&lt;br /&gt;&lt;br /&gt;exim -bp|grep '*** frozen ***' |awk {'print $3'} |xargs exim -Mrm&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Command to find all of the files which have been accessed within the last 10 days&lt;/h2&gt;The following command will find all of the files which have been accessed within the last 10 days&lt;br /&gt;&lt;br /&gt;find / -type f -atime -10 &gt; Monthname.files&lt;br /&gt;&lt;br /&gt;This command will find all the files under root, which is ‘/’, with file type is file. ‘-atime -30′ will give all the files accessed less than 10 days ago. And the output will put into a file call Monthname.files.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Find and Remove the editor backup files&lt;/h2&gt;find . -name '*~' -type f -print&lt;br /&gt;&lt;br /&gt;find . -name '*~' -type f -print |xargs rm -f&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-2740570934477451106?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=2740570934477451106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2740570934477451106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2740570934477451106'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/some-usefull-scripts.html' title='Some Usefull scripts'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-9191665233786850212</id><published>2009-05-13T01:51:00.000-07:00</published><updated>2009-05-13T22:22:21.545-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='team viewer installation on ubuntu'/><title type='text'>Team Viewer on ubuntu</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_6W0mYQajg-E/SgupFpLYV8I/AAAAAAAAAmw/ng5_NVdGcQg/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_6W0mYQajg-E/SgupFpLYV8I/AAAAAAAAAmw/ng5_NVdGcQg/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5335544097968510914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hi&lt;br /&gt;&lt;br /&gt;TeamViewer establishes connections to any PC or server all around the world within just a few seconds. It work perfect on windows OS. But I have tried it for ubuntu but no .deb packages available. So I used wine for running this application on ubuntu.&lt;br /&gt;&lt;br /&gt;Installing Wine Run in terminal&lt;br /&gt;&lt;br /&gt;sudo apt-get install wine&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.teamviewer.com/download/TeamViewer_Setup.exe"&gt;Download&lt;/a&gt; the team viewer .exe&lt;br /&gt;&lt;br /&gt;Select and right click the TeamViewer_setup.exe, there select "open with wine windows program Loader", then follow as-usual steps for installation.&lt;br /&gt;&lt;br /&gt;Now the team viewer is ready to use as you like.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-9191665233786850212?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=9191665233786850212' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9191665233786850212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9191665233786850212'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/team-viewr-on-ubuntu.html' title='Team Viewer on ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6W0mYQajg-E/SgupFpLYV8I/AAAAAAAAAmw/ng5_NVdGcQg/s72-c/Screenshot.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-255676684451713916</id><published>2009-05-07T03:35:00.000-07:00</published><updated>2009-05-07T03:53:34.707-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Run Command without SUDO password - Ubuntu'/><title type='text'>Run a Command without SUDO password - Ubuntu</title><content type='html'>Hi ALL&lt;br /&gt;&lt;br /&gt;Today I have tried my client PC run shutdown and reboot command without being enter sudo password. The details given below&lt;br /&gt;&lt;br /&gt;Use the command "sudo visudo" to edit the file. Now look for the line "# User alias specification" and add a list of users as follows:#&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;&lt;br /&gt;&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt; User alias specification&lt;br /&gt;User_Alias USERS = user1, user2, user3&lt;/pre&gt; &lt;/div&gt;Now look for the line "# Cmnd alias specification" and add a command list as follows:&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;&lt;br /&gt;&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;# Cmnd alias specification&lt;br /&gt;Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt&lt;/pre&gt; &lt;/div&gt;Now look for the line "%admin ALL=(ALL) ALL" and add the command which will let USERS give SHUTDOWN_CMDS without a password&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;:%admin ALL=(ALL) ALL&lt;br /&gt;USERS ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS&lt;/pre&gt; &lt;/div&gt;Now those specified users can use the commands "sudo shutdown", "sudo halt", and "sudo reboot" without being asked for your password.&lt;br /&gt;&lt;br /&gt;EDIT: By the way, the reason that these commands can't be used by normal users is that Linux was designed as a multi-user system. You don't want one user shutting down the system while others are using it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-255676684451713916?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=255676684451713916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/255676684451713916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/255676684451713916'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/run-command-without-sudo-password.html' title='Run a Command without SUDO password - Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1015879179030190786</id><published>2009-05-04T03:01:00.000-07:00</published><updated>2009-05-04T03:05:11.452-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to Effectively Use Your Internet Bandwidth'/><category scheme='http://www.blogger.com/atom/ns#' term='Effectively Use Your Bandwidth'/><title type='text'>How to Effectively Use Your Bandwidth</title><content type='html'>This blog tries to help you use your ISP bandwidth wisely! You might be the system administrator of a company who always wanted to limit your fellow workers from downloading the media files, limiting the access of streaming videos which are available in YouTube and wanted to share adequate bandwidth to your SMTP and HTTP Servers. This blog is for those persons.&lt;br /&gt;&lt;br /&gt;To Readers: All those starting with # are run by root user and ;'s are comments inside the configuration files&lt;br /&gt;&lt;br /&gt;We are going to use the delay_pools TAG in squid.&lt;br /&gt;Before going straight into the configuration, I would like to write some theory.&lt;br /&gt;&lt;br /&gt;What exactly are delay pools?&lt;br /&gt;&lt;br /&gt;They are simply pools which make a delayed response.&lt;br /&gt;They are essentially bandwidth buckets!&lt;br /&gt;Some of you might have quizzically raised your eyebrows when you read buckets, I know! I too was very much confused about this bucket concept! But I think I can clarify the whole concept for you!&lt;br /&gt;&lt;br /&gt;Imagine bandwidth bucket has a normal plastic bucket used to storing water! Instead of water these buckets store bandwidth! Initially it will be full! Initially means when no one is using your bandwidth. When a user requests a page, he will get the respone only if theres enough bandwidth available from the bucket he is using. Bucket actually stores traffic! Bandwidth is expressed in terms of how much data is available in one second, like 1Mb/s (1Mbps)&lt;br /&gt;Traffic is expressed in terms of total data, like 1MB.&lt;br /&gt;&lt;br /&gt;Size of bucket determines how much bandwidth is available to a client(s). If a bucket starts out full, a client can take as much traffic as it needs until the bucket becomes empty. Client then recieves bucket allotment at the 'fill rate'. (I will tell about the fill rate later, just remember that word in mind).&lt;br /&gt;&lt;br /&gt;There are three types of delay pools.&lt;br /&gt;&lt;br /&gt;Class 1 =&gt; Single aggregate bucket (Totally shared among the members of the bucket)&lt;br /&gt;&lt;br /&gt;Class 2 =&gt; To understand it better, assume its applied to Class C networks.&lt;br /&gt;Theres one bucket for each network and 256 individual buckets for each ips of every network. Size of individual bucket cannot exceed the network bucket!&lt;br /&gt;&lt;br /&gt;Class 3 =&gt; One aggregate bucket, 256 network buckets, 65536 individual buckets. (Class B networks)&lt;br /&gt;&lt;br /&gt;Now into configuration,&lt;br /&gt;&lt;br /&gt;Firstly we need to define how many delay pools we are doing to declare.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_pools 2&lt;/span&gt;&lt;br /&gt;This means that we have two delay pools.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_class 1 3&lt;/span&gt;&lt;br /&gt;This means that the first pool is a class 3 pool (Class B networks)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_class 2 1&lt;/span&gt;&lt;br /&gt;This means that the second pool is a class 1 pool (Single aggregate bucket)&lt;br /&gt;&lt;br /&gt;For each pool we should have a delay_class line.&lt;br /&gt;&lt;br /&gt;Now we need to define each pools parameters, like the capacity of each pool and fill rate.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 1 7000/15000 3000/4000 1000/2000&lt;/span&gt;&lt;br /&gt;this is delay pool parameters for the pool 1&lt;br /&gt;Pool 1 was a class 3 pool. Class 3 pool has 3 buckets, one aggregate bucket, one for 256 networks and one for 65536 individual ips!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 2 2000/8000&lt;/span&gt;&lt;br /&gt;The second pool of type class 1. Class 1 has only one aggregate bucket!&lt;br /&gt;&lt;br /&gt;Now whats this 2000/8000?&lt;br /&gt;Each bucket is recognized by its rate/size&lt;br /&gt;Here 8000 means that the maximum capacity of the bucket!&lt;br /&gt;And it refills at the rate of 2000 bytes/second&lt;br /&gt;This means that if the bucket is empty, it takes 4 seconds for the bucket to get full if no clients are accessing it!&lt;br /&gt;&lt;br /&gt;If you find a declaration like this,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_paramters 2 -1/-1&lt;/span&gt;&lt;br /&gt;This means theres no limitation to the bucket!&lt;br /&gt;&lt;br /&gt;Now lets take an example.&lt;br /&gt;&lt;br /&gt;Our ISP connection is 12Mbps and we want our machines to have a maximum of 4 Mbps at peak time.&lt;br /&gt;The rest we dedicate for SMTP or other production servers. We are going to define only one delay pool of class 1&lt;br /&gt;&lt;br /&gt;What is actually 12Mbps?&lt;br /&gt;&lt;br /&gt;1Mbps = 1 Megabits per second =&gt; 1/8 Megabytes per second (8 bits = 1 byte)&lt;br /&gt;1/8 Megabytes per second =&gt; 1/8 * 1024 Kilobytes per second =&gt; 128Kilobytes per second =&gt; 128KBps&lt;br /&gt;so 1 Mbps =&gt; 128 KBps&lt;br /&gt;so 12 Mbps =&gt; 128 * 12 = 1536 KBps =&gt; 1.5 MBps&lt;br /&gt;To sum up&lt;br /&gt;so 12 Mbps = 12/8 MBps =&gt; 1.5 MBps&lt;br /&gt;&lt;br /&gt;So with this ISP connection we can download a 6 MB file in 4 seconds!&lt;br /&gt;&lt;br /&gt;So here the maximum bandwidth available to machines must be 4 Mbps only! (4Mbps ~ 0.5 MBps ~ 512 KBps)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_pools 1&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;delay_class 1 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 1 524288/1048576&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;524288 =&gt; 524288/1024 KB =&gt; 512 KB =&gt; 512/1024 MB =&gt; 0.5 MB =&gt; 0.5*8 =&gt; 4Mb&lt;br /&gt;&lt;br /&gt;1048576 =&gt; 1048576/1024 KB =&gt; 1024 KB =&gt; 1 MB&lt;br /&gt;&lt;br /&gt;Initially the bucket will be full (1 MB traffic). Now a client makes a request to download a 5 MB file.&lt;br /&gt;It will get the maximum speed(12 Mbps) until it downloads 1 MB, but after that it gets only 0.5 MBps&lt;br /&gt;For 1 MB, it takes 1 second as full bucket is available at first. As the bucket drains, it fills at the rate of 0.5 MBps only.&lt;br /&gt;So 0.5 MBps will only be available after 1 MB has been downloaded!&lt;br /&gt;So the file will get downloaded in 9 seconds. (This is all in theory :P)&lt;br /&gt;&lt;br /&gt;There another TAG associated with delay_pools.&lt;br /&gt;delay_initial_bucket_level =&gt; this parametes expects a value in percentage(%)&lt;br /&gt;This parameter specifies how much bandwidth is put in each bucket when squid service starts.&lt;br /&gt;By default, the value will be 50%, which means that in the previous example, the client will&lt;br /&gt;download at full speed till the download reaches 0.5 MB&lt;br /&gt;&lt;br /&gt;eg:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;acl throttled src 10.0.0.1-10.0.0.50&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_pools 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_class 1 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 1 524288/1048576&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_access 1 allow throttled&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: delay_access is very similar to http_access. It determines which delay pool a request falls into!&lt;br /&gt;&lt;br /&gt;Hope this was useful for you!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1015879179030190786?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1015879179030190786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1015879179030190786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1015879179030190786'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/how-to-effectively-use-your-bandwidth.html' title='How to Effectively Use Your Bandwidth'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5967480223635273460</id><published>2009-05-01T23:44:00.000-07:00</published><updated>2009-05-01T23:46:10.275-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Future of Ubuntu 9.04'/><title type='text'>Review and Future of Ubuntu Jaunty 9.04</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p&gt;Jaunty is very good. Its the first version of a linux distribution that I'd pretty much recommend to anyone to try (with only a few minor caveats about possible hardware issues and the fact that Linux users still can't watch netflix). It has made vast improvements over Hardy from a year ago. Its stable, snappy, and quite a number of annoyances that I onced experienced have been fixed or minimized. Below I go through these in more detail. Now, though I want to focus on what I hope for the next version of Ubuntu (codenamed "Karmic Koala").&lt;br /&gt;&lt;br /&gt;Cloud computing is the wave of the future, so I'm very happy this development cycle is making this a focus. But I'm doubtful they will go far enough to really make a lot of difference for most people. What people want now is to be able to sync up there data with various computers they possess and with online services they rely on. To this effect:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Evolution needs to sync seamlessly 	with Google calander, email, and contacts.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Evolution also needs to sync 	seamlessly with services like "Remember the Milk". Tasque 	does this ok presently on Linux, but it has a way to go to be really 	polished&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Tomboy needs to be able to sync 	across multiple computers. Yes, there is the beginning of such 	functionality already built into it, but its hard to set up, and 	even when it is, it doesn't sync automatically.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;Thank god for Dropbox, an excellent program that should be 	further promoted&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Certain features need to be implimented consistantly:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;I really like the new notification 	system, but programs like Firefox and Amarok have not been made to 	use this system.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Pulseaudio is MUCH better than it 	was a year ago, but it still causes problems on occasion. Hammer out 	the rest of the details so we can move on!&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;Wireless connectivity has also improved greatly, but I still 	sometimes have problems connecting (or dropping) when those people 	around me on a Mac or Windows have no problem. On occasion I've had 	to abandon Network Manager altogether for WICD, which sometimes 	works when the former doesn't&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Either switch to better programs, or put money towards the impovement of certain obvious deficiencies.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Its time to give up on Rhythmbox, 	Banshee is fast outgrowing the maintainance only iterations of 	Rhythmbox. That said, if Banshee doesn't include a watch folders 	option in the next release, I will totally take back this claim.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Tracker Search Tool is my least 	favorite program on Ubuntu. It sucks so bad it hurts. But Beagle is 	a memory hog, so at present there doesn't seem like a good search 	tool on linux (esp one with tens of thousands of files like mine).&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Evolution is not a pleasure to 	use. I'm waiting for Thunderbird 3 to come out and put real pressure 	on Evolution developers to make it a better program. It needs to 	seamlessly integrate with online services. A makeover is really 	overdue as well.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;Multimedia editing is slowly progressing overall. A year ago 	I couldn't find a video editor I liked, whereas now I'm quite a fan 	of Kdenlive. Audacity didn't work at all, but now does. Keep up the 	good work here!&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&lt;br /&gt;&lt;b&gt;Reviewing Previous Annoyances&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;A GUI wrapper for utf: gutf is 	pretty good except that I still haven't figured out how to set up 	internet connection sharing with it. But Firestarter works fine, so 	I'm going to mark this one off the list.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Two-way synchronization between 	evolution and Google Calander: Calander synchronization is there, 	but I don't quite trust it until its been tested and advertised by 	developers.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Advanced Desktop settings already 	pre-installed (or some simplified version of it). NO. Still an 	annoyance, but I've gotten bored enough with configuring it that I 	no longer do&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;Tracker Search Tool needs to have a phrase search. NO. HAHA, 	tracker isn't even included in Jaunty. And that is for the better. 	Tracker Search Tool still sucks ass.&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Bug fixes and Feature Requests:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;a href="https://bugs.launchpad.net/nautilus/+bug/136702"&gt;nautilus 	'replace file' dialog box could give more information&lt;/a&gt;. No. THIS 	ONE ANNOYS ME MORE THAN ANYTHING. I want to stop using nautilus 	because of this. A LONG, LONG standing missing functionality&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;a href="https://bugs.launchpad.net/ubuntu/+source/tracker/+bug/149444"&gt;Tracker 	doesn't search for phrases in enclosed quotes&lt;/a&gt;. Still shit, as I 	mentioned above&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="https://bugs.launchpad.net/ltsp-cluster/+bug/178895"&gt;Audacity 	does not mesh with PulseAudio&lt;/a&gt;. YES - it works! Thanks for the 	good work&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;What I want to see included in the next iteration of Ubuntu:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;i&gt;OpenOffice 3.1&lt;/i&gt; - This 	should be there. Every major improvement of OOo is an important 	step, though I wonder when they will finally get to beautifying the 	program and optimizing the speed&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;i&gt;Firefox 3.1&lt;/i&gt; - This should 	be ready I believe (though I'm less than certain) - it should be a 	pretty big improvement.&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;i&gt;Hopefully most of the rest of 	KDE applications will be ported to QT 4. I'm looking at you: Quanta 	Plus and K3B&lt;/i&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;i&gt;Amarok 2.1 - Amarok 2.0 was 	somewhat of a disappointment, but it did leave lots of room for 	potential. Version 2.1 is the first major step to actualizing that 	potential, it looks like a very good improvement&lt;/i&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;i&gt;Songbird 1.2 - Until it makes 	it into the Repos, I'm not holding my breath&lt;/i&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;i&gt;Moonlight 2.0 - I doubt it will 	be ready in time, but when this comes out it will be huge. There 	will be no reason we cannot finally get Netflix on Linux.&lt;/i&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;i&gt;Last time I evalutated Ubuntu, I lemented that there 	wasn't a decent ebook manager out there for linux (eKitaab still 	doesn't work). But now there is a program that is in heavily 	development that looks really good called calibre. It looks to 	become one of the best cross-platform ebook managers around. Kudos 	to the developers.&lt;/i&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5967480223635273460?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5967480223635273460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5967480223635273460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5967480223635273460'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/05/review-and-future-of-ubuntu-jaunty-904.html' title='Review and Future of Ubuntu Jaunty 9.04'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-231342810866755074</id><published>2009-04-29T22:18:00.000-07:00</published><updated>2009-04-29T22:47:00.641-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Security Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Security'/><title type='text'>Linux Security Tips and Tricks</title><content type='html'>&lt;span style="font-family:Arial;"&gt;This Post contains some security Tips and Tricks for Linux Operating System&lt;br /&gt;&lt;/span&gt;  &lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;BIOS Security&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  Always set a password on BIOS to disallow booting from floppy by changing the    BIOS settings. This  will block undesired people from trying to boot your    Linux system with a special boot disk and will  protect you from people    trying to change BIOS feature like allowing boot from floppy drive or     booting the server without password prompt.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Grub Security&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;One thing which could be a security hole is that the user can do too many things with GRUB, because GRUB allows one to modify its configuration and run arbitrary commands at run-time. For example, the user can even read /etc/passwd in the command-line interface by the command cat (see cat). So it is necessary to disable all the interactive operations.&lt;br /&gt;&lt;br /&gt;Thus, GRUB provides a password feature, so that only administrators can start the interactive operations (i.e. editing menu entries and entering the command-line interface). To use this feature, you need to run the command password in your configuration file.&lt;br /&gt;&lt;br /&gt;     password --md5 PASSWORD&lt;br /&gt;&lt;br /&gt;If this is specified, GRUB disallows any interactive control, until you press the key &lt;p&gt; and enter a correct password. The option --md5 tells GRUB that `PASSWORD' is in MD5 format. If it is omitted, GRUB assumes the `PASSWORD' is in clear text.&lt;br /&gt;&lt;br /&gt;You can encrypt your password with the command md5crypt For example, run the grub shell (see Invoking the grub shell), and enter your password:&lt;br /&gt;&lt;br /&gt;     grub&gt; md5crypt&lt;br /&gt;     Password: **********&lt;br /&gt;     Encrypted: $1$U$JK7xFegdxWH6VuppCUSIb.&lt;br /&gt;&lt;br /&gt;Then, cut and paste the encrypted password to your configuration file.&lt;br /&gt;&lt;br /&gt;Also, you can specify an optional argument to password. See this example:&lt;br /&gt;&lt;br /&gt;     password PASSWORD /boot/grub/menu-admin.lst&lt;br /&gt;&lt;br /&gt;In this case, GRUB will load /boot/grub/menu-admin.lst as a configuration file when you enter the valid password.&lt;br /&gt;&lt;br /&gt;Another thing which may be dangerous is that any user can choose any menu entry. Usually, this wouldn't be problematic, but you might want to permit only administrators to run some of your menu entries, such as an entry for booting an insecure OS like DOS.&lt;br /&gt;&lt;br /&gt;GRUB provides the command lock. This command always fails until you enter the valid password, so you can use it, like this:&lt;br /&gt;&lt;br /&gt;     title Boot DOS&lt;br /&gt;     lock&lt;br /&gt;     rootnoverify (hd0,1)&lt;br /&gt;     makeactive&lt;br /&gt;     chainload +1&lt;br /&gt;&lt;br /&gt;You should insert lock right after title, because any user can execute commands in an entry until GRUB encounters lock.&lt;br /&gt;&lt;br /&gt;You can also use the command password instead of lock. In this case the boot process will ask for the password and stop if it was entered incorrectly. Since the password takes its own PASSWORD argument this is useful if you want different passwords for different entries&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;LILO Security&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  Add the three parameters in "/etc/lilo.conf" file i.e. time-out, restricted    and  password. These options will ask for password if boot time options    (such as "linux single") are passed to the boot loader.&lt;br /&gt;  &lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;  Edit the lilo.conf file (vi /etc/lilo.conf) and add or change the three options    :&lt;br /&gt;boot=/dev/hda&lt;br /&gt;  map=/boot/map&lt;br /&gt;install=/boot/boot.b&lt;br /&gt;  time-out=00   &lt;i&gt;#change this line to 00&lt;/i&gt;&lt;br /&gt;  prompt&lt;br /&gt;Default=linux&lt;br /&gt;  restricted   &lt;i&gt;#add this line&lt;/i&gt;&lt;br /&gt;  password=&lt;password&gt;   &lt;i&gt;#add this line and put your password&lt;/i&gt;   &lt;br /&gt;  image=/boot/vmlinuz-2.2.14-12&lt;br /&gt;label=linux&lt;br /&gt;initrd=/boot/initrd-2.2.14-12.img&lt;br /&gt;  root=/dev/hda6&lt;br /&gt;  read-only&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;  The "/etc/lilo.conf" file should be readable by only root because it contains    unencrypted passwords.&lt;br /&gt;   [root@sahab-desktop /]# chmod 600 /etc/lilo.conf (will be no longer world readable).&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;  Update your configuration file "/etc/lilo.conf" for the change to take effect.   &lt;br /&gt;    root@sahab-desktop /# /sbin/lilo -v (to update the lilo.conf file).&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;Step 4&lt;/b&gt;&lt;br /&gt;  One more security measure you can take to secure the "/etc/lilo.conf" file    is to set it immutable, using the chattr command.&lt;br /&gt;       *  To set the file immutable simply, use the command:   &lt;br /&gt;               root@sahab-desktop    /# chattr +i /etc/lilo.conf&lt;br /&gt;  This will prevent any changes (accidental or otherwise) to the "lilo.conf" file.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Disable all special accounts&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  You should  delete all default users and group accounts that you don't    use on your system like lp, sync, shutdown, halt, news, uucp, operator, games,    gopher etc&lt;br /&gt;  To delete a user account :&lt;br /&gt;root@sahab-desktop# userdel LP&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;To delete a group:&lt;br /&gt;root@sahab-desktop# groupdel LP&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Choose a Right password&lt;/u&gt;&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;The password Length: The minimum acceptable password length by default when    you install your Linux system is 5.  This is not enough and must be 8.     To do this you have to edit the login.defs file (vi /etc/login.defs) and change    the line that read:&lt;/span&gt;  &lt;/p&gt;&lt;ul&gt;&lt;span style="font-family:Arial;"&gt;    &lt;i&gt;PASS_MIN_LEN    5&lt;br /&gt;  &lt;/i&gt;To read:&lt;i&gt;&lt;br /&gt;  PASS_MIN_LEN    8 &lt;/i&gt;&lt;br /&gt;   The "login.defs" is the configuration file for the login program.&lt;/span&gt;&lt;/ul&gt;  &lt;span style="font-family:Arial;"&gt; &lt;b&gt;&lt;u&gt;Enable shadow password support&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;You should enable the shadow password feature. You can use the "/usr/sbin/authconfig"  utility to enable the shadow password feature on your system. If you want to convert  the existing passwords and group on your system to shadow passwords and groups   then you can use the commands &lt;b&gt;pwconv, grpconv&lt;/b&gt; respectively.&lt;br /&gt; &lt;br /&gt;&lt;u&gt;T&lt;b&gt;he root account&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;The "root" account is the most privileged account on a Unix system. When the administrator  forgot to logout from the system root prompt before leaving the system then the  system should automatically logout from the shell. To do that, you must set the  special variable of  Linux named "TMOUT" to the time in seconds.&lt;br /&gt; Edit your profile file "vi /etc/profile" and add the following line somewhere  after the line that read&lt;br /&gt;&lt;i&gt;"HISTFILESIZE="&lt;/i&gt;&lt;br /&gt; &lt;i&gt;TMOUT=3600 &lt;/i&gt;&lt;br /&gt; The value we enter for the variable "TMOUT=" is in second and represent  1 hours (60 * 60 =&lt;br /&gt;3600 seconds). If you put this  line in your "/etc/profile" file, then the  automatic logout after one hour of inactivity will apply for all users on the  system. You can set this variable in user's individual ".bashrc " file to automatically  logout them after a certain time.&lt;br /&gt; After this parameter has been set on your system, you must logout and login  again (as root) for  the change to take effect.&lt;/span&gt;  &lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Disable all console-equivalent access for regular users&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  You should disable all console-equivalent access to programs like shutdown,    reboot, and halt for regular users on your server.&lt;br /&gt;   To do this, run the following command:&lt;br /&gt;root@sahab-desktop# rm -f /etc/security/console.apps/&lt;servicename&gt;&lt;br /&gt;   Where &lt;servicename&gt; is the name of the program to which you wish to    disable console-equivalent access.&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Disable &amp;amp; uninstall all unused services&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  You should  disable and uninstall all services that you do not use so that    you have one less thing to worry about. Look at your "/etc/inetd.conf" file    and  disable what you do not need by commenting them out (by adding a #    at the beginning of the line), and then sending your inetd process a SIGHUP    command to update it to the current "inetd.conf" file.  To do this:&lt;br /&gt;  &lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;  Change the permissions on "/etc/inetd.conf" file to 600, so that    only root can read or write to it.&lt;br /&gt;root@sahab-desktop# chmod 600 /etc/inetd.conf&lt;br /&gt;  &lt;br /&gt;  &lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;  ENSURE that the owner of the file "/etc/inetd.conf" is root.&lt;br /&gt; &lt;br /&gt;  &lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;  Edit the inetd.conf file (vi /etc/inetd.conf) and disable the services like:   &lt;br /&gt;   ftp, telnet, shell, login, exec, talk, ntalk, imap, pop-2, pop-3, finger,    auth, etc unless you plan to use it. If it's turned off it's much less of a    risk.&lt;br /&gt; &lt;br /&gt;  &lt;b&gt;Step 4&lt;/b&gt;&lt;br /&gt;  Send a HUP signal to your inetd process&lt;br /&gt;root@sahab-desktop# killall -HUP inetd&lt;br /&gt; &lt;br /&gt;  &lt;b&gt;Step 5&lt;/b&gt;&lt;br /&gt;  Set "/etc/inetd.conf" file immutable,  using the &lt;i&gt;chattr&lt;/i&gt; command    so that nobody can modify that file&lt;br /&gt;         *  To set the file immutable simply,    execute the following command:&lt;br /&gt;               root@sahab-desktop# chattr +i /etc/inetd.conf&lt;br /&gt;   This will prevent any changes (accidental or otherwise) to the "inetd.conf"    file. The only person that can set or clear this attribute is the super-user    root.  To modify the inetd.conf file you will need to unset the immutable    flag:&lt;br /&gt;  *  To unset the immutable simply, execute the following command:&lt;br /&gt;               root@sahab-desktop# chattr -i /etc/inetd.conf&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;TCP_WRAPPERS&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  By using TCP_WRAPPERS  you can make  your server  secure against    outside intrusion . The best policy is to deny all hosts by putting "ALL: ALL@ALL,    PARANOID" in the "/etc/hosts.deny" file and then explicitly list  trusted    hosts who are allowed to your machine in the "/etc/hosts.allow" file. TCP_WRAPPERS    is controlled from two files and the search stops at the first match.&lt;br /&gt;   /etc/hosts.allow&lt;br /&gt;/etc/hosts.deny&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;  Edit the hosts.deny file (vi /etc/hosts.deny) and add the following lines:   &lt;br /&gt;  # Deny access to everyone.&lt;br /&gt;  ALL: ALL@ALL, PARANOID&lt;br /&gt;   Which means all services, all locations is blocked, unless they are permitted    access by entries in the allow file.&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt; &lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;  Edit the hosts.allow file (vi /etc/hosts.allow) and add for example, the following    line:&lt;br /&gt;  As an example:&lt;br /&gt;  ftp: 34.14.15.99 test.com&lt;br /&gt;   For your client machine: &lt;/span&gt;&lt;span style="font-family:Arial;"&gt;34.14.15.99&lt;/span&gt;&lt;span style="font-family:Arial;"&gt; is the IP address and test.com the    host name of one of your client allowed using ftp.&lt;br /&gt;  &lt;br /&gt;  &lt;b&gt;Step 3 &lt;/b&gt;&lt;br /&gt;  The &lt;i&gt;tcpdchk&lt;/i&gt; program is the tcpd wrapper configuration checker. It examines    your tcp wrapper  configuration and reports all potential and real problems    it can find.&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt; *  After your configuration is done, run the program tcpdchk.&lt;br /&gt;        root@sahab-desktop# tcpdchk&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Don't let system issue file to be displayed&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;   You should not  display your  system issue file when people    log in remotely . To do this,  you can&lt;br /&gt;  change the telnet option in your "/etc/inetd.conf".&lt;br /&gt;  To do this change the line in "/etc/inetd.conf":&lt;br /&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;i&gt;telnet  stream  tcp     nowait  root       /usr/sbin/tcpd  in.telnetd&lt;/i&gt;&lt;br /&gt;  to look like:&lt;br /&gt;   &lt;i&gt;telnet  stream  tcp     nowait     root    /usr/sbin/tcpd  in.telnetd -h &lt;/i&gt;&lt;br /&gt;   Adding the "-h" flag on the end will cause the daemon to not display any    system information and  just hit the user with a login: prompt.  I    will recommend to use sshd instead.&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Change the "/etc/host.conf" file&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;   The  "/etc/host.conf" file specifies how names are resolved.&lt;br /&gt;   Edit the host.conf file (vi /etc/host.conf) and add the following lines:   &lt;br /&gt;   # Lookup names via DNS first then fall back to /etc/hosts.&lt;br /&gt;  order bind,hosts&lt;br /&gt;  # We have machines with multiple IP addresses.&lt;br /&gt;  multi on&lt;br /&gt;  # Check for IP address spoofing.&lt;br /&gt;  nospoof on&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt; The first option is to resolve the host name through DNS first and then    hosts file.The multi option determines whether a host in the "/etc/hosts" file    can have multiple IP addresses (multiple interface ethN).&lt;br /&gt;   The nospoof option indicates to take care of not permitting spoofing on    this machine.&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Immunize the "/etc/services" file&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  You must immunize the "/etc/services" file to prevent unauthorized deletion     or addition of services.&lt;br /&gt;             *  To immunize    the "/etc/services" file, use the command:&lt;br /&gt;             root@sahab-desktop# chattr +i /etc/services&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Disallow root login from different consoles&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  The "/etc/securetty" file allows you to specify which TTY devices the "root"    user is allowed to login . Edit the "/etc/securetty" file to disable any tty    that you do not need by commenting them out (# at the beginning of the line).   &lt;br /&gt;   &lt;br /&gt;  &lt;b&gt;&lt;u&gt;Blocking anyone to su to root&lt;/u&gt;&lt;/b&gt;&lt;br /&gt; The su (Substitute User) command allows you to become other existing users on the system.  If  you don't want anyone to su to root or restrict "su" command to certain users then add the following two lines to the top of your "su" configuration file in the "/etc/pam.d/" directory.&lt;br /&gt;  &lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;  Edit the su file (vi /etc/pam.d/su) and add the following two lines to the    top of the file:&lt;br /&gt;   &lt;i&gt;auth sufficient /lib/security/pam_rootok.so debug&lt;/i&gt;&lt;br /&gt;  &lt;i&gt;auth required /lib/security/Pam_wheel.so group=wheel&lt;/i&gt;  &lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;Which means only members of the "wheel" group can su to root; it also includes     logging. You can add the users to the group wheel so that only those users will    be allowed to su as root.&lt;br /&gt;   &lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Shell logging&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;   The bash shell stores up to 500 old commands in the "~/.bash_history"    file (where "~/" is your home directory) to make it easy for you to repeat long    commands. Each user that has an account on the system will have this file "Bash_history"    in their home directory. The bash shell should store less number of commands    and delete it on logout of the user.&lt;br /&gt;  &lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;  The HISTFILESIZE and HISTSIZE lines in the "/etc/profile" file determine the    size of old commands the "Bash_history" file for all users on your system can    hold.  I would  highly recommend setting the HISTFILESIZE and HISTSIZE    in "/etc/profile" file to a low value such as 30.&lt;br /&gt;   Edit the profile file (vi /etc/profile) and change the lines to:&lt;br /&gt;HISTFILESIZE=30&lt;br /&gt;HISTSIZE=30&lt;br /&gt;   Which mean, the "Bash_history" file in each users home directory can store    20 old commands&lt;br /&gt;  and no more.&lt;br /&gt;   &lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;  The administrator should also add into the "/etc/skel/Bash_logout" file the   &lt;br /&gt;  "&lt;i&gt;rm -f  $HOME/Bash_history&lt;/i&gt;" line, so that each time a user logs    out, its "Bash_history" file will be deleted.&lt;br /&gt;   Edit the Bash_logout file (vi /etc/skel/Bash_logout) and add the following    line:&lt;br /&gt;   &lt;i&gt;rm -f $HOME/Bash_history&lt;/i&gt;  &lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Disable the Control-Alt-Delete keyboard shutdown command&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  To do this comment out the line (with a "#") listed below in your "/etc/inittab"    file .&lt;br /&gt;   To do this, edit the inittab file (vi /etc/inittab) and change the line:   &lt;br /&gt;   &lt;i&gt;ca::ctrlaltdel:/sbin/shutdown -t3 -r now &lt;/i&gt;&lt;br /&gt;  To read:&lt;br /&gt;  &lt;i&gt;#ca::ctrlaltdel:/sbin/shutdown -t3 -r now &lt;/i&gt;&lt;br /&gt;   Now, for the change to take effect type in the following at a prompt:   &lt;br /&gt;   [root@kapil /]# /sbin/init q&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Fix the permissions under "/etc/rc.d/init.d" directory for script files&lt;/u&gt;&lt;/b&gt;   &lt;br /&gt;   Fix the permissions of the script files that are responsible for starting    and stopping all your normal  processes that need to run at boot time.     To do this:&lt;br /&gt;    root@sahab-desktop# chmod -R 700 /etc/rc.d/init.d/*&lt;br /&gt;   Which means only root is allowed to Read, Write, and Execute scripts files    on this directory.&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Hide your system information&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;   By default, when you login to a Linux box, it tells you the Linux distribution    name, version, kernel  version, and the name of the server. This is sufficient    information for a crackers to get information about your server. You should    just prompt users with a "Login:" prompt.&lt;br /&gt;   &lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;  To do this, Edit the "/etc/rc.d/rc.local" file and Place "#" in front of the    following lines as shown:&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;# This will overwrite /etc/issue at every boot.  So, make any changes    you&lt;br /&gt;  # want to make to /etc/issue here or you will lose them when you reboot.&lt;br /&gt;  #echo "" &gt; /etc/issue&lt;br /&gt;  #echo "$R" &gt;&gt; /etc/issue&lt;br /&gt;  #echo "Kernel $(uname -r) on $a $(uname -m)" &gt;&gt; /etc/issue&lt;br /&gt;  #&lt;br /&gt;  #cp -f /etc/issue /etc/issue.net&lt;br /&gt;  #echo &gt;&gt; /etc/issue&lt;br /&gt; &lt;br /&gt;   &lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;  Then, remove the following files: "issue.net" and "issue" under "/etc" directory:   &lt;br /&gt;   [root@kapil /]# rm -f /etc/issue&lt;br /&gt;[root@kapil /]# rm -f /etc/issue.net&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;Disable unused SUID/SGID programs&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;   A regular user will be able to run a program as root if it is set to SUID    root. A system administrator should minimize the use of these SUID/GUID programs    and disable the programs which are not needed.&lt;br /&gt;  &lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;  *  To find all files with the `s' bits from root-owned programs, use the    command:&lt;br /&gt;            root@sahab-desktop# find /    -type f \( -perm -04000 -o -perm -02000 \) \-exec ls ­lg {} \;&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;     *  To disable the suid bits on selected programs    above, type the following commands:&lt;br /&gt;            root@sahab-desktop# chmod    a-s [program]&lt;br /&gt;   &lt;/span&gt;  &lt;/p&gt;&lt;span style="font-family:Arial;"&gt;After following the above security guidelines, a system administrator can maintain    a basic level of system security. Some of the above tasks are a continuous process.    The system administrator has to continuously follow the above guidelines to    keep system secure. &lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-231342810866755074?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=231342810866755074' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/231342810866755074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/231342810866755074'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/linux-security-tips-and-tricks.html' title='Linux Security Tips and Tricks'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3042398928291038898</id><published>2009-04-28T22:29:00.000-07:00</published><updated>2009-04-28T22:59:04.461-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Segmentation Fault Unable to Login the System - Ubuntu 8.10'/><category scheme='http://www.blogger.com/atom/ns#' term='Segmentation Fault after login and password entered'/><title type='text'>Segmentation Fault Unable to Login the System - Ubuntu 8.10</title><content type='html'>Hi All&lt;br /&gt;&lt;br /&gt;Yesterday I face a new issue with ubuntu.....&lt;br /&gt;&lt;br /&gt;I have tried to add a printer via samba, that time I got some cupsys related error. Then I restart the service "cupsys" that time I go the error "Segmentation Fault". After that I restart the system.&lt;br /&gt;&lt;br /&gt;In that moment I can't able to login using my username and password,  it would just bounce to the Login screen again. I have add new user and try root user in command line terminal. there also same issue.&lt;br /&gt;&lt;br /&gt;For resolve the issue I have reboot the system and login to the recovery mode and there select drop to root shell prompt. There I have give the command&lt;br /&gt;&lt;br /&gt;root@sahab-desktop:~#login sahab&lt;br /&gt;segmentation fault&lt;br /&gt;&lt;br /&gt;There also I can't able to login to my username.&lt;br /&gt;&lt;br /&gt;After that I have purge samab for resolving the issue&lt;br /&gt;&lt;br /&gt;root@sahab-desktop:~#apt-get purge -y samba samba-common samba-client libpam-smbpass&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3042398928291038898?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3042398928291038898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3042398928291038898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3042398928291038898'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/segmentation-fault-unable-to-login.html' title='Segmentation Fault Unable to Login the System - Ubuntu 8.10'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3771001438280436318</id><published>2009-04-27T03:03:00.000-07:00</published><updated>2009-04-27T03:15:01.206-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Automatic login with ssh without a password'/><title type='text'>Automatic login with ssh without a password - Linux</title><content type='html'>&lt;h2&gt;&lt;span style="font-size:100%;"&gt;Install a ssh client&lt;/span&gt;&lt;/h2&gt;sudo apt-get install ssh&lt;br /&gt;&lt;br /&gt;   &lt;ol&gt;&lt;li&gt;         &lt;p&gt;Login to the ssh server with your client.&lt;/p&gt;       &lt;/li&gt;&lt;li&gt;         &lt;p&gt;Generate your key pair using the following command: (Don't use any passphrase)&lt;/p&gt;         &lt;pre class="screen"&gt;sahab@xxxx:~$ ssh-keygen -t rsa&lt;br /&gt;Generating public/private rsa key pair.&lt;br /&gt;Enter file in which to save the key (/home/sahab/.ssh/id_rsa):&lt;br /&gt;Created directory '/home/sahab/.ssh'.&lt;br /&gt;Enter passphrase (empty for no passphrase):&lt;br /&gt;Enter same passphrase again:&lt;br /&gt;Your identification has been saved in /home/sahab/.ssh/id_rsa.&lt;br /&gt;Your public key has been saved in /home/sahab/.ssh/id_rsa.pub.&lt;br /&gt;The key fingerprint is:&lt;br /&gt;2a:23:a3:f8:6c:af:3f:7e:12:b4:6a:80:98:c0:f3:ea sahab@gis&lt;br /&gt;The key's randomart image is:&lt;br /&gt;+--[ RSA 2048]----+&lt;br /&gt;|                 |&lt;br /&gt;|                 |&lt;br /&gt;|.                |&lt;br /&gt;|.o  .            |&lt;br /&gt;|+.o. .  S        |&lt;br /&gt;|=  .o  .         |&lt;br /&gt;| .+.o..          |&lt;br /&gt;|.++ooo.          |&lt;br /&gt;|+E+=++           |&lt;br /&gt;+-----------------+&lt;br /&gt;sahab@xxx:~$ cd ~/.ssh&lt;br /&gt;sahab@xxx:~/.ssh$ cat id_rsa.pub &gt;&gt; authorized_keys&lt;br /&gt;sahab@xxx~/.ssh$ chmod 600 authorized_keys&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;         &lt;p&gt;Log out of the server and go back to your local shell&lt;/p&gt;         &lt;pre class="screen"&gt;$ cd&lt;br /&gt;$ cd .ssh&lt;/pre&gt;       &lt;/li&gt;&lt;li&gt;         &lt;p&gt;Copy the file id_rsa that was generated on the server into this directory. You can use sftp or scp for this.&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;        sahab@sahab-desktop:~/.ssh$          sudo scp -r sahab@xxx:/home/sahab/.ssh/id_rsa   &lt;br /&gt;        /home/sahab/.ssh/&lt;br /&gt;&lt;br /&gt;&lt;pre class="screen"&gt;     $ cd .ssh&lt;br /&gt;    $ chmod 600 id_rsa&lt;br /&gt;&lt;br /&gt;    You should now be able to login via ssh without having to prompt for a password.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3771001438280436318?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3771001438280436318' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3771001438280436318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3771001438280436318'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/automatic-login-with-ssh-without.html' title='Automatic login with ssh without a password - Linux'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-8975587036737779343</id><published>2009-04-26T22:50:00.000-07:00</published><updated>2009-04-26T22:54:02.076-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backup and restore your system'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu Backup and restore your system'/><title type='text'>Backup and restore your system - Linux</title><content type='html'>Most of you have probably used Windows before you started using Ubuntu. During that time you might have needed to backup and restore your system. For Windows you would need proprietary software for which you would have to reboot your machine and boot into a special environment in which you could perform the backing-up/restoring (programs like Norton Ghost).&lt;br /&gt;During that time you might have wondered why it wasn't possible to just add the whole c:\ to a big zip-file. This is impossible because in Windows, there are lots of files you can't copy or overwrite while they are being used, and therefore you needed specialized software to handle this.&lt;br /&gt;&lt;br /&gt;Well, I'm here to tell you that those things, just like &lt;a href="http://www.ubuntuforums.org/showthread.php?t=34629" target="_blank"&gt;rebooting&lt;/a&gt;, are Windows CrazyThings (tm). There's no need to use programs like Ghost to create backups of your Ubuntu system (or any Linux system, for that matter). In fact; using Ghost might be a very bad idea if you are using anything but ext2. Ext3, the default Ubuntu partition, is seen by Ghost as a damaged ext2 partition and does a very good job at screwing up your data.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1: Backing-up&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;"What should I use to backup my system then?" might you ask. Easy; the same thing you use to backup/compress everything else; TAR. Unlike Windows, Linux doesn't restrict root access to anything, so you can just throw every single file on a partition in a TAR file!&lt;br /&gt;&lt;br /&gt;To do this, become root with&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;sudo su&lt;/pre&gt; &lt;/div&gt;and go to the root of your filesystem (we use this in our example, but you can go anywhere you want your backup to end up, including remote or removable drives.)&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;cd /&lt;/pre&gt; &lt;/div&gt;Now, below is the full command I would use to make a backup of my system:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /&lt;/pre&gt; &lt;/div&gt;Now, lets explain this a little bit.&lt;br /&gt;The 'tar' part is, obviously, the program we're going to use.&lt;br /&gt;&lt;br /&gt;'cvpfz' are the options we give to tar, like 'create archive' (obviously),&lt;br /&gt;'preserve permissions'(to keep the same permissions on everything the same), and 'gzip' to keep the size down.&lt;br /&gt;&lt;br /&gt;Next, the name the archive is going to get. backup.tgz in our example.&lt;br /&gt;&lt;br /&gt;Next comes the root of the directory we want to backup. Since we want to backup everything; /&lt;br /&gt;&lt;br /&gt;Now come the directories we want to exclude. We don't want to backup everything since some dirs aren't very useful to include. Also make sure you don't include the file itself, or else you'll get weird results.&lt;br /&gt;You might also not want to include the /mnt folder if you have other partitions mounted there or you'll end up backing those up too. Also make sure you don't have anything mounted in /media (i.e. don't have any cd's or removable media mounted). Either that or exclude /media.&lt;br /&gt;&lt;br /&gt;EDIT : kvidell suggests below we also exclude the /dev directory. I have other evidence that says it is very unwise to do so though.&lt;br /&gt;&lt;br /&gt;Well, if the command agrees with you, hit enter (or return, whatever) and sit back&amp;amp;relax. This might take a while.&lt;br /&gt;&lt;br /&gt;Afterwards you'll have a file called backup.tgz in the root of your filessytem, which is probably pretty large. Now you can burn it to DVD or move it to another machine, whatever you like!&lt;br /&gt;&lt;br /&gt;EDIT2:&lt;br /&gt;At the end of the process you might get a message along the lines of 'tar: Error exit delayed from previous errors' or something, but in most cases you can just ignore that.&lt;br /&gt;&lt;br /&gt;Alternatively, you can use Bzip2 to compress your backup. This means higher compression but lower speed. If compression is important to you, just substitute&lt;br /&gt;the 'z' in the command with 'j', and give the backup the right extension.&lt;br /&gt;That would make the command look like this:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;tar cvpjf backup.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/sys /&lt;/pre&gt; &lt;/div&gt;&lt;b&gt;2: Restoring&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Warning: Please, for goodness sake, be careful here. If you don't understand what you are doing here you might end up overwriting stuff that is important to you, so please take care!&lt;br /&gt;&lt;br /&gt;Well, we'll just continue with our example from the previous chapter; the file backup.tgz in the root of the partition.&lt;br /&gt;&lt;br /&gt;Once again, make sure you are root and that you and the backup file are in the root of the filesystem.&lt;br /&gt;&lt;br /&gt;One of the beautiful things of Linux is that This'll work even on a running system; no need to screw around with boot-cd's or anything. Of course, if you've rendered your system unbootable you might have no choice but to use a live-cd, but the results are the same. You can even remove every single file of a Linux system while it is running with one command. I'm not giving you that command though! &lt;img src="http://ubuntuforums.org/images/smilies/icon_wink.gif" alt="" title="Wink" class="inlineimg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;Well, back on-topic.&lt;br /&gt;This is the command that I would use:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt; tar xvpfz backup.tgz -C /&lt;/pre&gt; &lt;/div&gt;Or if you used bz2;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt; tar xvpfj backup.tar.bz2 -C /&lt;/pre&gt; &lt;/div&gt;WARNING: this will overwrite every single file on your partition with the one in the archive!&lt;br /&gt;&lt;br /&gt;Just hit enter/return/your brother/whatever and watch the fireworks. Again, this might take a while. When it is done, you have a fully restored Ubuntu system! Just make sure that, before you do anything else, you re-create the directories you excluded:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 98px; text-align: left;"&gt;mkdir proc&lt;br /&gt;mkdir lost+found&lt;br /&gt;mkdir mnt&lt;br /&gt;mkdir sys&lt;br /&gt;etc...&lt;/pre&gt; &lt;/div&gt;And when you reboot, everything should be the way it was when you made the backup!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2.1: GRUB restore&lt;/b&gt;&lt;br /&gt;Now, if you want to move your system to a new harddisk or if you did something nasty to your GRUB (like, say, install Windows), You'll also need to reinstall GRUB.&lt;br /&gt;&lt;br /&gt;For restoring the grub &lt;a href="http://sahabm.blogspot.com/2009/01/grub-fix-ubuntu.html"&gt;click here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-8975587036737779343?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=8975587036737779343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8975587036737779343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8975587036737779343'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/backup-and-restore-your-system-linux.html' title='Backup and restore your system - Linux'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1615732320631917446</id><published>2009-04-26T22:06:00.000-07:00</published><updated>2009-04-26T22:33:09.127-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Using Vi editior'/><title type='text'>Vi Editor How To</title><content type='html'>&lt;p style="color: rgb(255, 0, 0); font-weight: bold;" class="vspace"&gt;Using the vi editor &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To insert new text&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  i ( You have to press 'escape' key then 'i') &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To save file&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  : w (Press 'escape' key  then 'colon' and finally 'w') &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To save file with file name (save as)&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  :w  "filename" &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To quit the vi editor&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  :q &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To quit without saving&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  :q! &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To save and quit vi editor&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  :wq &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To search for specified word in forward direction&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  /word (Press 'escape' key, type /word-to-find,) &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To continue with search "n&lt;/span&gt;"&lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To search for specified word in backward direction&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  ?word (Press 'escape' key, type word-to-find) &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To copy the line where cursor is located&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  yy &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To paste the text just deleted or copied at the cursor&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  p &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To delete entire line where cursor is located&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  dd &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To delete word from cursor position&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  dw &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To Find all occurrence of given word and Replace then globally without confirmation&lt;/span&gt; &lt;/p&gt; &lt;pre&gt; esc  :$s/word-to-find/word-to-replace/g&lt;br /&gt;&lt;/pre&gt;&lt;p class="vspace"&gt;For. e.g. :$s/sahab/sahabcse/g &lt;/p&gt; &lt;p class="vspace"&gt;Here word "sahab" is replace with "sahabcse" &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To Find all occurrence of given word and Replace then globally with confirmation&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  :$s/word-to-find/word-to-replace/cg &lt;/p&gt; &lt;p class="vspace"&gt;&lt;span style="color:blue;"&gt;To run shell command like ls, cp or date etc within vi&lt;/span&gt; &lt;/p&gt; &lt;p class="vspace"&gt;esc  :!shell-command &lt;/p&gt; &lt;p class="vspace"&gt;For e.g. :!pwd &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1615732320631917446?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1615732320631917446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1615732320631917446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1615732320631917446'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/vi-editor-how-to.html' title='Vi Editor How To'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6694329146263538889</id><published>2009-04-25T00:00:00.000-07:00</published><updated>2009-04-25T00:07:20.165-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zimbra cluster configuration on Redhat'/><title type='text'>zimbra cluster configuration - Redhat</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_6W0mYQajg-E/SfK1zPY1t0I/AAAAAAAAAk0/SRPP6uhkX0M/s1600-h/Zimbra+Logo.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 191px;" src="http://2.bp.blogspot.com/_6W0mYQajg-E/SfK1zPY1t0I/AAAAAAAAAk0/SRPP6uhkX0M/s400/Zimbra+Logo.JPG" alt="" id="BLOGGER_PHOTO_ID_5328521201041389378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Zimbra Cluster notes&lt;/strong&gt;. &lt;/p&gt; &lt;p class="vspace"&gt;To start the Red Hat Cluster Service on a member, type the following commands in this order. Remember to enter the command on each node before proceeding to the next command. &lt;/p&gt; &lt;p class="vspace"&gt;1. service ccsd start. This is the cluster configuration system daemon that synchronizes configuration between cluster nodes. &lt;/p&gt; &lt;p class="vspace"&gt;2. service cman start. This is the cluster heartbeat daemon. It returns when both nodes have established heartbeat with one another. &lt;/p&gt; &lt;p class="vspace"&gt;3. service fenced start. This is the cluster I/O fencing system that allows cluster nodes to reboot a failed node during failover. &lt;/p&gt; &lt;p class="vspace"&gt;4. service rgmanager start. This manages cluster services and resources. The service rgmanager start command returns immediately, but initializing the cluster and bringing up the Zimbra Collaboration Suite application for the cluster services on the active node may take some time. After all commands have been issued on both nodes, run clustat command on the active node, to verify that the cluster service has been started. When clustat shows all services are running on the active node, the cluster configuration is complete. &lt;/p&gt; &lt;p class="vspace"&gt;For the cluster service that is not running on the active node, run clusvcadm -d &lt;cluster&gt;, as root on the active node. &lt;/p&gt; &lt;p class="vspace"&gt;[root@sahab-desktop]#clusvcadm -d mail1.example.com &lt;/p&gt; &lt;p class="vspace"&gt;This disables the service by stopping all associated Zimbra processes, releasing the service IP address, and unmounting the service’s SAN volumes. &lt;/p&gt; &lt;p class="vspace"&gt;To enable a disabled service, run clusvcadm -e &lt;service&gt; -m &lt;node&gt;. This command can be run on any cluster node. It instructs the specified node to mount the SAN volumes of the service, bring up the serviceIP address, and start the Zimbra processes. &lt;/p&gt; &lt;p class="vspace"&gt;[root@sahab-desktop]#clusvcadm -e mail1.example.com -m  node1.example.com &lt;/p&gt; &lt;p class="vspace"&gt;Testing the Cluster Set up &lt;/p&gt; &lt;p class="vspace"&gt;To perform a quick test to see if failover works: &lt;/p&gt; &lt;p class="vspace"&gt;1. Log in to the remote power switch and turn off the active node. &lt;/p&gt; &lt;p class="vspace"&gt;2. Run tail -f /var/log/messages on the standby node. You will observe the cluster becomes aware of the failed node, I/O fence it, and bring up the failed service on the standby node.&lt;br /&gt;&lt;/p&gt;&lt;p class="vspace"&gt;For Installing zimbra please follow &lt;a href="http://sahabm.blogspot.com/2009/04/zimbra-collaboration-suite-installation.html"&gt;click here&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6694329146263538889?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6694329146263538889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6694329146263538889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6694329146263538889'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/zimbra-cluster-configuration-redhat.html' title='zimbra cluster configuration - Redhat'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_6W0mYQajg-E/SfK1zPY1t0I/AAAAAAAAAk0/SRPP6uhkX0M/s72-c/Zimbra+Logo.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5505368880731513232</id><published>2009-04-22T23:29:00.000-07:00</published><updated>2009-04-22T23:45:34.204-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fatal error: Call to undefined function mysql_connect() in Ubuntu'/><title type='text'>Resolving a Fatal error: Call to undefined function mysql_connect() in ubuntu</title><content type='html'>Install php5-mysql and php5-cgi for fix this error.&lt;br /&gt;&lt;br /&gt;Details Steps given below&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Symptoms&lt;/h2&gt;  &lt;p&gt;When the page is loaded in the web browser, you receive the error, &lt;i&gt;Fatal error: Call to undefined function mysql_connect()&lt;/i&gt;.&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;Fix&lt;/h2&gt;   &lt;ol&gt;&lt;li&gt;Verify that your installation of PHP has been compiled with mysql support.  Create a test web page containing &lt;code&gt;&lt;/code&gt; and load it in your browser.  Search the page for &lt;i&gt;MySQL&lt;/i&gt;. If you don't see it, you need to recompile PHP with MySQL support, or reinstall a PHP package that has it built-in.&lt;/li&gt;&lt;li&gt;Verify that the line to load the extension in &lt;code&gt;php.ini&lt;/code&gt; has been uncommented.  In Linux, the line is &lt;code&gt;extension=mysql.so&lt;/code&gt; and in Windows, the line is &lt;code&gt;extension=php_mysql.dll&lt;/code&gt;.  Uncomment the line by removing the semi-colon. You might also need to configure the &lt;code&gt;extension_dir&lt;/code&gt; variable. &lt;/li&gt;&lt;/ol&gt;    3.  For installing php5-mysql&lt;br /&gt;&lt;br /&gt;      #sudo apt-get install php5-mysql&lt;br /&gt;      #sduo apt-get install php5-cgi&lt;br /&gt;&lt;br /&gt;4. Then restart the mysql and apache&lt;br /&gt;&lt;br /&gt;    #sudo /etc/init.d/apache2 restart&lt;br /&gt;    #sudo /etc/init.d/mysql restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5505368880731513232?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5505368880731513232' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5505368880731513232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5505368880731513232'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/resolving-fatal-error-call-to-undefined.html' title='Resolving a Fatal error: Call to undefined function mysql_connect() in ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1905334172324212641</id><published>2009-04-22T23:25:00.000-07:00</published><updated>2009-04-22T23:28:41.440-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webmin mail issue'/><category scheme='http://www.blogger.com/atom/ns#' term='Server constantly emailing'/><title type='text'>Server constantly sending email Error - webmin</title><content type='html'>&lt;span class="msgtitle"&gt;/etc/webmin/bandwidth/rotate.pl&lt;/span&gt;&lt;span class="msgdate"&gt;&lt;br /&gt; By using this scripts server constantly send email for resolving this issue&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;# crontab -u root -e&lt;br /&gt;change the line :&lt;br /&gt;0 * * * * /etc/webmin/bandwidth/rotate.pl&lt;br /&gt;&lt;br /&gt;into&lt;br /&gt;0 * * * * /etc/webmin/bandwidth/rotate.pl &gt;/dev/null 2&gt;&amp;amp;1&lt;br /&gt;&lt;br /&gt;and you don't get any more mossage from crontab.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1905334172324212641?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1905334172324212641' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1905334172324212641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1905334172324212641'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/server-constantly-sending-email-error.html' title='Server constantly sending email Error - webmin'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6045713835880607418</id><published>2009-04-18T01:44:00.000-07:00</published><updated>2009-04-18T01:45:48.528-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu login screen install'/><category scheme='http://www.blogger.com/atom/ns#' term='login screen download'/><title type='text'>Change Ubuntu Log in Screen</title><content type='html'>&lt;p&gt;Search and download a GNOME GDM login screen.&lt;br /&gt;&lt;b&gt;Cool Download Locations :&lt;/b&gt;-&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.customize.org/list/ggdm"&gt;http://www.customize.org/list/ggdm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://art.gnome.org/themes/gdm_greeter/"&gt; http://art.gnome.org/themes/gdm_greeter/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.gnome-look.org/index.php?xcontentmode=150"&gt; http://www.gnome-look.org/index.php?xcontentmode=150&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Where to Install ?&lt;/p&gt; &lt;p&gt;System -&gt;Administration-&gt; Login Window -&gt;Local -&gt;Add -&gt; xxxx.tar.gz -&gt; Install -&gt; Click on new theme -&gt; Close.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6045713835880607418?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6045713835880607418' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6045713835880607418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6045713835880607418'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/change-ubuntu-log-in-screen.html' title='Change Ubuntu Log in Screen'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-4545630977860668208</id><published>2009-04-15T01:10:00.000-07:00</published><updated>2009-04-15T01:15:06.620-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtual consoles Edit'/><title type='text'>Disable virtual consoles (clt+Alt+F1 to F7)</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p&gt;You can easily access these virtual console using keyboard combination by simply hitting ctrl+Alt+F1 (tty1) upto sixth (Alt+F6) tty console. you can easily login to these console.&lt;br /&gt;&lt;br /&gt;There is a quick and effective way to disable these console.&lt;br /&gt;&lt;br /&gt;1) Open /etc/inittab file and look for the section&lt;br /&gt;&lt;br /&gt;1:2345:respawn:/sbin/mingetty --noclear tty1&lt;br /&gt;2:2345:respawn:/sbin/mingetty tty2&lt;br /&gt;3:2345:respawn:/sbin/mingetty tty3&lt;br /&gt;4:2345:respawn:/sbin/mingetty tty4&lt;br /&gt;5:2345:respawn:/sbin/mingetty tty5&lt;br /&gt;6:2345:respawn:/sbin/mingetty tty6&lt;br /&gt;&lt;br /&gt;As you can see above there are 6 lines (one for each virtual console), simpily placing "#" at the begning of the line will disable that particular console. Suppose I need to disable console no 4,5,6 so, in this case my inittab file will look like ..&lt;br /&gt;&lt;br /&gt;1:2345:respawn:/sbin/mingetty --noclear tty1&lt;br /&gt;2:2345:respawn:/sbin/mingetty tty2&lt;br /&gt;3:2345:respawn:/sbin/mingetty tty3&lt;br /&gt;#4:2345:respawn:/sbin/mingetty tty4&lt;br /&gt;#5:2345:respawn:/sbin/mingetty tty5&lt;br /&gt;#6:2345:respawn:/sbin/mingetty tty6  &lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-4545630977860668208?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=4545630977860668208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4545630977860668208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4545630977860668208'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/disable-virtual-consoles-cltaltf1-to-f7.html' title='Disable virtual consoles (clt+Alt+F1 to F7)'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-2422832376741657413</id><published>2009-04-15T00:24:00.001-07:00</published><updated>2009-04-15T00:59:54.358-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virus for Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Virus'/><title type='text'>virus for linux</title><content type='html'>&lt;div style="text-align: justify;"&gt;*A Word on Computer Viruses&lt;br /&gt;&lt;br /&gt;*Viruses are, by definition, malicious pieces of code that replicate&lt;br /&gt;themselves. They can do this through a variety of methods, including&lt;br /&gt;infecting  other executable files or disseminating macros and other forms of&lt;br /&gt;executable content.Viruses are most commonly spread by users sharing files,&lt;br /&gt;particularly through email, and also other means. Viruses are well known to&lt;br /&gt;have been causing problems to the Windows users.&lt;br /&gt;But the question remains, Are there any Linux &lt;span class="il"&gt;virus&lt;/span&gt;? And if yes, should I&lt;br /&gt;worry??? The answer is yes to the first question and no to the second one.&lt;br /&gt;Let me tell you my experience. On my dual boot home PC I primarily work on&lt;br /&gt;Linux partition but ocassionally have to boot into the Windowspartition&lt;br /&gt;(usually to do such works like checking a MS Word document's formatting, a&lt;br /&gt;document that was originally made using Linux/OpenOffice.org Writer and&lt;br /&gt;saved as a MS Wordfile; this is another issue where a user is forced to use&lt;br /&gt;such proprietary software, because a particular agency needs a document in a&lt;br /&gt;proprietary format however).&lt;br /&gt;&lt;br /&gt;Coming back to the original issue, I almost always find some new &lt;span class="il"&gt;virus&lt;/span&gt; that&lt;br /&gt;has infected the Windows partition. These viruses either creap in through&lt;br /&gt;the e-mail or shared folders over the network and mainly through pen drive&lt;br /&gt;now a days.&lt;br /&gt;But I have never had a single incidence of a Linux &lt;span class="il"&gt;virus&lt;/span&gt; attack in my Linux&lt;br /&gt;box. Though, the fact remains, that viruses for Linux do exist but you can&lt;br /&gt;count them on your finger tips. This article tries to enlist and explain&lt;br /&gt;these known Linux viruses and some of the antivirus software available. *&lt;br /&gt;&lt;br /&gt;Known Linux Viruses?*&lt;br /&gt;&lt;br /&gt;   - Linux.Bliss&lt;br /&gt;   - Linux.Diesel&lt;br /&gt;   - Linux.Gildo&lt;br /&gt;   - Linux.Kagob&lt;br /&gt;   - Linux.Nuxbee&lt;br /&gt;   - Linux.Satyr&lt;br /&gt;   - Linux.Vit.4096&lt;br /&gt;   - Linux.Winter&lt;br /&gt;   - Linux.Zipworm&lt;br /&gt;&lt;br /&gt;  *&lt;br /&gt;1. Linux.Bliss*  These are nonmemory resident parasitic viruses written in&lt;br /&gt;GNU C. They infect Linux OS only - infected files may be executed, and the&lt;br /&gt;&lt;span class="il"&gt;virus&lt;/span&gt; may spread itself only under Linux. The viruses search for executable&lt;br /&gt;Linux files (ELF internal format) and infect them. While infecting, the&lt;br /&gt;viruses shift the file body down, write themselves to the beginning of the&lt;br /&gt;file and append to the end of file the ID-text:&lt;br /&gt;&lt;br /&gt;"Bliss.a": infected by bliss: 00010002:000045e4&lt;br /&gt;&lt;br /&gt;"Bliss.b": infected by bliss: 00010004:000048ac&lt;br /&gt;&lt;br /&gt;It seems that the former hex number in these lines is a &lt;span class="il"&gt;virus&lt;/span&gt; version, and&lt;br /&gt;the latter is the &lt;span class="il"&gt;virus&lt;/span&gt; length - the &lt;span class="il"&gt;virus&lt;/span&gt; lengths are 17892 and 18604&lt;br /&gt;bytes.&lt;br /&gt;&lt;br /&gt;When an infected file is run, the "Bliss.a" &lt;span class="il"&gt;virus&lt;/span&gt; searches for not more than&lt;br /&gt;three non-infected files and infects them. "Bliss.b" infects more files (It&lt;br /&gt;is not known how much). If there are not any infected files in the current&lt;br /&gt;directory, the &lt;span class="il"&gt;virus&lt;/span&gt; scans the system and infects the files in other&lt;br /&gt;directories. After infecting, the viruses return control to the host&lt;br /&gt;program, and it will work correctly.&lt;br /&gt;&lt;br /&gt;Linux is an access-protected system; i.e., users and programs may access&lt;br /&gt;only files that they have permission to. The same goes for a &lt;span class="il"&gt;virus&lt;/span&gt; - it may&lt;br /&gt;infect only the files and directories that are declared as "write-able" for&lt;br /&gt;the current username. If the current username has total access (system&lt;br /&gt;administrator), the &lt;span class="il"&gt;virus&lt;/span&gt; will infect all the files on the computer.&lt;br /&gt;*2. Linux.Diesel*&lt;br /&gt;  This is a relatively harmless, non-memory resident parasitic &lt;span class="il"&gt;virus&lt;/span&gt;. It&lt;br /&gt;searches for Linux executable files in system directories and&lt;br /&gt;subdirectories, then writes itself to the middle of the file. Before&lt;br /&gt;searching files, the &lt;span class="il"&gt;virus&lt;/span&gt; reads its code from the host file. It moves the&lt;br /&gt;original bytes to the end oNow you may ask "Why we don't have viruses to the&lt;br /&gt;same proportion under Linux as we have for other proprietary OSes?" The&lt;br /&gt;answer to this can be found he &lt;&lt;a href="http://librenix.com/?inode=21" target="_blank"&gt;http://librenix.com/?inode=21&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;" id=":1yj" class="ii gt"&gt;&lt;wbr&gt;&gt;f the file and&lt;br /&gt;increases the size of the previous section. After finishing its work, the&lt;br /&gt;&lt;span class="il"&gt;virus&lt;/span&gt; restores the host and transfers control to it. The &lt;span class="il"&gt;virus&lt;/span&gt; contains the&lt;br /&gt;text string:&lt;br /&gt;/ home root sbin bin opt&lt;br /&gt;[ Diesel : Oil, Heavy Petroleum Fraction Used In Diesel Engines ]&lt;br /&gt;&lt;br /&gt;*3. Linux.Gildo*&lt;br /&gt;  It is not a dangerous, memory resident parasitic &lt;span class="il"&gt;virus&lt;/span&gt;. It was written in&lt;br /&gt;the assembler language. It uses system calls (syscall) while working with&lt;br /&gt;files. The &lt;span class="il"&gt;virus&lt;/span&gt; infects ELF files. It writes itself to the middle of the&lt;br /&gt;file.&lt;br /&gt;&lt;br /&gt;After starts the &lt;span class="il"&gt;virus&lt;/span&gt; divides a main process and continues its work. The&lt;br /&gt;resident part scans the directories from the root. The &lt;span class="il"&gt;virus&lt;/span&gt; checks the&lt;br /&gt;access right for each found file. If file has a write access the &lt;span class="il"&gt;virus&lt;/span&gt; will&lt;br /&gt;infect it. While infecting file the &lt;span class="il"&gt;virus&lt;/span&gt; increases its code section size on&lt;br /&gt;4096 bytes and writes its code to the free space. After that the &lt;span class="il"&gt;virus&lt;/span&gt;&lt;br /&gt;changes parameters for the ELF file upper sections and setups a new Entry&lt;br /&gt;point for it. The &lt;span class="il"&gt;virus&lt;/span&gt; displays the message on each start:&lt;br /&gt;&lt;br /&gt;Gildo &lt;span class="il"&gt;virus&lt;/span&gt;&lt;br /&gt;email &lt;a href="mailto:Gildo@jazz.hm" target="_blank"&gt;Gildo@jazz.hm&lt;/a&gt; (for comments)&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; contains the text strings:&lt;br /&gt;&lt;br /&gt;hello, nice boys, I hope you will enjoy this program written with nasm. I&lt;br /&gt;want to say thanks to all my programmers friend.Bye from Gildo. The Netwide&lt;br /&gt;Assembler 0.98 .symtab .strtab .shstrtab .text .data .sbss .bss .comment&lt;br /&gt;&lt;br /&gt;It also contains the debug strings from the compiler:&lt;br /&gt;&lt;br /&gt;&lt;span class="il"&gt;virus&lt;/span&gt;.asm parent parent_process ahah scan_dir c_stat others_permissions&lt;br /&gt;user_permissions group_permissions c_permissions is_regular_file&lt;br /&gt;c1_is_regular_file c2_is_regular_file is_directory c1_is_directory l_readdir&lt;br /&gt;skip_l_readdir e_l_readdir error_stat error_opening_file e_scan_dir&lt;br /&gt;infect_file open no_open_error file_length mmap c_mmap is_suitable&lt;br /&gt;error_suitable c1_is_suitable read_ehdr c_ehdr is_suitable_space patch_ehdr&lt;br /&gt;patch_e_entry patch_e_sh_offset patch_phdrs l_read_ph dont_patch_phtext&lt;br /&gt;dont_patch_ph patch_shdrs l_read_sh dont_patch_shtext dont_patch_sh&lt;br /&gt;find_current_entry_point write suit_error munmap mmap_error close open_error&lt;br /&gt;__exit __bss_start main _edata _end&lt;br /&gt;*4. Linux.Kagob*  It is a harmless nonmemory resident parasitic Linux &lt;span class="il"&gt;virus&lt;/span&gt;.&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; itself is Linux executable module (ELF file). It searches for&lt;br /&gt;other ELF files in the system, then infects them.&lt;br /&gt;&lt;br /&gt;While infecting the &lt;span class="il"&gt;virus&lt;/span&gt; moved victim file contents down, and writes itself&lt;br /&gt;to file header. To release control to the host file the &lt;span class="il"&gt;virus&lt;/span&gt; "disinfects"&lt;br /&gt;it to a temporary file and executes it.&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; does not manifest itself in any way. It body contains the&lt;br /&gt;"copyright" text string:&lt;br /&gt;&lt;br /&gt;Linux.Kaiowas by Gobleen Warrior//SMF&lt;br /&gt;*5. Linux.Nuxbee*&lt;br /&gt;  This is a relatively harmless, non-memory resident parasitic Linux &lt;span class="il"&gt;virus&lt;/span&gt;.&lt;br /&gt;It searches for ELF files in the directory bin, then writes itself to the&lt;br /&gt;middle of the file. The &lt;span class="il"&gt;virus&lt;/span&gt; infects files if the current user has&lt;br /&gt;administrator rights. It writes itself to the Entry point offset, encrypts&lt;br /&gt;and saves original bytes at the end of a file.&lt;br /&gt;&lt;br /&gt;To restore an original file, the &lt;span class="il"&gt;virus&lt;/span&gt; reads and encrypts the original bytes&lt;br /&gt;from the host file. It uses file mapping functions to infect files. All&lt;br /&gt;system functions are summoned by INT 80h (Sys call). The &lt;span class="il"&gt;virus&lt;/span&gt; contains the&lt;br /&gt;following text string:&lt;br /&gt;&lt;br /&gt;NuxBee by Bumblebee - The NeXt Frontier&lt;br /&gt;*6. Linux.Satyr*  This is a harmless non-memory resident parasitic Linux&lt;br /&gt;&lt;span class="il"&gt;virus&lt;/span&gt;. The &lt;span class="il"&gt;virus&lt;/span&gt; is a Linux executable module (ELF file). It searches for&lt;br /&gt;other ELF files in the system, and then infects them. The &lt;span class="il"&gt;virus&lt;/span&gt; infects&lt;br /&gt;files in the following directories:&lt;br /&gt;&lt;br /&gt;current directory&lt;br /&gt;parent directory&lt;br /&gt;~/ (user root directory)&lt;br /&gt;~/bin (user /bin directory)&lt;br /&gt;~/sbin (user /sbin directory)&lt;br /&gt;/bin&lt;br /&gt;/sbin&lt;br /&gt;/usr/bin&lt;br /&gt;/usr/local/bin&lt;br /&gt;/usr/bin/X11&lt;br /&gt;While infecting, the &lt;span class="il"&gt;virus&lt;/span&gt; moves a victim's file contents down, and writes&lt;br /&gt;itself to the file header. To release control to the host file, the &lt;span class="il"&gt;virus&lt;/span&gt;&lt;br /&gt;"disinfects" it to a temporary file and executes it.&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; does not manifest itself in any way. Its body contains the&lt;br /&gt;"copyright" text string:&lt;br /&gt;&lt;br /&gt;unix.satyr version 1.0 (c)oded jan-2001 by Shitdown [MIONS],&lt;br /&gt;&lt;a href="http://shitdown.sf.cz/" target="_blank"&gt;http://shitdown.sf.cz&lt;/a&gt;&lt;br /&gt;*7. Linux.Vit.4096*  This is a nonmemory resident parasitic &lt;span class="il"&gt;virus&lt;/span&gt;. The &lt;span class="il"&gt;virus&lt;/span&gt;&lt;br /&gt;has the internal ELF format, replicates under Linux OS and infects Linux&lt;br /&gt;executable files. Linux is a access-protected system; i.e., users and&lt;br /&gt;programs may access only files that they have permission to. The same is&lt;br /&gt;true for a &lt;span class="il"&gt;virus&lt;/span&gt; - it may infect only the files and directories that are&lt;br /&gt;declared as "write-able" for the current username. If the current username&lt;br /&gt;has total access (system administrator), the &lt;span class="il"&gt;virus&lt;/span&gt; will infect all the files&lt;br /&gt;on a computer.&lt;br /&gt;&lt;br /&gt;When an infected file is executed, the &lt;span class="il"&gt;virus&lt;/span&gt; takes control, searches for&lt;br /&gt;executable ELF files in the current directory and infects them into the&lt;br /&gt;middle. While infecting, the &lt;span class="il"&gt;virus&lt;/span&gt; analyzes the internal file formats (ELF&lt;br /&gt;headers), locates the first code section, makes a "cave" by shifting this&lt;br /&gt;and the following sections down by 4096 bytes, writes its code to this&lt;br /&gt;"cave," modifies the file entry address and corrects necessary fields in the&lt;br /&gt;ELF headers.&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; looks for duplicate infection and prevents it, and, in addition,&lt;br /&gt;the &lt;span class="il"&gt;virus&lt;/span&gt; infects files quite accurately: in tests, not all infected files&lt;br /&gt;were corrupted, and the &lt;span class="il"&gt;virus&lt;/span&gt; was able to replicate itself from them.&lt;br /&gt;&lt;br /&gt;While infecting, the &lt;span class="il"&gt;virus&lt;/span&gt; uses the temporary VI324.TMP file. This file name&lt;br /&gt;was the reason behind the selecting of the &lt;span class="il"&gt;virus&lt;/span&gt; name(VIxxx.Txx).&lt;br /&gt;*8. Linux.Winter*  This is a harmless non-memory resident parasitic Linux&lt;br /&gt;&lt;span class="il"&gt;virus&lt;/span&gt;. It is extremely small in size for a Linux &lt;span class="il"&gt;virus&lt;/span&gt; - just 341 bytes (in&lt;br /&gt;the known &lt;span class="il"&gt;virus&lt;/span&gt; version).&lt;br /&gt;&lt;br /&gt;When an infected file is run, the &lt;span class="il"&gt;virus&lt;/span&gt; gains control, searches for ELF&lt;br /&gt;files (Linux executable files) in the current directory, then writes itself&lt;br /&gt;to the middle of the file to the non-used "Notes section" if there is one&lt;br /&gt;and it has enough size. While infecting, the &lt;span class="il"&gt;virus&lt;/span&gt; overwrites "Notes" data&lt;br /&gt;in the section, but the program runs properly after that.&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; contains the text string:&lt;br /&gt;LoTek by Wintermute&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; has a routine that sets a host name (computer name) to&lt;br /&gt;"Wintermute", but this routine never gains control.&lt;br /&gt;&lt;br /&gt;*9. Linux.Zipworm*  It is harmless Linux &lt;span class="il"&gt;virus&lt;/span&gt; affecting ZIP archives.&lt;br /&gt;&lt;br /&gt;When the &lt;span class="il"&gt;virus&lt;/span&gt; is run, it looks for ZIP archives in current directory and&lt;br /&gt;add its copies to there. While infecting the &lt;span class="il"&gt;virus&lt;/span&gt; does not use any external&lt;br /&gt;ZIP processing tool, but parses ZIP internal formats by itself. The &lt;span class="il"&gt;virus&lt;/span&gt;&lt;br /&gt;files in archives have one of five possible names:&lt;br /&gt;&lt;br /&gt;Ten motives why linux sux!&lt;br /&gt;Why Windows is superior to Linux!&lt;br /&gt;Is Linux for you? Never!&lt;br /&gt;Is Linux immune to &lt;span class="il"&gt;virus&lt;/span&gt;? NO!&lt;br /&gt;zipworm!&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;virus&lt;/span&gt; also contains the "copyright" text:&lt;br /&gt;&lt;br /&gt;elf zip worm vecna&lt;br /&gt;&lt;br /&gt;  *Available Antiviruses Against Linux Viruses?*&lt;br /&gt;&lt;br /&gt;My personal experience says that you will never need an antivirus as the&lt;br /&gt;incedence of &lt;span class="il"&gt;virus&lt;/span&gt; attacks hardly exists in a Linux world. But just to be on&lt;br /&gt;a safer side for the unseen to happen some day, latest version one of the&lt;br /&gt;antivirus should be kept handy at all times. The following is a list of some&lt;br /&gt;of the better known antivirus software for the Linux platform.&lt;br /&gt;&lt;br /&gt;  *Antivirus Name and Description&lt;br /&gt;* *Interface&lt;br /&gt;*  *AMaViS &lt;span class="il"&gt;Virus&lt;/span&gt; Scanner:* A Mail &lt;span class="il"&gt;Virus&lt;/span&gt; Scanner scans e-mail attachments for&lt;br /&gt;viruse. Console  *AntiVir*: This is an anti-&lt;span class="il"&gt;virus&lt;/span&gt; scanner for Linux. Console&lt;br /&gt;*Clam Antivirus*: Basically made for UNIX. Console  *Kaspersky Anti-&lt;span class="il"&gt;Virus&lt;/span&gt;&lt;br /&gt;for Linux Workstation*: This is a comprehensive anti-&lt;span class="il"&gt;virus&lt;/span&gt; defense system&lt;br /&gt;for Linux workstations. Console  *McAfee VirusScan Validate*: This is one of&lt;br /&gt;the most popular &lt;span class="il"&gt;virus&lt;/span&gt; scanning packages available for any platform Console&lt;br /&gt;*RAV AntiVirus Desktop for Linux*: Powerful and wisely designed to protect&lt;br /&gt;your data from a Linux environment. X11  *SAVget*: SAVget is a bash script&lt;br /&gt;that aims to be a clone of the Windows SGET utility. Console  *TkAntivir*:&lt;br /&gt;This is a graphical front end to the antivirus program H+BEDV AntiVir/X&lt;br /&gt;written in Tcl/Tk. X11  *Vexira Antivirus For Linux Server*: This is a&lt;br /&gt;complete antivirus system designed specifically for Linux servers. Console&lt;br /&gt;*Vexira Antivirus for Linux Workstation*: This program provides antivirus&lt;br /&gt;protection for Linux workstations. Console  *Vexira MailArmor - Linux&lt;br /&gt;antivirus for mail servers*: This is a high-speed Linux antivirus program&lt;br /&gt;for mail servers. Console&lt;br /&gt;Many of these are under GPL, some under subscription scheme and few&lt;br /&gt;commercial ones.&lt;br /&gt;&lt;br /&gt;*Use Linux Feel Free &amp;amp; Open.*&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-2422832376741657413?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=2422832376741657413' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2422832376741657413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2422832376741657413'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/virus-for-linux.html' title='virus for linux'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-8622382204564648477</id><published>2009-04-13T03:41:00.000-07:00</published><updated>2009-04-13T03:48:43.105-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu 9.04 download'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu new version'/><title type='text'>Ubuntu 9.04 Beta Release</title><content type='html'>Ubuntu releases are issued every six months and include the latest versions of popular open source software applications. The new version of ubuntu 9.04 is called as Jaunty Jackalope&lt;br /&gt;&lt;br /&gt;For Download&lt;br /&gt;&lt;br /&gt;&lt;a class="http" href="http://releases.ubuntu.com/releases/9.04/"&gt;http://releases.ubuntu.com/releases/9.04/&lt;/a&gt; (Ubuntu Desktop and Server)&lt;br /&gt; &lt;a class="http" href="http://releases.ubuntu.com/releases/edubuntu/9.04/"&gt;http://releases.ubuntu.com/releases/edubuntu/9.04/&lt;/a&gt; (Ubuntu Education Edition)&lt;br /&gt; &lt;a class="http" href="http://releases.ubuntu.com/releases/kubuntu/9.04/"&gt;http://releases.ubuntu.com/releases/kubuntu/9.04/&lt;/a&gt; (Kubuntu)&lt;br /&gt; &lt;a class="http" href="http://cdimage.ubuntu.com/releases/9.04/beta/"&gt;http://cdimage.ubuntu.com/releases/9.04/beta/&lt;/a&gt; (Ubuntu Netbook Remix and Ubuntu MID)&lt;br /&gt; &lt;a class="http" href="http://cdimage.ubuntu.com/xubuntu/releases/9.04/beta/"&gt;http://cdimage.ubuntu.com/xubuntu/releases/9.04/beta/&lt;/a&gt; (Xubuntu)&lt;br /&gt; &lt;a class="http" href="http://cdimage.ubuntu.com/ubuntustudio/releases/9.04/beta/"&gt;http://cdimage.ubuntu.com/ubuntustudio/releases/9.04/beta/&lt;/a&gt; (UbuntuStudio)&lt;br /&gt; &lt;a class="http" href="http://cdimage.ubuntu.com/mythbuntu/releases/9.04/beta/"&gt;http://cdimage.ubuntu.com/mythbuntu/releases/9.04/beta/&lt;/a&gt; (Mythbuntu)&lt;br /&gt; &lt;a class="http" href="http://cdimage.ubuntu.com/netboot/9.04/beta/"&gt;http://cdimage.ubuntu.com/netboot/9.04/beta/&lt;/a&gt; (Ubuntu ARM)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-8622382204564648477?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=8622382204564648477' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8622382204564648477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8622382204564648477'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/ubuntu-904-beta-release.html' title='Ubuntu 9.04 Beta Release'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5612674079310124205</id><published>2009-04-13T03:25:00.000-07:00</published><updated>2009-04-13T03:34:07.922-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='File Recovery Tools for Ext2/Ext3 filesystems'/><title type='text'>gET iT i sAY - File Recovery Tools for Ext2/Ext3 filesystems</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_6W0mYQajg-E/SeMU4Ud_IfI/AAAAAAAAAks/YCxMCD1Prvo/s1600-h/Screenshot-1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_6W0mYQajg-E/SeMU4Ud_IfI/AAAAAAAAAks/YCxMCD1Prvo/s400/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5324122142281769458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.giis.co.in/"&gt;giis&lt;/a&gt; (gET iT i sAY) is a file recovery tool for Ext2/Ext3 filesystems. Once installed, current files and newly created files can be recovered. It allows users to recover all deleted files, recover files owned by a specific user, dump data from old file locations, and recover files of a specific type, such as text or PNG. A forensic analyzer is also provided to assist users during recovery.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Features&lt;/b&gt;&lt;br /&gt;* Recover files Deleted Date on specific date or deleted before/after specific date or even within specific date range.&lt;br /&gt;* Recover files with their original access permission types and file owner and group details.&lt;br /&gt;* User friendly configuration file which supports adding new directories even after installation.&lt;br /&gt;* Recover deleted files of all users.&lt;br /&gt;* Recover deleted files of a specific user.&lt;br /&gt;* Recovery of files based on the File type (&lt;i&gt;gif,mp3,jpeg&lt;/i&gt;)&lt;br /&gt;* Recovers deleted hidden files or system files.&lt;br /&gt;* Recovers &lt;u&gt;Dropped mysql tables&lt;/u&gt;.&lt;br /&gt;* Forensic analyzer is provided to assist data dump from the harddisk.&lt;br /&gt;If original path of deleted file exists,Recovered files automatically restored back to their appropriate directories.&lt;br /&gt;* Provides list of deleted files and it's restore path&lt;br /&gt;* If contents are modified or overwritten , during recovery user has the option to compare to old file data with current disk data using giis dump option.&lt;br /&gt;* Displays your current file detals&lt;br /&gt;If file is modified ,it allows user to decide whether to retrieve latest version of deleted file or older version.&lt;br /&gt;* Allows user to choose directories (other than /root and /home) that can be protected by giis.&lt;br /&gt;* All newly created files and directory are added,as time limit specified in crontab.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installing on Ubuntu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download &lt;a href="http://linux.softpedia.com/progDownload/giis-Download-21134.html"&gt;here&lt;/a&gt;&lt;br /&gt;Install giis binary just follow the steps:&lt;br /&gt;1) Change giis directory&lt;br /&gt;&lt;br /&gt;       cd giis_XX (Replace XX with appropriate version number for example giis_4.4)&lt;br /&gt;&lt;br /&gt;2) Run the shell script named '&lt;span style="color:blue;"&gt;install_giis.sh&lt;/span&gt;',&lt;br /&gt;&lt;br /&gt;       For interactive installation use: &lt;span style="color:blue;"&gt;sh install_giis.sh 0&lt;/span&gt;&lt;br /&gt;       For non-interactive: &lt;span style="color:blue;"&gt;sh install_giis.sh 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And after successful installation here is the detail explanation on how to use giis - &lt;a href="http://www.giis.co.in/giis_user_guide.html"&gt;here &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5612674079310124205?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5612674079310124205' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5612674079310124205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5612674079310124205'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/get-it-i-say-file-recovery-tools-for.html' title='gET iT i sAY - File Recovery Tools for Ext2/Ext3 filesystems'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_6W0mYQajg-E/SeMU4Ud_IfI/AAAAAAAAAks/YCxMCD1Prvo/s72-c/Screenshot-1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-14116228832627940</id><published>2009-04-09T01:44:00.000-07:00</published><updated>2009-04-09T01:49:39.087-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Password setup for webdirectory'/><title type='text'>.htaccess password setup for webdirectory</title><content type='html'>.htaccess can be used to password-protect directories on your web site. All files and any subdirectories within a directory protected by htaccess will also be protected.&lt;br /&gt;&lt;br /&gt;1) Create a file named&lt;span style="color: blue;"&gt; .htaccess&lt;/span&gt; under the directory which you want to protect&lt;br /&gt;&lt;br /&gt;# cd /var/www/project/&lt;br /&gt;# pwd&lt;br /&gt;/www/www/project&lt;br /&gt;&lt;br /&gt;Use your favourite editor to create a file called .htaccess&lt;br /&gt;&lt;br /&gt;# touch .htaccess&lt;br /&gt;&lt;br /&gt;2) Add the required lines to this .htaccess file&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color: blue;"&gt;AuthUserFile /etc/apache/.htpasswd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;AuthName "Auth required"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;AuthType Basic&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Require valid-user&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;It's good idea to place the password file at some secure place (/etc/apache) folder&lt;br /&gt;&lt;br /&gt;3) Create the .htpasswd file and add the users/passwd&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color: blue;"&gt;# cd /etc/apache&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;# htpasswd2 -c .htpasswd sahab&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;New password: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Re-type new password: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Adding password for user sahab&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;This will add the user "sahab" and password into the .htpasswd file, you can open and check the entry (you won't be able to read the password)&lt;br /&gt;&lt;br /&gt;To delete the user entry:  &lt;span style="color: blue;"&gt;# htpasswd2 -D .htpasswd sahab&lt;/span&gt;&lt;br /&gt;To add new user:  &lt;span style="color: blue;"&gt;# htpasswd2 .htpasswd user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4) Configure the apache configuration file (httpd.conf)&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color: blue;"&gt;Alias /protect "/www/www/project/"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;directory htdocs="" protect="" srv="" www=""&gt;&lt;/directory&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;        Options Indexes MultiViews FollowSymLinks&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;        AllowOverride AuthConfig&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;        Order allow,deny&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;        Allow from all&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;When you set up .htaccess files it will be effective for the directory that they are placed in as well as any subdirectories.  If you wanted to set up a directory so that it could execute CGI scripts you could use a .htaccess file to do that.&lt;br /&gt;&lt;br /&gt;Here the most important part is the option "&lt;b&gt;AuthConfig&lt;/b&gt;" for "&lt;b&gt;AllowOverride&lt;/b&gt;", if for some reason you don't want to use the .htaccess file, just place the option "None" for "AllowOverride".&lt;br /&gt;&lt;br /&gt;5) After doing all the required changes, restart the apache server.&lt;br /&gt;&lt;br /&gt;Now, just browse to the directory path that you have protected and see if you are getting the username/password dialog, provide the correct values and see if you are allow to enter.&lt;br /&gt;&lt;br /&gt;Below are the most common problems experienced by users attempting to setup htaccess.&lt;br /&gt;&lt;br /&gt;   1. Permissions on both .htaccess and .htpasswd - Both the .htaccess and .htpasswd files need to be world readable.&lt;br /&gt;   2. Fully qualified path to .htpasswd incorrect - The correct fully qualified path to a valid .htpasswd file must appear beside AuthUserFile in the .htaccess file.&lt;br /&gt;   3. The username doesn’t exist in .htpasswd&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-14116228832627940?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=14116228832627940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/14116228832627940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/14116228832627940'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/htaccess-password-setup-for.html' title='.htaccess password setup for webdirectory'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5554740477052201874</id><published>2009-04-09T01:31:00.000-07:00</published><updated>2009-04-09T01:33:57.335-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMware Installation on Ubuntu'/><title type='text'>VMware Installation on Ubuntu</title><content type='html'>VMware software provides a completely virtualized set of hardware to the guest operating system. VMware software virtualizes the hardware for a video adapter, a network adapter, and hard disk adapters. The host provides pass-through drivers for guest USB, serial, and parallel devices. In this way, VMware virtual machines become highly portable between computers, because every host looks nearly identical to the guest. In practice, a systems administrator&lt;br /&gt;can pause operations on a virtual machine guest, move or copy that guest to another physical computer, and there resume execution exactly at the point of suspension. Alternately, for enterprise servers, a feature called VMotion allows the migration of operational guest virtual machines between similar but separate hardware hosts sharing the same storage&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_VN8zHqq8Ns8/SRwZTs0PnuI/AAAAAAAAByQ/S6yAov0cwYk/s1600-h/vmware-387x300.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://4.bp.blogspot.com/_VN8zHqq8Ns8/SRwZTs0PnuI/AAAAAAAAByQ/S6yAov0cwYk/s320/vmware-387x300.jpg" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;Download VMware&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;    * &lt;i&gt;wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.8-126538.tar.gz&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;While you begin downloading VMware, register &lt;a href="http://register.vmware.com/content/registration.html"&gt;here &lt;/a&gt;to get the free serial key.&lt;br /&gt;&lt;br /&gt;Also, install the following package:&lt;br /&gt;&lt;br /&gt;  * &lt;i&gt;sudo apt-get install kernel-package xinetd&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Now, unpack the VMware pacakage:&lt;br /&gt;&lt;i&gt;&lt;br /&gt;  * tar zxvf VMware-server-1.0.8-126538.tar.gz&lt;br /&gt;  * cd vmware-server-directory&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Run the installation script:&lt;br /&gt;&lt;br /&gt;  * &lt;i&gt;sudo ./vmware-install.pl&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Now you will get a series of questions that you need to answer and finally it will install the VMserver on your Ubuntu box.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5554740477052201874?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5554740477052201874' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5554740477052201874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5554740477052201874'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/vmware-installation-on-ubuntu.html' title='VMware Installation on Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_VN8zHqq8Ns8/SRwZTs0PnuI/AAAAAAAAByQ/S6yAov0cwYk/s72-c/vmware-387x300.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3620203500909046232</id><published>2009-04-09T01:12:00.000-07:00</published><updated>2009-04-09T01:16:05.265-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Themes For ubuntu'/><title type='text'>Ubuntu Themes</title><content type='html'>&lt;h2&gt;Linux Mint&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1604" title="ubuntu-linux-mint" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-linux-mint-400x250.jpg" alt="Ubuntu Theme Linux Mint" width="400" height="250" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://gnome-look.org/content/download.php?content=71728&amp;amp;id=1&amp;amp;tan=80216145" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Real Minimal&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1611" title="ubuntu-real-minimal" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-real-minimal-400x250.jpg" alt="Ubuntu Theme Real Minimal" width="400" height="250" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://www.deviantart.com/download/51131618/Real_Minimal_Widgets_Style_2_by_szerencsefia.gz" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Root Green&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1608" title="ubuntu-root-green" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-root-green-400x300.jpg" alt="Ubuntu Theme Root Green" width="400" height="300" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://gnome-look.org/content/download.php?content=45670&amp;amp;id=1&amp;amp;tan=237194" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Light Coffee&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1612" title="ubuntu-light-coffee" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-light-coffee-400x250.jpg" alt="Ubuntu Theme Light Coffee" width="400" height="250" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://www.deviantart.com/download/76461827/Light_Coffee_3___OFF_ROAD_by_szerencsefia.bz2" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Slickness Black&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1628" title="ubuntu-slickness-black" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-slickness-black-400x250.jpg" alt="Ubuntu Theme Slickness Black" width="400" height="250" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://gnome-look.org/content/show.php/Slickness+Black?content=73210" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Murrina Aero&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1627" title="ubuntu-murrina-aero" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-murrina-aero-400x250.jpg" alt="Ubuntu Theme Murrina Aero" width="400" height="250" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://gnome-look.org/content/show.php/Murrina+Aero?content=54573" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Tigris&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1622" title="ubuntu-tigris" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-tigris-400x300.jpg" alt="Ubuntu Theme Tigris" width="400" height="300" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://gnome-look.org/content/show.php/Tigris?content=75276" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Sofice&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1629" title="ubuntu-soffice" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-soffice-400x320.jpg" alt="Ubuntu Theme Sofice" width="400" height="320" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://gnome-look.org/content/show.php/Soffice?content=67854" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Blue Joy&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1623" title="ubuntu-blue-joy" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-blue-joy-400x250.png" alt="Ubuntu Theme Blue Joy" width="400" height="250" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://gnome-look.org/content/show.php/Blue-Joy?content=73387" target="_blank"&gt;Download&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;h2&gt;Gaia Nova&lt;/h2&gt; &lt;p&gt;&lt;img class="alignnone size-medium wp-image-1626" title="ubuntu-gaia-nova" src="http://www.sizzledcore.com/wp-content/uploads/2008/08/ubuntu-gaia-nova-400x300.jpg" alt="Ubuntu Theme Gaia Nova" width="400" height="300" /&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://gnome-look.org/content/show.php/Gaia+Nova?content=75930" target="_blank"&gt;Download&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://gnome-look.org/content/show.php/Gaia+Nova?content=75930" target="_blank"&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-weight: normal;"&gt;The rest of the list: &lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;a href="http://www.sizzledcore.com/2008/08/09/ubuntu-themes-awesome-themes-for-linux/" style="font-weight: normal;"&gt;SizzledCore  &lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3620203500909046232?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3620203500909046232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3620203500909046232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3620203500909046232'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/ubuntu-themes.html' title='Ubuntu Themes'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3826311399501123414</id><published>2009-04-09T01:05:00.000-07:00</published><updated>2009-04-09T01:09:17.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu firwall GUI tool'/><title type='text'>Firewall for Ubuntu - Gufw</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_6W0mYQajg-E/Sd2stT_-E_I/AAAAAAAAAkk/_aG8C8NNolk/s1600-h/screenshot9bv5.png"&gt;&lt;img style="cursor: pointer; width: 396px; height: 400px;" src="http://3.bp.blogspot.com/_6W0mYQajg-E/Sd2stT_-E_I/AAAAAAAAAkk/_aG8C8NNolk/s400/screenshot9bv5.png" alt="" id="BLOGGER_PHOTO_ID_5322600229084468210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;iptables is already a very powerful tool by itself, but it's syntax can get awkward at times and hard to figure out, so Ubuntu &lt;a href="http://sahabm.blogspot.com/"&gt;developers&lt;/a&gt;&lt;br /&gt;decided to make ufw ("The reason ufw was developed is that we wanted to create a server-level firewalling utility that was a little bit more for `human beings`."), which was to be simpler. Now, on the graphical side of things, Firestarer already existed. But why not make an even easier to use GUI for desktop&lt;br /&gt;`human beings`, powered by ufw? This is where Gufw  comes in&lt;br /&gt;.&lt;br /&gt;Gufw is an easy, intuitive, way to manage your Linux firewall. It supports common tasks such as allowing or blocking pre-configured, common p2p, or individual ports port(s), and many others! Gufw is powered by ufw , runs on Ubuntu, and anywhere else Python, GTK, and Ufw are available.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can install it on ubuntu with this deb package: &lt;a href="http://gufw.tuxfamily.org/latest-ufw-deb.html"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3826311399501123414?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3826311399501123414' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3826311399501123414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3826311399501123414'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/firewall-for-ubuntu-gufw.html' title='Firewall for Ubuntu - Gufw'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6W0mYQajg-E/Sd2stT_-E_I/AAAAAAAAAkk/_aG8C8NNolk/s72-c/screenshot9bv5.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-2118360537238066400</id><published>2009-04-09T00:49:00.000-07:00</published><updated>2009-04-09T00:52:28.528-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='package installation from source packages'/><title type='text'>Ubuntu package Installation from source code  </title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p&gt;&lt;a name="KonaLink1"&gt;&lt;/a&gt;Make sure you have all the necessary development tools (i.e. libraries, compilers, headers):&lt;br /&gt;&lt;br /&gt;sudo apt-get install build-essential&lt;/p&gt; &lt;p&gt;sudo apt-get install g++&lt;br /&gt;sudo apt-get install linux-headers-`uname -r`&lt;br /&gt;&lt;br /&gt;Note: "uname -r" lists the current kernel you are using&lt;br /&gt;&lt;br /&gt;Extract the archive that contains the source files:tar xvf sourcefilesarchive.tar.gz&lt;br /&gt;&lt;br /&gt;Build the package using the package's script (in this case the configure script), compile the package (make), and install the compiled package into your system (make install):&lt;br /&gt;&lt;br /&gt;cd /path/to/extracted/sourcefiles&lt;br /&gt;./configure&lt;br /&gt;sudo make&lt;br /&gt;sudo make install&lt;br /&gt;&lt;br /&gt;If you get a "permission denied" error when trying to execute the binary, this means that the file is not marked as being executable. To fix this:sudo chmod +x filename&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-2118360537238066400?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=2118360537238066400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2118360537238066400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2118360537238066400'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/ubuntu-package-installation-from-source.html' title='Ubuntu package Installation from source code  '/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3602044827641033463</id><published>2009-04-07T22:49:00.000-07:00</published><updated>2009-04-08T00:35:43.475-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zimbra Collobration suite installation on ubuntu'/><title type='text'>Zimbra Collaboration Suite Installation – Ubuntu 8.04  Server</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_6W0mYQajg-E/Sdw83gca9MI/AAAAAAAAAkc/zevaYn1vgJY/s1600-h/Screenshot-1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_6W0mYQajg-E/Sdw83gca9MI/AAAAAAAAAkc/zevaYn1vgJY/s400/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5322195783944697026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;br /&gt;Zimbra Collaboration Suite Installation&lt;/span&gt;&lt;/span&gt;  	 	&lt;div style="text-align: left;"&gt;&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 		H1 { margin-bottom: 0.08in } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } 	--&gt;&lt;/style&gt;&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 		H1 { margin-bottom: 0.08in } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } 	--&gt; 	&lt;/style&gt;  &lt;h1 class="western"&gt;&lt;a name="Hosts_Table"&gt;&lt;/a&gt;&lt;span style="font-family:Time New Roman;"&gt;&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;&lt;h1&gt;&lt;span class="mw-headline"&gt;Hosts Table&lt;/span&gt;&lt;/h1&gt;Before you get to the install you also need to modify your /etc/hosts file:&lt;br /&gt;&lt;pre&gt;127.0.0.1       localhost.localdomain   localhost&lt;br /&gt;144.xx.xx.xx   mail.xxxx.com  mail&lt;br /&gt;&lt;br /&gt;For Finding the MX record detail of the domain&lt;br /&gt;&lt;br /&gt;dig domainaname.com mx&lt;br /&gt;&lt;/pre&gt;ONLY IF this is working, it's now time to update your packages:&lt;br /&gt;&lt;pre&gt;sudo bash (this will ask for your password, enter your administrator's pw, then you'll be at a root prompt)&lt;br /&gt;apt-get upgrade&lt;br /&gt;apt-get update&lt;br /&gt;apt-get install libpcre3 libgmp3c2 libstdc++5 fetchmail&lt;br /&gt;&lt;/pre&gt;&lt;h1 class="western"&gt; &lt;a name="Installing_ZCS"&gt;&lt;/a&gt;&lt;span style="font-family:Time New Roman;"&gt;Installing ZCS&lt;/span&gt;&lt;/h1&gt; &lt;p&gt;&lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;Download the appropriate package for your Ubuntu installation (32 or 64 bit Ubuntu 8.04 LTS), copy it into your choice directory.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.2in;"&gt;&lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;tar -xzf zc*&lt;/span&gt;&lt;/pre&gt;&lt;p&gt; &lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;and it'll create a whole directory /temp/zcs with lots of files inside it. Then: &lt;/span&gt; &lt;/p&gt; &lt;pre&gt;&lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;cd /temp/zcs&lt;/span&gt; &lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;./install.sh&lt;/span&gt;&lt;/pre&gt;&lt;p&gt; &lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;It's not going to work the first time, but it'll give you a list of missing dependencies. Write down all the package names it says are missing. &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;Now re-run your Zimbra install and accept all the defaults except: &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style=";font-family:Time New Roman;font-size:100%;"  &gt;When it asks you for your domain, it's going to have your fully-qualified domain.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-family:Time New Roman;"&gt;name (hostname.mydomain.com) rather than just the domain, and probably complain about not having an MX record. &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Time New Roman;"&gt;Change the hostname to just mydomain.com and it'll find the names through nslookup.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Time New Roman;"&gt;The admin password, which is in menu item 3. You can set the admin password there.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Time New Roman;"&gt;If you are using apache on 80 port means It will show the port conflict issue. So we have to change the port of our zimbra client access. Eg)8001 Zimbra administration side default port number 7071.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Time New Roman;"&gt;Finally, when the install is done and it has given you the last "press Enter to finish" you are almost done. &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Time New Roman;"&gt;Now reboot the system, and when it comes back up,give it a couple minutes to start the rest of the Zimbra processes. If your installation is successful, you can go to https://xxx.xxx.xxx.xxx:7071  to get the administrative console, or &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Time New Roman;"&gt;&lt;a href="http://rctjct.in:8123/"&gt;http://xxxxxx:8001&lt;/a&gt;to log in as a user. &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3602044827641033463?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3602044827641033463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3602044827641033463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3602044827641033463'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/zimbra-collaboration-suite-installation.html' title='Zimbra Collaboration Suite Installation – Ubuntu 8.04  Server'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6W0mYQajg-E/Sdw83gca9MI/AAAAAAAAAkc/zevaYn1vgJY/s72-c/Screenshot-1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-7347368056931997735</id><published>2009-04-07T22:04:00.000-07:00</published><updated>2009-04-07T22:19:21.451-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Yum http proxy server'/><category scheme='http://www.blogger.com/atom/ns#' term='Yum Proxy setup'/><title type='text'>yum local repository  via HTTP</title><content type='html'>&lt;div style="font-family: georgia;" class="jive-wiki-subject-content-title"&gt;                 &lt;div&gt;                     &lt;h2&gt;Yum local repository Set-up - DVD ISO via HTTP&lt;/h2&gt;                 &lt;/div&gt;             &lt;/div&gt;&lt;p style="font-family: georgia;"&gt;&lt;strong&gt;Steps:&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding: 0px; min-height: 8pt; height: 8pt; font-family: georgia;"&gt; &lt;/p&gt;&lt;ol style="font-family: georgia;"&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Copy Red Hat Enterprise Linux 5 DVD ISO &lt;span class="jive-noformat-content"&gt;RHEL5-Client-20070208.0-i386-DVD.iso&lt;/span&gt; from Red Hat Network and create a local repository on the local Repository server.  &lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&lt;br /&gt;#mkdir -p /var/www/html/cdrom/iso&lt;br /&gt;#mount -o loop /RHEL5-Client-20070208.0-i386-DVD.iso&lt;br /&gt;/var/www/html/cdrom/iso&lt;br /&gt;#cd /var/www/html/cdrom&lt;br /&gt;#createrepo .&lt;br /&gt;#yum clean all&lt;br /&gt;Created a file /etc/yum.repos.d/file.repo as follows:&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;  &lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&lt;br /&gt;#cat /etc/yum.repos.d/file.repo&lt;br /&gt;[RHEL 5 Repository]&lt;br /&gt;baseurl=file:///cdrom&lt;br /&gt;enabled=1&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style="padding: 0px; min-height: 8pt; height: 8pt;"&gt; &lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Share with httpd:  &lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&lt;br /&gt;# vi /etc/httpd/conf/httpd.conf&lt;br /&gt;ServerAdmin root@192.168.2.187&lt;br /&gt;DocumentRoot /var/www/html&lt;br /&gt;ServerName 192.168.2.187&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;(Where 192.168.2.187 is the local Repository server)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&lt;br /&gt;# httpd -t&lt;br /&gt;# service httpd start&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style="padding: 0px; min-height: 8pt; height: 8pt;"&gt; &lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Client side configuration:  &lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&lt;span&gt;&lt;br /&gt;vi /etc/yum.repos.d/my.repo&lt;br /&gt;----&lt;br /&gt;[RH51-Server]&lt;br /&gt;name= RHEL 5.1 Server Repository&lt;br /&gt;baseurl=&lt;/span&gt;&lt;a class="jive-link-external-small" dynsrc="#" href="http://10.65.6.141/cdrom" lowsrc="#" src="http://kbase.redhat.com/faq/docs/DOC-7228#"&gt;http://192.168.2.187/cdrom&lt;/a&gt;&lt;span&gt;&lt;br /&gt;enabled=1&lt;br /&gt;----&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style="padding: 0px; min-height: 8pt; height: 8pt;"&gt; &lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Verify from client:  &lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&lt;br /&gt;# yum list&lt;br /&gt;Loading "installonlyn" plugin&lt;br /&gt;Setting up repositories&lt;br /&gt;Reading repository metadata in from local files&lt;br /&gt;Available Packages&lt;br /&gt;Deployment_Guide-as-IN.noarch 5.0.0-19&lt;br /&gt;RH51-Server Deployment_Guide-bn-IN.noarch&lt;br /&gt;5.0.0-19 RH51-Server&lt;br /&gt;Deployment_Guide-de-DE.noarch 5.0.0-19&lt;br /&gt;RH51-Server Deployment_Guide-en-US.noarch&lt;br /&gt;5.0.0-19 RH51-Server&lt;br /&gt;Deployment_Guide-es-ES.noarch 5.0.0-19&lt;br /&gt;RH51-Server Deployment_Guide-fr-FR.noarch&lt;br /&gt;5.0.0-19 RH51-Server ========&lt;br /&gt;OR&lt;br /&gt;# yum update&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The package version used on the Repository server:&lt;br /&gt;&lt;br /&gt;&lt;span class="jive-noformat-content"&gt;httpd-2.2.3-11.el5yum-3.0.1-5.el5createrepo-0.4.4-2.fc6&lt;/span&gt;The package version used on the client side: &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-7347368056931997735?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=7347368056931997735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/7347368056931997735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/7347368056931997735'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/yum-local-repository-via-http.html' title='yum local repository  via HTTP'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-2775844408598960669</id><published>2009-04-02T02:11:00.000-07:00</published><updated>2009-04-02T02:19:28.501-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Folder sharing on ubuntu'/><title type='text'>Folder Share - Ubuntu</title><content type='html'>&lt;p&gt;                                                   &lt;span style="font-weight: bold;font-size:130%;" &gt;Folder Share&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In Ubuntu Right click any folder and you’ll see the option to share it. When you do this the first time you’ll be prompted to install the service.&lt;/p&gt; &lt;p&gt;After it’s installed you’ll be asked to log out and back in.&lt;/p&gt; &lt;p&gt;When you are back in, you would think that you’ll just right click the folder and share it, but that isn’t the case.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Option 1&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;Using nautilus as root.&lt;/p&gt; &lt;p&gt;So press “alt + f2″ and enter “gksudo nautilus”.&lt;/p&gt; &lt;p&gt;You now started nautilus as root, in the left plane press “file system” press the home folder and you’ll see your usual folders.&lt;/p&gt; &lt;p&gt;Now you can right click them and share them.&lt;/p&gt; &lt;p&gt;Close the file browser now, don’t use the root file browser for normal tasks.&lt;/p&gt; &lt;p&gt;That’s it.&lt;/p&gt; &lt;p&gt;Now for the windows side, the easiest thing to do is create a desktop shortcut.&lt;/p&gt; &lt;p&gt;Right-click your desktop, press new and create a new shortcut.&lt;/p&gt; &lt;p&gt;The location you are going to enter is&lt;/p&gt; &lt;p&gt;\\hostname&lt;/p&gt; &lt;p&gt;If you are not sure what your host name is, simply open a terminal (applications, accessories, terminal) and you’ll see your hostname after the @ sign.&lt;/p&gt;  &lt;p&gt;Now press the icon on your Windows desktop and you’ll be prompted for a username and password. Those are the same ones you log into Ubuntu with.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Option 2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Adding a User to samaba Share&lt;/p&gt;&lt;p&gt;#sudo newgrp sambashare&lt;/p&gt;&lt;p&gt;#sudo "username"  samabsahare&lt;/p&gt;&lt;p&gt;Logout and Try for access the share&lt;/p&gt;&lt;p&gt;By using this Hardy I got some error, I have fixed using below method&lt;/p&gt;&lt;p&gt;- goto  system&gt;&lt;wbr&gt;administration&gt;&lt;wbr&gt;users and groups&lt;/p&gt; &lt;p&gt;- Unlock&lt;/p&gt; &lt;p&gt;- click on Manage Groups&lt;/p&gt; &lt;p&gt;- select sambashare&lt;/p&gt; &lt;p&gt;- click Properties&lt;/p&gt; &lt;p&gt;- unselect and select your user&lt;/p&gt; &lt;p&gt;- click OK&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-2775844408598960669?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=2775844408598960669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2775844408598960669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2775844408598960669'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/04/folder-share-ubuntu.html' title='Folder Share - Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-424795513295188901</id><published>2009-03-27T02:54:00.000-07:00</published><updated>2009-03-27T03:14:58.687-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu mobile'/><title type='text'>Ubuntu Mobile</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 		H3 { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;    &lt;p&gt;Ubuntu MID works on two devices at present, the Samsung Q1U and the Intel Crown Beach development station for building devices using the company's Atom processor. It also can be run on ordinary computers through the KVM virtualisation software. A MID — a concept Intel is aggressively promoting — is a mobile device larger and more like a regular computer than, say an Apple iPhone, but smaller than an ultraportable PC.&lt;br /&gt;&lt;br /&gt;"This release marks the start of a way for new users to experience Ubuntu and Open Source software and as the hardware becomes commonplace it will become a very exciting place to get users experiencing applications from our communities," said David Mandala, project manager of the Ubuntu Mobile and Embedded Group, &lt;a href="http://blog.canonical.com/?p=13"&gt;in a blog posting.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Canonical will release new versions of the software on the same six-month cycle as it uses for the desktop version of the open-source operating system, the company said.&lt;br /&gt;&lt;br /&gt;"Ubuntu MID Edition, a fully open-source project, gives the full internet, with no compromise," according to the project &lt;a href="http://www.ubuntu.com/products/mobile"&gt;description&lt;/a&gt;. "All unnecessary complexity in the user experience is eliminated."&lt;/p&gt; &lt;p style="margin-bottom: 0in;" align="center"&gt;&lt;a href="http://2.bp.blogspot.com/_VN8zHqq8Ns8/ScyT9teZExI/AAAAAAAACTY/24WyvQBtYBY/s1600-h/clutter-small.jpg"&gt;&lt;img src="http://2.bp.blogspot.com/_VN8zHqq8Ns8/ScyT9teZExI/AAAAAAAACTY/24WyvQBtYBY/s320/clutter-small.jpg" name="graphics1" width="320" align="bottom" border="0" height="187" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;Ubuntu MID can be used with a touchscreen and has a specially designed Web browser.  &lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-424795513295188901?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=424795513295188901' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/424795513295188901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/424795513295188901'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/03/ubuntu-mobile.html' title='Ubuntu Mobile'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_VN8zHqq8Ns8/ScyT9teZExI/AAAAAAAACTY/24WyvQBtYBY/s72-c/clutter-small.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6599727166895023339</id><published>2009-03-17T02:34:00.000-07:00</published><updated>2009-03-17T03:08:45.132-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ftp auto login scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='backup scripts'/><title type='text'>FTP auto login and Backup scripts</title><content type='html'>&lt;span style="font-family:georgia;"&gt;Hi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;There is some method for auto login&lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt; ftp&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; like .netrc,macros but here I have written simple scripts for ftp auto login. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Steps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="font-family: georgia;"&gt;Following steps are required to write shell script:&lt;/p&gt;&lt;p style="font-family: georgia;"&gt;(1) Use any editor like vim or mcedit to write shell script.&lt;/p&gt;&lt;p style="font-family: georgia;"&gt;(2) After writing shell script set execute permission for your script as follows&lt;br /&gt;&lt;i&gt;syntax: &lt;/i&gt;&lt;br /&gt;chmod permission your-script-name&lt;/p&gt;&lt;p style="font-family: lucida grande;"&gt;&lt;i&gt;Examples:&lt;/i&gt;&lt;br /&gt;&lt;code&gt;$ chmod +x your-script-name&lt;br /&gt;$ chmod 755 your-script-name&lt;/code&gt;&lt;/p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;ftp_site="192.168.2.130" &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;username=user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;passwd=password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;ftp -in &lt;&lt;/span&gt;&lt;eof put=""&gt;&lt; &lt;/eof&gt;&lt;span style="font-family:georgia;"&gt;(Put the EOF here)&lt;/span&gt;&lt;br /&gt;&lt;eof put=""&gt;&lt;eof&gt;&lt;span style="font-family:georgia;"&gt;open $ftp_site&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;user $username $passwd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;put test  &gt;&gt; For testing I have put the test file into ftp server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;close&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;bye&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;EOF&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;Backup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;ftp_site=ftp://ftpyoursite.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;username=user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;passwd=password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;backupdir=$HOME&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;filename="backup-$(date '+%F-%H%M').tar.gz"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;echo "Creating a backup file $filename of $backupdir."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;# Make a tar gzipped backup file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;tar -cvzf  "$filename" "$backupdir"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;ftp -in &lt;&lt; eof&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;open $ftp_site&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;user $username $passwd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;put $filename &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;close &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;bye&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;EOF&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/eof&gt;&lt;/eof&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6599727166895023339?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6599727166895023339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6599727166895023339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6599727166895023339'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/03/ftp-auto-login-and-backup-scripts.html' title='FTP auto login and Backup scripts'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1354322521998097410</id><published>2009-03-12T00:00:00.000-07:00</published><updated>2009-03-12T00:05:31.444-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HD to Cd'/><category scheme='http://www.blogger.com/atom/ns#' term='Harddisk Backup'/><title type='text'>MonodRescue tool - Harddisk backup</title><content type='html'>&lt;p style="text-align: center;"&gt;&lt;span style=";font-family:Times;font-size:100%;"  &gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family:georgia;"&gt;MonodRescue tool - Harddisk backup &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style=";font-size:100%;" &gt;Use monodRescue tool for backup our system.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style=";font-size:100%;" &gt;Mondo is reliable. It backs up your Debian  GNU/Linux server or workstation to &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style=";font-size:100%;" &gt;tape, CD-R, CD-RW, NFS or hard disk partition.  In the event of catastrophic &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style=";font-size:100%;" &gt;data loss, you will be able to restore  all of your data&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: georgia;font-family:Times;font-size:100%;"  &gt;&lt;b&gt;Procedure:&lt;/b&gt;&lt;/span&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;1)Install  the mondorescue package.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;2)Execute  the command #mondoarchive as root&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;3)Choose  from the list of supported backup media types. The media you will use  most often  are CD/DVD-+R, CD/DVD-+RW, tape, NFS and hard disk.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;4)If  we backing up to CD/DVD-+R[W] then Mondo will ask if our CD burner has   BurnProof technology click yes to continue.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;5)In  the next step select the compression size.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;6)If  we want to backup the whole computer (excluding /sys and /proc, naturally)  then leave  this as / which is the default. Otherwise, specify subsets,  (e.g. /usr/local /home ) being sure  to put a space in between each path.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;7)If  we are backing up your whole computer then you might want to exclude  certain  directories, e.g. /shared/MP3. Please specify them in the 'exclude  directories' dialog box.  Please put a space in between each path, e.g.  /shared/private /scratch /nfs /windows&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;8)Is  your kernel sane? Red Hat, Mandrake, SuSE, Debian and Slackware users  should in  general say 'yes' because these vendors are good at producing  reliable kernels. If you are  using Gentoo or LFS then your kernel might  be non-standard, in which case say 'no' to use  Mondo's failsafe kernel  (provided separately).&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;8)If  we want to verify the archives after writing them to media, say 'yes'  here. If you have  absolute faith in your hardware and your Linux distribution,  say 'no'...&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;9)Finally,  Mondo begins backing up our computer. This process may take a few minutes  or a  few hours, depending on how much data we are archiving, how fast  our CPU is, how much  RAM we have, and so on. It will backup your regular  files and then your large files (files  larger than approximately 32MB). &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;      &lt;span style=";font-size:100%;" &gt;10)Mondorestore  command is used to resore the backup files.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1354322521998097410?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1354322521998097410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1354322521998097410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1354322521998097410'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/03/monodrescue-tool-harddisk-backup.html' title='MonodRescue tool - Harddisk backup'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-9142061511224634635</id><published>2009-03-03T02:00:00.000-08:00</published><updated>2009-03-03T02:31:53.813-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hp2400 scanner installation on ubuntu'/><title type='text'>Scanner Installation - Ubuntu</title><content type='html'>Hi&lt;br /&gt;&lt;br /&gt;I have try lot for working with scanner on ubuntu. Here I am writing the documentation for easy implementation for ubuntu lovers.&lt;br /&gt;I have set-up hp2400 scanjet. First you have to install &lt;span style="font-weight: bold;"&gt;build essential&lt;/span&gt; for compiling the sane-back end package. And Check libusb-dev installed.&lt;br /&gt;&lt;br /&gt;For installing&lt;br /&gt;&lt;br /&gt;#sudo apt-get install build-essential&lt;br /&gt;#sudo apt-get install libusb-dev&lt;br /&gt;&lt;br /&gt;Download the driver for hp2400, below url&lt;br /&gt;========================================&lt;br /&gt;&lt;a href="http://www.4shared.com/file/90471364/8cc9bdfb/hp2400.html"&gt;http://www.4shared.com/file/90471364/8cc9bdfb/hp2400.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.4shared.com/file/90471428/e45c2251/libsane.html"&gt;http://www.4shared.com/file/90471428/e45c2251/libsane.html&lt;/a&gt;&lt;br /&gt;=======================================&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Installation:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here I have downloaded the driver packages in user Desktop.&lt;br /&gt; &lt;br /&gt;   Unpack the hp2400 driver (libsane-hp2400.so) to /usr/lib/sane:&lt;br /&gt;&lt;br /&gt;       # cd /usr/lib/sane&lt;br /&gt;       # sudo tar -xvzf /home/user/Desktop/hp2400.tgz&lt;br /&gt;       Note: README_hp2400.txt file left in root directory&lt;br /&gt;&lt;br /&gt;   Unpack the modified SANE library (libsane.so) to /usr/lib:&lt;br /&gt;       # cd /usr/lib&lt;br /&gt;       # tar -xvzf  /home/user/Desktop/libsane.tgz&lt;br /&gt;&lt;br /&gt;libsane.so SANE Library Modification:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;   The hp2400 driver contains only HP authored code and depends on&lt;br /&gt;   the SANE library for some functions.  Unfortunately, libsane.so&lt;br /&gt;   lacks the sanei_usb module.  To add this module,&lt;br /&gt;       1) Obtain the SANE distribution from &lt;a href="http://www.sane-project.org/" target="_blank"&gt;www.sane-project.org&lt;/a&gt;.&lt;br /&gt;       2) add "sanei_usb.lo" to the "EXTRA" line in backend/Makefile.in:&lt;br /&gt;&lt;br /&gt;EXTRA = sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_config.lo ../sanei/sanei_usb.lo&lt;br /&gt;&lt;br /&gt;       3) follow the SANE README build and instructions.  This sequence of&lt;br /&gt;          instructions appears to install in /etc/sane.d and /usr/lib:&lt;br /&gt;               cd sane-backends-1.0.??&lt;br /&gt;               configure --prefix=/usr --sysconfdir=/etc&lt;br /&gt;               make&lt;br /&gt;               su&lt;br /&gt;               make install&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hp2400 SANE DLL Configuration:&lt;br /&gt;   The hp2400 driver will be loaded by SANE by adding "hp2400" to&lt;br /&gt;   /etc/sane.d/dll.conf.  SANE initializaion is much faster if unneeded&lt;br /&gt;   backend modules in dll.conf are commented out.&lt;br /&gt;&lt;br /&gt;   See Also:  man sane-dll&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;USB Configuration / Troubleshooting:&lt;br /&gt;   After you have connected the scanner, run:&lt;br /&gt;&lt;br /&gt;     # sane-find-scanner&lt;br /&gt;&lt;br /&gt;   If successful, you should see a line similar to this:&lt;br /&gt;&lt;br /&gt;     found USB scanner (vendor=0x03f0, product=0x2905) at libusb:001:003&lt;br /&gt;&lt;br /&gt;   The scanner is mapped to a file in /proc/bus/usb.  In the example&lt;br /&gt;   above, it maps to this file:&lt;br /&gt;&lt;br /&gt;     /proc/bus/usb/001/003 (your file will probably be different)&lt;br /&gt;&lt;br /&gt;   By default, only super-user has permission to access the scanner.&lt;br /&gt;   If you would like all users to access the scanner, give everyone&lt;br /&gt;   read/write permissions on the file:&lt;br /&gt;&lt;br /&gt;     # chmod 666 /proc/bus/usb/001/003&lt;br /&gt;&lt;br /&gt;   sane-find-scanner only verifies that the scanner is connected to&lt;br /&gt;   your system.  To verify that the HP driver is loaded, run:&lt;br /&gt;&lt;br /&gt;     # scanimage -L&lt;br /&gt;&lt;br /&gt;   If successful, you should see a line similar to this:&lt;br /&gt;&lt;br /&gt;     device `hp2400:libusb:001:003' is a Hewlett-Packard hp2400 flatbed&lt;br /&gt;     scanner&lt;br /&gt;&lt;br /&gt;   If the HP driver is loaded, you should be ready to start scanning&lt;br /&gt;   using SANE applications like scanimage or xsane.&lt;br /&gt;&lt;br /&gt;   If the HP driver isn't loaded, run "man sane" and "man sane-usb"&lt;br /&gt;   to get more troubleshooting information.  Note that the HP driver&lt;br /&gt;   uses libusb (Linux kernel 2.4.19 and later).&lt;br /&gt;&lt;br /&gt;   To determine the options specific to your scanner, run:&lt;br /&gt;&lt;br /&gt;     # scanimage -help&lt;br /&gt;&lt;br /&gt;Options specific to hp2400:&lt;br /&gt;   -l 0..210.919mm [0]&lt;br /&gt;       Top-left x position of scan area.&lt;br /&gt;   -t 0..292.206mm [0]&lt;br /&gt;       Top-left y position of scan area.&lt;br /&gt;   -x 5..215.919mm [215.919]&lt;br /&gt;       Width of scan-area.&lt;br /&gt;   -y 5..297.206mm [297.206]&lt;br /&gt;       Height of scan-area.&lt;br /&gt;   --resolution 200|300|600|1200dpi [200]&lt;br /&gt;       Sets the resolution of the scanned image.&lt;br /&gt;   --mode Color|Gray|Lineart [Color]&lt;br /&gt;       Selects the scan mode (e.g., lineart, monochrome, or color).&lt;br /&gt;   --source Flatbed|Negative|Slide [Flatbed]&lt;br /&gt;       Selects the scan source (such as a document-feeder).&lt;br /&gt;   --paper-size&lt;br /&gt;Custom|Letter|A4|A5|A6|A7|B5|&lt;div id=":1nd" class="ii gt"&gt;&lt;wbr&gt;B6|B7|C5|C6|C7|JIS-B5|JIS-B6|&lt;wbr&gt;JIS-B7 [Custom]&lt;br /&gt;       Sets scan area to selected paper size&lt;br /&gt;&lt;br /&gt;Option notes:&lt;br /&gt;   Defaults are in enclosed in [].&lt;br /&gt;&lt;br /&gt;   The default scan area is the maximum width and height.&lt;br /&gt;&lt;br /&gt;Limitations:&lt;br /&gt;   Images are raw (no automatic image enhancement).&lt;br /&gt;&lt;br /&gt;   Buttons are not supported.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-9142061511224634635?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=9142061511224634635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9142061511224634635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9142061511224634635'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/03/scanner-installation-ubuntu.html' title='Scanner Installation - Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1679708784853888751</id><published>2009-03-02T22:56:00.000-08:00</published><updated>2009-03-02T22:57:32.065-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mysql root password revoking'/><title type='text'>Access denied for user 'root'@'localhost'</title><content type='html'>&lt;span style="color: rgb(255, 0, 0); font-style: italic;"&gt;ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can over come the error by the following way.&lt;br /&gt;--------------------------------------------------&lt;br /&gt;&lt;br /&gt;# /etc/init.d/mysql stop&lt;br /&gt;# mysqld --skip-grant-tables --user=root&amp;amp;&lt;br /&gt;# mysql&lt;br /&gt;mysql&gt; use mysql&lt;br /&gt;mysql&gt; update user set Password='' where User='root';&lt;br /&gt;mysql&gt; exit&lt;br /&gt;# killall -9 mysqld&lt;br /&gt;# /etc/init.d/mysql start&lt;br /&gt;# mysql -p&lt;br /&gt;Enter password:&lt;br /&gt;mysql&gt; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpassword');&lt;br /&gt;mysql&gt; FLUSH PRIVILEGES;&lt;br /&gt;mysql&gt; exit&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1679708784853888751?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1679708784853888751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1679708784853888751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1679708784853888751'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/03/access-denied-for-user-rootlocalhost.html' title='Access denied for user &apos;root&apos;@&apos;localhost&apos;'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1863326019658028252</id><published>2009-03-02T00:50:00.000-08:00</published><updated>2009-03-19T22:57:00.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mount NTFS / FAT32 partition'/><category scheme='http://www.blogger.com/atom/ns#' term='Mount windows partition in ubuntu'/><title type='text'>Mount NTFS / FAT32 Windows Drive In Ubuntu</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style=""&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Mount NTFS / FAT32 Windows Drive In Ubuntu &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=""&gt; &lt;span class="fullpost"&gt; &lt;p&gt;1. Open terminal in ubuntu&lt;/p&gt; &lt;p&gt;2. Type the following command&lt;/p&gt; &lt;p&gt;sudo /bin/bash&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Now type the password of the root user in ubuntu&lt;/p&gt; &lt;p&gt;3. Now, type the following command&lt;/p&gt; &lt;p&gt;mkdir /media/windisk&lt;/p&gt; &lt;p&gt;4.  Now, you need to force mount the ntfs drive of windows by typing the following command&lt;/p&gt; &lt;p&gt;&lt;strong&gt;For Mounting NTFS Drive, type the following command&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;mount -t ntfs-3g /dev/sda1 /media/windisk -o force&lt;/p&gt; &lt;p&gt;&lt;strong&gt;For Mounting FAT32 Drive, type the following command&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;mount -t vfat -o umask=000 /dev/sda1 /media/disk&lt;/p&gt; &lt;p&gt;You can change the parameter in the above command &lt;strong&gt;/dev/sda1&lt;/strong&gt; to change the windows drive to mount, In order to get the listing of the windows drives type the following command&lt;/p&gt; &lt;p&gt;fdisk -l&lt;/p&gt; &lt;p&gt;&lt;a set="yes" linkindex="246" href="http://9beta.blogspot.com/"&gt;&lt;img class="alignnone size-full wp-image-653" title="terminal-windows-drive-listing" src="http://www.technixupdate.com/wp-content/uploads/2008/12/terminal-windows-drive-listing.jpg" alt="" width="500" height="448" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;5. Now, to access all the windows files browse to computer and open file system&lt;/p&gt; &lt;p&gt;&lt;a linkindex="247" href="http://www.technixupdate.com/wp-content/uploads/2008/12/ubuntu-computer.png"&gt;&lt;img class="alignnone size-full wp-image-656" title="ubuntu-computer" src="http://www.technixupdate.com/wp-content/uploads/2008/12/ubuntu-computer.png" alt="" width="369" height="309" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Open &lt;strong&gt;Filesystem&lt;/strong&gt;, browse to &lt;strong&gt;media/windisk&lt;/strong&gt; to see all the contents of the drive you mounted.&lt;/p&gt; &lt;p&gt;&lt;a set="yes" linkindex="248" href="http://9beta.blogspot.com/"&gt;&lt;img class="alignnone size-full wp-image-655" title="mounted-windows-drive-ubuntu" src="http://www.technixupdate.com/wp-content/uploads/2008/12/mounted-windows-drive-ubuntu.jpg" alt="" width="500" height="418" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;For permenantly mount add the following line in /etc/fstab&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;/dev/sda1 /media/disk ntfs rw,umask=0222 0 0&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1863326019658028252?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1863326019658028252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1863326019658028252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1863326019658028252'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/03/mount-ntfs-fat32-windows-drive-in.html' title='Mount NTFS / FAT32 Windows Drive In Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5525079987944655879</id><published>2009-02-26T01:23:00.000-08:00</published><updated>2009-02-26T02:09:56.772-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hardware clock time change'/><category scheme='http://www.blogger.com/atom/ns#' term='Date change'/><category scheme='http://www.blogger.com/atom/ns#' term='synchronization of hardware clock to date'/><title type='text'>Date and Hardware colck change - ubuntu</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		TD P { margin-bottom: 0in } 		P { margin-bottom: 0.08in } 		H3 { margin-bottom: 0.08in } 		H4 { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;h3 style="font-family: georgia;"&gt;&lt;a name="title-IDAK3O4H"&gt;&lt;/a&gt;Resetting the Date and Time&lt;/h3&gt; &lt;p style="font-family: georgia;"&gt;The Ubuntu installer queries during installation for default time zone settings, and whether your computer's hardware clock is set to Greenwich mean time (GMT)more properly known as UTC or coordinated universal time.&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;a name="iddle1876"&gt;&lt;/a&gt;&lt;a name="iddle2609"&gt;&lt;/a&gt;Linux provides a system date and time; your computer hardware provides a hardware clock-based time. Ubuntu provides several date and time utilities you can use at the command line or during an X session, including these:&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;date Used to display, set, or adjust the system date and time from the command line&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;hwclock A root command to display, set, adjust, and synchronize hardware and system clocks&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;time-admin Ubuntu's graphical date, time, and network time configuration tool&lt;/p&gt; &lt;h4 style="font-family: georgia;"&gt;&lt;a name="ch04lev2sec11"&gt;&lt;/a&gt;&lt;a name="title-IDAR5O4H"&gt;&lt;/a&gt;Using the date Command&lt;/h4&gt; &lt;p style="font-family: georgia;"&gt;Use the date command to display or set your Linux system time. This command requires you to use a specific sequence of numbers to represent the desired date and time. To see your Linux system's idea of the current date and time, use the date command like this:&lt;/p&gt; &lt;pre style="font-family: georgia; font-weight: bold;"&gt;sahab@sahab-desktop:~$ sudo date &lt;/pre&gt;&lt;p style="font-family: georgia; font-weight: bold;"&gt; Thu Feb 26 15:35:36 PST 2009 &lt;/p&gt;  &lt;p style="font-family: georgia;"&gt;To adjust your system's time (say, to January 27, 2006 at 8 a.m.), use a command line with the month, day, hour, minute, and year, like so:&lt;/p&gt; &lt;pre style="font-family: georgia; font-weight: bold;"&gt;$ sudo date 022706002009&lt;br /&gt;Fri Feb 27 08:00:00 EDT 2009&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt; &lt;a name="ch04lev2sec12"&gt;&lt;/a&gt;&lt;a name="title-IDAZAP4H"&gt;&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;Using the hwclock Command&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: georgia;"&gt;Use the hwclock command to display or set your Linux system time, display or set your PC's hardware clock, or to synchronize the system and hardware times. To see your hardware date and time, use hwclock with its --show option like so:&lt;/p&gt; &lt;pre style="font-family: georgia; font-weight: bold;"&gt;sahab@sahab-desktop:~$ sudo hwclock --show&lt;br /&gt;Thu 26 Feb 2009 03:43:26 PM PST  -0.689380 seconds &lt;/pre&gt;&lt;p style="font-family: georgia;"&gt; Use hwclock with its --set and --date options to manually set the hardware clock like so:&lt;/p&gt; &lt;pre style="font-family: georgia; font-weight: bold;"&gt;$ sudo hwclock --set --date "02/27/09 08:00:00"&lt;br /&gt;$ sudo hwclock --show&lt;br /&gt;Fri 27 Feb 2009 08:00:08 AM GMT -0.151718 seconds&lt;br /&gt;&lt;/pre&gt; &lt;p style="font-family: georgia;"&gt;In these examples, the hardware clock has been set using hwclock, which is then used again to verify the new hardware date and time. You can also hwclock to set the Linux system date and time date using your hardware clock's values with the Linux system date and time.&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;For example, to set the system time from your PC's hardware clock, use the --hctosys option like so:&lt;/p&gt; &lt;pre style="font-family: georgia; font-weight: bold;"&gt;$ sudo hwclock --hctosys&lt;br /&gt;&lt;/pre&gt; &lt;p style="font-family: georgia;"&gt;&lt;a name="iddle2894"&gt;&lt;/a&gt;&lt;a name="iddle3155"&gt;&lt;/a&gt;&lt;a name="iddle3412"&gt;&lt;/a&gt;&lt;a name="iddle3574"&gt;&lt;/a&gt;&lt;a name="iddle4535"&gt;&lt;/a&gt; To set your hardware clock using the system time, use the --systohc option like so:&lt;/p&gt; &lt;pre style="font-family: georgia; font-weight: bold;"&gt;$ sudo hwclock --systohc&lt;a name="ch04lev2sec13"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt; &lt;h4 style="font-family: georgia;"&gt;&lt;a name="title-IDAZEP4H"&gt;&lt;/a&gt;Changing the Time and Date&lt;/h4&gt; &lt;p style="font-family: georgia;"&gt;Ubuntu's graphical X tool named time-admin can be used to set your system date and time. The client is found in System, Administration, Time &amp;amp; Date; or you can start it from the command line of an X11 terminal window like this:&lt;/p&gt; &lt;pre style="font-family: georgia; font-weight: bold;"&gt;$ gksudo time-admin &amp;amp;&lt;br /&gt;&lt;/pre&gt; &lt;p style="font-family: georgia;"&gt;After you press Enter, you are asked to enter your password. Type in your password and click the OK button. Set the date and time by using the Calendar and Time fields.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5525079987944655879?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5525079987944655879' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5525079987944655879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5525079987944655879'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/date-and-hardware-colck-change-ubuntu.html' title='Date and Hardware colck change - ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1772768310556342084</id><published>2009-02-25T01:56:00.000-08:00</published><updated>2009-02-25T02:03:00.751-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mozilla Backup and Resotre'/><title type='text'>Mozilla Bookmark Backup and Restore</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Mozilla Bookmark Backup and Restore&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;In your old machine open the mozilla firefox and Click the Bookmark menu&lt;br /&gt;&lt;br /&gt;Then click organize bookmark---&gt;There select the Export Html --&gt;saved to your system names as bookmark.html&lt;br /&gt;&lt;br /&gt;Then login to your new machine or newly installed firefox&lt;br /&gt;&lt;br /&gt;Open mozilla---&gt;organize bookmark---&gt;There select the Import Html ---&gt;Point to the location of bookmark.html file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1772768310556342084?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1772768310556342084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1772768310556342084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1772768310556342084'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/mozilla-bookmark-backup-and-restore.html' title='Mozilla Bookmark Backup and Restore'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-4471452977668095098</id><published>2009-02-25T01:51:00.000-08:00</published><updated>2009-02-25T20:26:33.774-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Evolution Backup and Resotre'/><title type='text'>Evolution Backup and Restore - Ubuntu</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt; 	&lt;title&gt;&lt;/title&gt; 	&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 		H2 { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;h2 style="font-family: georgia;"&gt;Backup Evolution&lt;/h2&gt; &lt;p style="font-family: georgia;"&gt;&lt;u&gt;&lt;b&gt;Step 1: Shutdown evolution and gconftool-2&lt;/b&gt;&lt;/u&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;$gconftool-2 --shutdown $evolution –force-shutdown &lt;/pre&gt;&lt;p style="font-family: georgia;"&gt; &lt;u&gt;&lt;b&gt;Step 2:Create an archive with the data and configuration files&lt;/b&gt;&lt;/u&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;br /&gt;To completely save the Evolution data and configuration, you need to save the following directories/files:&lt;/p&gt; &lt;ol style="font-family: georgia;"&gt;&lt;li&gt;&lt;p&gt;~/.evolution/  	&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;~/.gconf/apps/evolution/  	&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;~/.gnome2_private/Evolution  	&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p style="font-family: georgia;"&gt;The following command will take care of these&lt;br /&gt;$cd&lt;br /&gt;$tar -cvzf evolution-backup.tar.gz .evolution .gconf/apps/evolution&lt;br /&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;Now the file evolution-backup.tar.gz is the backup you want. You can move the data over to another Ubuntu computer if you like, and just un-tar the archive while in your /home/username/ directory to restore it.&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;To restore, use:&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;$gconftool-2 --shutdown&lt;br /&gt;$evolution --force-shutdown&lt;br /&gt;$tar xzf evolution-backup.tar.gz &lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-4471452977668095098?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=4471452977668095098' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4471452977668095098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/4471452977668095098'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/evolution-backup-and-restore-ubuntu.html' title='Evolution Backup and Restore - Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-2304951144665076166</id><published>2009-02-22T22:02:00.000-08:00</published><updated>2009-02-22T22:22:22.577-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='not syncing error'/><category scheme='http://www.blogger.com/atom/ns#' term='kernal panic error in ubuntu 8.10'/><title type='text'>kernel panic : not syncing - Ubuntu 8.10</title><content type='html'>&lt;strong style="font-family: georgia;"&gt;kernel panic : not syncing; VFS; Unable to mount root fs on unknown-block (0,0)&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;span style="font-family: georgia;"&gt;Try the Following steps for solving the issue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;Boot from live cd&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family: georgia;"&gt; mkdir /mnt/linux &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt; mount /dev/sda1 /mnt/linux ----&gt; sda1 is my system root partition&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt; chroot /mnt/linux /bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt; mount -t proc /proc /proc&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family: georgia;"&gt; change source list into Intrepid Ibex.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family: georgia;"&gt; apt-get install initrd-tools&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt; apt-get remove linux-image-2.6.27-9-generic&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt; it will remove 2.6.27-9 and install &lt;/span&gt;&lt;span style="font-family: georgia;" id="intelliTxt"&gt;&lt;em&gt;linux-image-2.6.27-11-generic&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-2304951144665076166?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=2304951144665076166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2304951144665076166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2304951144665076166'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/kernel-panic-not-syncing-ubuntu-810.html' title='kernel panic : not syncing - Ubuntu 8.10'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-2640642313958561301</id><published>2009-02-20T23:38:00.000-08:00</published><updated>2009-02-20T23:48:31.711-08:00</updated><title type='text'>Default keyring can't unlock - Ubuntu 8.10</title><content type='html'>&lt;span style="font-family: courier new;"&gt;For Solving wireless issue default keyring can't unlock error in ubuntu 8.10. I have remove the &lt;/span&gt;&lt;code style="font-family: courier new;"&gt;"default.keyring&lt;/code&gt;&lt;span style="font-family: courier new;"&gt;" file .gnome folder. i.e&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style="font-family: georgia; font-weight: bold;"&gt;rm ~/.gnome2/keyrings/default.keyring&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;After that I have tried to setup wirelss network, It ask to setup the new password.&lt;br /&gt;Then I can able to setup the wireless network.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-2640642313958561301?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=2640642313958561301' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2640642313958561301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/2640642313958561301'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/default-keyring-cant-unlock-ubuntu-810.html' title='Default keyring can&apos;t unlock - Ubuntu 8.10'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6168289576771156691</id><published>2009-02-20T22:15:00.000-08:00</published><updated>2009-02-20T22:36:31.508-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pdf to .doc converting'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf editor'/><title type='text'>Converting PDF to .doc</title><content type='html'>&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;  &lt;p&gt;   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-weight: bold;"&gt;KWord&lt;/span&gt; is a KDE application that has a pdf “import” feature which lets you import either entire pdf documents or just a few pages from a pdf document while preserving the formatting! Of course - this only works for pdf documents which are not scanned images of pages.&lt;br /&gt;&lt;br /&gt;Installing kword&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-get install kword&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;&lt;span id="more-276"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://ubuntu.files.wordpress.com/2007/04/kword1.png" title="KWord - file menu"&gt;&lt;img src="http://ubuntu.files.wordpress.com/2007/04/kword1.png" alt="KWord - file menu" /&gt;&lt;/a&gt;&lt;br /&gt;Start the import using the “File” -&gt; “Import” option in the main KWord menu.&lt;/p&gt; &lt;p&gt;&lt;a href="http://ubuntu.files.wordpress.com/2007/04/kword2.png" title="Kword - import pdf"&gt;&lt;img src="http://ubuntu.files.wordpress.com/2007/04/kword2.png" alt="Kword - import pdf" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; After you select the pdf file to be imported, you will see a window like the one above where you can specify the pages you want to import. After the edit you can save it .doc or open office standard format. &lt;/p&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm; font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;PDF to .doc convertor using website&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0cm;"&gt;Following website we can convert out pdf document to word,excel and image formats&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt; http://www.freepdfconvert.com/convert_pdf_to_source.asp&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;http://www.pdfonline.com/pdf2word/index.asp&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6168289576771156691?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6168289576771156691' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6168289576771156691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6168289576771156691'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/converting-pdf-to-doc.html' title='Converting PDF to .doc'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6511903854109598516</id><published>2009-02-18T23:26:00.000-08:00</published><updated>2009-02-18T23:30:17.437-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fedora Live CD'/><category scheme='http://www.blogger.com/atom/ns#' term='Live CD creation'/><title type='text'>Live Linux DVD from Fedora CD ISOs</title><content type='html'>&lt;p&gt;This is a how to for creating an installable Fedora DVD from the 4 Fedora CD images (ISOs).&lt;/p&gt;&lt;p&gt;   1. Extract all the files from Discs 2,3,4, into subfolders (Disc2,Disc3,Disc4 respectively).These folders should be under the folder containing the ISO's. (mount -o loop cd.iso disc2)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   2. Open first ISO "FC3-i386-disc1.iso".Double click the file: "\Fedora\RPMS\TRANS.TBL".It should open up in notepad.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   3. look inside the subfolders created in step one,look for :\DiscX\Fedora\RPMS\TRANS.TBL (where X is 2 to 4).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   4. Copy the list inside each version of these TRANS.TBL files into the original TRANS.TBL file opened in the ISO program.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   5. Once all the data is merged/copied into the first file, save it to the root folder where the ISO's are saved.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   6. Drag all the extracted .RPM files(contained in subfolder created in Step 1) into the ISO: "FC3-i386-disc1.iso", folder: "\Fedora\RPMS\".&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   7. Drag the merged TRANS.TBL file you saved into the ISO: "FC3 i386 Disc1\Fedora\RPMS\".Answer "yes" to replace the old file.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   8. Edit the file: .idiscinfo Change line 4: from " 1 " to: " 1,2,3,4 ".&lt;/p&gt;&lt;p&gt;&lt;br /&gt;   9. Save the ".idiscinfo" to main folder.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;  10. Replace orginal ".idiscinfo" file with edited one.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;  11. Change the capacity of the media to that of the DVD (normally 4.7GB).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;  12. Check everything is correct. That's it, the media should boot, as you used the original Fedora disc1.Rename the file "FC3-i386-disc1.iso" to "FC3-i386-DVD.iso".&lt;/p&gt;&lt;p&gt;&lt;br /&gt;  13. Write this ISO image to DVD with disc authoring software (Infrarecorder or Nero).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6511903854109598516?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6511903854109598516' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6511903854109598516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6511903854109598516'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/live-linux-dvd-from-fedora-cd-isos.html' title='Live Linux DVD from Fedora CD ISOs'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-622892989309665270</id><published>2009-02-16T21:32:00.000-08:00</published><updated>2009-02-16T21:53:34.666-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='screen resolution change ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='more screen resolution'/><title type='text'>Increase the screen resolutions  - Ubuntu (7.10)</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } 	--&gt; 	&lt;/style&gt;  &lt;h1 class="western"&gt;Increase the screen resolutions  - Ubuntu (7.10)&lt;/h1&gt;   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt;&lt;/style&gt;&lt;br /&gt; 	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;  &lt;ol&gt;&lt;p&gt;To start, open a Terminal window by selecting Applications -&gt; 	Accessories -&gt; Terminal  	&lt;/p&gt;&lt;p style="text-align: left;"&gt;&lt;img src="http://www.simplehelp.net/images/ubuntu-resolution/ur01.jpg" name="graphics3" align="bottom" border="0" width="386" height="288" /&gt;&lt;/p&gt;&lt;p&gt;Enter in sudo dpkg-reconfigure -phigh xserver-xorg and then your 	password.  	&lt;/p&gt;&lt;/ol&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.simplehelp.net/images/ubuntu-resolution/ur02.jpg"&gt;&lt;img src="http://www.simplehelp.net/images/ubuntu-resolution/ur02a.jpg" name="graphics4" align="bottom" border="0" width="401" height="280" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Make sure that vesa is highlighted (it should be by default, but 	if you have to scroll up or down to get to it, use the up and/or 	down keys on your keyboard) and then hit enter.&lt;br /&gt;&lt;/p&gt;&lt;/ol&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.simplehelp.net/images/ubuntu-resolution/ur03.jpg"&gt;&lt;img src="http://www.simplehelp.net/images/ubuntu-resolution/ur03a.jpg" name="graphics1" align="bottom" border="0" width="401" height="281" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Select the resolutions that you would like to be available 	for Ubuntu by using the arrow keys to scroll up and down, and the 	Space Bar to select them. Do not select resolutions that your Mac 	doesn’t natively support. Because I prefer not to work with 	Parallels in “Full Screen” mode, and my MacBook Pro is set to 	1440×900, I’ve opted for 1228×800. When you’re done selecting 	resolutions, hit enter.  	&lt;/p&gt;  &lt;p style="text-align: center;"&gt;&lt;a href="http://www.simplehelp.net/images/ubuntu-resolution/ur04.jpg"&gt;&lt;img src="http://www.simplehelp.net/images/ubuntu-resolution/ur04a.jpg" name="graphics2" align="bottom" border="0" width="402" height="282" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Restart X by clicking Control+Alt+Delete (backspace). Ta-da! 	Your new resolutions are now available.  	&lt;/p&gt;  &lt;p style="text-align: center;"&gt;&lt;img src="http://www.simplehelp.net/images/ubuntu-resolution/ur06.jpg" name="graphics3" align="bottom" border="0" width="397" height="295" /&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-622892989309665270?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=622892989309665270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/622892989309665270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/622892989309665270'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/increase-screen-resolutions-ubuntu-710.html' title='Increase the screen resolutions  - Ubuntu (7.10)'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-605085683580716489</id><published>2009-02-12T23:05:00.000-08:00</published><updated>2009-02-12T23:30:33.408-08:00</updated><title type='text'>Server Load - Top Command</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_6W0mYQajg-E/SZUclD2KJOI/AAAAAAAAAdA/Zh6UP3_TFaw/s1600-h/Screenshot.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 150px;" src="http://2.bp.blogspot.com/_6W0mYQajg-E/SZUclD2KJOI/AAAAAAAAAdA/Zh6UP3_TFaw/s200/Screenshot.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5302175559311828194" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Top command – Linux&lt;br /&gt;&lt;br /&gt;Top - command produces a frequently-updated list of processes. By default, the processes are ordered by percentage of CPU usage, with only the "top" CPU consumers shown. The top command shows how much processing power and memory are being used, as well as other information about the running processes.&lt;br /&gt;&lt;p&gt;Sample Output is Given above&lt;/p&gt;&lt;p&gt;The information in the screenshot&lt;br /&gt;uptime – Server Uptime&lt;br /&gt;Users – Number of user Login&lt;br /&gt;Load aversage – Server Load Information&lt;br /&gt;   eg: load average: 0.41, 0.50, 1.256&lt;br /&gt;during the last minute, the CPU was overloaded by 41% (1 CPU with 0.41 runnable processes, so that 0.73 processes were waiting for a turn) &lt;br /&gt;during the last 5 minutes, the CPU was underloaded  50% (no processes were waiting for a turn) &lt;br /&gt;during the last 15 minutes, the CPU was overloaded 256% (1 CPU with 1.25 runnable processes, so that 6.98 processes were waiting for a turn) &lt;br /&gt;Options&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Some options to top are listed below.&lt;/p&gt;&lt;p&gt;&lt;br /&gt; -d: Delay time interval as:  -d ss.tt (seconds. tenths)&lt;br /&gt;            Specifies the delay between screen updates&lt;br /&gt;  &lt;br /&gt; eg) top -d 04.59&lt;br /&gt;&lt;br /&gt; -u: Monitor by user as:  -u somebody&lt;br /&gt;            Monitor only processes with an effective UID or user name matching&lt;br /&gt;            That given.&lt;br /&gt; c: RUSER -- Real User Name. The real user name of the task's owner.&lt;br /&gt;eg) top -u sahab&lt;br /&gt;&lt;br /&gt;Use the -n flag to limit the number of iterations: &lt;br /&gt;     top -n 1&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-605085683580716489?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=605085683580716489' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/605085683580716489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/605085683580716489'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/server-load-top-command.html' title='Server Load - Top Command'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_6W0mYQajg-E/SZUclD2KJOI/AAAAAAAAAdA/Zh6UP3_TFaw/s72-c/Screenshot.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3536386470833736689</id><published>2009-02-05T22:59:00.000-08:00</published><updated>2009-02-05T23:05:34.362-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='The total number of locks exceeds the lock table size'/><category scheme='http://www.blogger.com/atom/ns#' term='locks error mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='table size error'/><title type='text'>Mysql Error - “The total number of locks exceeds the lock table size”</title><content type='html'>“The total number of locks exceeds the lock table size”&lt;br /&gt;I encountered this error when executing the SQL below.&lt;br /&gt;&lt;br /&gt;   DELETE perfdata_service_raw&lt;br /&gt;   FROM perfdata_service_raw, perfdata_host&lt;br /&gt;   WHERE perfdata_service_raw.host_name = perfdata_host.host_name AND&lt;br /&gt;   perfdata_host.is_deleted = 1&lt;br /&gt;&lt;br /&gt;SOLUTION&lt;br /&gt;&lt;br /&gt;Increase the innodb_buffer_pool_size variable in /etc/my.cnf. The default value is 8M, so I set it to 256M, restart the mysqld service (service mysqld restart), and the problem is resolved.&lt;br /&gt;&lt;br /&gt;   [mysqld]&lt;br /&gt;   set-variable=innodb_buffer_pool_size=512M&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3536386470833736689?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3536386470833736689' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3536386470833736689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3536386470833736689'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/02/mysql-error-total-number-of-locks.html' title='Mysql Error - “The total number of locks exceeds the lock table size”'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-9960496079798021</id><published>2009-01-27T22:20:00.000-08:00</published><updated>2009-01-27T22:21:30.417-08:00</updated><title type='text'>Bazaar Merge - How to</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } 	--&gt; 	&lt;/style&gt;  &lt;h1 class="western"&gt;&lt;a name="updating-your-branch-from-the-main-branch"&gt;&lt;/a&gt; Updating your branch from the main branch&lt;/h1&gt; &lt;p&gt;While you commit changes to your branch, it's likely that other people will also continue to commit code to the parent branch.&lt;/p&gt; &lt;p&gt;To make sure your branch stays up to date, you should merge changes from the parent into your personal branch:&lt;/p&gt; &lt;pre&gt;$ bzr merge Merging from saved parent location: http://bazaar.launchpad.net/~bzr/bzr-gtk/trunk All changes applied successfully.&lt;/pre&gt;&lt;p&gt; Check what has changed:&lt;/p&gt; &lt;pre&gt;$ bzr diff&lt;/pre&gt;&lt;p&gt; If you're happy with the changes, you can commit them to your personal branch:&lt;/p&gt; &lt;pre&gt;$ bzr commit -m "Merge from main branch" Committed revision 295.&lt;/pre&gt;&lt;h1 class="western"&gt; &lt;a name="merging-your-work-into-the-parent-branch"&gt;&lt;/a&gt;Merging your work into the parent branch&lt;/h1&gt; &lt;p&gt;After you've worked on your personal branch of bzr-gtk, you may want to send your changes back upstream to the project. The easiest way is to use a merge directive.&lt;/p&gt; &lt;p&gt;A merge directive is a machine-readable request to perform a particular merge. It usually contains a patch preview of the merge and either contains the necessary revisions, or provides a branch where they can be found.&lt;/p&gt; &lt;p&gt;Replacing mycode.patch, create your merge directive:&lt;/p&gt; &lt;pre&gt;$ bzr send -o mycode.patch Using saved parent location: http://bazaar.launchpad.net/~bzr/bzr-gtk/trunk&lt;/pre&gt;&lt;p&gt; You can now email the merge directive to the bzr-gtk project who, if they choose, can use it merge your work back into the parent branch.&lt;/p&gt; &lt;h1 class="western"&gt;&lt;a name="learning-more"&gt;&lt;/a&gt;Learning more&lt;/h1&gt;&lt;br /&gt;&lt;p&gt;To learn about Bazaar on the command-line:&lt;/p&gt; &lt;pre&gt;$ bzr help&lt;/pre&gt;&lt;p&gt; To learn about Bazaar commands:&lt;/p&gt; &lt;pre&gt;$ bzr help commands&lt;/pre&gt;&lt;p&gt; To learn about the ''foo'' topic or command:&lt;/p&gt; &lt;pre&gt;$ bzr help foo&lt;/pre&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-9960496079798021?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=9960496079798021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9960496079798021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9960496079798021'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/bazaar-merge-how-to.html' title='Bazaar Merge - How to'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-3703469521996684475</id><published>2009-01-23T23:03:00.000-08:00</published><updated>2009-01-23T23:14:23.626-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='neworksetup ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='linux netwroking'/><title type='text'>Linux Network configuration (Ubuntu)</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Nimbus Sans L", sans-serif; font-size: 16pt } 		H1.cjk { font-family: "DejaVu Sans"; font-size: 16pt } 		H1.ctl { font-family: "DejaVu Sans"; font-size: 16pt } 	--&gt; 	&lt;/style&gt;  &lt;h1 class="western" align="center"&gt;Linux Network configuration (Ubuntu)&lt;br /&gt;&lt;/h1&gt; &lt;p&gt;		In ubuntu we can easily configure the network using graphical interface. Here we briefly look over the command line configuration.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Determining Your IP Address &lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;	When Linux is installed, the ethernet device is called eth0  &lt;/p&gt; &lt;p&gt;	For wireless interface it will be called wlan0  &lt;/p&gt; &lt;p&gt;The ifconfig command.  &lt;/p&gt; &lt;p&gt;&lt;b&gt;sahab@sahab:~$ ifconfig  &lt;/b&gt;&lt;/p&gt; &lt;p&gt;eth0      Link encap:Ethernet  HWaddr 00:1d:7d:f8:26:74   &lt;/p&gt; &lt;p&gt;          inet addr:192.168.2.188  Bcast:192.168.2.255  Mask:255.255.255.0 &lt;/p&gt; &lt;p&gt;          inet6 addr: fe80::21d:7dff:fef8:2674/64 Scope:Link &lt;/p&gt; &lt;p&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 &lt;/p&gt; &lt;p&gt;          RX packets:173544 errors:0 dropped:0 overruns:0 frame:0 &lt;/p&gt; &lt;p&gt;          TX packets:98648 errors:0 dropped:0 overruns:0 carrier:0 &lt;/p&gt; &lt;p&gt;          collisions:0 txqueuelen:1000  &lt;/p&gt; &lt;p&gt;          RX bytes:197413652 (188.2 MB)  TX bytes:10905457 (10.4 MB) &lt;/p&gt; &lt;p&gt;          Interrupt:20 Base address:0x8000  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;eth0:1    Link encap:Ethernet  HWaddr 00:1d:7d:f8:26:74   &lt;/p&gt; &lt;p&gt;          inet addr:192.168.1.187  Bcast:192.168.1.255  Mask:255.255.255.0 &lt;/p&gt; &lt;p&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 &lt;/p&gt; &lt;p&gt;          Interrupt:20 Base address:0x8000  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;lo        Link encap:Local Loopback   &lt;/p&gt; &lt;p&gt;          inet addr:127.0.0.1  Mask:255.0.0.0 &lt;/p&gt; &lt;p&gt;          inet6 addr: ::1/128 Scope:Host &lt;/p&gt; &lt;p&gt;          UP LOOPBACK RUNNING  MTU:16436  Metric:1 &lt;/p&gt; &lt;p&gt;          RX packets:5320 errors:0 dropped:0 overruns:0 frame:0 &lt;/p&gt; &lt;p&gt;          TX packets:5320 errors:0 dropped:0 overruns:0 carrier:0 &lt;/p&gt; &lt;p&gt;          collisions:0 txqueuelen:0  &lt;/p&gt; &lt;p&gt;          RX bytes:1101301 (1.0 MB)  TX bytes:1101301 (1.0 MB) &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;IP Address changing&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;#sudo ifconfig eth0 192.168.2.187 netmask 255.255.255.0 up&lt;/b&gt;&lt;/p&gt; &lt;p&gt;Configuration file of netwok looks like&lt;/p&gt; &lt;p&gt;&lt;b&gt;# vim /etc/netwok/interfaces&lt;/b&gt;&lt;/p&gt; &lt;p&gt;The file looks like&lt;/p&gt; &lt;p&gt;auto lo                                        #For loopback address&lt;/p&gt; &lt;p&gt;iface lo inet loopback &lt;/p&gt; &lt;p&gt;  iface eth0 inet static                  #static ip for eth0&lt;/p&gt; &lt;p&gt;address 192.168.2.188 &lt;/p&gt; &lt;p&gt;netmask 255.255.255.0 &lt;/p&gt; &lt;p&gt;gateway 192.168.2.254 &lt;/p&gt; &lt;p&gt; iface eth0:1 inet static              #secondary ip&lt;/p&gt; &lt;p&gt;address 192.168.1.187 &lt;/p&gt; &lt;p&gt;netmask 255.255.255.0 &lt;/p&gt; &lt;p&gt; auto eth0                                 #auto enable on boot time&lt;/p&gt; &lt;p&gt;auto eth0:1&lt;/p&gt; &lt;p&gt;&lt;b&gt;Adding secondary ip&lt;/b&gt;&lt;/p&gt; &lt;p&gt;#sudo ifconfig eth0:0 192.168.1.187 netmask 255.255.255.0 up&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Start and stop - Network &lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;b&gt;#sudo ifup eth0&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;#sudo ifdown eth0&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;#sudo /etc/init.d/networking stop&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;#sudo /etc/init.d/networking start&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;#sudo /etc/init.d/networking restart&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Default gateway configuration &lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;b&gt;sahab@sahab:~$sudo  route add default gw 192.168.2.254 eth0 &lt;/b&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Configuring the DNS server &lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;b&gt;/etc/resolve.conf &lt;/b&gt; &lt;/p&gt; &lt;p&gt;Vim /etc/resolve.conf&lt;/p&gt; &lt;p&gt;search example.com&lt;/p&gt; &lt;p&gt;nameserver 192.168.0.2&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=""&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;Checking the current routing table&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;sahab@sahab:~$ sudo netstat -nr  &lt;/b&gt;&lt;/p&gt; &lt;p&gt;Kernel IP routing table &lt;/p&gt; &lt;p&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface &lt;/p&gt; &lt;p&gt;192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0 &lt;/p&gt; &lt;p&gt;192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0 &lt;/p&gt; &lt;p&gt;169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0 &lt;/p&gt; &lt;p&gt;0.0.0.0         192.168.2.254   0.0.0.0         UG        0 0          0 eth0&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Mii-tool and ethtool - Checking network card status and speed &lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;b&gt;sahab@sahab:~$ sudo mii-tool -v  &lt;/b&gt;&lt;/p&gt; &lt;p&gt;eth0: negotiated 100baseTx-FD flow-control, link ok &lt;/p&gt; &lt;p&gt;  product info: vendor 00:07:32, model 17 rev 2 &lt;/p&gt; &lt;p&gt;  basic mode:   autonegotiation enabled &lt;/p&gt; &lt;p&gt;  basic status: autonegotiation complete, link ok &lt;/p&gt; &lt;p&gt;  capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD &lt;/p&gt; &lt;p&gt;  advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control &lt;/p&gt; &lt;p&gt;  link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control &lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;b&gt;sahab@sahab:~$ sudo ethtool eth0  &lt;/b&gt;&lt;/p&gt; &lt;p&gt;Settings for eth0: &lt;/p&gt; &lt;p&gt;	Supported ports: [ TP ] &lt;/p&gt; &lt;p&gt;	Supported link modes:   10baseT/Half 10baseT/Full  &lt;/p&gt; &lt;p&gt;	                        100baseT/Half 100baseT/Full  &lt;/p&gt; &lt;p&gt;	                        1000baseT/Full  &lt;/p&gt; &lt;p&gt;	Supports auto-negotiation: Yes &lt;/p&gt; &lt;p&gt;	Advertised link modes:  10baseT/Half 10baseT/Full  &lt;/p&gt; &lt;p&gt;	                        100baseT/Half 100baseT/Full  &lt;/p&gt; &lt;p&gt;	                        1000baseT/Full  &lt;/p&gt; &lt;p&gt;	Advertised auto-negotiation: Yes &lt;/p&gt; &lt;p&gt;	Speed: 100Mb/s &lt;/p&gt; &lt;p&gt;	Duplex: Full &lt;/p&gt; &lt;p&gt;	Port: Twisted Pair &lt;/p&gt; &lt;p&gt;	PHYAD: 0 &lt;/p&gt; &lt;p&gt;	Transceiver: internal &lt;/p&gt; &lt;p&gt;	Auto-negotiation: on &lt;/p&gt; &lt;p&gt;	Supports Wake-on: pumbg &lt;/p&gt; &lt;p&gt;	Wake-on: g &lt;/p&gt; &lt;p&gt;	Current message level: 0x00000033 (51) &lt;/p&gt; &lt;p&gt;	Link detected: yes &lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-3703469521996684475?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=3703469521996684475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3703469521996684475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/3703469521996684475'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/linux-network-configuration-ubuntu.html' title='Linux Network configuration (Ubuntu)'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-8207107593069526429</id><published>2009-01-22T02:44:00.000-08:00</published><updated>2009-01-23T21:01:15.227-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux run level'/><category scheme='http://www.blogger.com/atom/ns#' term='service runlevel change'/><category scheme='http://www.blogger.com/atom/ns#' term='run level'/><category scheme='http://www.blogger.com/atom/ns#' term='initprocess'/><title type='text'>Run level - linux</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } 	--&gt;&lt;/style&gt;&lt;h1 class="western"&gt;Run Level Numbers&lt;/h1&gt; &lt;p&gt;Run Level&lt;/p&gt; &lt;p&gt;A run level is a state of init and the whole system that defines what system services are operating. Run levels are identified by numbers.  &lt;/p&gt; &lt;p&gt;Run level numbers (init 0 to init 6)&lt;/p&gt; &lt;p&gt;0 Halt the system.  &lt;/p&gt; &lt;p&gt;1 Single-user mode (for Troubleshooting).  &lt;/p&gt; &lt;p&gt;2 Local Multiuser with Networking but without network service (like NFS)  &lt;/p&gt; &lt;p&gt;3 Full Multiuser with Networking  &lt;/p&gt; &lt;p&gt;4 Not Used  &lt;/p&gt; &lt;p&gt;5 Full Multiuser with Networking and X Windows(GUI) – Graphical mode&lt;/p&gt; &lt;p&gt;6 Reboot.  &lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Edit Run Level on boot time and services (Redhat)&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;In &lt;b&gt;redhat&lt;/b&gt; /etc/inittab configuration we can modify the default run level on bootime.&lt;/p&gt; &lt;pre&gt;id:3:initdefault: l3:3:wait:/etc/rc.d/rc 3&lt;/pre&gt;&lt;p&gt; From the first line, we know that init is going to end up at a runlevel of 3 after the system boots.  &lt;/p&gt; &lt;p&gt;For &lt;b&gt;services&lt;/b&gt; (like network, apache etc) “chkconfig” is used to change the service level.&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm;"&gt;#chkconfig [--level &lt;levels&gt;] &lt;name&gt; &lt;on|off|reset&gt;&lt;/on|off|reset&gt;&lt;/name&gt;&lt;/levels&gt;&lt;/pre&gt;&lt;p&gt; For example, if we decide to disable crond for runlevel 2, the #&lt;b&gt;chkconfig --level 2 crond off&lt;/b&gt; command (executed by root) would turn off crond for the runlevel of 2&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Running a user scripts to runlevel&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;For example Oracle 10G scripts can be started with the “start” argument and terminated with the “stop” argument. This meets the minimum requirements of an initscript that can be used in conjunction with the launch script /etc/rc.d/rc.&lt;/p&gt; &lt;p&gt;Place the script in /etc/rc.d/init.d and run (as root)&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm;"&gt;chmod +x /etc/rc.d/init.d/oracle&lt;/pre&gt;&lt;p&gt; to make the script executable. If you are concerned about normal users seeing the script, you could try more restrictive file permissions, as long as the script is executable by root as a standalone script.  &lt;/p&gt; &lt;p&gt;Notice the two comments lines in the script:&lt;/p&gt; &lt;pre&gt;#chkconfig: 2345 80 05 #description: Oracle 10G Server&lt;/pre&gt;&lt;p&gt; These lines are needed by chkconfig to determine how to establish the initial runlevels to add the service as well as set the priority for the start-and-stop script execution order. These lines denote the script will start Oracle 10G server for the runlevels 2, 3, 4 and 5. In addition, the start priority will be set to 80 while the stop priority will be 05.  &lt;/p&gt; &lt;p&gt;Now that the script is in place with the appropriate execute permissions and the required chkconfig comments are in place, we can add the initscript to the chkconfig configuration by typing, as root, &lt;b&gt;chkconfig --add oracle&lt;/b&gt;.&lt;/p&gt; &lt;p&gt;Using chkconfig's query feature, we can verify our addition:&lt;/p&gt; &lt;pre&gt;[root]# chkconfig --list | grep oracle oracle        0:off     1:off   2:on   3:on   4:on   5:on  6:off &lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;/pre&gt;&lt;p&gt;   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;  &lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Nimbus Roman No9 L, serif;"&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Changing Service run level – Ubuntu:&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Nimbus Roman No9 L, serif;"&gt;&lt;span style="font-size:100%;"&gt;#sudo apt-get install sysv-rc-conf&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:Nimbus Roman No9 L, serif;"&gt;&lt;span style="font-size:100%;"&gt;#sudo sysv-rc-conf&lt;/span&gt;&lt;/span&gt;       &lt;span style="font-family:Nimbus Roman No9 L, serif;"&gt;&lt;span style="font-size:100%;"&gt;Using sysv-rc-conf we can easily manage the services in runlevel.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-8207107593069526429?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=8207107593069526429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8207107593069526429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8207107593069526429'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/run-level-linux.html' title='Run level - linux'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6451101785208220301</id><published>2009-01-22T00:08:00.000-08:00</published><updated>2009-01-22T01:33:29.304-08:00</updated><title type='text'>File delete in tmp folder after restart - Ubuntu</title><content type='html'>&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;  &lt;p&gt;When ever we copy the file in /tmp folder it will deleter automatically when we restart the computer.  &lt;/p&gt; &lt;p&gt;If we want more some days means edit the following configuration file&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;vim /etc/default/rcS&lt;/p&gt; &lt;p&gt; Edit TMPTIME=0 ---&gt; DEFAULT VALUE IS ZERO MODIFY AS PER YOUR NEED&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6451101785208220301?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6451101785208220301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6451101785208220301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6451101785208220301'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/file-delte-in-tmp-folder-after-restart.html' title='File delete in tmp folder after restart - Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5168049186148128209</id><published>2009-01-21T23:53:00.000-08:00</published><updated>2009-01-21T23:56:59.037-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windowsgrubfix'/><category scheme='http://www.blogger.com/atom/ns#' term='gruberror'/><title type='text'>Grub Fix - Windows</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H2 { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;  &lt;h2&gt;Uninstall Grub (fix bootMBR) to restore Windows xp bootmbr&lt;/h2&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;	For old PCs, just use Windows XP install disk to repair it by use fixboot and fixmbr commands.&lt;/p&gt; &lt;p&gt;	For PCs with SATA disks, the windows XP install disk can not fix the boot problem. You need use Windows Vista install DVD to fix the Grub problem.&lt;/p&gt; &lt;p&gt;&lt;b&gt;How to use Windows Vista install DVD to fix the boot problem?&lt;/b&gt;&lt;/p&gt; &lt;p style="margin-left: 1.25cm;"&gt;1. Put the Windows Vista installation disc in the disc drive, and then start the computer (set to boot from CD in BIOS).&lt;br /&gt;2. Press a key when you are prompted.&lt;br /&gt;3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.&lt;br /&gt;4. Click Repair your computer.&lt;br /&gt;5. Click the operating system that you want to repair (Vista in this case), and then click Next.&lt;br /&gt;6. In the System Recovery Options dialog box, click Command Prompt.&lt;br /&gt;7. Once in the command prompt, type exactly Bootrec.exe /FixMbr and then press ENTER. You will see "operation completed successfully."&lt;br /&gt;8. Reboot and set BIOS to boot from the HDD again.&lt;/p&gt; &lt;p&gt;GRUB will be overwritten in step 7 and your old bootloader (windows xp, windows vista) will once again take control of loading your OS(s).&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-5168049186148128209?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=5168049186148128209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5168049186148128209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/5168049186148128209'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/grub-fix-windows.html' title='Grub Fix - Windows'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-9190238150499689862</id><published>2009-01-21T22:33:00.000-08:00</published><updated>2009-04-26T22:30:33.238-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='InstallingWindowsAfterUbuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='grubfix'/><category scheme='http://www.blogger.com/atom/ns#' term='mbr'/><category scheme='http://www.blogger.com/atom/ns#' term='gruberror'/><title type='text'>Grub Fix - Ubuntu</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } 	--&gt; 	&lt;/style&gt;  &lt;p style="margin-bottom: 0cm;" align="center"&gt;&lt;span style="font-size:130%;"&gt;&lt;u&gt;&lt;b&gt;Grub Fix  – Ubuntu&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;h1 class="western" style="text-decoration: none;" align="left"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Installing Windows After Ubuntu&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt; &lt;p style="margin-bottom: 0cm; text-decoration: none;" align="left"&gt; &lt;span style="font-size:100%;"&gt;	Normally when Windows is installed after Ubuntu the master boot record will be overwritten. This means that you would have to boot off a LiveCD and re-install grub. The steps are&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0cm; text-decoration: none;" align="left"&gt;&lt;span style="font-size:100%;"&gt;#sudo grub&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0cm; text-decoration: none;" align="left"&gt;&lt;span style="font-size:100%;"&gt;From the grub&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm; text-decoration: none;" align="left"&gt; &lt;span style="font-size:100%;"&gt;Type &lt;/span&gt; &lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0cm; text-decoration: none;" align="left"&gt;&lt;span style="font-size:100%;"&gt;grub&gt;  find /boot/grub/stage1   (&lt;/span&gt;If you installed a /boot partition, do find /grub/stage1)&lt;/p&gt; &lt;p style="margin-bottom: 0cm; text-decoration: none;" align="left"&gt;  &lt;span style="font-size:100%;"&gt;(hd0,1) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm; text-decoration: none;" align="left"&gt;  &lt;span style="font-size:100%;"&gt;(hd0,5)&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0cm;" align="left"&gt;It dispay partition which contains your grub files. I have two linux OS installed.  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;" align="left"&gt;Then run the following command&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0cm;" align="left"&gt;&gt;root (hd0,1)&lt;br /&gt;&gt;setup (hd0)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;" align="left"&gt;(hd0) = the MBR for the hard disk which is where grub needs to install itself too for it to load on bootup.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-9190238150499689862?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=9190238150499689862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9190238150499689862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9190238150499689862'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/grub-fix-ubuntu.html' title='Grub Fix - Ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6052122419053459813</id><published>2009-01-21T02:58:00.000-08:00</published><updated>2009-01-21T03:17:02.978-08:00</updated><title type='text'>How-to-encrypt and dycrypt -file-with-passphrase </title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt; 	&lt;/style&gt;  &lt;p&gt;&lt;strong&gt;&lt;span style="font-size:180%;"&gt;How to encrypt and dycrypt file with passphrase.&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:180%;"&gt; &lt;/span&gt; &lt;/p&gt; &lt;p&gt;DESCRIPTION  &lt;/p&gt; &lt;p&gt;	Mcrypt is a simple crypting program, a replacement for the old unix crypt(1). When encrypting or ecrypting a file, a new file is created with the extension .nc and mode 0600. The new file keeps the modification date of the original. The original file may be deleted by specifying the -u parameter. If no files are specified, the standard input is encrypted to the standard output.  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;b&gt;Encrypt&lt;/b&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;sahab@sahab:~$ sudo mcrypt -uz  testing  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;Enter the passphrase (maximum of 512 characters) &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;Please use a combination of upper and lower case letters and numbers. &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;Enter passphrase:  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;Enter passphrase:  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;File testing was encrypted. &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;sahab@sahab:~$ ls&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;testing.gz.nc&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;b&gt;Decrypt&lt;/b&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;sahab@sahab:~$ sudo mcrypt -d  testing.gz.nc  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;Enter passphrase:  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style=""&gt;File testing.gz.nc was decrypted.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style=""&gt;sahab@sahab:~$ mcrypt --help &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style=""&gt;Mcrypt encrypts and decrypts files with symmetric encryption algorithms. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style=""&gt;Usage: mcrypt [-dFusgbhLvrzp] [-f keyfile] [-k key1 key2 ...] [-m mode] [-o keymode] [-s keysize] [-a algorithm] [-c config_file] [file ...] &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-g, --openpgp            Use the OpenPGP (RFC2440) file format. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--openpgp-z INTEGER      Sets the compression level for openpgp  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;packets (0 disables). &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-d, --decrypt            decrypts. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-s, --keysize INTEGER    Set the algorithm's key size (in  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;bytes). &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-o, --keymode KEYMODE    Specify the keyword mode. Use the  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;--list-keymodes parameter to view all  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;modes. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-f, --keyfile FILE       Specify the file to read the keyword  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;from. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-c, --config FILE        Use configuration file FILE. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-a, --algorithm ALGORITHM   &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;Specify the encryption and decryption  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;algorithm. Use the --list parameter to  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;see the supported algorithms. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--algorithms-directory DIRECTORY   &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;Set the algorithms directory. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-m, --mode MODE          Specify the encryption and decryption  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;mode. Use the --list parameter to see  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;the supported modes. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--modes-directory DIRECTORY   &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;Set the modes directory. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-h, --hash HASH          Specify the hash algorithm to be used.  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;Use the --list-hash parameter to view  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;the hash algorithms. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-k, --key KEY1 KEY2...KEYN   &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;Specify the key(s) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--noiv                   Do not use an IV. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-b, --bare               Do not keep algorithm information in  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;the encrypted file. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-z, --gzip               Use gzip to compress files before  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;encryption. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-p, --bzip2              Use bzip2 to compress files before  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;encryption. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--flush                  Immediately flush the output &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-l, --doublecheck        Double check passwords. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-u, --unlink             Unlink the input file after encryption  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;or decryption. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--nodelete               Do not delete the output file if  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;decryption failed. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-t, --time               Prints timing information. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-F, --force              Forces output to stdout. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--echo                   Echo asterisks when entering the  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;password. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-r, --random             Use real random data (if your system  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;supports it). &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--list                   Prints a list of the supported  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;algorithms and modes. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--list-keymodes          Prints a list of the supported key  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;modes. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--list-hash              Prints a list of the supported hash  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;                              &lt;span style=""&gt;algorithms. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-V, --verbose            More information is displayed. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-q, --quiet              Suppress some non critical warnings. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;--help                   Prints this help &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-v, --version            Prints the version number &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;     &lt;span style=""&gt;-L, --license            Displays license information. &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style=""&gt;Report bugs to mcrypt-dev@lists.hellug.gr. &lt;/span&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6052122419053459813?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6052122419053459813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6052122419053459813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6052122419053459813'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/how-to-encrypt-and-dycrypt-file-with.html' title='How-to-encrypt and dycrypt -file-with-passphrase '/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-6438322825124401659</id><published>2009-01-18T21:27:00.000-08:00</published><updated>2009-01-18T21:34:08.176-08:00</updated><title type='text'>Mysql community server table limitation</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		TD P { margin-bottom: 0cm } 	--&gt; 	&lt;/style&gt;  &lt;p style="margin-bottom: 0cm;"&gt;The effective maximum table size for MySQL databases is usually determined by operating system constraints on file sizes, not by MySQL internal limits. The following table lists some examples of operating system file-size limits.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;table border="1" cellpadding="2" cellspacing="3" width="373"&gt; 	&lt;col width="175"&gt; 	&lt;col width="179"&gt; 	&lt;tbody&gt;&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;&lt;strong&gt;Operating System&lt;/strong&gt;&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;&lt;strong&gt;File-size Limit&lt;/strong&gt;&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;Win32 w/ FAT/FAT32&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;2GB/4GB&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;Win32 w/ NTFS&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;2TB (possibly larger)&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;Linux 2.2-Intel 32-bit&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;2GB (LFS: 4GB)&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;Linux 2.4+&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;(using ext3 filesystem) 4TB&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;Solaris 9/10&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;16TB&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;MacOS X w/ HFS+&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;2TB&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td width="175"&gt; 			&lt;p&gt;NetWare w/NSS filesystem&lt;/p&gt; 		&lt;/td&gt; 		&lt;td width="179"&gt; 			&lt;p&gt;8TB&lt;/p&gt; 		&lt;/td&gt; 	&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;span class="entry"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is the fix:&lt;/p&gt; &lt;p&gt;&lt;code&gt;alter table_name MAX_ROWS = 10000000; &lt;/code&gt; (this can take a while)&lt;/p&gt; &lt;p&gt;To fix it for new tables, add this to you /etc/my.cnf:&lt;/p&gt; &lt;p&gt;&lt;code&gt;myisam_data_pointer_size=6&lt;/code&gt;&lt;/p&gt; &lt;p&gt;This will allow tables to have up to a 256TB size limit. The default value is 4 which allows up to 4GB.&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-6438322825124401659?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=6438322825124401659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6438322825124401659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/6438322825124401659'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/mysql-community-server-table-limitation.html' title='Mysql community server table limitation'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-9135523688051736134</id><published>2009-01-02T02:21:00.000-08:00</published><updated>2009-04-30T02:28:02.298-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='package installation ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='command line package installation ubuntu'/><title type='text'>Package management - Debian and ubuntu</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H4 { margin-bottom: 0.21cm } 		H4.western { font-family: "Nimbus Roman No9 L", "Times New Roman", serif } 		H4.cjk { font-family: "DejaVu Sans" } 		H4.ctl { font-family: "DejaVu Sans" } 	--&gt; 	&lt;/style&gt;  &lt;h4 class="western"&gt;&lt;/h4&gt; &lt;p&gt;&lt;span style="font-size:180%;"&gt;&lt;u&gt;&lt;b&gt;Debian and Ubuntu&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;apt-get&lt;/b&gt;&lt;/p&gt; &lt;p&gt;	update the local list of packages, enter in a Terminal:&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;b&gt;#sudo apt-get update&lt;/b&gt;&lt;/p&gt;&lt;p&gt;To install all available updates:&lt;/p&gt;  &lt;p&gt;	&lt;b&gt;#sudo apt-get upgrade&lt;/b&gt;&lt;/p&gt; &lt;p&gt;	&lt;/p&gt;  &lt;p&gt;	To install a package:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;	&lt;b&gt;#sudo apt-get install package&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;	To remove a package:&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;	&lt;b&gt;#sudo apt-get remove package&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;	To permanently remove the package&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;	&lt;b&gt;#sudo apt-get purge package&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;	To list other apt commands and options:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;	&lt;b&gt;#apt-get help&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;b&gt;apt-cache&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0cm;"&gt;To search for a package:&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;b&gt;#apt-cache search package&lt;/b&gt;&lt;/p&gt; &lt;p&gt;	eg) apt-cache search mp3&lt;/p&gt;   &lt;p&gt;                 This will search for packages that have "mp3" in the name or description.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;apt-cdrom&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;	It is a simple command to add CDROMs to apt's &lt;tt&gt;sources.list&lt;/tt&gt; file. Its syntax is a variation on this basic command line&lt;/p&gt; &lt;p&gt;	&lt;b&gt;#apt-cdrom add&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;apt-config&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;	It is a tool to read apt's &lt;tt&gt;apt.conf&lt;/tt&gt; file and is very useful to dump it to screen. Its syntax is a variation of these basic options:&lt;/p&gt; &lt;p&gt;&lt;b&gt;	#apt-config [options] shell&lt;/b&gt;&lt;/p&gt; &lt;dl&gt;&lt;dt style="margin-bottom: 0.5cm;"&gt;&lt;b&gt;	&lt;/b&gt;Shell mode&lt;/dt&gt;&lt;dt style="margin-bottom: 0.5cm;"&gt; 	&lt;b&gt;	#apt-config [options] dump&lt;/b&gt;&lt;/dt&gt;&lt;dd style="margin-bottom: 0.5cm;"&gt; 	Show the configuration options in the screen&lt;/dd&gt;&lt;/dl&gt;If you are behind proxy server means  follow this steps&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Add the following lines to /etc/apt/apt.conf (might be empty) file worked for me while the instructions above did not.&lt;/p&gt; &lt;p&gt;ACQUIRE {&lt;br /&gt;http::proxy “http://xx.xx.xx.xx:8080/”&lt;br /&gt;}&lt;/p&gt; &lt;p&gt;If you need to authenticate use&lt;/p&gt; &lt;p&gt;ACQUIRE {&lt;br /&gt;http::proxy “http://DOMAIN\username:Password@FQDN.or.IP:8080/”&lt;br /&gt;}&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-9135523688051736134?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=9135523688051736134' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9135523688051736134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/9135523688051736134'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2009/01/package-management-debian-and-ubuntu.html' title='Package management - Debian and ubuntu'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-8288019157454850478</id><published>2008-12-30T01:11:00.000-08:00</published><updated>2009-01-21T22:24:45.891-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NIC card sharing'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet sharing'/><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='easy'/><category scheme='http://www.blogger.com/atom/ns#' term='squid'/><title type='text'>Firewall and Internet sharing - Firestarter</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Introduction&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Firestarter is an Open Source visual firewall program. The software aims to combine ease of use with powerful features, therefore serving both Linux desktop users and system administrators.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Installation&lt;/h2&gt;  Firestarter is packaged for many of the leading Linux distributions. Using a pre-compiled package ensures that the program will integrate properly with your distribution of choice. For platforms for which a binary package does not yet exist and for experienced users, Firestarter can also be compiled from source.  &lt;h3&gt;Installing in Fedora Core, Red Hat Linux, SuSE or Mandrake&lt;/h3&gt; &lt;p&gt; Firestarter is conveniently available in &lt;acronym title="RPM Package Manager"&gt;RPM&lt;/acronym&gt; package format for RPM enabled Linux distributions like, Fedora Core, SuSE and Mandrake. &lt;/p&gt;  &lt;p&gt; Once you have downloaded the Firestarter RPM specific to your distribution, open a terminal and change to the directory where you downloaded the RPM to. Type the following commands as shown in bold to install the package: &lt;/p&gt;  &lt;div class="screen"&gt;  [bash]$ &lt;b&gt;su&lt;/b&gt;&lt;br /&gt;Password: [&lt;i&gt;Type your root password and hit enter&lt;/i&gt;]&lt;br /&gt;[bash]$ &lt;b&gt;rpm -Uvh firestarter*rpm&lt;/b&gt;&lt;br /&gt;Preparing...&lt;br /&gt;... &lt;/div&gt;  &lt;p&gt; Barring any unresolved dependencies or other problems, Firestarter should now be installed. Alternatively you can use a graphical package manager by double clicking the RPM file in your file manager. &lt;/p&gt;  &lt;h3&gt;Installing in Debian and Ubuntu&lt;/h3&gt; &lt;p&gt; Firestarter is maintained in Debian and can be downloaded and installed using the &lt;i&gt;apt-get&lt;/i&gt; tool by simply typing "apt-get install firestarter". &lt;/p&gt;  &lt;p&gt; Ubuntu users can install Firestarter by enabling the "universe" repository in the /etc/apt/sources.list file or in synaptic under Settings-&gt;Repositories. Having enabled the repository, the procedure is the same as in Debian. &lt;/p&gt;  &lt;h3&gt;Installing in Gentoo&lt;/h3&gt; &lt;p&gt;Firestarter is fully supported in the Gentoo distribution by the &lt;i&gt;Portage&lt;/i&gt; system. Simply run "emerge firestarter" to install the program. &lt;/p&gt;  &lt;h3&gt;Compiling and installing from source&lt;/h3&gt;  &lt;p&gt; Start by downloading the &lt;i&gt;tar.gz&lt;/i&gt; version of Firestarter. Unpack the tarball and move into the newly created directory: &lt;/p&gt;  &lt;div class="screen"&gt;  [bash]$ &lt;b&gt;tar -zxvf firestarter*tar.gz&lt;/b&gt;&lt;br /&gt;...&lt;br /&gt;[bash]$ &lt;b&gt;cd firestarter&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;  &lt;p&gt; Run the &lt;i&gt;configure&lt;/i&gt; script. There is no need to give any parameters to the script, but we recommend you at least specify the &lt;i&gt;sysconfdir&lt;/i&gt; variable, which determines the directory the firewall configuration will be written to. For a full list of options, see &lt;i&gt;./configure --help&lt;/i&gt;. &lt;/p&gt;  &lt;div class="screen"&gt;  [bash]$ &lt;b&gt;./configure --sysconfdir=/etc&lt;/b&gt;&lt;br /&gt;checking for a BSD compatible install... /usr/bin/install -c&lt;br /&gt;... &lt;/div&gt;  &lt;p&gt; By default Firestarter will be installed into the /usr/local tree when compiling from source, you can override this by setting the &lt;i&gt;prefix&lt;/i&gt; option. &lt;/p&gt;  &lt;p&gt; If the configure stage completed without problem you should now be able to compile and install the program: &lt;/p&gt;  &lt;div class="screen"&gt;  [bash]$ &lt;b&gt;make&lt;/b&gt;&lt;br /&gt;...&lt;br /&gt;[bash]$ &lt;b&gt;su&lt;/b&gt;&lt;br /&gt;Password: [&lt;i&gt;Type your root password and hit enter&lt;/i&gt;]&lt;br /&gt;[bash]$ &lt;b&gt;make install&lt;/b&gt;&lt;br /&gt;...&lt;br /&gt;&lt;/div&gt;  &lt;p&gt; The &lt;i&gt;make install&lt;/i&gt; stage is optional. You can also run Firestarter directly from the src subdirectory of the build tree if you want. In that case you must however first issue &lt;i&gt;"make install-data-local"&lt;/i&gt; in the build directory. This will install the GConf configuration schema, Firestarter will not run without it. &lt;/p&gt;  &lt;h3 id="initscript"&gt;Installing a Firestarter init script&lt;/h3&gt; &lt;p&gt; When you install Firestarter from a package the program is automatically registered to run as a system service. This means the firewall is also running even if the graphical program is not. If you compile Firestarter from source and want this same functionality, you will have to install a system init script for your distribution. &lt;/p&gt;  &lt;p&gt; In the firestarter tarball you will find &lt;i&gt;&lt;distribution-name&gt;.init&lt;/distribution-name&gt;&lt;/i&gt; files. These are service startup scripts tailored to specific distributions, although you can likely use one even if it doesn't exactly match your distribution with a bit of editing.  &lt;/p&gt;  &lt;p&gt;To install the service, copy the init file to &lt;i&gt;/etc/init.d/&lt;/i&gt; and rename it to &lt;i&gt;firestarter.init&lt;/i&gt;. After this you must tell the system to use the new script, exactly how this is done varies between distributions. If your distribution has the &lt;i&gt;chkconfig&lt;/i&gt; tool available, simply run &lt;i&gt;"chkconfig firestarter reset"&lt;/i&gt; and the service will be registered. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3&gt;Starting Firestarter&lt;/h3&gt;      &lt;p&gt;After downloading and installing Firestarter, you will find   the Firestarter icon in your desktop's programs menu. For example, in Fedora Core the Firestarter icon is   located in the &lt;em&gt;System tools&lt;/em&gt; menu. Alternatively you can run the program by simply   executing "firestarter" from either a command line or from the &lt;em&gt;Run Application...&lt;/em&gt; dialog   (accessed by pressing Alt-F2).   &lt;/p&gt;    &lt;img src="http://www.fs-security.com/docs/pics/password-small.jpg" style="padding: 5px;" alt="Password prompt" align="right" /&gt;    &lt;p&gt;    Unless you are already logged in as root, you will be prompted for your root user password   when starting Firestarter as a regular user.   &lt;/p&gt;    &lt;h3 style="clear: both;"&gt;Running Firestarter for the first time&lt;/h3&gt;      &lt;p&gt;   Since you are running Firestarter for the first time, a wizard is launched. Following the   welcome screen, you will be asked to select your network device from a list of detected   choices for your machine. In case you have multiple devices, select the one that provides   your Internet connection, otherwise you can use the default supplied.   &lt;/p&gt;      &lt;p&gt;In case your machine has multiple devices and can act as a gateway for your network, you   will next have the option of sharing your Internet connection among all the computers on   your local network. Again, simply select the local network connected device from the list of   detected devices. If you wish for the clients to acquire their network settings automatically,   simply check the option to &lt;em&gt;Enable DHCP for local network&lt;/em&gt;.    &lt;/p&gt;      &lt;p&gt;Having completed the wizard, click the save button on page final page. The firewall is now   ready and running, and your machine has an added layer of security. Firestarter now works in its   default mode, which is a restrictive policy for incoming traffic and a permissive stance towards   outgoing connections. This means you are fully protected against connection attempts from the outside,   but are still able to browse the web, read your email, etc. as normal. There is no need to further   configure Firestarter if you are satisfied with these defaults.   &lt;/p&gt;    &lt;p&gt;&lt;br /&gt;&lt;/p&gt;      &lt;h3&gt;Trying out the Firestarter interface&lt;/h3&gt;    &lt;img src="http://www.fs-security.com/docs/pics/main1-small.jpg" style="padding: 5px;" alt="The main Firestarter application" align="right" /&gt;    &lt;p&gt;Let's take a quick look at some of the features of the program itself. The application   is divided into three pages, accessed through a tabbed notebook interface. These pages are   &lt;em&gt;Status&lt;/em&gt;, giving you an fast overview of state the firewall, &lt;em&gt;Events&lt;/em&gt;, where   blocked intrusion attempts and the firewall history is shown, and &lt;em&gt;Policy&lt;/em&gt;, where you   alter the behavior of the firewall by creating security policy.   &lt;/p&gt;    &lt;p&gt;From the Status page where you start out you can further access the prefernces  where you can change your network settings, as well as enable advanced options such   as ICMP or ToS filtering. For now, let's take a look at the Events page.   &lt;/p&gt;    &lt;h3&gt;Reacting to events&lt;/h3&gt;      &lt;p&gt;On the events page you will see all connections that the firewall has terminated since you   started the program. By pressing the reload button you can also import all the previous events   as recorded in the system log. This is really the core of the Firestarter program. Firestarter   starts out in a restrictive mode, providing complete protection against incoming intrusions.   That means that if you are running a legitimate service on your machine, for example a web server   or SSH, connections to these services will also be stopped and recorded here at first.   &lt;/p&gt;      &lt;p&gt;Traditional firewalls will have you scrambling for the settings and configuration files at   this point. However, when you see a connection attempt that you want to authorize, you simply   right-click the entry in Firestarter and select "Allow inbound service for everyone". If you   want to give access to the machine that is attempting the connection, but without even letting   anyone else know that you're running the service in question, select "Allow inbound service   for source". This is known as &lt;em&gt;stealthing&lt;/em&gt; and can be a very powerful tool.   &lt;/p&gt;    &lt;h3&gt;Creating policy&lt;/h3&gt;   &lt;p&gt;The previous example of enabling the service could also have been accomplished from the   Policy page. However, it is not just a gimmick, in reality you will want to create policy   from events often for maximum security. By opening services to select machines only after   the connection attempt, as shown above, you effectively minimize your exposure on the net.   It's also very convenient.   &lt;/p&gt;      &lt;p&gt;Let's take a look at a legitimate reason to resort to the Policy page. Say Firestarter   is running on your gateway, doing Internet connection sharing for your local network.   On your local network you have a desktop, on which you wish to use the BitTorrent application.   In the BitTorrent manual it tells you to "forward ports 6881-6889 from your firewall". With   Firestarter this kind of setup is a piece of cake. Select the Policy page, right click on   the list marked &lt;em&gt;Forward service&lt;/em&gt; and select &lt;i&gt;Add rule&lt;/i&gt;. You will be presented   with a dialog for creating a new policy rule. Select BitTorrent from the service drop-down,   fill in the IP of the client and you're done. Click the &lt;i&gt;Apply Policy&lt;/i&gt; button to   apply the changes.   &lt;/p&gt;       &lt;h3&gt;Quitting the program&lt;/h3&gt;   &lt;p&gt;   A frequently asked is question is, what happens when you quit the program.   The answer is that the firewall will keep functioning. If you   are running Firestarter as a system service, which is automatically set up for you   when installing Firestarter from a binary package, the firewall is in many cases   even running before you start the program.   &lt;/p&gt;&lt;h2&gt;Internet connection sharing&lt;/h2&gt;  &lt;p&gt; Firestarter has the ability to share the firewall host's Internet connection among all the computers on your local network. This is done through a technique called Network Address Translation, or NAT. To the outside world the cluster of machines will look like a single machine with a single IP address. &lt;/p&gt;  &lt;p&gt; For connection sharing to work you need to have two or more network devices in your firewall. If the local network is set up correctly, enabling connection sharing is as easy as enabling the option in either the firewall wizard or the Firestarter prefernces. &lt;/p&gt;   &lt;h3&gt;The physical setup and network device settings&lt;/h3&gt;  &lt;div class="manualpic" style="float: right;"&gt;   &lt;img src="http://www.fs-security.com/docs/pics/complexnat.png" alt="A complex NAT setup" /&gt;&lt;br /&gt;&lt;span class="caption"&gt;Sharing a connection with a local network&lt;/span&gt; &lt;/div&gt;  &lt;p&gt; The procedure for setting up a network using connection sharing is essentially the same whether you have only two computers or a more complex network with hubs or switches connecting multiple computers. For this example we will be assuming that the Internet connected device  on the firewall is an Ethernet card, but a modem or ISDN will work too. &lt;/p&gt;   &lt;p&gt; The Firewall/gateway machine connected to the Internet will need two network cards and the clients need one each.&lt;/p&gt;  &lt;p&gt; The first network card in the firewall, the external interface, will be the one physically connected to the Internet. This card is usually automatically configured with DHCP. The second network card in the firewall, the internal interface, will be connected to the client machines via either a &lt;i&gt;crossover cable&lt;/i&gt; if the connection goes directly to another computer, or regular cable if you have a hub or switch. &lt;/p&gt;   &lt;div class="manualpic" style="float: right;"&gt;   &lt;img src="http://www.fs-security.com/docs/pics/simplenat.png" alt="A simple NAT setup" /&gt;&lt;br /&gt;&lt;span class="caption"&gt;Sharing a connection with a single computer&lt;/span&gt; &lt;/div&gt;   &lt;p&gt;The internal interface of the firewall needs to be statically configured. There are many ways to configure a network interface depending on the distribution you use. Fedora and Red Hat Linux ship with a simple command line tool called &lt;i&gt;netconfig&lt;/i&gt; and a more sophisticated graphical tool called &lt;i&gt;system-config-network&lt;/i&gt;. &lt;i&gt;system-config-network&lt;/i&gt; works better with multiple network cards in the same machine, so we recommend you try it. Other distributions include their own configuration tools, for example in SuSE you would use the Yast program. &lt;/p&gt;  &lt;p&gt; No matter how you decide to configure the network cards, these are settings you should enter: &lt;/p&gt;  For the external device (usually eth0): &lt;ul&gt;&lt;li&gt;Enable dynamic IP configuration (DHCP)&lt;/li&gt;&lt;li&gt;That's it. You're done, don't touch this card further.&lt;/li&gt;&lt;/ul&gt;  The internal device (usually eth1): &lt;ul&gt;&lt;li&gt;Disable dynamic IP configuration&lt;/li&gt;&lt;li&gt;IP address: 192.168.0.1&lt;/li&gt;&lt;li&gt;Netmask: 255.255.255.0&lt;/li&gt;&lt;li&gt;Default gateway (IP): &lt;leave&gt;&lt;/leave&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p&gt; Any changes you make will take effect after a reboot, or more elegantly after a restart of the network services (run "&lt;i&gt;/etc/init.d/network restart&lt;/i&gt;" as root in most distributions). &lt;/p&gt;  &lt;h3&gt;Configuring the clients&lt;/h3&gt;  &lt;p&gt;There are two ways to configure the clients. The more elegant and in the long run easier way is to run a DHCP service on the firewall. A DHCP server distributes the network settings such the IP address, the default gateway, nameservers, etc. at run time to the each client. The alternative to using a DHCP server is to configure every client manually. &lt;/p&gt;  &lt;p&gt;Using the DHCP service is as easy as simply enabling it in Firestarter. For more information about the service and how to configure it, refer to the section on configuring the DHCP server.  &lt;/p&gt;  &lt;p&gt;When using DHCP, the clients need only be configured to use dynamic IP configuration. No other settings need to be changed. &lt;/p&gt;  &lt;h4&gt;Configuring the clients manually&lt;/h4&gt;  &lt;p&gt; If you do not wish to use the DHCP service, configure the network devices of the clients to use the following settings: &lt;/p&gt; &lt;ul&gt;&lt;li&gt;Disable dynamic IP configuration&lt;/li&gt;&lt;li&gt;IP address: 192.168.0.2 to 192.168.0.254, with each client using an unique IP&lt;/li&gt;&lt;li&gt;Netmask: 255.255.255.0&lt;/li&gt;&lt;li&gt;Default gateway (IP): 192.168.0.1&lt;/li&gt;&lt;li&gt;Primary nameserver: Set this to the same nameserver as used on the firewall. You can see the correct setting in the &lt;i&gt;/etc/resolv.conf&lt;/i&gt; file on the firewall.&lt;/li&gt;&lt;/ul&gt;  &lt;p&gt; Restart the network service and you're done. &lt;/p&gt;  &lt;h3&gt;Testing the Setup&lt;/h3&gt;  &lt;p&gt; The computers should now be connected and the hardware level configuration complete. To test that everything is ok, try pinging the gateway from the client and vice versa. &lt;/p&gt;  &lt;p&gt; Enter the following at the firewall machine console, to test that the gateway can reach the client: &lt;/p&gt;  &lt;div class="screen"&gt;  [bash]$ &lt;b&gt;ping 192.168.0.2&lt;/b&gt;&lt;br /&gt;PING 192.168.0.2 (192.168.0.2) from 192.168.0.1 : 56(84) bytes of data.&lt;br /&gt;64 bytes from 192.168.0.2: icmp_seq=1 ttl=255 time=1.37 ms&lt;br /&gt;64 bytes from 192.168.0.2: icmp_seq=2 ttl=255 time=0.635 ms&lt;br /&gt;64 bytes from 192.168.0.2: icmp_seq=3 ttl=255 time=0.638 ms&lt;br /&gt;&lt;br /&gt;--- 192.168.0.2 ping statistics ---&lt;br /&gt;3 packets transmitted, 3 received, 0% loss, time 2010ms&lt;br /&gt;rtt min/avg/max/mdev = 0.635/0.882/1.375/0.349 ms&lt;br /&gt;[bash]$&lt;br /&gt;&lt;/div&gt;  &lt;p&gt;In case of DHCP, the IP's might be randomly assigned &lt;/p&gt;  &lt;p&gt; If it is not working you know that the problem lies with the hardware  or network configuration. It is common to get the default gateway setting wrong, so double check it. &lt;/p&gt;  At this point: &lt;ul&gt;&lt;li&gt;The firewall machine should be able to reach the Internet&lt;/li&gt;&lt;li&gt;The clients and firewall should be able to ping each other&lt;/li&gt;&lt;li&gt;The clients should be able to reach the Internet if the Internet connection sharing option is enabled in Firestarter.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-8288019157454850478?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=8288019157454850478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8288019157454850478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/8288019157454850478'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2008/12/firewall-and-internet-saring.html' title='Firewall and Internet sharing - Firestarter'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-1026253430478732424</id><published>2008-11-13T23:28:00.000-08:00</published><updated>2009-03-17T04:01:28.181-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='active directory in linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap setup'/><title type='text'>LDAP complete Setup</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H2 { margin-bottom: 0.21cm } 		H2.western { font-family: "Nimbus Roman No9 L", "Times New Roman", serif } 		H2.cjk { font-family: "DejaVu Sans" } 		H2.ctl { font-family: "DejaVu Sans" } 		TD P { margin-bottom: 0cm } 		TH P { margin-bottom: 0cm } 		H3 { margin-bottom: 0.21cm } 		H3.western { font-family: "Nimbus Roman No9 L", "Times New Roman", serif } 		H3.cjk { font-family: "DejaVu Sans" } 		H3.ctl { font-family: "DejaVu Sans" } 	--&gt; 	&lt;/style&gt;   &lt;div style="font-family: georgia;" id="Section1" dir="ltr"&gt; 	&lt;p&gt;&lt;span style="font-size:100%;"&gt;Ubuntu 8.04 Small Business Server (version 2.0)&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div style="font-family: georgia;" id="Section2" dir="ltr"&gt; 	&lt;p&gt;&lt;span style="font-size:100%;"&gt;This is version 2.0 of my original guide. I am including the 	original guide with additional notes and modifications. Version 2.0 	of the guide also incorporates the addition of Windows shares, 	Windows login scripts, and NFS mounts. I will go into detail for 	configuring a Windows XP Professional SP2 client computer and an 	Ubuntu client computer. RAID1 will be used to ensure data integrity 	for our user home directories and for our LDAP database. Please note 	that this is an optional modification to the guide.&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;p style="margin-bottom: 0cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="articletop"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 128); font-family: georgia;font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://www.rrcomputerconsulting.com/view.php?article_id=3#articletop"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;This is version 2.0 of my original guide. I am including the original guide with additional notes and modifications. Version 2.0 of the guide also incorporates the addition of Windows shares, Windows login scripts, and NFS mounts. I will go into detail for configuring a Windows XP Professional SP2 client computer and an Ubuntu client computer. RAID1 will be used to ensure data integrity for our user home directories and for our LDAP database. Please note that this is an optional modification to the guide.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Much of the work on this guide has been done for my own amusement and proof of concept, as I am a computer consultant that continually looks for the best way to serve my customers. As such the guide will need to be customized for your exact scenario. Also note that because I put this guide on the internet it means I believe in it and that I know it works. If you go through my guide and copy/paste every command then this WILL work without issue. If you make a change you must ensure that you follow the change throughout the guide.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Please note, and this is very important, this guide only applies to the SAMBA3 branch. SAMBA4 is in development and will supposedly make most of this guide obsolete. When that happens count on a new guide based on the new technology found in SAMBA4.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="3"&gt;&lt;/a&gt;Goals&lt;/span&gt;&lt;/h2&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="color: rgb(0, 0, 128);font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://www.rrcomputerconsulting.com/view.php?article_id=3#articletop"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;The overall goal is to have a server computer with the role of "domain controller." My definition of domain controller is a server computer with a central user database that client computers can authenticate against. This guide will accomplish the following goals:&lt;/span&gt;&lt;/p&gt; &lt;ol style="font-family: georgia;"&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Central user authentication using 	an LDAP database  	&lt;/span&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Central storage of users home 	directories using a combination of NFS and SAMBA  	&lt;/span&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;The creation of a SAMBA domain 	that Windows XP Professional SP2 computers can "join" and 	participate in  	&lt;/span&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;A DNS server that can be used on 	your network  	&lt;/span&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Data integrity from the use of RAID1 arrays for user and LDAP 	data  	&lt;/span&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="color: rgb(0, 0, 128);font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://www.rrcomputerconsulting.com/view.php?article_id=3#articletop"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;  &lt;h3 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;Configure A Fully Qualified Domain Name  &lt;/span&gt;&lt;/h3&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;We need to change our hostname to be a fully qualified domain name (FQDN). The safe way to do this is to add it to the /etc/hosts file and then edit the /etc/hostname file to reflect the change. Your FQDN if you follow this guide exactly will be &lt;strong&gt;dc01-ubuntu.example.local&lt;/strong&gt;. &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Once again I will post the command and my resulting file for your reference.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/hosts&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt; &lt;span style="font-size:100%;"&gt;&lt;code&gt;/etc/hosts&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;127.0.0.1       localhost 127.0.1.1       dc01-ubuntu dc01-ubuntu.example.local  # The following lines are desirable for IPv6 capable hosts ::1     ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts vim /etc/hostname&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt; &lt;span style="font-size:100%;"&gt;&lt;code&gt;/etc/hostname&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;dc01-ubuntu.example.local&lt;/span&gt;&lt;/pre&gt;&lt;h3 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt; Configure External Time Sync&lt;/span&gt;&lt;/h3&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;This step can be optional if you prefer. I feel as though this should be required, however. In a network with a client/server model you want every device to have the exact same time. Otherwise concurrent file access and other items could run into unexpected problems. From a security stand point you want to make sure that all devices have the same time to track file changes in the case of an intruder. As I said, this is optional but I highly recommend it.  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;First install the NTP service. This is a small install and is very easy to configure.  &lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install ntp&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now we need to edit the file &lt;code&gt;/etc/ntp.conf&lt;/code&gt; and add an additional line to the file. Add "&lt;code&gt;server pool.ntp.org&lt;/code&gt;" below "&lt;code&gt;server ntp.ubuntu.com&lt;/code&gt;". Here is the command:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/ntp.conf&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Here is a copy of my file after making the change.  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;/etc/ntp.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;# /etc/ntp.conf, configuration for ntpd  driftfile /var/lib/ntp/ntp.drift  # Enable this if you want statistics to be logged. #statsdir /var/log/ntpstats/  statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable   # You do need to talk to an NTP server or two (or three). server ntp.ubuntu.com server pool.ntp.org  # By default, exchange time with everybody, but don't allow configuration. # See /usr/share/doc/ntp-doc/html/accopt.html for details. restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery  # Local users may interrogate the ntp server more closely. restrict 127.0.0.1 restrict ::1  # Clients from this (example!) subnet have unlimited access, # but only if cryptographically authenticated #restrict 192.168.123.0  mask  255.255.255.0 notrust  # If you want to provide time to your local subnet, change the next line. # (Again, the address is an example only.) #broadcast 192.168.123.255  # If you want to listen to time broadcasts on your local subnet, # de-comment the next lines. Please do this only if you trust everybody # on the network! #disable auth #broadcastclient&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now we will reboot the server to ensure that everything is working properly.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;shutdown -r now&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; OR&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt; &lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="8"&gt;&lt;/a&gt;Step 3: Configure LDAP Data Directory and LDAP User Home Directories  &lt;/span&gt;&lt;/h2&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="color: rgb(0, 0, 128);font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://www.rrcomputerconsulting.com/view.php?article_id=3#articletop"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;We will be making two directories. However, pay attention here, because this is important. The /ldaphome directory MUST be created, do not skip that. The /ldap_data directory is optional depending on how you wish to install and configure OpenLDAP. In that section I show you two different ways for configuring OpenLDAP. If you will be leaving OpenLDAP in the default directory then you do not need to create the /ldap_data directory.  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Run the following commands to create the directories:  &lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;mkdir /ldaphome mkdir /ldap_data&lt;/span&gt;&lt;/pre&gt; &lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="9"&gt;&lt;/a&gt;Step 4: Configure RAID1 (Mirroring)  &lt;/span&gt;&lt;/h2&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="color: rgb(0, 0, 128);font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://www.rrcomputerconsulting.com/view.php?article_id=3#articletop"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;This is an optional step.&lt;/strong&gt; I'm including these notes for those of you who have the hard drives and would like the data integrity and security. Basically we are going to use a program called CFDISK to partition and configure our hard drives. We will then use the program MDADM to setup each of our RAID arrays. We will then configure the MDADM configuration file so that our arrays are recognized automatically in the future. Then we will format each array and mount each array in their designated directories. The final step will be to configure our &lt;code&gt;/etc/fstab&lt;/code&gt; configuration file to automatically mount our arrays at bootup. Once again, this is optional. If you are not using RAID then you can safely ignore this step.  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Install the MDADM software package.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install mdadm&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Next we need to use CFDISK to partition and configure our hard drives. Basically each hard drive needs a partition. Make it a primary partition. You will be using type "fd" for Linux raid. Please be sure to put the correct /dev/xxx in the command. I recommend writing out what you'll be doing and going off that sheet so it is less confusing.  &lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;cfdisk /dev/sdb cfdisk /dev/sdc cfdisk /dev/sdd cfdisk /dev/sde &lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now we can create the first array.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; OK - that command is definitely confusing. Here is what it all means. We are invoking the program and telling it to create a new RAID device. The program is going to give us as much information as possible. The device it is going to create is &lt;code&gt;/dev/md0&lt;/code&gt;. RAID1 will be used for the device. Only two devices are going to be participating in the array. Those two devices are &lt;code&gt;/dev/sdb1&lt;/code&gt; and &lt;code&gt;/dev/sdc1&lt;/code&gt;.  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Next format the array with the ext3 filesystem. Naturally you can use whatever filesystem you want, but this is what I am familiar with.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;mkfs.ext3 /dev/md0&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now we can create the second array.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sdd1 /dev/sde1&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Next format the array with the ext3 filesystem. Naturally you can use whatever filesystem you want, but this is what I am familiar with.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;mkfs.ext3 /dev/md1&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Great! Now we have our two arrays. The next thing we need to do is define these two arrays in our &lt;code&gt;/etc/mdadm.conf&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/mdadm.conf &lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt; &lt;span style="font-size:100%;"&gt;&lt;code&gt;/etc/mdadm.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;DEVICE        /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 ARRAY        /dev/md0 devices=/dev/sdb1,/dev/sdc1 ARRAY        /dev/md1 devices=/dev/sdd1,/dev/sde1&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Alright, go ahead and try mounting the RAID arrays to their respective folders. In my case /dev/md0 will be mounted at /ldap_data and /dev/md1 will be mounted at /ldaphome.&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;mount /dev/md0 /ldap_data mount /dev/md1 /ldaphome&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Does it work? If not then you have your work cut out for you. If yes then continue.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Let's add the mounting information to the &lt;code&gt;/etc/fstab&lt;/code&gt; file. We will be adding the following lines:&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;# Custom RAID entries&lt;br /&gt;/dev/md0 /ldap_data ext3 defaults,errors=remount-ro 0 1&lt;br /&gt;/dev/md1 /ldaphome ext3 defaults,errors=remount-ro 0 1&lt;/code&gt;&lt;/span&gt;  &lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/fstab &lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt; &lt;span style="font-size:100%;"&gt;&lt;code&gt;/etc/fstab&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;# /etc/fstab: static file system information. # #                 proc            /proc           proc    defaults        0       0 # /dev/sda1 UUID=09afe0b0-d7df-4322-bd07-fa0854041a6f /               ext3    defaults,errors=remount-ro 0       1 # /dev/sda5 UUID=d557816b-8149-46ea-b6fb-dd674231e597 none            swap    sw              0       0 /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0 /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec 0       0   # Custom RAID entries /dev/md0 /ldap_data ext3 defaults,errors=remount-ro 0 1 /dev/md1 /ldaphome ext3 defaults,errors=remount-ro 0 1&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now reboot the server and ensure that everything mounts correctly!&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt; &lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="10"&gt;&lt;/a&gt;Step 5: Install Postfix Mail Agent&lt;/span&gt;&lt;/h2&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="color: rgb(0, 0, 128);font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://www.rrcomputerconsulting.com/view.php?article_id=3#articletop"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;We will be installing Postfix for several reasons. One, the system needs a mailserver in order to email reports about the RAID arrays and other items of interest. Two, you might wish to use a mail server for other tasks. Three, it just makes things easier. Four, the reason I chose to install Postfix is because it is the only mail server that I am familiar with. Like something else? Good for you, use it.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;I guess that the first thing to do would be to actually install it:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install postfix mailx&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; During the installation it will ask you some questions. Answer as follows:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Internet site dc01-ubuntu.example.local  &lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Naturally you will want to customize those answers to tailor to your environment, but if you are following this guide exactly then the answers I provide should be sufficient.  &lt;/span&gt;&lt;/p&gt;  &lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="11"&gt;&lt;/a&gt;Step 6: Install OpenLDAP  &lt;/span&gt;&lt;/h2&gt;  &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;You might notice that this step is very similar to Step 2 in the original guide. What I've done in version 2.0 is change the order slightly and move some steps into their own sections to simplify the entire guide. My hope is that this will be easier to follow and use.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;OK, well we need to install OpenLDAP at this point. We're using OpenLDAP as opposed to other LDAP servers for one reason and one only: This is the only program that I found &lt;em&gt;good&lt;/em&gt; documentation for in regards to SAMBA and other services. I'm fairly certain that you can use Novell and other LDAP servers in place of OpenLDAP. Please be advised that those are beyond my comprehension at this time and I'd rather stick to the standard - OpenLDAP in this case.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;There are two ways to configure OpenLDAP. In one configuration we will have OpenLDAP store its data in a different directory than default. I do this so that the directory can be on its own hard drive for backup purposes. Others may wish to "leave it as it is." That is fine. This guide will work either way. Therefore I have two sub-sections here. The first section describes how to install and configure OpenLDAP with the default directory. The second section shows you how to customize it.  &lt;/span&gt;&lt;/p&gt; &lt;h3 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;OpenLDAP with the Default Directory  &lt;/span&gt;&lt;/h3&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Install OpenLDAP:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install slapd ldap-utils migrationtools&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; This installs more than just OpenLDAP - it installs other utilities that can be of assistance to you.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;During the installation you will be prompted to supply an Admin password and then to confirm it:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Admin password: 12345 Confirm password: 12345&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now we need to reconfigure OpenLDAP and customize it to our needs.  &lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;dpkg-reconfigure slapd&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Naturally this will also prompt your for some information. Here are the answers that I am using. Please note that when you deviate here you must also follow suit everywhere else! If you change the domain name then change it everywhere else!&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;No DNS domain name: example.local Name of your organization: example.local Admin password: 12345 Confirm password: 12345 OK BDB No Yes No&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; And now you have OpenLDAP installed!&lt;/span&gt;&lt;/p&gt; &lt;h3 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;OpenLDAP with a Customized Directory  &lt;/span&gt;&lt;/h3&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Install OpenLDAP:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install slapd ldap-utils migrationtools&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; This installs more than just OpenLDAP - it installs other utilities that can be of assistance to you.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;During the installation you will be prompted to answer some questions. Here are the answers that I am using:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Admin password: 12345 Confirm password: 12345&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Reconfigure OpenLDAP:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;dpkg-reconfigure slapd&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Answers:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;No DNS domain name: example.local Name of your organization: example.local Admin password: 12345 Confirm password: 12345 OK BDB Yes Yes No&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Stop OpenLDAP:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;/etc/init.d/slapd stop&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Edit the file /etc/ldap/slapd.conf and change the directory. In the file find the first "&lt;code&gt;directory "/var/lib/ldap&lt;/code&gt;" and change it to "&lt;code&gt;directory "/ldap_data&lt;/code&gt;"  &lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/ldap/slapd.conf&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Copy all the current DB files into our new directory:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;cp -R /var/lib/ldap/* /ldap_data/&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Set the correct permissions on the new directory and files:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;chown -R openldap:openldap /ldap_data/&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Yes, we need to reconfigure OpenLDAP yet again.  &lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;dpkg-reconfigure slapd&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Answers:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;No DNS domain name: example.local Name of your organization: example.local Admin password: 12345 Confirm password: 12345 OK BDB Yes Yes No&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now start OpenLDAP:  &lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;/etc/init.d/slapd start&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Here is a copy of my &lt;code&gt;/etc/ldap/slapd.conf&lt;/code&gt; file after this initial change:  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;/etc/ldap/slapd.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;# This is the main slapd configuration file. See slapd.conf(5) for more # info on the configuration options.  ####################################################################### # Global Directives:  # Features to permit #allow bind_v2  # Schema and objectClass definitions include         /etc/ldap/schema/core.schema include         /etc/ldap/schema/cosine.schema include         /etc/ldap/schema/nis.schema include         /etc/ldap/schema/inetorgperson.schema  # Where the pid file is put. The init.d script # will not stop the server if you change this. pidfile         /var/run/slapd/slapd.pid  # List of arguments that were passed to the server argsfile        /var/run/slapd/slapd.args  # Read slapd.conf(5) for possible values loglevel        0  # Where the dynamically loaded modules are stored modulepath      /usr/lib/ldap moduleload      back_bdb  # The maximum number of entries that is returned for a search operation sizelimit 500  # The tool-threads parameter sets the actual amount of cpu's that is used # for indexing. tool-threads 1  ####################################################################### # Specific Backend Directives for bdb: # Backend specific directives apply to this backend until another # 'backend' directive occurs backend         bdb checkpoint 512 30  ####################################################################### # Specific Backend Directives for 'other': # Backend specific directives apply to this backend until another # 'backend' directive occurs #backend                  ####################################################################### # Specific Directives for database #1, of type bdb: # Database specific directives apply to this databasse until another # 'database' directive occurs database        bdb  # The base of your directory in database #1 suffix          "dc=nodomain"  # rootdn directive for specifying a superuser on the database. This is needed # for syncrepl. # rootdn          "cn=admin,dc=nodomain"  # Where the database file are physically stored for database #1 #directory       "/var/lib/ldap" directory    "/ldap_data"  # For the Debian package we use 2MB as default but be sure to update this # value if you have plenty of RAM dbconfig set_cachesize 0 2097152 0  # Sven Hartge reported that he had to set this value incredibly high # to get slapd running at all. See http://bugs.debian.org/303057 # for more information.  # Number of objects that can be locked at the same time. dbconfig set_lk_max_objects 1500 # Number of locks (both requested and granted) dbconfig set_lk_max_locks 1500 # Number of lockers dbconfig set_lk_max_lockers 1500  # Indexing options for database #1 index           objectClass eq  # Save the time that the entry gets modified, for database #1 lastmod         on  # Where to store the replica logs for database #1 # replogfile    /var/lib/ldap/replog  # The userPassword by default can be changed # by the entry owning it if they are authenticated. # Others should not be able to see it, except the # admin entry below # These access lines apply to database #1 only access to attrs=userPassword,shadowLastChange         by dn="cn=admin,dc=nodomain" write         by anonymous auth         by self write         by * none  # Ensure read access to the base for things like # supportedSASLMechanisms.  Without this you may # have problems with SASL not knowing what # mechanisms are available and the like. # Note that this is covered by the 'access to *' # ACL below too but if you change that as people # are wont to do you'll still need this if you # want SASL (and possible other things) to work # happily. access to dn.base="" by * read  # The admin dn has full write access, everyone else # can read everything. access to *         by dn="cn=admin,dc=nodomain" write         by * read  # For Netscape Roaming support, each user gets a roaming # profile for which they have write access to #access to dn=".*,ou=Roaming,o=morsnet" #        by dn="cn=admin,dc=nodomain" write #        by dnattr=owner write  ####################################################################### # Specific Directives for database #2, of type 'other' (can be bdb too): # Database specific directives apply to this databasse until another # 'database' directive occurs #database          # The base of your directory for database #2 #suffix         "dc=debian,dc=org"&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; I'm a firm believer in fully testing everything. Therefore I recommend rebooting. If you don't wish to perform a full reboot then go ahead and just restart OpenLDAP.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; OR:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;/etc/init.d/slapd restart &lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now OpenLDAP is installed and it should be functional. You can verify that it is running by scanning your server with a portscanner, like NMAP.  &lt;/span&gt;&lt;/p&gt;  &lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="12"&gt;&lt;/a&gt;Step 7: Install SAMBA  &lt;/span&gt;&lt;/h2&gt;  &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;We want to install SAMBA because we wish to have a domain the Windows clients can participate in. We also want to share files, etc... SAMBA is a good program for this. One thing to look forward to is the fact that SAMBA now has access to Microsoft documents that detail the SMB protocol. What does this mean? Well it hopefully means that in the future SAMBA and Windows will be able to interoperate without issues.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;It has been pointed out that this step could be optional in some situations. For example, if you are running a Linux only network then yes, this part could be optional. And so will several other parts. Also, if you wish to seperate your services and run SAMBA on a different server. Therefore look at these directions as a guide in those situations and for the second server example you should be able to follow most of the same steps without issue and have it work, providing DNS works that is.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;For the majority of people following this guide then this is a required step. Please don't deviate unless you know what you are doing.  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Install the required software:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install samba smbldap-tools smbclient samba-doc&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; There should be no prompts for answers or any additional configuration.&lt;/span&gt;&lt;/p&gt;  &lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="13"&gt;&lt;/a&gt;Step 8: Configure OpenLDAP for use with SAMBA  &lt;/span&gt;&lt;/h2&gt;  &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;By default OpenLDAP is not configured to work with SAMBA. We need to tell OpenLDAP that SAMBA is there and how to talk to it. We do this by installing a schema file for OpenLDAP that describes SAMBA.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Run the following commands to install the file in the correct location:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;cp /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz /etc/ldap/schema/ gzip -d /etc/ldap/schema/samba.schema.gz&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now we need to edit the OpenLDAP configuration file, again. I wish this step could have been earlier but if we did that then OpenLDAP complains about missing items.&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/ldap/slapd.conf&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Find the lines that begin with "include" - you'll notice that this is how OpenLDAP knows about other configuration files. Now add the following two lines below the other "include" lines:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;include         /etc/ldap/schema/samba.schema include         /etc/ldap/schema/misc.schema&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; While in the file we need to change another line. Find the line that says "access to attribute=userPassword,shadowLastChange" and change it to:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;access to attrs=userPassword,shadowLastChange,sambaNTPassword,sambaLMPassword&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now we can either reboot the server or just restart the service:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; OR:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;/etc/init.d/slapd restart &lt;/span&gt;&lt;/pre&gt; &lt;h2 style="font-family: georgia;" class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="14"&gt;&lt;/a&gt;Step 9: Configure SAMBA  &lt;/span&gt;&lt;/h2&gt;  &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;This step can become complicated so be sure to read through it and figure out what you want to do. The only file that we will be editing is the file &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt;. We will make a backup of this file before we begin, so in case of a screw up you can just restore the backup. In this file we will configure the domain name, how LDAP works, etc... Please be sure to verify every aspect of the file otherwise you will run into problems.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;First enter the SAMBA directory:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;cd /etc/samba/&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now backup the smb.conf file:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;cp smb.conf smb.conf.original&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Open the smb.conf file for editing:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;vim smb.conf&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; OK - this next part is not exactly copy and paste. First and foremost, find the following items and change them to what I have:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;workgroup = EXAMPLE security = user passdb backend = ldapsam:ldap://localhost/ obey pam restrictions = no&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Now copy and paste the following lines just below the line "&lt;code&gt;obey pam restrictions = no&lt;/code&gt;":  &lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;####################################################################### #COPY AND PASTE THE FOLLOWING UNDERNEATH "OBEY PAM RESTRICTIONS = NO" ####################################################################### # #       Begin: Custom LDAP Entries # ldap admin dn = cn=admin,dc=example,dc=local ldap suffix = dc=example, dc=local ldap group suffix = ou=Groups ldap user suffix = ou=Users ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ; Do ldap passwd sync ldap passwd sync = Yes passwd program = /usr/sbin/smbldap-passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* add user script = /usr/sbin/smbldap-useradd -m "%u" ldap delete dn = Yes delete user script = /usr/sbin/smbldap-userdel "%u" add machine script = /usr/sbin/smbldap-useradd -w "%u" add group script = /usr/sbin/smbldap-groupadd -p "%g" delete group script = /usr/sbin/smbldap-groupdel "%g" add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g" delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g" set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u" domain logons = yes # #       End: Custom LDAP Entries # ##################################################### #STOP COPYING HERE!  #####################################################&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Obviously in the previous two smb.conf configuration steps you'll want to change the information to suit your needs. Please remember this!&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Now comment out the following line. This is a very important step! Fail to do this and you WILL NOT BE ABLE TO JOIN A WINDOWS CLIENT TO THE DOMAIN!!!  &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;Change:  &lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;invalid users = root&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; To:&lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;;invalid users = root&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; Add the following line to the file (examples of the line should be there somewhere, I recommend sticking it there). This line disables roaming profiles for Windows.  &lt;/span&gt;&lt;/p&gt; &lt;pre style="margin-bottom: 0.5cm; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;logon path =&lt;/span&gt;&lt;/pre&gt;&lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt; For reference here is a copy of my edited &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt; file for your viewing pleasure:&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;/etc/samba/smb.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;# # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentary and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command # "testparm" to check that you have not made any basic syntactic # errors. #  #======================= Global Settings =======================  [global]  ## Browsing/Identification ###  # Change this to the workgroup/NT-domain name your Samba server will part of #   workgroup = MSHOME workgroup = EXAMPLE  # server string is the equivalent of the NT Description field    server string = %h server (Samba, Ubuntu)  # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable its WINS Server ;   wins support = no  # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ;   wins server = w.x.y.z  # This will prevent nmbd to search for NetBIOS names through DNS.    dns proxy = no  # What naming service and in what order should we use to resolve host names # to IP addresses ;   name resolve order = lmhosts host wins bcast  #### Networking ####  # The specific set of interfaces / networks to bind to # This can be either the interface name or an IP address/netmask; # interface names are normally preferred ;   interfaces = 127.0.0.0/8 eth0  # Only bind to the named interfaces and/or networks; you must use the # 'interfaces' option above to use this. # It is recommended that you enable this feature if your Samba machine is # not protected by a firewall or is a firewall itself.  However, this # option cannot handle dynamic or non-broadcast interfaces correctly. ;   bind interfaces only = true    #### Debugging/Accounting ####  # This tells Samba to use a separate log file for each machine # that connects    log file = /var/log/samba/log.%m  # Put a capping on the size of the log files (in Kb).    max log size = 1000  # If you want Samba to only log through syslog then set the following # parameter to 'yes'. ;   syslog only = no  # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher.    syslog = 0  # Do something sensible when Samba crashes: mail the admin a backtrace    panic action = /usr/share/samba/panic-action %d   ####### Authentication #######  # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details. ;   security = user security = user  # You may wish to use password encryption.  See the section on # 'encrypt passwords' in the smb.conf(5) manpage before enabling.    encrypt passwords = true  # If you are using encrypted passwords, Samba will need to know what # password database type you are using. #   passdb backend = tdbsam passdb backend = ldapsam:ldap://localhost/  #   obey pam restrictions = yes obey pam restrictions = no   ####################################################################### #COPY AND PASTE THE FOLLOWING UNDERNEATH "OBEY PAM RESTRICTIONS = NO" ####################################################################### # #       Begin: Custom LDAP Entries # ldap admin dn = cn=admin,dc=example,dc=local ldap suffix = dc=example, dc=local ldap group suffix = ou=Groups ldap user suffix = ou=Users ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ; Do ldap passwd sync ldap passwd sync = Yes passwd program = /usr/sbin/smbldap-passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* add user script = /usr/sbin/smbldap-useradd -m "%u" ldap delete dn = Yes delete user script = /usr/sbin/smbldap-userdel "%u" add machine script = /usr/sbin/smbldap-useradd -w "%u" add group script = /usr/sbin/smbldap-groupadd -p "%g" delete group script = /usr/sbin/smbldap-groupdel "%g" add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g" delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g" set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u" domain logons = yes # #       End: Custom LDAP Entries # ##################################################### #STOP COPYING HERE! #####################################################     ;   guest account = nobody ;   invalid users = root  # This boolean parameter controls whether Samba attempts to sync the Unix # password with the SMB password when the encrypted SMB password in the # passdb is changed. ;   unix password sync = no  # For Unix password sync to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Ian Kahan &lt; program =" /usr/bin/passwd" chat =" *Enter\snew\sUNIX\spassword:*" change =" no" logons =" yes" path =" \\%N\profiles\%U" path =" \\%N\%U\profile" path ="  #" drive =" H:" home =" \\%N\%U" script =" logon.cmd" script =" /usr/sbin/adduser" printers =" yes" printing =" bsd" name =" /etc/printcap" printing =" cups" name =" cups" admin =" @lpadmin" include =" /home/samba/etc/smb.conf.%m" so_rcvbuf="8192" so_sndbuf="8192" options =" TCP_NODELAY" command =" /bin/sh" master =" auto" uid =" 10000-20000" gid =" 10000-20000" shell =" /bin/bash" groups =" yes" users =" yes" definitions ="=" comment =" Home" browseable =" no" users =" %S" writable =" no" group="rw" mask =" 0700" group="rw" mask =" 0700" comment =" Network" path =" /home/samba/netlogon" ok =" yes" writable =" no" modes =" no" comment =" Users" path =" /home/samba/profiles" ok =" no" browseable =" no" mask =" 0600" mask =" 0700" comment =" All" browseable =" no" path =" /var/spool/samba" printable =" yes" public =" no" writable =" no" mode =" 0700" comment =" Printer" path =" /var/lib/samba/printers" browseable =" yes" only =" yes" ok =" no" list =" root," comment =" Samba" writable =" no" locking =" no" path =" /cdrom" public =" yes" preexec =" /bin/mount" postexec =" /bin/umount"&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we can restart the SAMBA service.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;/etc/init.d/samba restart&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Very important! We need to tell SAMBA what the "admin" password for the OpenLDAP server is. Hint: If you changed your "admin" password to be different from mine then you MUST replicate that change here! I guarantee you that someone will do this step and will have issues with SAMBA... this might be why!&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;smbpasswd -w 12345&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Go ahead and reboot the server and make sure that everything still works correctly.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; reboot&lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="15"&gt;&lt;/a&gt;Step 10: Configure the SMBLDAP-TOOLS package&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;The smbldap-tools package is one of the most important packages that we will be configuring today. This is a collection of scripts that we will use to add users, groups, and computers to the LDAP directory. Of course this will require careful configuration. Many mistakes can be made here. I recommend doing everything that I do and then going back through another time to make your own customizations. If you are not careful here then you will run into issues. Good luck!  &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Open up the "examples" directory:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; cd /usr/share/doc/smbldap-tools/examples/&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Copy the configuration files to the correct directory and unzip them.:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; cp smbldap_bind.conf /etc/smbldap-tools/ cp smbldap.conf.gz /etc/smbldap-tools/ gzip -d /etc/smbldap-tools/smbldap.conf.gz&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open up the smbldap-tools directory:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; cd /etc/smbldap-tools/&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now you need to get the Security ID (SID) for your SAMBA domain. Write this string down (copy and paste it somewhere) because you will need it for the next step.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; net getlocalsid&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; This results in (example): SID for domain DC01-UBUNTU is: S-1-5-21-949328747-3404738746-3052206637&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; Open up the file &lt;code&gt;/etc/smbldap-tools/smbldap.conf&lt;/code&gt; for editing: &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim smbldap.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Alright, now we need to edit the file. You can't just copy and paste here, you need to edit the specific lines according to your individual setup. I will include my file for reference as well:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;SID="S-1-5-21-949328747-3404738746-3052206637" ## This line must have the same SID as when you ran "net getlocalsid" sambaDomain="EXAMPLE" ldapTLS="0" suffix="dc=example,dc=local" sambaUnixIdPooldn="sambaDomainName=EXAMPLE,${suffix}" ## Be careful with this section!! userHome="/ldaphome/%U" ## This is found in the UNIX section. userSmbHome= userProfile= userHomeDrive= userScript= mailDomain="example.local"&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; &lt;code&gt;/etc/smbldap-tools/smbldap.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;# $Source: /opt/cvs/samba/smbldap-tools/smbldap.conf,v $ # $Id: smbldap.conf,v 1.18 2005/05/27 14:28:47 jtournier Exp $ # # smbldap-tools.conf : Q &amp;amp; D configuration file for smbldap-tools  #  This code was developped by IDEALX (http://IDEALX.org/) and #  contributors (their names can be found in the CONTRIBUTORS file). # #                 Copyright (C) 2001-2002 IDEALX # #  This program is free software; you can redistribute it and/or #  modify it under the terms of the GNU General Public License #  as published by the Free Software Foundation; either version 2 #  of the License, or (at your option) any later version. # #  This program is distributed in the hope that it will be useful, #  but WITHOUT ANY WARRANTY; without even the implied warranty of #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the #  GNU General Public License for more details. # #  You should have received a copy of the GNU General Public License #  along with this program; if not, write to the Free Software #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, #  USA.  #  Purpose : #       . be the configuration file for all smbldap-tools scripts  ############################################################################## # # General Configuration # ##############################################################################  # Put your own SID. To obtain this number do: "net getlocalsid". # If not defined, parameter is taking from "net getlocalsid" return #SID="S-1-5-21-4205727931-4131263253-1851132061" SID="S-1-5-21-4052000378-234799737-4288018487"  # Domain name the Samba server is in charged. # If not defined, parameter is taking from smb.conf configuration file # Ex: sambaDomain="IDEALX-NT" #sambaDomain="IDEALX-NT" sambaDomain="EXAMPLE"  ############################################################################## # # LDAP Configuration # ##############################################################################  # Notes: to use to dual ldap servers backend for Samba, you must patch # Samba with the dual-head patch from IDEALX. If not using this patch # just use the same server for slaveLDAP and masterLDAP. # Those two servers declarations can also be used when you have # . one master LDAP server where all writing operations must be done # . one slave LDAP server where all reading operations must be done #   (typically a replication directory)  # Slave LDAP server # Ex: slaveLDAP=127.0.0.1 # If not defined, parameter is set to "127.0.0.1" slaveLDAP="127.0.0.1"  # Slave LDAP port # If not defined, parameter is set to "389" slavePort="389"  # Master LDAP server: needed for write operations # Ex: masterLDAP=127.0.0.1 # If not defined, parameter is set to "127.0.0.1" masterLDAP="127.0.0.1"  # Master LDAP port # If not defined, parameter is set to "389" masterPort="389"  # Use TLS for LDAP # If set to 1, this option will use start_tls for connection # (you should also used the port 389) # If not defined, parameter is set to "1" #ldapTLS="1" ldapTLS="0"  # How to verify the server's certificate (none, optional or require) # see "man Net::LDAP" in start_tls section for more details verify="require"  # CA certificate # see "man Net::LDAP" in start_tls section for more details cafile="/etc/opt/IDEALX/smbldap-tools/ca.pem"  # certificate to use to connect to the ldap server # see "man Net::LDAP" in start_tls section for more details clientcert="/etc/opt/IDEALX/smbldap-tools/smbldap-tools.pem"  # key certificate to use to connect to the ldap server # see "man Net::LDAP" in start_tls section for more details clientkey="/etc/opt/IDEALX/smbldap-tools/smbldap-tools.key"  # LDAP Suffix # Ex: suffix=dc=IDEALX,dc=ORG #suffix="dc=idealx,dc=org" suffix="dc=example,dc=local"  # Where are stored Users # Ex: usersdn="ou=Users,dc=IDEALX,dc=ORG" # Warning: if 'suffix' is not set here, you must set the full dn for usersdn usersdn="ou=Users,${suffix}"  # Where are stored Computers # Ex: computersdn="ou=Computers,dc=IDEALX,dc=ORG" # Warning: if 'suffix' is not set here, you must set the full dn for computersdn computersdn="ou=Computers,${suffix}"  # Where are stored Groups # Ex: groupsdn="ou=Groups,dc=IDEALX,dc=ORG" # Warning: if 'suffix' is not set here, you must set the full dn for groupsdn groupsdn="ou=Groups,${suffix}"  # Where are stored Idmap entries (used if samba is a domain member server) # Ex: groupsdn="ou=Idmap,dc=IDEALX,dc=ORG" # Warning: if 'suffix' is not set here, you must set the full dn for idmapdn idmapdn="ou=Idmap,${suffix}"  # Where to store next uidNumber and gidNumber available for new users and groups # If not defined, entries are stored in sambaDomainName object. # Ex: sambaUnixIdPooldn="sambaDomainName=${sambaDomain},${suffix}" # Ex: sambaUnixIdPooldn="cn=NextFreeUnixId,${suffix}" #sambaUnixIdPooldn="sambaDomainName=IDEALX-NT,${suffix}" sambaUnixIdPooldn="sambaDomainName=EXAMPLE,${suffix}" ## Be careful with this section!!  # Default scope Used scope="sub"  # Unix password encryption (CRYPT, MD5, SMD5, SSHA, SHA, CLEARTEXT) hash_encrypt="SSHA"  # if hash_encrypt is set to CRYPT, you may set a salt format. # default is "%s", but many systems will generate MD5 hashed # passwords if you use "$1$%.8s". This parameter is optional! crypt_salt_format="%s"  ############################################################################## # # Unix Accounts Configuration # ##############################################################################  # Login defs # Default Login Shell # Ex: userLoginShell="/bin/bash" userLoginShell="/bin/bash"  # Home directory # Ex: userHome="/home/%U" #userHome="/home/%U" userHome="/ldaphome/%U" ## This is found in the UNIX section.  # Default mode used for user homeDirectory userHomeDirectoryMode="700"  # Gecos userGecos="System User"  # Default User (POSIX and Samba) GID defaultUserGid="513"  # Default Computer (Samba) GID defaultComputerGid="515"  # Skel dir skeletonDir="/etc/skel"  # Default password validation time (time in days) Comment the next line if # you don't want password to be enable for defaultMaxPasswordAge days (be # careful to the sambaPwdMustChange attribute's value) defaultMaxPasswordAge="45"  ############################################################################## # # SAMBA Configuration # ##############################################################################  # The UNC path to home drives location (%U username substitution) # Just set it to a null string if you want to use the smb.conf 'logon home' # directive and/or disable roaming profiles # Ex: userSmbHome="\\PDC-SMB3\%U" #userSmbHome="\\PDC-SRV\%U" userSmbHome=  # The UNC path to profiles locations (%U username substitution) # Just set it to a null string if you want to use the smb.conf 'logon path' # directive and/or disable roaming profiles # Ex: userProfile="\\PDC-SMB3\profiles\%U" #userProfile="\\PDC-SRV\profiles\%U" userProfile=  # The default Home Drive Letter mapping # (will be automatically mapped at logon time if home directory exist) # Ex: userHomeDrive="H:" #userHomeDrive="H:" userHomeDrive=  # The default user netlogon script name (%U username substitution) # if not used, will be automatically username.cmd # make sure script file is edited under dos # Ex: userScript="startup.cmd" # make sure script file is edited under dos #userScript="logon.bat" userScript=   # Domain appended to the users "mail"-attribute # when smbldap-useradd -M is used # Ex: mailDomain="idealx.com" #mailDomain="idealx.com" mailDomain="example.local"  ############################################################################## # # SMBLDAP-TOOLS Configuration (default are ok for a RedHat) # ##############################################################################  # Allows not to use smbpasswd (if with_smbpasswd == 0 in smbldap_conf.pm) but # prefer Crypt::SmbHash library with_smbpasswd="0" smbpasswd="/usr/bin/smbpasswd"  # Allows not to use slappasswd (if with_slappasswd == 0 in smbldap_conf.pm) # but prefer Crypt:: libraries with_slappasswd="0" slappasswd="/usr/sbin/slappasswd"  # comment out the following line to get rid of the default banner # no_banner="1"&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open the file /etc/smbldap-tools/smbldap_bind.conf file for editing:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim smbldap_bind.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Edit the file so the following is correct according to your setup. I will also include a copy of my file for reference.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;slaveDN="cn=admin,dc=example,dc=local" slavePw="12345" masterDN="cn=admin,dc=example,dc=local" masterPw="12345"&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; &lt;code&gt;/etc/smbldap-tools/smbldap_bind.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;############################ # Credential Configuration # ############################ # Notes: you can specify two differents configuration if you use a # master ldap for writing access and a slave ldap server for reading access # By default, we will use the same DN (so it will work for standard Samba # release) #slaveDN="cn=Manager,dc=idealx,dc=org" #slavePw="secret" #masterDN="cn=Manager,dc=idealx,dc=org" #masterPw="secret"  slaveDN="cn=admin,dc=example,dc=local" slavePw="12345" masterDN="cn=admin,dc=example,dc=local" masterPw="12345"&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Set the correct permissions on the above files:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;chmod 0644 /etc/smbldap-tools/smbldap.conf chmod 0600 /etc/smbldap-tools/smbldap_bind.conf&lt;/span&gt;&lt;/pre&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="16"&gt;&lt;/a&gt;Step 11: Populate LDAP using smbldap-tools&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;This is another simple step but it is very important. When doing this step if you encounter errors then it is most likely because you failed the previous step. Just a hint.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;Run the command to populate the directory: &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;smbldap-populate -u 30000 -g 30000&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; When doing so it will prompt you to assign a password to the user "root" - remember to use the password that you've been using to keep things simple.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 12345&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Verify that you have several new entries in your LDAP directory by running the command:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; ldapsearch -x -b dc=example,dc=local | less&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Awesome, now we have some default entries in our LDAP directory. This is a good thing!  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="17"&gt;&lt;/a&gt;Step 12: Add an LDAP User to the System  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;Run the following command to add a new user to the LDAP. Please note that you should edit this user information to suit your needs. This will add a standard user, not an administrative user. &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;smbldap-useradd -a -m -M ricky -c "Richard M" ricky&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Here is an explanation of the above command switches:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;-a allows Windows as well as Linux login -m makes a home directory, leave this off if you do not need local access. PAM will be configured to automatically create a home directory. -M sets up the username part of their email address -c specifies their full name&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we need to set the password for this new account:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;smbldap-passwd ricky # I will be using "12345" for the password.&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now that we have a user in our LDAP directory we will need to configure the system to authenticate via LDAP.&lt;/span&gt;&lt;/p&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="18"&gt;&lt;/a&gt;Step 13: Configure LDAP Authentication on the Server  &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;The basic steps for this section came from the Ubuntu Forums (http://ubuntuforums.org/showthread.php?t=597056). Thanks to all who contributed to that thread! Basically we need to tell our server to use LDAP authentication as one of its options. Be careful with this! It can cause your server to break! This is why we always have a backup around.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Install the necessary software used to accomplish this feat:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install auth-client-config libpam-ldap libnss-ldap&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; You will be prompted to answer some questions. Use the following answers (or your own if you changed things before!):&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;Should debconf manage LDAP configuration?: Yes LDAP server Uniform Resource Identifier: ldapi://127.0.0.1 Distinguished name of the search base: dc=example,dc=local LDAP version to use: 3 Make local root Database admin: Yes Does the LDAP database require login? No LDAP account for root: cn=admin,dc=example,dc=local LDAP root account password: 12345&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Create a backup of the file &lt;code&gt;/etc/ldap.conf&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;cp /etc/ldap.conf /etc/ldap.conf.original&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open the file &lt;code&gt;/etc/ldap.conf&lt;/code&gt; for editing in your favorite editor:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/ldap.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Please note that you cannot just copy and paste the following into your file. Find the referenced lines and modify them so that they are correct. I will include a copy of my file for reference.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;host 127.0.0.1 base dc=example,dc=local uri ldap://127.0.0.1/ rootbinddn cn=admin,dc=example,dc=local bind_policy soft&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; &lt;code&gt;/etc/ldap.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;###DEBCONF### ## ## Configuration of this file will be managed by debconf as long as the ## first line of the file says '###DEBCONF###' ## ## You should use dpkg-reconfigure to configure this file via debconf ##  # # @(#)$Id: ldap.conf,v 1.38 2006/05/15 08:13:31 lukeh Exp $ # # This is the configuration file for the LDAP nameservice # switch library and the LDAP PAM module. # # PADL Software # http://www.padl.com #  # Your LDAP server. Must be resolvable without using LDAP. # Multiple hosts may be specified, each separated by a # space. How long nss_ldap takes to failover depends on # whether your LDAP client library supports configurable # network or connect timeouts (see bind_timelimit). host 127.0.0.1  # The distinguished name of the search base. #base dc=padl,dc=com base dc=example,dc=local  # Another way to specify your LDAP server is to provide an # uri with the server name. This allows to use # Unix Domain Sockets to connect to a local LDAP Server. uri ldap://127.0.0.1/ #uri ldaps://127.0.0.1/ #uri ldapi://%2fvar%2frun%2fldapi_sock/ # Note: %2f encodes the '/' used as directory separator  # The LDAP version to use (defaults to 3 # if supported by client library) ldap_version 3  # The distinguished name to bind to the server with. # Optional: default is to bind anonymously. #binddn cn=proxyuser,dc=padl,dc=com  # The credentials to bind with. # Optional: default is no credential. #bindpw secret  # The distinguished name to bind to the server with # if the effective user ID is root. Password is # stored in /etc/ldap.secret (mode 600) rootbinddn cn=admin,dc=example,dc=local  # The port. # Optional: default is 389. #port 389  # The search scope. #scope sub #scope one #scope base  # Search timelimit #timelimit 30  # Bind/connect timelimit #bind_timelimit 30  # Reconnect policy: hard (default) will retry connecting to # the software with exponential backoff, soft will fail # immediately. #bind_policy hard bind_policy soft  # Idle timelimit; client will close connections # (nss_ldap only) if the server has not been contacted # for the number of seconds specified below. #idle_timelimit 3600  # Filter to AND with uid=%s #pam_filter objectclass=account  # The user ID attribute (defaults to uid) #pam_login_attribute uid  # Search the root DSE for the password policy (works # with Netscape Directory Server) #pam_lookup_policy yes  # Check the 'host' attribute for access control # Default is no; if set to yes, and user has no # value for the host attribute, and pam_ldap is # configured for account management (authorization) # then the user will not be allowed to login. #pam_check_host_attr yes  # Check the 'authorizedService' attribute for access # control # Default is no; if set to yes, and the user has no # value for the authorizedService attribute, and # pam_ldap is configured for account management # (authorization) then the user will not be allowed # to login. #pam_check_service_attr yes  # Group to enforce membership of #pam_groupdn cn=PAM,ou=Groups,dc=padl,dc=com  # Group member attribute #pam_member_attribute uniquemember  # Specify a minium or maximum UID number allowed #pam_min_uid 0 #pam_max_uid 0  # Template login attribute, default template user # (can be overriden by value of former attribute # in user's entry) #pam_login_attribute userPrincipalName #pam_template_login_attribute uid #pam_template_login nobody  # HEADS UP: the pam_crypt, pam_nds_passwd, # and pam_ad_passwd options are no # longer supported. # # Do not hash the password at all; presume # the directory server will do it, if # necessary. This is the default. pam_password md5  # Hash password locally; required for University of # Michigan LDAP server, and works with Netscape # Directory Server if you're using the UNIX-Crypt # hash mechanism and not using the NT Synchronization # service. #pam_password crypt  # Remove old password first, then update in # cleartext. Necessary for use with Novell # Directory Services (NDS) #pam_password clear_remove_old #pam_password nds  # RACF is an alias for the above. For use with # IBM RACF #pam_password racf  # Update Active Directory password, by # creating Unicode password and updating # unicodePwd attribute. #pam_password ad  # Use the OpenLDAP password change # extended operation to update the password. #pam_password exop  # Redirect users to a URL or somesuch on password # changes. #pam_password_prohibit_message Please visit http://internal to change your password.  # RFC2307bis naming contexts # Syntax: # nss_base_XXX          base?scope?filter # where scope is {base,one,sub} # and filter is a filter to be &amp;amp;'d with the # default filter. # You can omit the suffix eg: # nss_base_passwd       ou=People, # to append the default base DN but this # may incur a small performance impact. #nss_base_passwd        ou=People,dc=padl,dc=com?one #nss_base_shadow        ou=People,dc=padl,dc=com?one #nss_base_group         ou=Group,dc=padl,dc=com?one #nss_base_hosts         ou=Hosts,dc=padl,dc=com?one #nss_base_services      ou=Services,dc=padl,dc=com?one #nss_base_networks      ou=Networks,dc=padl,dc=com?one #nss_base_protocols     ou=Protocols,dc=padl,dc=com?one #nss_base_rpc           ou=Rpc,dc=padl,dc=com?one #nss_base_ethers        ou=Ethers,dc=padl,dc=com?one #nss_base_netmasks      ou=Networks,dc=padl,dc=com?ne #nss_base_bootparams    ou=Ethers,dc=padl,dc=com?one #nss_base_aliases       ou=Aliases,dc=padl,dc=com?one #nss_base_netgroup      ou=Netgroup,dc=padl,dc=com?one  # attribute/objectclass mapping # Syntax: #nss_map_attribute      rfc2307attribute        mapped_attribute #nss_map_objectclass    rfc2307objectclass      mapped_objectclass  # configure --enable-nds is no longer supported. # NDS mappings #nss_map_attribute uniqueMember member  # Services for UNIX 3.5 mappings #nss_map_objectclass posixAccount User #nss_map_objectclass shadowAccount User #nss_map_attribute uid msSFU30Name #nss_map_attribute uniqueMember msSFU30PosixMember #nss_map_attribute userPassword msSFU30Password #nss_map_attribute homeDirectory msSFU30HomeDirectory #nss_map_attribute homeDirectory msSFUHomeDirectory #nss_map_objectclass posixGroup Group #pam_login_attribute msSFU30Name #pam_filter objectclass=User #pam_password ad  # configure --enable-mssfu-schema is no longer supported. # Services for UNIX 2.0 mappings #nss_map_objectclass posixAccount User #nss_map_objectclass shadowAccount user #nss_map_attribute uid msSFUName #nss_map_attribute uniqueMember posixMember #nss_map_attribute userPassword msSFUPassword #nss_map_attribute homeDirectory msSFUHomeDirectory #nss_map_attribute shadowLastChange pwdLastSet #nss_map_objectclass posixGroup Group #nss_map_attribute cn msSFUName #pam_login_attribute msSFUName #pam_filter objectclass=User #pam_password ad  # RFC 2307 (AD) mappings #nss_map_objectclass posixAccount user #nss_map_objectclass shadowAccount user #nss_map_attribute uid sAMAccountName #nss_map_attribute homeDirectory unixHomeDirectory #nss_map_attribute shadowLastChange pwdLastSet #nss_map_objectclass posixGroup group #nss_map_attribute uniqueMember member #pam_login_attribute sAMAccountName #pam_filter objectclass=User #pam_password ad  # configure --enable-authpassword is no longer supported # AuthPassword mappings #nss_map_attribute userPassword authPassword  # AIX SecureWay mappings #nss_map_objectclass posixAccount aixAccount #nss_base_passwd ou=aixaccount,?one #nss_map_attribute uid userName #nss_map_attribute gidNumber gid #nss_map_attribute uidNumber uid #nss_map_attribute userPassword passwordChar #nss_map_objectclass posixGroup aixAccessGroup #nss_base_group ou=aixgroup,?one #nss_map_attribute cn groupName #nss_map_attribute uniqueMember member #pam_login_attribute userName #pam_filter objectclass=aixAccount #pam_password clear  # Netscape SDK LDAPS #ssl on  # Netscape SDK SSL options #sslpath /etc/ssl/certs  # OpenLDAP SSL mechanism # start_tls mechanism uses the normal LDAP port, LDAPS typically 636 #ssl start_tls #ssl on  # OpenLDAP SSL options # Require and verify server certificate (yes/no) # Default is to use libldap's default behavior, which can be configured in # /etc/openldap/ldap.conf using the TLS_REQCERT setting.  The default for # OpenLDAP 2.0 and earlier is "no", for 2.1 and later is "yes". #tls_checkpeer yes  # CA certificates for server certificate verification # At least one of these are required if tls_checkpeer is "yes" #tls_cacertfile /etc/ssl/ca.cert #tls_cacertdir /etc/ssl/certs  # Seed the PRNG if /dev/urandom is not provided #tls_randfile /var/run/egd-pool  # SSL cipher suite # See man ciphers for syntax #tls_ciphers TLSv1  # Client certificate and key # Use these, if your server requires client authentication. #tls_cert #tls_key  # Disable SASL security layers. This is needed for AD. #sasl_secprops maxssf=0  # Override the default Kerberos ticket cache location. #krb5_ccname FILE:/etc/.ldapcache  # SASL mechanism for PAM authentication - use is experimental # at present and does not support password policy control #pam_sasl_mech DIGEST-MD5&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we need to copy the file &lt;code&gt;/etc/ldap.conf&lt;/code&gt; to the file &lt;code&gt;/etc/ldap/ldap.conf&lt;/code&gt;. First we will backup the file (/etc/ldap/ldap.conf) and then we will copy the new file.  &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;cp /etc/ldap/ldap.conf /etc/ldap/ldap.conf.original cp /etc/ldap.conf /etc/ldap/ldap.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; OK, create a new file by running the following command. You will need to edit the first part of the command to use your favorite editor.&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/auth-client-config/profile.d/open_ldap&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; This file is the new OpenLDAP authentication profile. Copy and paste EXACTLY the following lines:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;[open_ldap] nss_passwd=passwd: compat ldap nss_group=group: compat ldap nss_shadow=shadow: compat ldap pam_auth=auth       required     pam_env.so  auth       sufficient   pam_unix.so likeauth nullok  auth       sufficient   pam_ldap.so use_first_pass  auth       required     pam_deny.so pam_account=account    sufficient   pam_unix.so  account    sufficient   pam_ldap.so  account    required     pam_deny.so pam_password=password   sufficient   pam_unix.so nullok md5 shadow use_authtok  password   sufficient   pam_ldap.so use_first_pass  password   required     pam_deny.so pam_session=session    required     pam_limits.so  session    required     pam_mkhomedir.so skel=/etc/skel/ umask=0077  session    required     pam_unix.so  session    optional     pam_ldap.so&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Backup the &lt;code&gt;/etc/nsswitch.conf&lt;/code&gt; file:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;cp /etc/nsswitch.conf /etc/nsswitch.conf.original&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Backup the files in &lt;code&gt;/etc/pam.d&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;cd /etc/pam.d/ mkdir bkup cp * bkup/&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Enable the new OpenLDAP profile by running the following command. If you did all the previous steps correctly then this will run without issue.&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;auth-client-config -a -p open_ldap&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; The final step is to simply reboot the server. When the server is running again then test to see if you can log in with your new LDAP user. No matter what you should be able to log in with a local user (unless the system is hung). If the system hangs then reboot HARD and try again.&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="19"&gt;&lt;/a&gt;Step 14: Install the BIND DNS Server  &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;We will be using the BIND DNS server because it is the only DNS server that I know how to configure. We will be using WebMIN to configure it (Webmin will be installed later and we will configure BIND in a later step). Why do we need a DNS server? Well, DNS makes it easier to manage the hosts on the network. LDAP works great when you can use DNS. DNS must be there in order for a Windows client to join the domain.  &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Install the software:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install bind9&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="20"&gt;&lt;/a&gt;Step 15: Install and Configure NFS Server Support  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;  By this point LDAP authentication is working without issue and LDAP user home folders are located in /ldaphome. If this is not correct then you will want to go back through and fix things. &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Now we will be installing and configuring our NFS server. Thanks to everyone in the thread &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128);font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=249889" target="_blank"&gt;http://ubuntuforums.org/showthread.php?t=249889&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; for the help with this section.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; First install the software:   &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install nfs-kernel-server nfs-common portmap&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we need to reconfigure portmap.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; dpkg-reconfigure portmap&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Answer as follows to the prompt:  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; no&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Restart portmap:  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; /etc/init.d/portmap restart&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open up the &lt;code&gt;/etc/exports&lt;/code&gt; file for editing. This is where we define our NFS shares (or exports).  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; vim /etc/exports&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Add the following line to the file. What this line does is allow unrestricted access to the /ldaphome share from any computer. I will also include a copy of my file for reference.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; /ldaphome *(rw,async)&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; &lt;code&gt;/etc/exports&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; # /etc/exports: the access control list for filesystems which may be exported #               to NFS clients.  See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes       hostname1(rw,sync) hostname2(ro,sync) # # Example for NFSv4: # /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt) # /srv/nfs4/homes  gss/krb5i(rw,sync) #  /ldaphome *(rw,async)&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Restart the NFS service.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; /etc/init.d/nfs-kernel-server restart&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we have NFS enabled and configured. If you have a client up and running at the moment you can give it a test. Otherwise just continue with this guide.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="21"&gt;&lt;/a&gt;Step 16: Install Webmin  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;Webmin is a very useful program. We can use it to control installed services, monitor the system, and help ease administration. &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Download the package from the Webmin website:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;wget http://superb-east.dl.sourceforge.net/sourceforge/webadmin/webmin_1.400_all.deb&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; We need to install some required packages first.&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install openssl libauthen-pam-perl libio-pty-perl libmd5-perl libnet-ssleay-perl&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we can install Webmin:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;dpkg -i webmin_1.400_all.deb&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; You should see a message similar to the following when it successfully installs:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;"Webmin install complete. You can now login to https://dc01-ubuntu.example.local:10000/  as root with your root password, or as any user who can use sudo to run commands as root."&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; The Webmin installation is now complete.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;  &lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="22"&gt;&lt;/a&gt;Step 17: Configure BIND9 and the Primary DNS Zone  &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;We now want to create our DNS zone so that we are in charge of it and can make use of it. I prefer using a GUI to do this as opposed to editing the zone files.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;In a web browser navigate to: https://192.168.0.60:10000 (Please use the IP address that YOU assigned to your server.)&lt;br /&gt;Login as "sysadmin" and "12345&lt;br /&gt;Servers &gt; BIND DNS Server&lt;br /&gt;Under "Existing DNS Zones" click "Create master zone"&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Enter in the following information (customize to your needs!):  &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;Zone type: Forward (Names to Addresses) Domain name / Network: example.local Records file: Automatic Master server: dc01-ubuntu.example.local Email address: sysadmin@example.local&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Click "Create" button&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Click "Apply Changes" button&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Click "Address (0)" at the top&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Fill in with this information (customize to your needs!):&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;Name: dc01-ubuntu Address: 192.168.0.60 Click "Create" button Click "Return to record types"&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Click "Apply Changes" button.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="23"&gt;&lt;/a&gt;Step 18: Configure the Server to use Itself for DNS  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;DNS doesn't do a whole lot of good if we don't use it. In this section we point our /etc/resolv.conf file to ourselves. I also recommend leaving in a known working DNS server as the seconday source just in case something screws up. In some of my trials I did notice that the server would hang trying to start BIND9. &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Backup the &lt;code&gt;/etc/resolv.conf&lt;/code&gt; file before editing it!  &lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;cp /etc/resolv.conf /etc/resolv.conf.original&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open the &lt;code&gt;/etc/resolv.conf&lt;/code&gt; file for editing:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/resolv.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Edit the file so that the only lines in the file are the following. I will also include a copy of my file for reference.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;search example.local nameserver 192.168.0.60&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Reboot the server and then test DNS to ensure everything is working the way it should be.&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="24"&gt;&lt;/a&gt;Some notes and conclusions  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;You should now have a fully functional SAMBA domain controller. All you need to do now is add a workstation account, join machines to the network, and voila, DOMAIN! The next few sections go through some other items of interest (Windows logon script, configuring a Linux client, configuring a Windows client, etc...)&lt;br /&gt;&lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="25"&gt;&lt;/a&gt;Install and Configure Apache2 + PHPLDAPAdmin  &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Apache is a nice server to have installed. By having it installed you'll be able to host your own websites, etc... PHPLDAPAdmin is a very nice LDAP management tool. So far the best use that I have gotten from it is the ability to view my LDAP directory. This way I can confirm that items that should be there really are there.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Install the software:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install apache2 phpldapadmin&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open the file &lt;code&gt;/etc/apache2/httpd.conf&lt;/code&gt; for editing:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/apache2/httpd.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Add the following line to the very top of the file. It will stop an annoying message when Apache starts up. Please customize this according to your configuration.&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;ServerName dc01-ubuntu.example.local&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Restart Apache:&lt;/span&gt;&lt;/p&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;/etc/init.d/apache2 restart&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Copy the PHPLDAPAdmin folder into the /var/www/ directory. This way we can access PHPLDAPAdmin more easily.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;cp -R /usr/share/phpldapadmin/ /var/www/phpldapadmin&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Access PHPLDAPAdmin my going to: http://192.168.0.60/phpldapadmin/. The username is "cn=admin,dc=example,dc=local" - customize that if you changed the LDAP domain properties.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="26"&gt;&lt;/a&gt;Configure Ubuntu Server 8.04 (client) to Mount NFS Shares&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;  &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;In order for our whole system to work the correct way we need to have access to the user files stored on the server. For Linux clients we will be using NFS to accomplish this. One thing to note is that this section assumes that your client has Linux installed, that it can resolve DNS entries against your server, and that the client works on it's own.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Install NFS support:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install portmap nfs-common&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Restart the associated services:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;/etc/init.d/portmap restart /etc/init.d/nfs-common restart&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Create the &lt;code&gt;/ldaphome&lt;/code&gt; directory:  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;cd / mkdir ldaphome&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Try to manually mount the &lt;code&gt;ldaphome&lt;/code&gt; NFS share:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;mount dc01-ubuntu.example.local:/ldaphome /ldaphome &lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now go ahead and add the necessary entries into &lt;code&gt;/etc/fstab&lt;/code&gt; so that the directory is mounted at boot. I'm also including a copy of my file for reference.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/fstab&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Add the following lines to the bottom of the file:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;# Custom NFS mount for home directories. dc01-ubuntu.example.local:/ldaphome /ldaphome nfs rsize=8192,wsize=8192,timeo=14,intr&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; &lt;code&gt;/etc/fstab&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;# /etc/fstab: static file system information. # #                 proc            /proc           proc    defaults        0       0 # /dev/sda1 UUID=fd12bae1-adda-4b61-9ce9-ed4e9a1f52aa /               ext3    defaults,errors=remount-ro 0       1 # /dev/sda5 UUID=86661b5c-c34f-9fad-c85d-ccbc61e5fb0d none            swap    sw              0       0 /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0 /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec 0       0  # Custom NFS mount for home directories. dc01-ubuntu.example.local:/ldaphome /ldaphome nfs rsize=8192,wsize=8192,timeo=14,intr&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Reboot the client to ensure that everything is working.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="27"&gt;&lt;/a&gt;Configure Ubuntu Server 8.04 (client) for LDAP Authentication  &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Now that you have this server it only makes sense to also have an LDAP client, right? Well, here we go. I'm going to shorten this section and only give you the relevant parts. I'm assuming that since you made it through the initial guide you are pretty confident in your ability to install Ubuntu and configure the basics.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Assumptions/Requirements:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Your hostname and host file need 	to be configured correctly. Your hostname should be 	"client-linux.example.local" - I'm going to assume that 	you are in the domain "example.local" and that your 	hostname is "client-linux" - Please customize this to your 	own scenario. Your hosts file needs to have your FQDN in it 	otherwise you may run into issue.  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;You have your /etc/resolv.conf 	file configured so that it is looking at your server for DNS and 	that it is searching your domain. For my setup I used the same 	/etc/resolv.conf as I did for the server.  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;You can PING the server by name 	and by IP.  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;You installed and configured NTP 	for time synchronization. This is important in a domain environment! 		&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style="color: rgb(255, 0, 0);font-size:100%;" &gt;&lt;b&gt;Because of the nature of our home 	directories you MUST have NFS set up and configured on the client 	FIRST. The previous section describes how to do this. &lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;OK, now we can begin.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Install the software:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install auth-client-config libpam-ldap libnss-ldap&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Answer the questions with the following (customize if you need to):&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;Should debconf manage LDAP configuration?: Yes LDAP server Uniform Resource Identifier: ldapi://dc01-ubuntu.example.local Distinguished name of the search base: dc=example,dc=local LDAP version to use: 3 Make local root Database admin: Yes Does the LDAP database require login? No LDAP account for root: cn=admin,dc=example,dc=local LDAP root account password: 12345&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Create a backup of the file /etc/ldap.conf:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;cp /etc/ldap.conf /etc/ldap.conf.original&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open the file /etc/ldap.conf for editing in your favorite editor:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/ldap.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Please note that you cannot just copy and paste the following into your file. Find the referenced lines and modify them so that they are correct. I will include a copy of my file for reference.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;host dc01-ubuntu.example.local base dc=example,dc=local uri ldap://dc01-ubuntu.example.local/ rootbinddn cn=admin,dc=example,dc=local bind_policy soft&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; &lt;code&gt;/etc/ldap.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;###DEBCONF### ## ## Configuration of this file will be managed by debconf as long as the ## first line of the file says '###DEBCONF###' ## ## You should use dpkg-reconfigure to configure this file via debconf ##  # # @(#)$Id: ldap.conf,v 1.38 2006/05/15 08:13:31 lukeh Exp $ # # This is the configuration file for the LDAP nameservice # switch library and the LDAP PAM module. # # PADL Software # http://www.padl.com #  # Your LDAP server. Must be resolvable without using LDAP. # Multiple hosts may be specified, each separated by a # space. How long nss_ldap takes to failover depends on # whether your LDAP client library supports configurable # network or connect timeouts (see bind_timelimit). #host 127.0.0.1 host dc01-ubuntu.example.local  # The distinguished name of the search base. #base dc=padl,dc=com base dc=example,dc=local  # Another way to specify your LDAP server is to provide an # uri with the server name. This allows to use # Unix Domain Sockets to connect to a local LDAP Server. uri ldap://dc01-ubuntu.example.local/ #uri ldaps://127.0.0.1/ #uri ldapi://%2fvar%2frun%2fldapi_sock/ # Note: %2f encodes the '/' used as directory separator  # The LDAP version to use (defaults to 3 # if supported by client library) ldap_version 3  # The distinguished name to bind to the server with. # Optional: default is to bind anonymously. #binddn cn=proxyuser,dc=padl,dc=com  # The credentials to bind with. # Optional: default is no credential. #bindpw secret  # The distinguished name to bind to the server with # if the effective user ID is root. Password is # stored in /etc/ldap.secret (mode 600) rootbinddn cn=admin,dc=example,dc=local  # The port. # Optional: default is 389. #port 389  # The search scope. #scope sub #scope one #scope base  # Search timelimit #timelimit 30  # Bind/connect timelimit #bind_timelimit 30  # Reconnect policy: hard (default) will retry connecting to # the software with exponential backoff, soft will fail # immediately. #bind_policy hard bind_policy soft  # Idle timelimit; client will close connections # (nss_ldap only) if the server has not been contacted # for the number of seconds specified below. #idle_timelimit 3600  # Filter to AND with uid=%s #pam_filter objectclass=account  # The user ID attribute (defaults to uid) #pam_login_attribute uid  # Search the root DSE for the password policy (works # with Netscape Directory Server) #pam_lookup_policy yes  # Check the 'host' attribute for access control # Default is no; if set to yes, and user has no # value for the host attribute, and pam_ldap is # configured for account management (authorization) # then the user will not be allowed to login. #pam_check_host_attr yes  # Check the 'authorizedService' attribute for access # control # Default is no; if set to yes, and the user has no # value for the authorizedService attribute, and # pam_ldap is configured for account management # (authorization) then the user will not be allowed # to login. #pam_check_service_attr yes  # Group to enforce membership of #pam_groupdn cn=PAM,ou=Groups,dc=padl,dc=com  # Group member attribute #pam_member_attribute uniquemember  # Specify a minium or maximum UID number allowed #pam_min_uid 0 #pam_max_uid 0  # Template login attribute, default template user # (can be overriden by value of former attribute # in user's entry) #pam_login_attribute userPrincipalName #pam_template_login_attribute uid #pam_template_login nobody  # HEADS UP: the pam_crypt, pam_nds_passwd, # and pam_ad_passwd options are no # longer supported. # # Do not hash the password at all; presume # the directory server will do it, if # necessary. This is the default. pam_password md5  # Hash password locally; required for University of # Michigan LDAP server, and works with Netscape # Directory Server if you're using the UNIX-Crypt # hash mechanism and not using the NT Synchronization # service. #pam_password crypt  # Remove old password first, then update in # cleartext. Necessary for use with Novell # Directory Services (NDS) #pam_password clear_remove_old #pam_password nds  # RACF is an alias for the above. For use with # IBM RACF #pam_password racf  # Update Active Directory password, by # creating Unicode password and updating # unicodePwd attribute. #pam_password ad  # Use the OpenLDAP password change # extended operation to update the password. #pam_password exop  # Redirect users to a URL or somesuch on password # changes. #pam_password_prohibit_message Please visit http://internal to change your password.  # RFC2307bis naming contexts # Syntax: # nss_base_XXX          base?scope?filter # where scope is {base,one,sub} # and filter is a filter to be &amp;amp;'d with the # default filter. # You can omit the suffix eg: # nss_base_passwd       ou=People, # to append the default base DN but this # may incur a small performance impact. #nss_base_passwd        ou=People,dc=padl,dc=com?one #nss_base_shadow        ou=People,dc=padl,dc=com?one #nss_base_group         ou=Group,dc=padl,dc=com?one #nss_base_hosts         ou=Hosts,dc=padl,dc=com?one #nss_base_services      ou=Services,dc=padl,dc=com?one #nss_base_networks      ou=Networks,dc=padl,dc=com?one #nss_base_protocols     ou=Protocols,dc=padl,dc=com?one #nss_base_rpc           ou=Rpc,dc=padl,dc=com?one #nss_base_ethers        ou=Ethers,dc=padl,dc=com?one #nss_base_netmasks      ou=Networks,dc=padl,dc=com?ne #nss_base_bootparams    ou=Ethers,dc=padl,dc=com?one #nss_base_aliases       ou=Aliases,dc=padl,dc=com?one #nss_base_netgroup      ou=Netgroup,dc=padl,dc=com?one  # attribute/objectclass mapping # Syntax: #nss_map_attribute      rfc2307attribute        mapped_attribute #nss_map_objectclass    rfc2307objectclass      mapped_objectclass  # configure --enable-nds is no longer supported. # NDS mappings #nss_map_attribute uniqueMember member  # Services for UNIX 3.5 mappings #nss_map_objectclass posixAccount User #nss_map_objectclass shadowAccount User #nss_map_attribute uid msSFU30Name #nss_map_attribute uniqueMember msSFU30PosixMember #nss_map_attribute userPassword msSFU30Password #nss_map_attribute homeDirectory msSFU30HomeDirectory #nss_map_attribute homeDirectory msSFUHomeDirectory #nss_map_objectclass posixGroup Group #pam_login_attribute msSFU30Name #pam_filter objectclass=User #pam_password ad  # configure --enable-mssfu-schema is no longer supported. # Services for UNIX 2.0 mappings #nss_map_objectclass posixAccount User #nss_map_objectclass shadowAccount user #nss_map_attribute uid msSFUName #nss_map_attribute uniqueMember posixMember #nss_map_attribute userPassword msSFUPassword #nss_map_attribute homeDirectory msSFUHomeDirectory #nss_map_attribute shadowLastChange pwdLastSet #nss_map_objectclass posixGroup Group #nss_map_attribute cn msSFUName #pam_login_attribute msSFUName #pam_filter objectclass=User #pam_password ad  # RFC 2307 (AD) mappings #nss_map_objectclass posixAccount user #nss_map_objectclass shadowAccount user #nss_map_attribute uid sAMAccountName #nss_map_attribute homeDirectory unixHomeDirectory #nss_map_attribute shadowLastChange pwdLastSet #nss_map_objectclass posixGroup group #nss_map_attribute uniqueMember member #pam_login_attribute sAMAccountName #pam_filter objectclass=User #pam_password ad  # configure --enable-authpassword is no longer supported # AuthPassword mappings #nss_map_attribute userPassword authPassword  # AIX SecureWay mappings #nss_map_objectclass posixAccount aixAccount #nss_base_passwd ou=aixaccount,?one #nss_map_attribute uid userName #nss_map_attribute gidNumber gid #nss_map_attribute uidNumber uid #nss_map_attribute userPassword passwordChar #nss_map_objectclass posixGroup aixAccessGroup #nss_base_group ou=aixgroup,?one #nss_map_attribute cn groupName #nss_map_attribute uniqueMember member #pam_login_attribute userName #pam_filter objectclass=aixAccount #pam_password clear  # Netscape SDK LDAPS #ssl on  # Netscape SDK SSL options #sslpath /etc/ssl/certs  # OpenLDAP SSL mechanism # start_tls mechanism uses the normal LDAP port, LDAPS typically 636 #ssl start_tls #ssl on  # OpenLDAP SSL options # Require and verify server certificate (yes/no) # Default is to use libldap's default behavior, which can be configured in # /etc/openldap/ldap.conf using the TLS_REQCERT setting.  The default for # OpenLDAP 2.0 and earlier is "no", for 2.1 and later is "yes". #tls_checkpeer yes  # CA certificates for server certificate verification # At least one of these are required if tls_checkpeer is "yes" #tls_cacertfile /etc/ssl/ca.cert #tls_cacertdir /etc/ssl/certs  # Seed the PRNG if /dev/urandom is not provided #tls_randfile /var/run/egd-pool  # SSL cipher suite # See man ciphers for syntax #tls_ciphers TLSv1  # Client certificate and key # Use these, if your server requires client authentication. #tls_cert #tls_key  # Disable SASL security layers. This is needed for AD. #sasl_secprops maxssf=0  # Override the default Kerberos ticket cache location. #krb5_ccname FILE:/etc/.ldapcache  # SASL mechanism for PAM authentication - use is experimental # at present and does not support password policy control #pam_sasl_mech DIGEST-MD5&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we need to copy the file /etc/ldap.conf to the file /etc/ldap/ldap.conf. First we will backup the file and then we will copy the new file.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;cp /etc/ldap/ldap.conf /etc/ldap/ldap.conf.original cp /etc/ldap.conf /etc/ldap/ldap.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; OK, create a new file by running the following command. You will need to edit the first part of the command to use your favorite editor.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/auth-client-config/profile.d/open_ldap&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; This file is the new OpenLDAP authentication profile. Copy and paste EXACTLY the following lines:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;[open_ldap] nss_passwd=passwd: compat ldap nss_group=group: compat ldap nss_shadow=shadow: compat ldap pam_auth=auth       required     pam_env.so  auth       sufficient   pam_unix.so likeauth nullok  auth       sufficient   pam_ldap.so use_first_pass  auth       required     pam_deny.so pam_account=account    sufficient   pam_unix.so  account    sufficient   pam_ldap.so  account    required     pam_deny.so pam_password=password   sufficient   pam_unix.so nullok md5 shadow use_authtok  password   sufficient   pam_ldap.so use_first_pass  password   required     pam_deny.so pam_session=session    required     pam_limits.so  session    required     pam_mkhomedir.so skel=/etc/skel/ umask=0077  session    required     pam_unix.so  session    optional     pam_ldap.so&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Backup the /etc/nsswitch.conf file:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;cp /etc/nsswitch.conf /etc/nsswitch.conf.original&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Backup the files in /etc/pam.d:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;cd /etc/pam.d/ mkdir bkup cp * bkup/&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Enable the new OpenLDAP profile by running the following command. If you did all the previous steps correctly then this will run without issue.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;auth-client-config -a -p open_ldap&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; The final step is to simply reboot the client. When the client is running again then test to see if you can log in with your new LDAP user. No matter what you should be able to log in with a local user (unless the system is hung). If the system hangs then reboot HARD and try again.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;reboot&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;  vim /etc/pam.d/common-password&lt;/span&gt;&lt;pre style="border: 1px solid rgb(0, 0, 0); padding: 0.14cm; text-align: left;"&gt;&lt;span style="font-size:100%;"&gt;password   sufficient   pam_ldap.so password   required   pam_unix.so nullok obscure min=4 max=8 md5&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;For solving login issue&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="28"&gt;&lt;/a&gt;Configure SAMBA to Share /ldaphome  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Since this entire project is to create a domain for Windows PCs it only makes sense to configure the server so that the user home directories are available to Windows clients. This section will configure SAMBA so that the /ldaphome directory is shared.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Add the following lines to the bottom of the &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt; file:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;# LDAPHOME share definition [ldaphome] path = /ldaphome writeable = yes browseable = yes security mask = 0777 force security mode = 0 directory security mask = 0777 force directory security mode = 0&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; SAMBA should automatically update its configuration after about 2 minutes. From a Windows computer you should be able to access the server as an LDAP user. You will then have access to your home folder.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;  &lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="29"&gt;&lt;/a&gt;Configure SAMBA - Enable the 'Netlogon' Share  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;  &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Create a directory for the netlogon share to use:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;mkdir /home/samba mkdir /home/samba/netlogon&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Open the file &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt; for editing:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/samba/smb.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Uncomment the netlogon lines by changing:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;;[netlogon] ;   comment = Network Logon Service ;   path = /home/samba/netlogon ;   guest ok = yes ;   writable = no ;   share modes = no&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; To:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; [netlogon]    comment = Network Logon Service    path = /home/samba/netlogon    guest ok = yes    writable = no    share modes = no &lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="30"&gt;&lt;/a&gt;Create a Simple Windows Logon Script  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;  We will create the logon script in the new Netlogon shared folder. &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /home/samba/netlogon/allusers.bat&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Copy and paste the following lines into that new file. Customize as necessary!&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;@echo off REM    # SYNC THE TIME WITH THE SERVER net time \\dc01-ubuntu.example.local /set /y REM    # DELETE ALL MAPPED DRIVES net use h: /delete REM    # MAP ALL NECESSARY DRIVES net use h: "\\dc01-ubuntu.example.local\ldaphome\%username%"&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; We need to install an extra program to convert this file to a file that Windows can use.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;apt-get install flip&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Use this program to convert the file:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;flip -m /home/samba/netlogon/allusers.bat&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Now we need to tell Samba about this logon script.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-size:100%;"&gt;vim /etc/samba/smb.conf&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt; Change the line: &lt;code&gt;; logon script = logon.cmd&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;To: &lt;code&gt;logon script = allusers.bat&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Please note that I removed the semicolon (;) and changed the name of the file.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Now when Windows clients log in to the domain the script will run. &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="31"&gt;&lt;/a&gt;Appendix A: Final &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt; File  &lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Here is a copy of my final &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt; file for your reference. This has all my customization in it already.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;# # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which  # are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash)  # is a comment and is ignored. In this example we will use a # # for commentary and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command # "testparm" to check that you have not made any basic syntactic  # errors.  #  #======================= Global Settings =======================  [global]  ## Browsing/Identification ###  # Change this to the workgroup/NT-domain name your Samba server will part of #   workgroup = MSHOME workgroup = EXAMPLE  # server string is the equivalent of the NT Description field    server string = %h server (Samba, Ubuntu)  # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable its WINS Server ;   wins support = no  # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ;   wins server = w.x.y.z  # This will prevent nmbd to search for NetBIOS names through DNS.    dns proxy = no  # What naming service and in what order should we use to resolve host names # to IP addresses ;   name resolve order = lmhosts host wins bcast  #### Networking ####  # The specific set of interfaces / networks to bind to # This can be either the interface name or an IP address/netmask; # interface names are normally preferred ;   interfaces = 127.0.0.0/8 eth0  # Only bind to the named interfaces and/or networks; you must use the # 'interfaces' option above to use this. # It is recommended that you enable this feature if your Samba machine is # not protected by a firewall or is a firewall itself.  However, this # option cannot handle dynamic or non-broadcast interfaces correctly. ;   bind interfaces only = true    #### Debugging/Accounting ####  # This tells Samba to use a separate log file for each machine # that connects    log file = /var/log/samba/log.%m  # Put a capping on the size of the log files (in Kb).    max log size = 1000  # If you want Samba to only log through syslog then set the following # parameter to 'yes'. ;   syslog only = no  # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher.    syslog = 0  # Do something sensible when Samba crashes: mail the admin a backtrace    panic action = /usr/share/samba/panic-action %d   ####### Authentication #######  # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details. ;   security = user security = user  # You may wish to use password encryption.  See the section on # 'encrypt passwords' in the smb.conf(5) manpage before enabling.    encrypt passwords = true  # If you are using encrypted passwords, Samba will need to know what # password database type you are using.   #   passdb backend = tdbsam passdb backend = ldapsam:ldap://localhost/  #   obey pam restrictions = yes obey pam restrictions = no   ####################################################################### #COPY AND PASTE THE FOLLOWING UNDERNEATH "OBEY PAM RESTRICTIONS = NO" ####################################################################### # #       Begin: Custom LDAP Entries # ldap admin dn = cn=admin,dc=example,dc=local ldap suffix = dc=example, dc=local ldap group suffix = ou=Groups ldap user suffix = ou=Users ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ; Do ldap passwd sync ldap passwd sync = Yes passwd program = /usr/sbin/smbldap-passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* add user script = /usr/sbin/smbldap-useradd -m "%u" ldap delete dn = Yes delete user script = /usr/sbin/smbldap-userdel "%u" add machine script = /usr/sbin/smbldap-useradd -w "%u" add group script = /usr/sbin/smbldap-groupadd -p "%g" delete group script = /usr/sbin/smbldap-groupdel "%g" add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g" delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g" set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u" domain logons = yes # #       End: Custom LDAP Entries # ##################################################### #STOP COPYING HERE!  #####################################################     ;   guest account = nobody ;   invalid users = root  # This boolean parameter controls whether Samba attempts to sync the Unix # password with the SMB password when the encrypted SMB password in the # passdb is changed. ;   unix password sync = no  # For Unix password sync to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Ian Kahan &lt; program =" /usr/bin/passwd" chat =" *Enter\snew\sUNIX\spassword:*" change =" no" logons =" yes" path =" \\%N\profiles\%U" path =" \\%N\%U\profile" path ="  #" drive =" H:" home =" \\%N\%U" script =" logon.cmd" script =" allusers.bat" script =" /usr/sbin/adduser" printers =" yes" printing =" bsd" name =" /etc/printcap" printing =" cups" name =" cups" admin =" @lpadmin" include =" /home/samba/etc/smb.conf.%m" so_rcvbuf="8192" so_sndbuf="8192" options =" TCP_NODELAY" command =" /bin/sh" master =" auto" uid =" 10000-20000" gid =" 10000-20000" shell =" /bin/bash" groups =" yes" users =" yes" definitions ="=" comment =" Home" browseable =" no" users =" %S" writable =" no" group="rw" mask =" 0700" group="rw" mask =" 0700" comment =" Network" path =" /home/samba/netlogon" ok =" yes" writable =" no" modes =" no" comment =" Users" path =" /home/samba/profiles" ok =" no" browseable =" no" mask =" 0600" mask =" 0700" comment =" All" browseable =" no" path =" /var/spool/samba" printable =" yes" public =" no" writable =" no" mode =" 0700" comment =" Printer" path =" /var/lib/samba/printers" browseable =" yes" only =" yes" ok =" no" list =" root," comment =" Samba" writable =" no" locking =" no" path =" /cdrom" public =" yes" preexec =" /bin/mount" postexec =" /bin/umount" path =" /ldaphome" writeable =" yes" browseable =" yes" mask =" 0777" mode =" 0" mask =" 0777" mode =""&gt;&lt;h2 class=""&gt;&lt;a name=" 32="&gt;Appendix B: Final &lt;code&gt;/etc/ldap/slapd.conf&lt;/code&gt; File  &lt;/h2&gt;&lt;br /&gt;&lt;p&gt;Here is a copy of my final &lt;code&gt;/etc/ldap/slapd.conf&lt;/code&gt; file for your reference.&lt;/p&gt; &lt;pre&gt;# This is the main slapd configuration file. See slapd.conf(5) for more # info on the configuration options.  ####################################################################### # Global Directives:  # Features to permit #allow bind_v2  # Schema and objectClass definitions include         /etc/ldap/schema/core.schema include         /etc/ldap/schema/cosine.schema include         /etc/ldap/schema/nis.schema include         /etc/ldap/schema/inetorgperson.schema include         /etc/ldap/schema/samba.schema include         /etc/ldap/schema/misc.schema  # Where the pid file is put. The init.d script # will not stop the server if you change this. pidfile         /var/run/slapd/slapd.pid  # List of arguments that were passed to the server argsfile        /var/run/slapd/slapd.args  # Read slapd.conf(5) for possible values loglevel        0  # Where the dynamically loaded modules are stored modulepath      /usr/lib/ldap moduleload      back_bdb  # The maximum number of entries that is returned for a search operation sizelimit 500  # The tool-threads parameter sets the actual amount of cpu's that is used # for indexing. tool-threads 1  ####################################################################### # Specific Backend Directives for bdb: # Backend specific directives apply to this backend until another # 'backend' directive occurs backend         bdb checkpoint 512 30  ####################################################################### # Specific Backend Directives for 'other': # Backend specific directives apply to this backend until another # 'backend' directive occurs #backend                  ####################################################################### # Specific Directives for database #1, of type bdb: # Database specific directives apply to this databasse until another # 'database' directive occurs database        bdb  # The base of your directory in database #1 suffix          " specifying="" superuser="" needed="" rootdn="" cn="admin,dc=example,dc=local&amp;quot;" file="" physically="" stored="" ldap_data="" debian="" package="" we="" use="" 2mb="" sure="" update="" plenty="" ram="" set_cachesize="" 2097152="" 0="" sven="" hartge="" reported="" he="" had="" set="" value="" incredibly="" high="" get="" slapd="" running="" org="" 303057="" more="" objects="" locked="" at="" same="" set_lk_max_objects="" locks="" both="" requested="" set_lk_max_locks="" number="" lockers="" dbconfig="" set_lk_max_lockers="" 1500="" indexing="" options="" index="" objectclass="" eq="" save="" time="" lastmod="" on="" where="" store="" replica="" logs="" replogfile="" var="" lib="" ldap="" replog="" userpassword="" default="" changed="" owning="" it="" others="" should="" able="" see="" except="" entry="" these="" lines="" 1="" only="" attrs="userPassword,shadowLastChange,sambaNTPassword,sambaLMPassword" anonymous="" auth="" self="" none="" ensure="" things="" like="" without="" may="" problems="" with="" not="" knowing="" what="" mechanisms="" available="" note="" is="" covered="" acl="" below="" too="" but="" change="" that="" as="" people="" are="" wont="" do="" ll="" still="" need="" if="" you="" want="" sasl="" and="" possible="" work="" admin="" has="" full="" everyone="" else="" read="" netscape="" each="" user="" gets="" a="" roaming="" profile="" which="" they="" have="" access="" dn="cn=admin,dc=example,dc=local" by="" dnattr="owner" write="" type="" other="" can="" be="" bdb="" specific="" directives="" apply="" to="" this="" databasse="" until="" another="" directive="" occurs="" the="" base="" of="" your="" directory="" for="" database="" 2="" suffix="" dc="example,dc=local&amp;quot;"&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 128);font-size:100%;" &gt;&lt;u&gt;&lt;a href="http://www.rrcomputerconsulting.com/view.php?article_id=3#articletop"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/h2&gt;&lt;h2 class="western"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="33"&gt;&lt;/a&gt;&lt;span style="font-size:100%;"&gt;Appendix C: Windows XP Professional SP2 Client Configuration Notes  &lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Anyone that has configured a Windows XP computer for use on a Windows domain will have no problems here. The main thing you have to remember is a) Make sure the network is working. b) Make sure DNS is working. c) Join the computer to the correct domain.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Go ahead and join the computer to the domain like you normally would.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Log into the computer as an 	Administrative user (most likely &lt;strong&gt;Administrator&lt;/strong&gt;)  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Right click "My Computer" 	and select "Properties"  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Select the "Computer Name" 	tab at the top  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Click the "Change" 	button near the bottom  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;In this new window select the 	"Domain:" radio button in the "Member of" 	section  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Type in your domain name - in our 	example the domain name to enter is simply "&lt;strong&gt;example&lt;/strong&gt;" 		&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Click the "OK" button  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;A window should pop up asking you 	for a username and password. Use "&lt;strong&gt;root&lt;/strong&gt;" 	and your root password which should still be "&lt;strong&gt;12345&lt;/strong&gt;" 	unless you changed it  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;After a few seconds you should see 	a pop-up that says "Welcome to the example domain" or 	something similar to that effect  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Click "OK"  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Click "OK" again  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:100%;"&gt;Reboot the computer  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; 	&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;When it boots you will be at a login prompt. The first time 	you try to log in you'll want to ensure that you are logging on to 	the DOMAIN, not the LOCAL COMPUTER.  	&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Follow those simple steps and you should have a Windows client on your domain in no time.  &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 class="western"&gt;&lt;!-- End of StatCounter Code --&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7948756701798756282-1026253430478732424?l=sahabm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7948756701798756282&amp;postID=1026253430478732424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1026253430478732424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7948756701798756282/posts/default/1026253430478732424'/><link rel='alternate' type='text/html' href='http://sahabm.blogspot.com/2008/11/ldap-complete-setup.html' title='LDAP complete Setup'/><author><name>sahab</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_6W0mYQajg-E/SXcFKsg64ZI/AAAAAAAAARo/VsndtQuBNHU/S220/DSC00795.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7948756701798756282.post-5619849794632027268</id><published>2008-09-26T00:14:00.000-07:00</published><updated>2008-09-26T00:17:28.945-07:00</updated><title type='text'>Inside the Linux boot process</title><content type='html'>&lt;blockquote&gt;The process of booting a Linux® system consists of a number of stages. But whether you're booting a standard x86 desktop or a deeply embedded PowerPC® target, much of the flow is surprisingly similar. This article explores the Linux boot process from the initial bootstrap to the start of the first user-space application. Along the way, you'll learn about various other boot-related topics such as the boot loaders, kernel decompression, the initial RAM disk, and other elements of Linux boot.&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;Figure 1 gives you the 20,000-foot view.&lt;/p&gt;                             &lt;br /&gt;&lt;a name="fig1"&gt;&lt;b&gt;Figure 1. The 20,000-foot view of the Linux boot process&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;                &lt;img alt="High-level view of the Linux kernel boot" src="http://www.ibm.com/developerworks/linux/library/l-linuxboot/fig1.gif" width="529" height="300" /&gt;            &lt;br /&gt;            &lt;p&gt;When a system is first booted, or is reset, the processor executes code at a well-known location. In a personal computer (PC), this location is in the basic input/output system (BIOS), which is stored in flash memory on the motherboard. The central processing unit (CPU) in an embedded system invokes the reset vector to start a program at a known address in flash/ROM. In either case, the result is the same. Because PCs offer so much flexibility, the BIOS must determine which devices are candidates for boot. We'll look at this in more detail later.&lt;/p&gt;             &lt;p&gt;When a boot device is found, the first-stage boot loader is loaded into RAM and executed. This boot loader is less than 512 bytes in length (a single sector), and its job is to load the second-stage boot loader. &lt;/p&gt;              &lt;p&gt;When the second-stage boot loader is in RAM and executing, a splash screen is commonly displayed, and Linux and an optional initial RAM disk (temporary root file system) are loaded into memory. When the images are loaded, the second-stage boot loader passes control to the kernel image and the kernel is decompressed and initialized. At this stage, the second-stage boot loader checks the system hardware, enumerates the attached hardware devices, mounts the root device, and then loads the necessary kernel modules. When complete, the first user-space program (&lt;code&gt;init&lt;/code&gt;) starts, and high-level system initialization is performed.&lt;/p&gt;             &lt;p&gt;That's Linux boot in a nutshell. Now let's dig in a little further and explore some of the details of the Linux boot process.&lt;/p&gt;            &lt;br /&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://www.ibm.com/i/v14/rules/blue_rule.gif" alt="" width="100%" height="1" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table class="no-print" align="right" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr align="right"&gt;&lt;td&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="middle"&gt;&lt;img src="http://www.ibm.com/i/v14/icons/u_bold.gif" alt="" width="16" border="0" height="16" /&gt;&lt;/td&gt;&lt;td valign="top" align="right"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;a name="N10089"&gt;&lt;span class="atitle"&gt;System startup&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;             &lt;p&gt;The system startup stage depends on the hardware that Linux is being booted on. On an embedded platform, a bootstrap environment is used when the system is powered on, or reset. Examples include U-Boot, RedBoot, and MicroMonitor from Lucent. Embedded platforms are commonly shipped with a boot monitor. These programs reside in special region of flash memory on the target hardware and provide the means to download a Linux kernel image into flash memory and subsequently execute it. In addition to having the ability to store and boot a Linux image, these boot monitors perform some level of system test and hardware initialization. In an embedded target, these boot monitors commonly cover both the first- and second-stage boot loaders.&lt;/p&gt;             &lt;table width="40%" align="right" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="10"&gt;&lt;img alt="" src="http://www.ibm.com/i/c.gif" width="10" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="1" cellpadding="5" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#eeeeee"&gt;                 &lt;a name="N10096"&gt;&lt;b&gt;Extracting the MBR&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;                &lt;p&gt;To see the contents of your MBR, use this command:&lt;/p&gt;                 &lt;code&gt; # &lt;span class="boldcode"&gt;dd if=/dev/hda of=mbr.bin bs=512 count=1&lt;/span&gt;                    &lt;br /&gt;# &lt;span class="boldcode"&gt;od -xa mbr.bin&lt;/span&gt;                 &lt;/code&gt;                 &lt;p&gt;The &lt;code&gt;dd&lt;/code&gt; command, which needs to be run from        root, reads the first 512 bytes from /dev/hda (the first Integrated Drive Electronics,         or IDE drive) and writes them to the &lt;code&gt;mbr.bin        &lt;/code&gt; file. The &lt;code&gt;od&lt;/code&gt; command prints        the binary file in hex and ASCII formats.&lt;/p&gt;             &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;             &lt;p&gt;In a PC, booting Linux begins in the BIOS at address 0xFFFF0. The first step of the BIOS is the power-on self test (POST). The job of the POST is to perform a check of the hardware. The second step of the BIOS is local device enumeration and initialization.&lt;/p&gt;             &lt;p&gt;Given the different uses of BIOS functions, the BIOS is made up of two parts: the POST code and runtime services. After the POST is complete, it is flushed from memory, but the BIOS runtime services remain and are available to the target operating system.&lt;/p&gt;             &lt;p&gt;To boot an operating system, the BIOS runtime searches for devices that are both active and bootable in the order of preference defined by the complementary metal oxide semiconductor (CMOS) settings. A boot device can be a floppy disk, a CD-ROM, a partition on a hard disk, a device on the network, or even a USB flash memory stick.&lt;/p&gt;             &lt;p&gt;Commonly, Linux is booted from a hard disk, where the Master Boot Record (MBR) contains the primary boot loader. The MBR is a 512-byte sector, located in the first sector on the disk (sector 1 of cylinder 0, head 0). After the MBR is loaded into RAM, the BIOS yields control to it.&lt;/p&gt;            &lt;br /&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://www.ibm.com/i/v14/rules/blue_rule.gif" alt="" width="100%" height="1" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;a name="N100C6"&gt;&lt;span class="atitle"&gt;Stage 1 boot loader&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;             &lt;p&gt;The primary boot loader that resides in the MBR is a 512-byte image containing both program code and a small partition table (see Figure 2). The first 446 bytes are the primary boot loader, which contains both executable code and error message text. The next sixty-four bytes are the partition table, which contains a record for each of four partitions (sixteen bytes each). The MBR ends with two bytes that are defined as the magic number (0xAA55). The magic number serves as a validation check of the MBR.&lt;/p&gt;                             &lt;br /&gt;&lt;a name="fig2"&gt;&lt;b&gt;Figure 2. Anatomy of the MBR&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;                &lt;img alt="Anatomy of the MBR" src="http://www.ibm.com/developerworks/linux/library/l-linuxboot/fig2.gif" width="479" height="469" /&gt;            &lt;br /&gt;            &lt;p&gt;The job of the primary boot loader is to find and load the secondary boot loader (stage 2). It does this by looking through the partition table for an active partition. When it finds an active partition, it scans the remaining partitions in the table to ensure that they're all inactive. When this is verified, the active partition's boot record is read from the device into RAM and executed.&lt;/p&gt;            &lt;br /&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://www.ibm.com/i/v14/rules/blue_rule.gif" alt="" width="100%" height="1" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table class="no-print" align="right" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr align="right"&gt;&lt;td&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="middle"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td valign="top" align="right"&gt;&lt;a href="http://www.ibm.com/developerworks/linux/library/l-linuxboot/#main" class="fbox"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a name="N100E2"&gt;&lt;span class="atitle"&gt;Stage 2 boot loader&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;             &lt;p&gt;The secondary, or second-stage, boot loader could be more aptly called the kernel loader. The task at this stage is to load the Linux kernel and optional initial RAM disk.&lt;/p&gt;             &lt;table width="40%" align="right" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="10"&gt;&lt;img alt="" src="http://www.ibm.com/i/c.gif" width="10" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="1" cellpadding="5" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#eeeeee"&gt;                 &lt;a name="N100EF"&gt;&lt;b&gt;GRUB stage boot loaders&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;                &lt;p&gt;The &lt;code&gt;/boot/grub&lt;/code&gt; directory contains the      &lt;code&gt;stage1&lt;/code&gt;, &lt;code&gt;stage1.5&lt;/code&gt;,       and &lt;code&gt;stage2&lt;/code&gt; boot loaders, as well as a number of      alternate loaders (for example, CR-ROMs use the &lt;code&gt;iso9660_stage_1_5&lt;/code&gt;).&lt;/p&gt;             &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;              &lt;p&gt;The first- and second-stage boot loaders combined are called Linux Loader (LILO) or GRand Unified Bootloader (GRUB) in the x86 PC environment. Because LILO has some disadvantages that were corrected in GRUB, let's look into GRUB. (See many additional resources on GRUB, LILO, and related topics in the &lt;a href="http://www.ibm.com/developerworks/linux/library/l-linuxboot/#resources"&gt;Resources&lt;/a&gt; section later in this article.)&lt;/p&gt;              &lt;p&gt;The great thing about GRUB is that it includes knowledge of Linux file systems. Instead of using raw sectors on the disk, as LILO does, GRUB can load a Linux kernel from an ext2 or ext3 file system. It does this by making the two-stage boot loader into a three-stage boot loader. Stage 1 (MBR) boots a stage 1.5 boot loader that understands the particular file system containing the Linux kernel image. Examples include &lt;code&gt;reiserfs_stage1_5&lt;/code&gt; (to load from a Reiser journaling file system) or &lt;code&gt;e2fs_stage1_5&lt;/code&gt; (to load from an ext2 or ext3 file system). When the stage 1.5 boot loader is loaded and running, the stage 2 boot loader can be loaded.&lt;/p&gt;              &lt;p&gt;With stage 2 loaded, GRUB can, upon request, display a list of available kernels (defined in &lt;code&gt;/etc/grub.conf&lt;/code&gt;, with soft links from &lt;code&gt;/etc/grub/menu.lst&lt;/code&gt; and &lt;code&gt;/etc/grub.conf&lt;/code&gt;).  You can select a kernel and even amend it with additional kernel parameters.  Optionally, you can use a command-line shell for greater manual control over the boot process. &lt;/p&gt;              &lt;p&gt;With the second-stage boot loader in memory, the file system is consulted, and the default kernel image and &lt;code&gt;initrd&lt;/code&gt; image are loaded into memory. With the images ready, the stage 2 boot loader invokes the kernel image.&lt;/p&gt;            &lt;br /&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="http://www.ibm.com/i/v14/rules/blue_rule.gif" alt="" width="100%" height="1" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table class="no-print" align="right" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr align="right"&gt;&lt;td&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="middle"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td valign="top" align="right"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a name="N10134"&gt;&lt;span class="atitle"&gt;Kernel&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;             &lt;table width="40%" align="right" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="10"&gt;&lt;img alt="" src="http://www.ibm.com/i/c.gif" width="10" height="1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;table width="100%" border="1" cellpadding="5" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#eeeeee"&gt;                 &lt;a name="N1013E"&gt;&lt;b&gt;Manual boot in GRUB&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;                 &lt;p&gt;From the GRUB command-line, you can boot a specific kernel with a        named &lt;code&gt;initrd&lt;/code&gt; image as follows:&lt;/p&gt;                 &lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="code-outline"&gt;&lt;pre class="displaycode"&gt;grub&gt; &lt;span class="boldcode"&gt;kernel /bzImage-2.6.14.2&lt;/span&gt;&lt;br /&gt;  [Linux-bzImage, setup=0x1400, size=0x29672e]&lt;br /&gt;&lt;br /&gt;grub&gt; &lt;span class="boldcode"&gt;initrd /initrd-2.6.14.2.img&lt;/span&gt;&lt;br /&gt;  [Linux-initrd @ 0x5f13000, 0xcc199 bytes]&lt;br /&gt;&lt;br /&gt;grub&gt; &lt;span class="boldcode"&gt;boot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Uncompressing Linux... Ok, booting the kernel.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;                 &lt;p&gt;If you don't know the name of the kernel to boot, just type a forward slash (/)        and press the Tab key. GRUB will display the list of kernels and &lt;code&gt;initrd&lt;/code&gt;        images.&lt;/p&gt;             &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;             &lt;p&gt;With the kernel image in memory and control given from the stage 2 boot loader, the kernel stage begins. The kernel image isn't so much an executable kernel, but a compressed kernel image. Typically this is a zImage (compressed image, less than 512KB) or a bzImage (big compressed image, greater than 512KB), that has been previously compressed with zlib. At the head of this kernel image is a routine that does some minimal amount of hardware setup and the
