<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7200595626262369522</atom:id><lastBuildDate>Sat, 19 Dec 2009 20:58:04 +0000</lastBuildDate><title>Boiling Linux and Windows</title><description>Linux, Windows &amp;amp; AIX Research, Deployment and Development.</description><link>http://boilinglinux.blogspot.com/</link><managingEditor>hanselzen@gmail.com (Last King of Kho's Kingdom)</managingEditor><generator>Blogger</generator><openSearch:totalResults>142</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BoilingLinuxAndWindows" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-3689334426570706618</guid><pubDate>Fri, 10 Jul 2009 17:41:00 +0000</pubDate><atom:updated>2009-07-10T10:44:07.541-07:00</atom:updated><title>Pear Module in Ubuntu doesn’t work</title><description>&lt;p&gt;I have tried this tips to &lt;a href="http://pear.php.net/manual/en/installation.getting.php"&gt;install and configure Pear Module&lt;/a&gt; and &lt;a href="http://pear.php.net/manual/en/installation.checking.php" target="_blank"&gt;check the Pear Module&lt;/a&gt; but when run my script this error still appear&lt;/p&gt; &lt;pre class="screen" style="background-color: rgb(238, 238, 238); width: 100%;"&gt;Warning: require_once(System.php): failed to open stream:&lt;br /&gt; No such file or directory in /path/to/check_pear.php on line 2&lt;/pre&gt; &lt;p&gt;After did some checking, i found the culprit which is apparmor. I added pear include_path into apparmor.d/usr.sbin.apache2 then restart apparmor daemon.&lt;/p&gt; &lt;p&gt;Done, and now my php script can call pear module.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-3689334426570706618?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/VyzkJ_TLsxY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/VyzkJ_TLsxY/pear-module-in-ubuntu-doesnt-work.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/07/pear-module-in-ubuntu-doesnt-work.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-4646053867231047597</guid><pubDate>Tue, 19 May 2009 14:56:00 +0000</pubDate><atom:updated>2009-05-19T08:02:36.282-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ubuntu banner message</category><category domain="http://www.blogger.com/atom/ns#">linux banner message</category><title>How to enable issue / banner message when user log in</title><description>Login as root and edit ssh config file:&lt;br /&gt;# pico /etc/ssh/sshd_config&lt;br /&gt;Find this variable in the config file&lt;br /&gt;&lt;blockquote&gt;#Banner /etc/issue.net&lt;/blockquote&gt;Uncomment it and save the file.&lt;br /&gt;Restart openssh server.&lt;br /&gt;# /etc/init.d/ssh restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-4646053867231047597?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/CsCRToPGOco" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/CsCRToPGOco/how-to-enable-issue-banner-message-when.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/05/how-to-enable-issue-banner-message-when.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-6981804695114963847</guid><pubDate>Fri, 20 Feb 2009 08:42:00 +0000</pubDate><atom:updated>2009-02-20T00:45:49.352-08:00</atom:updated><title>How to enable banner message (MOTD) in Ubuntu (Linux) Login</title><description>&lt;pre class="programlisting"&gt;Edit /etc/motd.tail and put your welcome message in that file.&lt;br /&gt;Enable ssh login to print welcome banner when user login:&lt;br /&gt;Edit /etc/ssh/sshd_config&lt;br /&gt;Find -&gt; &lt;span style="font-weight: bold;"&gt;PrintMotd no&lt;/span&gt; and enable it -&gt; &lt;span style="font-weight: bold;"&gt;PrintMotd yes&lt;/span&gt;&lt;br /&gt;Save the file and restart ssh daemon.&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/7200595626262369522-6981804695114963847?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/44uOELlrUHM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/44uOELlrUHM/how-to-enable-banner-message-motd-in.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-to-enable-banner-message-motd-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-6028127700266344819</guid><pubDate>Tue, 10 Feb 2009 03:55:00 +0000</pubDate><atom:updated>2009-02-10T17:12:56.446-08:00</atom:updated><title>Folder access restriction on IIS</title><description>I need to give restriction to one of folder in my website so it can be access only from my office network.&lt;br /&gt;&lt;br /&gt;Go to Control Panel &gt; Administrative Tools &gt; IIS Manager&lt;br /&gt;Browse your file and choose which folder that you want to give access restriction then right click &gt; Properties &gt; Directory Security&lt;br /&gt;Find &lt;span style="font-style: italic; font-weight: bold;"&gt;IP address and domain name restrictions&lt;/span&gt; section click &lt;span style="font-style: italic; font-weight: bold;"&gt;Edit&lt;/span&gt; button.&lt;br /&gt;Choose &lt;span style="font-weight: bold;"&gt;Denied access&lt;/span&gt; and click &lt;span style="font-weight: bold;"&gt;Add...&lt;/span&gt;&lt;br /&gt;You can choose type of restrictions you need to be allow, what i want is allow my office network so i choose &lt;span style="font-weight: bold;"&gt;Group of computers&lt;/span&gt;&lt;br /&gt;I key in&lt;br /&gt;Network ID: 10.0.0.0 (my office network ip range)&lt;br /&gt;Subnet mask: 255.255.0.0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-6028127700266344819?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/u6Lq-TGeH0s" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/u6Lq-TGeH0s/how-set-folder-access-restriction-on.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-set-folder-access-restriction-on.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-5559543149365542721</guid><pubDate>Tue, 10 Feb 2009 02:38:00 +0000</pubDate><atom:updated>2009-02-09T18:40:47.367-08:00</atom:updated><title>How to create / build .deb packages</title><description>Came across the websites i found detail &lt;a href="https://wiki.ubuntu.com/PackagingGuide/Basic?action=show&amp;amp;redirect=HowToBuildDebianPackagesFromScratch"&gt;how to build .deb packages&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Another easy way to create .deb.&lt;br /&gt;&lt;blockquote style="font-style: italic;"&gt;Install it and when you compile a software type "sudo checkinstall -D" instead of "sudo make install", it will install the software giving synaptic all the needed informations to see it and create a .deb.&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-5559543149365542721?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/q2UDplX9fkw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/q2UDplX9fkw/how-to-create-build-deb-packages.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-to-create-build-deb-packages.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-5981787918905824106</guid><pubDate>Tue, 10 Feb 2009 00:31:00 +0000</pubDate><atom:updated>2009-02-09T16:32:31.455-08:00</atom:updated><title>How to reset password on Windows and Unix (Linux)</title><description>&lt;h5 class="title"&gt;Resetting the Root Password on Windows Systems&lt;/h5&gt; &lt;p&gt;             Use the following procedure for resetting the password for             any MySQL &lt;code class="literal"&gt;root&lt;/code&gt; accounts on Windows:           &lt;/p&gt; &lt;div class="orderedlist"&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;                 Log on to your system as Administrator.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Stop the MySQL server if it is running. For a server                 that is running as a Windows service, go to the Services                 manager:               &lt;/p&gt; &lt;pre class="programlisting"&gt;Start Menu -&gt; Control Panel -&gt; Administrative Tools -&gt; Services&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 Then find the MySQL service in the list, and stop it.               &lt;/p&gt; &lt;p&gt;                 If your server is not running as a service, you may need                 to use the Task Manager to force it to stop.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Create a text file and place the following statements in                 it. Replace the password with the password that you want                 to use.               &lt;/p&gt; &lt;pre class="programlisting"&gt;UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 The &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; and                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/flush.html" title="12.5.6.3. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt; statements each                 must be written on a single line. The                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; statement resets                 the password for all existing &lt;code class="literal"&gt;root&lt;/code&gt;                 accounts, and the &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/flush.html" title="12.5.6.3. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt;                 statement tells the server to reload the grant tables                 into memory.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 Save the file. For this example, the file will be named                 &lt;code class="filename"&gt;C:\mysql-init.txt&lt;/code&gt;.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Open a console window to get to the command prompt:               &lt;/p&gt; &lt;pre class="programlisting"&gt;Start Menu -&gt; Run -&gt; cmd&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Start the MySQL server with the special                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option:               &lt;/p&gt; &lt;pre class="programlisting"&gt;C:\&gt; &lt;strong class="userinput"&gt;&lt;code&gt;C:\mysql\bin\mysqld --init-file=C:\mysql-init.txt&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 If you installed MySQL to a location other than                 &lt;code class="filename"&gt;C:\mysql&lt;/code&gt;, adjust the command                 accordingly.               &lt;/p&gt; &lt;p&gt;                 The server executes the contents of the file named by                 the &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option at                 startup, changing each &lt;code class="literal"&gt;root&lt;/code&gt; account                 password.               &lt;/p&gt; &lt;p&gt;                 You can also add the                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_console"&gt;&lt;code class="option"&gt;--console&lt;/code&gt;&lt;/a&gt; option to the                 command if you want server output to appear in the                 console window rather than in a log file.               &lt;/p&gt; &lt;p&gt;                 If you installed MySQL using the MySQL Installation                 Wizard, you may need to specify a                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/option-files.html#option_general_defaults-file"&gt;&lt;code class="option"&gt;--defaults-file&lt;/code&gt;&lt;/a&gt; option:               &lt;/p&gt; &lt;pre class="programlisting"&gt;C:\&gt; &lt;strong class="userinput"&gt;&lt;code&gt;"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld.exe"&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;        &lt;strong class="userinput"&gt;&lt;code&gt;--defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini"&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;        &lt;strong class="userinput"&gt;&lt;code&gt;--init-file=C:\mysql-init.txt&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 The appropriate                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/option-files.html#option_general_defaults-file"&gt;&lt;code class="option"&gt;--defaults-file&lt;/code&gt;&lt;/a&gt; setting                 can be found using the Services Manager:               &lt;/p&gt; &lt;pre class="programlisting"&gt;Start Menu -&gt; Control Panel -&gt; Administrative Tools -&gt; Services&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 Find the MySQL service in the list, right-click on it,                 and choose the &lt;code class="literal"&gt;Properties&lt;/code&gt; option. The                 &lt;code class="literal"&gt;Path to executable&lt;/code&gt; field contains the                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/option-files.html#option_general_defaults-file"&gt;&lt;code class="option"&gt;--defaults-file&lt;/code&gt;&lt;/a&gt; setting.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 After the server has started successfully, delete                 &lt;code class="filename"&gt;C:\mysql-init.txt&lt;/code&gt;.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                 Stop the MySQL server, then restart it in normal mode                 again. If you run the server as a service, start it from                 the Windows Services window. If you start the server                 manually, use whatever command you normally use.               &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;p&gt;             You should now be able to connect to MySQL as             &lt;code class="literal"&gt;root&lt;/code&gt; using the new password.&lt;br /&gt;&lt;/p&gt;&lt;h5 class="title"&gt;Resetting the Root Password on Unix Systems&lt;/h5&gt;  &lt;p&gt;             Use the following procedure for resetting the password for             any MySQL &lt;code class="literal"&gt;root&lt;/code&gt; accounts on Unix. The             instructions assume that you will start the server so that             it runs using the Unix login account that you normally use             for running the server. For example, if you run the server             using the &lt;code class="literal"&gt;mysql&lt;/code&gt; login account, you should             log in as &lt;code class="literal"&gt;mysql&lt;/code&gt; before using the             instructions. (Alternatively, you can log in as             &lt;code class="literal"&gt;root&lt;/code&gt;, but in this case you             &lt;span class="emphasis"&gt;&lt;em&gt;must&lt;/em&gt;&lt;/span&gt; start start             &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; with the             &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_user"&gt;&lt;code class="option"&gt;--user=mysql&lt;/code&gt;&lt;/a&gt; option. If you             start the server as &lt;code class="literal"&gt;root&lt;/code&gt; without using             &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_user"&gt;&lt;code class="option"&gt;--user=mysql&lt;/code&gt;&lt;/a&gt;, the server may             create &lt;code class="literal"&gt;root&lt;/code&gt;-owned files in the data             directory, such as log files, and these may cause             permission-related problems for future server startups. If             that happens, you will need to either change the ownership             of the files to &lt;code class="literal"&gt;mysql&lt;/code&gt; or remove them.)           &lt;/p&gt; &lt;div class="orderedlist"&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;                 Log on to your system as the Unix                 &lt;code class="literal"&gt;mysql&lt;/code&gt; user that the                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; server runs as.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Locate the &lt;code class="filename"&gt;.pid&lt;/code&gt; file that contains                 the server's process ID. The exact location and name of                 this file depend on your distribution, host name, and                 configuration. Common locations are                 &lt;code class="filename"&gt;/var/lib/mysql/&lt;/code&gt;,                 &lt;code class="filename"&gt;/var/run/mysqld/&lt;/code&gt;, and                 &lt;code class="filename"&gt;/usr/local/mysql/data/&lt;/code&gt;. Generally,                 the file name has an extension of                 &lt;code class="filename"&gt;.pid&lt;/code&gt; and begins with either                 &lt;code class="filename"&gt;mysqld&lt;/code&gt; or your system's host name.               &lt;/p&gt; &lt;p&gt;                 You can stop the MySQL server by sending a normal                 &lt;code class="literal"&gt;kill&lt;/code&gt; (not &lt;code class="literal"&gt;kill -9&lt;/code&gt;)                 to the &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; process, using the path                 name of the &lt;code class="filename"&gt;.pid&lt;/code&gt; file in the                 following command:               &lt;/p&gt; &lt;pre class="programlisting"&gt;shell&gt; &lt;strong class="userinput"&gt;&lt;code&gt;kill `cat /mysql-data-directory/host_name.pid`&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 Note the use of backticks rather than forward quotes                 with the &lt;code class="literal"&gt;cat&lt;/code&gt; command; these cause the                 output of &lt;code class="literal"&gt;cat&lt;/code&gt; to be substituted into                 the &lt;code class="literal"&gt;kill&lt;/code&gt; command.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Create a text file and place the following statements in                 it. Replace the password with the password that you want                 to use.               &lt;/p&gt; &lt;pre class="programlisting"&gt;UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 The &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; and                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/flush.html" title="12.5.6.3. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt; statements each                 must be written on a single line. The                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; statement resets                 the password for all existing &lt;code class="literal"&gt;root&lt;/code&gt;                 accounts, and the &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/flush.html" title="12.5.6.3. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt;                 statement tells the server to reload the grant tables                 into memory.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 Save the file. For this example, the file will be named                 &lt;code class="filename"&gt;/home/me/mysql-init&lt;/code&gt;. The file                 contains the password, so it should not be saved where                 it can be read by other users.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Start the MySQL server with the special                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option:               &lt;/p&gt; &lt;pre class="programlisting"&gt;shell&gt; &lt;strong class="userinput"&gt;&lt;code&gt;mysqld_safe --init-file=/home/me/mysql-init &amp;amp;&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;                 The server executes the contents of the file named by                 the &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option at                 startup, changing each &lt;code class="literal"&gt;root&lt;/code&gt; account                 password.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 After the server has started successfully, delete                 &lt;code class="filename"&gt;/home/me/mysql-init&lt;/code&gt;.               &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;p&gt;             You should now be able to connect to MySQL as             &lt;code class="literal"&gt;root&lt;/code&gt; using the new password.           &lt;/p&gt; &lt;p&gt;             Alternatively, on any platform, you can set the new password             using the &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysql.html" title="4.5.1. mysql — The MySQL Command-Line Tool"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysql&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; client (but this approach             is less secure):           &lt;/p&gt; &lt;div class="orderedlist"&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;                 Stop &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; and restart it with the                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_skip-grant-tables"&gt;&lt;code class="option"&gt;--skip-grant-tables&lt;/code&gt;&lt;/a&gt;                 option.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Connect to the &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; server with                 this command:               &lt;/p&gt; &lt;pre class="programlisting"&gt;shell&gt; &lt;strong class="userinput"&gt;&lt;code&gt;mysql&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Issue the following statements in the                 &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysql.html" title="4.5.1. mysql — The MySQL Command-Line Tool"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysql&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; client. Replace the password                 with the password that you want to use.               &lt;/p&gt; &lt;pre class="programlisting"&gt;mysql&gt; &lt;strong class="userinput"&gt;&lt;code&gt;UPDATE mysql.user SET Password=PASSWORD('MyNewPass')&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;   -&gt;                   &lt;strong class="userinput"&gt;&lt;code&gt;WHERE User='root';&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;mysql&gt; &lt;strong class="userinput"&gt;&lt;code&gt;FLUSH PRIVILEGES;&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;p&gt;             You should now be able to connect to MySQL as             &lt;code class="literal"&gt;root&lt;/code&gt; using the new password.           &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-5981787918905824106?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/wmWrr-PZvW8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/wmWrr-PZvW8/how-to-reset-password-on-windows-and.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-to-reset-password-on-windows-and.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-8154148387778175142</guid><pubDate>Mon, 09 Feb 2009 06:57:00 +0000</pubDate><atom:updated>2009-02-08T23:14:39.169-08:00</atom:updated><title>How to fix drop down menu blocked by flash</title><description>In your swf code in the html, add the following to your OBJECT statement:&lt;br /&gt;&amp;lt;param name="WMode" value="Transparent"&amp;gt;&lt;br /&gt;&lt;br /&gt;Then if you have an EMBED statement, add:&lt;br /&gt;wmode="transparent"&lt;br /&gt;&lt;br /&gt;Sample:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;&amp;lt;param name="movie" value="file.swf"&amp;gt;&lt;br /&gt;&amp;lt;param name="quality" value="high"&amp;gt;&lt;br /&gt;&amp;lt;span style="font-weight: bold;"&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;param name="WMode" value="Transparent"&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;embed src="tes.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="340" &lt;span style="font-weight: bold;"&gt;wmode="transparent"&lt;/span&gt;&amp;gt;&amp;lt;/embed&amp;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/7200595626262369522-8154148387778175142?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/vghChPDXhGk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/vghChPDXhGk/how-to-fix-drop-down-menu-blocked-by.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-to-fix-drop-down-menu-blocked-by.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-5854341512538228700</guid><pubDate>Mon, 09 Feb 2009 06:16:00 +0000</pubDate><atom:updated>2009-02-08T22:17:27.348-08:00</atom:updated><title>Reload php.ini on IIS</title><description>Making changes to the php.ini file settings will not be seen until the IIS (Internet Information Services) reloads or re-caches the settings. To check the current php.ini file settings, create a page that displays the PHP info.&lt;br /&gt;&lt;br /&gt;Sample PHP info page (phpinfo.php):&lt;br /&gt;&lt;br /&gt;Open your IIS 6 manager, expand the Application Pools folder, right click on DefaultAppPool and press Recycle. It only takes a second.&lt;br /&gt;&lt;br /&gt;Then reload the sample PHP info page (phpinfo.php). The new setting will be listed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-5854341512538228700?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/X7pqYAQqv78" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/X7pqYAQqv78/reload-phpini-on-iis.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/reload-phpini-on-iis.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-1333628849014829847</guid><pubDate>Fri, 06 Feb 2009 08:43:00 +0000</pubDate><atom:updated>2009-02-06T00:52:40.650-08:00</atom:updated><title>How to change ssh (login) welcome banner (message) in Ubuntu (Linux)</title><description>&lt;span style="font-weight: bold;"&gt;Simple:&lt;/span&gt;&lt;br /&gt;Edit /etc/motd and change the text with your choosen welcome banner.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Detail:&lt;/span&gt;&lt;br /&gt;Every time I connect to my Ubuntu development server through my ssh client, I receive the same message and I'm getting tired of seeing it, so I decided to change the message to something else.&lt;br /&gt;&lt;br /&gt;Here's the message that I get every time:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;    Linux superfast 2.6.20-16-generic #2 SMP Thu Jun 7 19:00:28 UTC 2007 x86_64&lt;br /&gt;&lt;br /&gt;  The programs included with the Ubuntu system are free software;&lt;br /&gt;  the exact distribution terms for each program are described in the&lt;br /&gt;  individual files in /usr/share/doc/*/copyright.&lt;br /&gt;&lt;br /&gt;  Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by&lt;br /&gt;  applicable law.&lt;br /&gt;&lt;br /&gt;  Last login: Mon Aug 13 01:05:46 2007 from ipaddress removed&lt;br /&gt;&lt;br /&gt;  geek@superfast:~$&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;Changing this message requires editing two different files. The first three sections can be modified by editing the following file:&lt;br /&gt;&lt;blockquote&gt;/etc/motd&lt;/blockquote&gt;This file contains the linux build number as well as the Ubuntu warranty message. I don't find this particularly useful, so I removed all of it and replaced it with my own message.&lt;br /&gt;&lt;br /&gt;To disable the last login message (which I don't recommend doing), you will need to edit the following file in sudo mode:&lt;br /&gt;  &lt;blockquote&gt;/etc/ssh/sshd_config&lt;/blockquote&gt;Find this line in the file and change the yes to no as shown:&lt;br /&gt;  &lt;blockquote&gt;PrintLastLog no&lt;/blockquote&gt;Now when you login, you'll get a blank prompt, although I wouldn't necessarily recommend it because it's useful to see the last login to the system for security reasons. This is my prompt now:&lt;br /&gt;&lt;br /&gt;  This is a superfast system. Please max out the cpu accordingly.&lt;br /&gt;  &lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;Last login: Mon Aug 13 01:24:14 2007 from ipaddress removed&lt;br /&gt;  geek@superfast:~$&lt;br /&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/7200595626262369522-1333628849014829847?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/JNtEk2_ceYk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/JNtEk2_ceYk/how-to-change-welcome-banner-in-ubuntu.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-to-change-welcome-banner-in-ubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-5918008040990730730</guid><pubDate>Fri, 06 Feb 2009 08:34:00 +0000</pubDate><atom:updated>2009-02-06T00:37:14.834-08:00</atom:updated><title>Root login email notification in Linux All Variant</title><description>Edit /root/.bashrc or /root/.bash_profile&lt;br /&gt;Put this code inside .bashrc&lt;br /&gt;&lt;blockquote&gt;echo 'ALERT - Root Shell Access `hostname` on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" email@myhost.com&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-5918008040990730730?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/73r5XNbRH0Q" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/73r5XNbRH0Q/root-login-email-notification-in-linux.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/root-login-email-notification-in-linux.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-322082330515920693</guid><pubDate>Fri, 06 Feb 2009 08:16:00 +0000</pubDate><atom:updated>2009-02-06T00:40:32.654-08:00</atom:updated><title>How to check whether IPV6 enabled or not?</title><description>root@master:/etc# ifconfig -a&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;eth0      Link encap:Ethernet  HWaddr 00:1d:09:f2:56:d6&lt;br /&gt;         inet addr:172.16.188.155  Bcast:172.16.188.255  Mask:255.255.255.0&lt;br /&gt;        &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; inet6 addr: fe80::21d:9ff:fef2:56d6/64 Scope:Link&lt;/span&gt;&lt;br /&gt;         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;         RX packets:380 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;         TX packets:138 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;         collisions:0 txqueuelen:1000&lt;br /&gt;         RX bytes:69003 (67.3 KB)  TX bytes:30542 (29.8 KB)&lt;br /&gt;         Interrupt:16 Memory:f8000000-f8012100&lt;/span&gt;&lt;/blockquote&gt;That means your IPV6 is enabled. If your IPV6 disabled the result should like this:&lt;br /&gt;root@master1:~# ifconfig -a&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;eth0      Link encap:Ethernet  HWaddr 00:1d:09:f2:56:d6&lt;br /&gt;         inet addr:172.16.188.155  Bcast:172.16.188.255  Mask:255.255.255.0&lt;br /&gt;         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;         RX packets:186 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;         TX packets:61 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;         collisions:0 txqueuelen:1000&lt;br /&gt;         RX bytes:37514 (36.6 KB)  TX bytes:8590 (8.3 KB)&lt;br /&gt;         Interrupt:16 Memory:f8000000-f8012100&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;You may read &lt;a href="http://boilinglinux.blogspot.com/2008/09/disable-ipv6-in-linux-ubuntu.html"&gt;How to disable IPV6&lt;/a&gt; if no longer in use?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-322082330515920693?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/umV17dHiYKI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/umV17dHiYKI/how-to-check-whether-ipv6-enabled-or.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-to-check-whether-ipv6-enabled-or.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-6164801573118138447</guid><pubDate>Fri, 06 Feb 2009 03:56:00 +0000</pubDate><atom:updated>2009-02-05T20:15:46.783-08:00</atom:updated><title>Send Automatic Email Notification When Security Upgrades Available (Debian / Ubuntu Linux)</title><description>&lt;!-- Include the Google Friend Connect javascript library. --&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Q.&lt;/span&gt; How do I force apt-get to send me email when upgrades or security updates available under Debian or Ubuntu Linux? Do I need to write a shell script which generates a mail with a list of all packages currently pending an upgrade?&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;A.&lt;/span&gt; No you don't have to write a shell script. You need to use apticron command / script for notification. apticron is mainly intended for automatic notification of pending security updates but can also be used in many other situations where timely updates are neccessary.&lt;/p&gt; &lt;h2&gt;Install apticron&lt;/h2&gt; &lt;p&gt;Type the following command at a shell prompt:&lt;br /&gt;&lt;code&gt;# apt-get update&lt;br /&gt;# apt-get install apticron&lt;/code&gt;&lt;/p&gt; &lt;h3&gt;Configure apticron to send email notifications&lt;/h3&gt; &lt;p&gt;The default coniguration file is located at /etc/apticron/apticron.conf. Open file using text editor:&lt;br /&gt;&lt;code&gt;# vi /etc/apticron/apticron.conf&lt;/code&gt;&lt;br /&gt;You need to set email address to email the notification as follows:&lt;br /&gt;&lt;code&gt;EMAIL="vivek@nixcraft.in"&lt;/code&gt;&lt;br /&gt;My sample configuration file:&lt;/p&gt; &lt;pre&gt;&lt;blockquote&gt;# apticron.conf&lt;br /&gt;#&lt;br /&gt;# set EMAIL to a list of addresses which will be notified of impending updates&lt;br /&gt;#&lt;br /&gt;EMAIL="admin@myhost.com"&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Set LISTCHANGES_PROFILE if you would like apticron to invoke apt-listchanges&lt;br /&gt;# with the --profile option. You should add a corresponding profile to&lt;br /&gt;# /etc/apt/listchanges.conf&lt;br /&gt;#&lt;br /&gt;# LISTCHANGES_PROFILE="apticron"&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Set SYSTEM if you would like apticron to use something other than the output&lt;br /&gt;# of "hostname -f" for the system name in the mails it generates&lt;br /&gt;#&lt;br /&gt;# SYSTEM="foobar.example.com"&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Set IPADDRESSNUM if you would like to configure the maximal number of IP&lt;br /&gt;# addresses apticron displays. The default is to display 1 address of each&lt;br /&gt;# family type (inet, inet6), if available.&lt;br /&gt;#&lt;br /&gt;# IPADDRESSNUM="1"&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Set IPADDRESSES to a whitespace seperated list of reachable addresses for&lt;br /&gt;# this system. By default, apticron will try to work these out using the&lt;br /&gt;# "ip" command&lt;br /&gt;#&lt;br /&gt;# IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"&lt;/blockquote&gt;&lt;/pre&gt; &lt;p&gt;Save and close the file. /etc/cron.daily/apticron is the cron script for executing apticron daily and it will send you notfication when updates available. &lt;/p&gt; &lt;h3&gt;Sample apticron email&lt;/h3&gt; &lt;p&gt;Here is a sample email:&lt;/p&gt; &lt;pre&gt;&lt;blockquote&gt;apticron report [Sun, 06 Jul 2008 07:07:23 +0000]&lt;br /&gt;========================================================================&lt;br /&gt;&lt;br /&gt;apticron has detected that some packages need upgrading on:&lt;br /&gt;&lt;br /&gt;vip.clicklinux.org&lt;br /&gt;[ 72.51.34.244 ::72.51.34.244 ]&lt;br /&gt;&lt;br /&gt;The following packages are currently pending an upgrade:&lt;br /&gt;&lt;br /&gt;libpcre3 6.7+7.4-4&lt;br /&gt;&lt;br /&gt;========================================================================&lt;br /&gt;&lt;br /&gt;Package Details:&lt;br /&gt;&lt;br /&gt;Reading changelogs...&lt;br /&gt;--- Changes for pcre3 (libpcre3) ---&lt;br /&gt;pcre3 (6.7+7.4-4) stable-security; urgency=high&lt;br /&gt;&lt;br /&gt;* Non-maintainer upload by the security team.&lt;br /&gt;* Apply patch from Tavis Ormandy to fix a heap overflow in the compiler,&lt;br /&gt; triggered by patterns which contain options and multiple branches&lt;br /&gt; (CVE-2008-2371).&lt;br /&gt;&lt;br /&gt;-- Florian Weimer &lt;fw@deneb.enyo.de&gt;  Fri, 04 Jul 2008 21:15:19 +0200&lt;br /&gt;&lt;br /&gt;========================================================================&lt;br /&gt;&lt;br /&gt;You can perform the upgrade by issuing the command:&lt;br /&gt;&lt;br /&gt;aptitude dist-upgrade&lt;br /&gt;&lt;br /&gt;as root on vip.clicklinux.org&lt;br /&gt;&lt;br /&gt;It is recommended that you simulate the upgrade first to confirm that&lt;br /&gt;the actions that would be taken are reasonable. The upgrade may be&lt;br /&gt;simulated by issuing the command:&lt;br /&gt;&lt;br /&gt;aptitude -s -y dist-upgrade&lt;br /&gt;&lt;br /&gt;-- apticron &lt;/fw@deneb.enyo.de&gt;&lt;fw@deneb.enyo.de&gt;&lt;/fw@deneb.enyo.de&gt;&lt;/blockquote&gt;&lt;/pre&gt; &lt;p&gt;You will get an email when security updates released by Debian / Ubuntu security team. I also suggest subscribing to &lt;a href="http://www.debian.org/security/"&gt;Debian email security&lt;/a&gt; update notification and &lt;a href="http://www.ubuntu.com/usn"&gt;Ubuntu Linux security&lt;/a&gt; notification via RSS or email. &lt;/p&gt;&lt;script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"&gt;&lt;/script&gt;Source:&lt;br /&gt;- &lt;a href="http://www.cyberciti.biz/faq/apt-get-apticron-send-email-upgrades-available/"&gt;http://www.cyberciti.biz/faq/apt-get-apticron-send-email-upgrades-available/&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://www.debian-administration.org/articles/491"&gt;http://www.debian-administration.org/articles/491&lt;/a&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;var skin = {};&lt;br /&gt;skin['BORDER_COLOR'] = '#cccccc';&lt;br /&gt;skin['ENDCAP_BG_COLOR'] = '#e0ecff';&lt;br /&gt;skin['ENDCAP_TEXT_COLOR'] = '#333333';&lt;br /&gt;skin['ENDCAP_LINK_COLOR'] = '#0000cc';&lt;br /&gt;skin['ALTERNATE_BG_COLOR'] = '#ffffff';&lt;br /&gt;skin['CONTENT_BG_COLOR'] = '#ffffff';&lt;br /&gt;skin['CONTENT_LINK_COLOR'] = '#0000cc';&lt;br /&gt;skin['CONTENT_TEXT_COLOR'] = '#333333';&lt;br /&gt;skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';&lt;br /&gt;skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';&lt;br /&gt;skin['CONTENT_HEADLINE_COLOR'] = '#333333';&lt;br /&gt;skin['DEFAULT_COMMENT_TEXT'] = '- add your comment here -';&lt;br /&gt;skin['HEADER_TEXT'] = 'Comments';&lt;br /&gt;skin['POSTS_PER_PAGE'] = '5';&lt;br /&gt;google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);&lt;br /&gt;google.friendconnect.container.renderWallGadget(&lt;br /&gt; { id: 'div-1228496314513',&lt;br /&gt;   site: '16558179701179833384',&lt;br /&gt;   'view-params':{"scope":"PAGE","features":"video,comment"}&lt;br /&gt;},&lt;br /&gt;  skin);&lt;br /&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-6164801573118138447?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/-NEF9zvbiYc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/-NEF9zvbiYc/send-automatic-email-notification-when.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/send-automatic-email-notification-when.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-3795152332163894196</guid><pubDate>Fri, 06 Feb 2009 03:33:00 +0000</pubDate><atom:updated>2009-02-05T19:37:17.456-08:00</atom:updated><title>ubuntu upgrade vs dist-upgrade</title><description>&lt;ul&gt;&lt;li&gt;apt-get &lt;b&gt;dist-upgrade&lt;/b&gt; (smart upgrade in Synaptic): &lt;/li&gt;&lt;/ul&gt; &lt;dl&gt;&lt;dd&gt;this command upgrades packages trying to satisfy the dependencies in a "smart" way -- that might mean &lt;b&gt;removing&lt;/b&gt; packages. It is not recommended to use it if you don't know exactly what you are doing. &lt;/dd&gt;&lt;/dl&gt; &lt;ul&gt;&lt;li&gt;apt-get &lt;b&gt;upgrade&lt;/b&gt; (default upgrade in Synaptic):  &lt;/li&gt;&lt;/ul&gt; &lt;dl&gt;&lt;dd&gt;this command upgrades only the upgradeable packages, &lt;b&gt;it doesn't remove packages&lt;/b&gt;. From &lt;b&gt;man apt-get&lt;/b&gt;: &lt;i&gt;"New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version."&lt;/i&gt; &lt;/dd&gt;&lt;/dl&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-3795152332163894196?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/ndWT7OB-c6Y" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/ndWT7OB-c6Y/ubuntu-upgrade-vs-dist-upgrade.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/ubuntu-upgrade-vs-dist-upgrade.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-3245194530842251408</guid><pubDate>Thu, 05 Feb 2009 03:23:00 +0000</pubDate><atom:updated>2009-02-04T19:26:09.852-08:00</atom:updated><title>How to prompt user login and password in phpmyadmin</title><description>Edit config.inc.php&lt;br /&gt;and the exact line is :&lt;br /&gt;&lt;blockquote&gt;$cfg['Servers'][$i]['auth_type']     = '&lt;span style="font-weight: bold;"&gt;http&lt;/span&gt;';      // Authentication method (config, http or cookie based)&lt;br /&gt;$cfg['Servers'][$i]['user']          = 'root';&lt;br /&gt;$cfg['Servers'][$i]['password']      = ''; &lt;/blockquote&gt;Change original auth_type "tcp" to "http".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-3245194530842251408?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/Cldp_14pE_0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/Cldp_14pE_0/how-to-prompt-user-login-and-password.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/how-to-prompt-user-login-and-password.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-2559511084367111865</guid><pubDate>Tue, 03 Feb 2009 08:47:00 +0000</pubDate><atom:updated>2009-02-03T05:21:05.700-08:00</atom:updated><title>Auto Log in in Ubuntu Desktop</title><description>I found it so troublesome when i should do log in every time i turn my pc on. I want it like windows that may do automatically log in so i don't need to type in username and password anymore.&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;blockquote&gt;&lt;b&gt;1&lt;/b&gt;) Go to System &gt; Administration &gt;&lt;b&gt; Login Window&lt;/b&gt;&lt;br /&gt;&lt;b&gt;2&lt;/b&gt;) Enter your password&lt;br /&gt;&lt;b&gt;3&lt;/b&gt;) Go to &lt;b&gt;Security tab&lt;/b&gt; and &lt;b&gt;check Enable automatic login&lt;/b&gt;&lt;br /&gt;&lt;b&gt;4&lt;/b&gt;)&lt;b&gt; &lt;/b&gt;Enter your &lt;b&gt;username&lt;/b&gt; and press Close&lt;b&gt; &lt;/b&gt;&lt;/blockquote&gt;Other way, you may choose Log in automatically from Ubuntu Installation.&lt;br /&gt;&lt;img src="file:///C:/Documents%20and%20Settings/david.AXS/My%20Documents/My%20Pictures/ubuntu.JPG" alt="" /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_iiZsV9BS5YM/SYhEesSBhcI/AAAAAAAAAN8/mT3wR7YB06I/s1600-h/ubuntu.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://2.bp.blogspot.com/_iiZsV9BS5YM/SYhEesSBhcI/AAAAAAAAAN8/mT3wR7YB06I/s400/ubuntu.JPG" alt="" id="BLOGGER_PHOTO_ID_5298560255674910146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Restart your pc to find our whether the setting is working.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-2559511084367111865?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/yKSsG2w9bg0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/yKSsG2w9bg0/auto-login-in-ubuntu-desktop.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_iiZsV9BS5YM/SYhEesSBhcI/AAAAAAAAAN8/mT3wR7YB06I/s72-c/ubuntu.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/02/auto-login-in-ubuntu-desktop.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-655951522466095679</guid><pubDate>Sat, 31 Jan 2009 14:00:00 +0000</pubDate><atom:updated>2009-01-31T20:04:10.699-08:00</atom:updated><title>Best Linux Web Hosting ( Unlimited Domains, Disk Space and Bandwidth )</title><description>After i made a deep research and compared all Linux Web Hosting, i came out with this list. I was looking for a web hosting that support &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;unlimited domains with unlimited disk space and bandwidth&lt;/span&gt;. After came across with all user reference i found the other good hosting that support unlimited domains. I put hostgator in the first position for all their benefit. As what all hostgator clients testified, hostgator really give them 24x7x365 service and they have a good support team also.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;1. &lt;a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=hanselzen"&gt;Hostgator&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=hanselzen" target="_blank"&gt;&lt;img src="http://www.hostgator.com/affiliates/banners/hg.gif" /&gt;&lt;/a&gt;&lt;br /&gt;I found only good testimonial from all hostgator customers. They really satisfied with hostgator service.&lt;br /&gt;&lt;blockquote&gt;Uptime: 9/10&lt;br /&gt;Support: 9/10&lt;br /&gt;Feature: 9/10&lt;br /&gt;Price: 9/10&lt;/blockquote&gt;Price : start from $4.95/month.&lt;br /&gt;&lt;a href="http://www.google.com.sg/search?hl=en&amp;amp;q=hostgator+coupon&amp;amp;btnG=Google+Search&amp;amp;meta="&gt;Hostgator Coupon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;2. &lt;a href="http://www.bluehost.com/track/hanselzen/CODE4"&gt;Bluehost&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.bluehost.com/track/hanselzen/CODE4"&gt;&lt;img src="http://img.bluehost.com/189x116/1.gif" /&gt;&lt;/a&gt;&lt;br /&gt;Bluehost provide unlimited domains which you may control it from one control panel. They offered best deal with best hardware.&lt;br /&gt;&lt;blockquote&gt;Uptime: 7/10&lt;br /&gt;Support: 6/10 (They don't provide live chat)&lt;br /&gt;Feature: 9/10&lt;br /&gt;Price: 9/10&lt;/blockquote&gt;Price: start from $6.95/month&lt;br /&gt;I can give your $50 rebate if you buy from &lt;a href="http://www.bluehost.com/track/hanselzen/CODE4"&gt;my link&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;3. &lt;a href="http://www.hostmonster.com/track/hanselzen/text1"&gt;Host Monster&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.hostmonster.com/track/hanselzen/text1"&gt;&lt;img src="http://img.hostmonster.com/175x25/1.gif" /&gt;&lt;/a&gt;&lt;br /&gt;It's the same hosting with Bluehost but with lower grade of hardware.&lt;br /&gt;&lt;blockquote&gt;Uptime: 6/10&lt;br /&gt;Support: 4/10 (They don't provide live chat)&lt;br /&gt;Feature: 9/10&lt;br /&gt;Price: 10/10&lt;/blockquote&gt;Price: start from $5.95/month&lt;br /&gt;I can give your $50 rebate if you buy from &lt;a href="http://www.hostmonster.com/track/hanselzen/text1"&gt;my link&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;4. &lt;a href="http://www.hostupon.com/cgi-bin/affiliates/clickthru.cgi?id=hanselzen"&gt;Hostupon&lt;/a&gt;&lt;/span&gt;&lt;a href="http://www.hostupon.com/cgi-bin/affiliates/clickthru.cgi?id=hanselzen"&gt;&lt;br /&gt;&lt;img src="http://hostupon.com/images/aQLkon10983_r_1.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;They are a new hosting company. Just established since 2007 but they hosting really kick butt.&lt;br /&gt;&lt;blockquote&gt;Uptime: 7/10&lt;br /&gt;Support: 4/10&lt;br /&gt;Feature: 9/10&lt;br /&gt;Price: 10/10&lt;/blockquote&gt;Price: start from $4.95/month with 30 days money back guarantee.&lt;br /&gt;Coupon: &lt;span style="color:Red;"&gt;&lt;b&gt;HPR50 (get $50 off)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;They provide live chat but not for 24 hours. Supports team will away on weekend. I did sent email to ask about hosting package on Saturday and they replied on the next Sunday.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;5.&lt;span style="text-decoration: underline;"&gt; &lt;a href="http://www.webhostingpad.com/3015-0-1-61.html"&gt;Webhostingpad&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.webhostingpad.com/3015-0-1-61.html" target="_blank"&gt;&lt;img src="http://secure.webhostingpad.com/idevaffiliate/banners/whp_88x31.gif" border="0" width="88" height="31" /&gt;&lt;/a&gt;&lt;br /&gt;Quite new established hosting company. They established since 2005, customers review mixed. Some complain about uptime and support but most will give a good review. Unlimited domains from addon domains.&lt;br /&gt;&lt;blockquote&gt;Uptime: 8/10&lt;br /&gt;Support: 6/10&lt;br /&gt;Feature: 9/10&lt;br /&gt;Price: 10/10&lt;/blockquote&gt;Price: start from $3.96/month with 30 days money back guarantee.&lt;br /&gt;Coupon:&lt;br /&gt;- &lt;strong&gt;Webhostingpad Coupon $25 Off&lt;/strong&gt; : &lt;a href="http://www.webhostingpad.com/3015-0-1-61.html"&gt;&lt;strong&gt;&lt;u&gt;revpad25&lt;/u&gt;&lt;/strong&gt;&lt;/a&gt;, &lt;a style="font-weight: bold;" href="http://www.webhostingpad.com/3015-0-1-61.html"&gt;promo25&lt;/a&gt; (valid for 2 &amp;amp; 3 years plan)&lt;br /&gt;- &lt;strong&gt;Webhostingpad Coupon $12 Off&lt;/strong&gt; : &lt;a href="http://www.webhostingpad.com/3015-0-1-61.html"&gt;&lt;strong&gt;&lt;u&gt;12off&lt;/u&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How to claim your rebate?&lt;br /&gt;You must buy the hosting package from my given link, then send email stating transaction date, domain name and your paypal account. I will send the money after 3 month from your transaction date.&lt;br /&gt;&lt;br /&gt;Source:&lt;br /&gt;http://www.webhostingrally.com&lt;br /&gt;http://hostjury.com&lt;br /&gt;http://b2evolution.net&lt;br /&gt;http://www.hostingreviewsbyusers.com&lt;br /&gt;http://www.webhostingpadreview.org&lt;br /&gt;http://www.webhostingstuff.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-655951522466095679?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/FqCmcFkfh54" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/FqCmcFkfh54/best-linux-web-hosting-all-unlimited.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/best-linux-web-hosting-all-unlimited.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-3141653365228848695</guid><pubDate>Fri, 23 Jan 2009 08:09:00 +0000</pubDate><atom:updated>2009-01-23T00:24:08.047-08:00</atom:updated><title>How to configure tcp wrappers (hosts.allow and hosts.deny)</title><description>&lt;span style="font-weight: bold;"&gt;TCP Wrapper compatibility:&lt;/span&gt;&lt;br /&gt;Check your application whether compatible with tcp wrapper or not.&lt;br /&gt;How can you find out if your application is compatible?  Use this command:&lt;br /&gt;&lt;blockquote&gt;    &lt;span style="font-weight: bold;"&gt;syntax: ldd /path/to/binary | grep wrap (general example)&lt;/span&gt;&lt;br /&gt;ldd /usr/sbin/sshd | grep wrap (shows that the sshd refers to libwrap)&lt;br /&gt;lib&lt;span style="color: rgb(255, 0, 0);"&gt;wrap&lt;/span&gt;.so.0 =&gt; /lib/lib&lt;span style="color: rgb(255, 0, 0);"&gt;wrap&lt;/span&gt;.so.0 (0x00007f142f0af000)&lt;br /&gt;&lt;br /&gt;ldd /usr/sbin/apache2 | grep wrap (show that apache does not refer to libwrap)&lt;br /&gt;result zero&lt;br /&gt;&lt;/blockquote&gt;&lt;strong&gt;hosts.allow and hosts.deny.&lt;br /&gt;&lt;br /&gt;- host.allow ( Choose ip range that you want to allow )&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-weight: normal;"&gt;ALL: 172.16.172.0/255.255.255.0 : ALLOW&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;ALL: 172.16.188.0/255.255.255.0 : ALLOW&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;ALL: 172.16.189.0/255.255.255.0 : ALLOW&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;ALL: 172.16.178.0/255.255.255.0 : ALLOW&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;ALL: 172.16.179.0/255.255.255.0 : ALLOW&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;- host.deny (Paranoid setting block all connection except in hosts.allow)&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;blockquote&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: normal;"&gt;#(denying all services to all hosts)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;ALL:ALL&lt;br /&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;The syntax of the hosts.allow and hosts.deny files are:&lt;/p&gt; &lt;p&gt;service(s) : ips or hosts&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;conclusion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The hosts.allow and hosts.deny files are very flexible and allow you to lock down your network in very granular ways.  The limitation of some applications not honoring hosts.allow and hosts.deny is the biggest thing to remember.  Make sure the service you are trying to block refers to libwrap.so before you start writing rules or you may sit and wonder why your rules don’t work, when its really the application itself not being compatible.&lt;/p&gt;&lt;p&gt;If you need to hardened you system more, please read about this &lt;a href="http://boilinglinux.blogspot.com/2008/10/updated-ubuntu-hardy-804-hardening.html"&gt;Ubuntu Hardening guide&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/7200595626262369522-3141653365228848695?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/4vcd2whgE-Y" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/4vcd2whgE-Y/how-to-configure-tcp-wrappers.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/how-to-configure-tcp-wrappers.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-8123472586947245092</guid><pubDate>Thu, 22 Jan 2009 03:26:00 +0000</pubDate><atom:updated>2009-01-21T19:49:39.367-08:00</atom:updated><title>Apache hardening guide with PHP</title><description>&lt;span style="font-weight: bold;"&gt;#1: Update, update, update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Just because it is Apache running on Linux doesn’t mean you shouldn’t bother to update. New holes and security risks are found all the time. You should always develop a sound update policy to keep on top of patches. If you have installed Apache with your distributions package manager, you can make the updates go seamlessly. If you have installed from source, make sure that upgrade is not going to break any modules or dependencies your Web site has. And if you update Apache, make sure PHP (if used) is updated as well.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#2: Use the right user:group&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have seen Apache installed under many groups and/or users. One of the biggest offenders is the root user. This can lead to some serious issues. Or say both Apache and MySQL are run by the same user/group. If there is a hole in one, it can lead to an attack on the other. The best scenario is to make sure Apache is run as the user and group apache. To make this change, open the httpd.conf file and check the lines that read:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;User&lt;br /&gt;&lt;br /&gt;Group&lt;br /&gt;&lt;br /&gt;Change these entries to:&lt;br /&gt;&lt;br /&gt;User apache&lt;br /&gt;&lt;br /&gt;Group apache&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;If you get any errors indicating the group or user do not exist, you’ll have to create them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#3: Turn off unwanted services&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are a few services and/or features that you will want to turn off or not allow. All of these services can be disabled in the httpd.conf file. Those services/features that could cause the most issues include:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* Directory browsing&lt;/span&gt;. This is done within a directory tag (the document root is a good place to start) using the Options directive and is set with “-Indexing”.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* Server side Includes&lt;/span&gt;. This is another feature that is disabled within a directory tag (using Options directive) and is set with “-Includes”.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* CGI execution&lt;/span&gt;. Unless your site needs CGI, turn this off. This feature is also set within a directory tag using the Options directive, with “-ExecCGI”.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* Symbolic links.&lt;/span&gt; Set this inside a (surprise, surprise) directory tag with “-FollowSymLinks”.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* None&lt;/span&gt;. You can turn off all options (in the same way you set the above) using “None” with the Option directive.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#4: Disable unused modules&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Apache has a ton of modules. To get an idea how many modules your installation is running, issue the command (as the root user) grep -n LoadModule httpd.conf from within your Apache configuration directory. This command will show you every module Apache is loading, along with the line number it falls on. To disable the modules you don’t need, simply comment them out with a single # character at the beginning of the module line.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#5: Restrict access&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Say you have an intranet that contains critical company information. You will want to deny anyone outside your private network from seeing this information. To do this, you can restrict access to your internal network by adding the following inside a directory tag in your httpd.conf file:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;Order Deny, Allow&lt;br /&gt;&lt;br /&gt;Deny from all&lt;br /&gt;&lt;br /&gt;Allow from 192.168.1.0/16&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;where 192.168.1.0/16 is the configuration matching your internal network. As with all modifications to the httpd.conf file, make sure you restart Apache so the changes take effect.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#6: Limit request size&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Denial of service attacks are always a possibility when you allow large requests on Apache. Apache has a directive, LimitRequestBody, that is placed within a Directory tag. The size of your limit will depend upon your Web site’s needs. By default, LimitRequestBody is set to unlimited.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#7: Employ mod_security&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of the most important Apache modules is mod_security. This module handles many tasks, including simple filtering, regular expression filtering, URL encoding validation, and server identity masking. The mod_security installation and setup is a bit beyond a one-paragraph description. But you can begin by adding the “unique_id” and “security2″ directives in the Apache modules section. Once you have added the entries, run the command service apache2 configtest. If you get returned Syntax OK you’re good to go.&lt;br /&gt;#8: Do not allow browsing outside the document root&lt;br /&gt;&lt;br /&gt;Allowing browsing outside the document root is inviting trouble. Unless you have a specific need to allow it, disable this feature. First, you’ll need to edit the document root Directory entry like so:&lt;br /&gt;&lt;blockquote&gt;&lt;directory&gt;&lt;span style="font-size:85%;"&gt;Order Deny, Allow&lt;br /&gt;&lt;br /&gt;Deny from all&lt;br /&gt;&lt;br /&gt;Options None&lt;br /&gt;&lt;br /&gt;AllowOverride None&lt;br /&gt;&lt;/span&gt;&lt;/directory&gt;&lt;/blockquote&gt;&lt;directory&gt;&lt;/directory&gt;Now, if you need to add options to any directory within the document root, you will have to add a new Directory entry for each one.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#9: Hide Apache’s version number&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The best offense is a good defense. And one of the best defenses is to obfuscate as much information about your service as you can. One crucial bit of information to hide is the Apache version number. By hiding it, you keep unwanted users from knowing how to quickly hack your Web server. To hide Apache’s version number, add the following in your document root Directory tag:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;ServerSignature Off&lt;br /&gt;&lt;br /&gt;ServerTokens Prod&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;#10: Immunize httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of the best security measures is to hide your httpd.conf file from prying eyes. If people who shouldn’t see your httpd.conf file can’t see it, they can’t change it. To immunize the httpd.conf file, set the immutable bit with the following command:&lt;br /&gt;&lt;blockquote&gt;chattr +i /path/to/httpd.conf&lt;/blockquote&gt;where /path/to/httpd.conf is the path to your Apache configuration file. Now it will be very difficult for anyone to make any changes to httpd.conf.&lt;br /&gt;&lt;br /&gt;Apache have a very close relation with php so i think we need to hardened php too.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;- Disable unnecessary PHP variable &lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Edit /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini&lt;br /&gt;Turn off some of this variable:&lt;br /&gt;allow_call_time_pass_reference = Off&lt;br /&gt;magic_quotes_gpc = Off&lt;br /&gt;register_long_arrays = Off&lt;br /&gt;register_argc_argv = Off&lt;br /&gt;allow_url_fopen = Off&lt;br /&gt;expose_php = Off&lt;br /&gt;disable_functions = symlink,shell_exec,proc_close,proc_open,dl,passthru,escapeshellarg,escapeshellcmd,openlog, apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,virtual, phpinfo&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;  This guide taken from &lt;a href="http://blogs.techrepublic.com.com/10things/?p=477"&gt;this site&lt;/a&gt;. If you looking for full (more complicated) guide you may read guide from &lt;a href="http://xianshield.org/guides/apache2.0guide.html"&gt;xianshield.org&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-8123472586947245092?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/lcXfjG-ovIk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/lcXfjG-ovIk/apache-hardening-guide-with-php.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/apache-hardening-guide-with-php.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-6541579351683298617</guid><pubDate>Wed, 21 Jan 2009 02:12:00 +0000</pubDate><atom:updated>2009-01-20T18:30:08.975-08:00</atom:updated><title>Install Adobe Acrobat Reader on Ubuntu and CentOS</title><description>There is no Adobe Acrobat Reader package in Ubuntu Repository until now. How to install it on our Ubuntu Desktop?&lt;br /&gt;Download latest Adobe Reader from &lt;a href="http://get.adobe.com/reader/otherversions/"&gt;Adobe Website&lt;/a&gt; choose&lt;span style="font-weight: bold;"&gt; Linux - x86 (.deb)&lt;/span&gt; from OS list.&lt;br /&gt;From console, this is latest version until i post this article (21/01/2009):&lt;br /&gt;&lt;blockquote&gt;wget http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.3/enu/AdobeReader_enu-8.1.3-1.i386.deb&lt;/blockquote&gt;Install downloaded package. From Ubuntu Xwindow double click downloaded package file and install.&lt;br /&gt;Console:&lt;br /&gt;&lt;blockquote&gt;dpkg -i AdobeReader_enu-8.1.3-1.i386.deb&lt;/blockquote&gt;After installation finish go to &lt;span style="font-weight: bold;"&gt;Applications &gt; Office &gt;&lt;/span&gt; and find Adobe Reader shortcut.&lt;br /&gt;This step by step also can be apply to CentOS since they use the same source package.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-6541579351683298617?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/BBOvgBoXepw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/BBOvgBoXepw/install-adobe-acrobat-reader-on-ubuntu.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/install-adobe-acrobat-reader-on-ubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-4855067396072767181</guid><pubDate>Tue, 20 Jan 2009 15:09:00 +0000</pubDate><atom:updated>2009-01-20T07:29:37.882-08:00</atom:updated><title>mysql clustering database replication vs file-based replication ( mysql+drbd+heartbeat )</title><description>You have a low budget to implement mysql clustering, i suggest you to choose Heartbeat+DRBD. I have used my old server (PIII+512Mb) to developt MySQL Clustering. I only need 2 server to implement this clustering method compared with MySQL Clustering use replication method you'll need at least 4 server and you also need good hardware with big memory size to implement this clustering.&lt;br /&gt;&lt;br /&gt;Need to know more about MySQL Replication concept? You may check &lt;a href="http://www.mysql.com/products/database/cluster/"&gt;Mysql Clustering white paper&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-4855067396072767181?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/IgUQSBjV8Wc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/IgUQSBjV8Wc/mysql-clustering-database-replication.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/mysql-clustering-database-replication.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-1398601520563202068</guid><pubDate>Tue, 20 Jan 2009 08:42:00 +0000</pubDate><atom:updated>2009-01-20T00:48:06.332-08:00</atom:updated><title>How to check disk uuid</title><description>Since my fstab use disk-uuid to mount the disk therefore I need to know what is my disk uuid . This command will do uuid check for the disk.&lt;br /&gt;&lt;blockquote&gt;blkid /dev/disk&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-1398601520563202068?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/CnN4Fe3-apI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/CnN4Fe3-apI/how-to-check-disk-uuid.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/how-to-check-disk-uuid.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-7034782479719644626</guid><pubDate>Mon, 19 Jan 2009 06:43:00 +0000</pubDate><atom:updated>2009-01-19T01:36:58.772-08:00</atom:updated><title>How to create Apparmor configuration file for Apache</title><description>If you need to hardened apache service with apparmor. Here is the step by step how to create apparmor configuration file for apache.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;First, activate profile generation. Skip for repository section, just answer later (L):&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;sudo &lt;span style="font-weight: bold;"&gt;genprof&lt;/span&gt; -d /var/log/syslog /usr/sbin/apache2&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Setting /usr/sbin/apache2 to complain mode.&lt;br /&gt;&lt;br /&gt;Please start the application to be profiled in&lt;br /&gt;another window and exercise its functionality now.&lt;br /&gt;&lt;br /&gt;Once completed, select the "Scan" button below in&lt;br /&gt;order to scan the system logs for AppArmor events.&lt;br /&gt;&lt;br /&gt;For each AppArmor event, you will be given the&lt;br /&gt;opportunity to choose whether the access should be&lt;br /&gt;allowed or denied.&lt;br /&gt;&lt;br /&gt;Profiling: /usr/sbin/apache2&lt;br /&gt;&lt;br /&gt;[(S)can system log for SubDomain events] / (F)inish&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Keep this open, don't press (S) or (F) yet because we still have some task to be done.&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Second, open new console and try to restart apache service.&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;sudo /etc/init.d/apache2 stop&lt;br /&gt;sudo /etc/init.d/apache2 start&lt;/blockquote&gt;Try to access or test your web application, this will help apparmor to cache all permission for your web access directories and files. After you finish with web application testing go back to console which still running &lt;span style="font-weight: bold;"&gt;genprof&lt;/span&gt; command then Press (S). Genprof will prompt some question, and you may choose whether you want to allow or deny the permission.&lt;br /&gt;&lt;br /&gt;Once you finish with genprof, you will found this file /etc/apparmor.d/usr.sbin.apache2&lt;br /&gt;Restart your apparmor then restart your apache daemon.&lt;br /&gt;&lt;br /&gt;If some of your web application isn't accessible, see apparmor log to check is there any file permission has been blocked.&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;Jan 19 16:51:47 appserv02 kernel: [264251.884604] audit(1232355107.629:28228): type=1503 operation="inode_permission" &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;requested_mask="r::" denied_mask="r::"&lt;/span&gt; name="&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;/var/www/html/MyApps/index.php&lt;/span&gt;" pid=19234 profile="/usr/sbin/apache2" namespace="default"&lt;/span&gt;&lt;/blockquote&gt;This error log means you need to give read permission to this file "&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;/var/www/html/MyApps/index.php". &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Edit &lt;/span&gt;and Add this below rules to your &lt;span style="color: rgb(0, 0, 0);"&gt;/etc/apparmor.d&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;/&lt;/span&gt;usr.sbin.apache2 &lt;span style="font-size:85%;"&gt;&lt;blockquote&gt;/var/www/html/MyApps/index.php r,&lt;/blockquote&gt;&lt;/span&gt;Try to restrat apparmor and apache server one more time. If you found more blocked permission from audit log, you may repeat above steps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-7034782479719644626?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/9e2Pmgc-NO0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/9e2Pmgc-NO0/how-to-create-apparmor-configuration.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/how-to-create-apparmor-configuration.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-2785350669312973785</guid><pubDate>Fri, 16 Jan 2009 01:17:00 +0000</pubDate><atom:updated>2009-01-15T17:18:40.081-08:00</atom:updated><title>PSEXEC PORT</title><description>My firewall has blocked me when i tried to execute psexec. What is the psexec port to open so i can execute this command on target? PSEXEC port is tcp 445.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-2785350669312973785?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/qw-TosdCN88" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/qw-TosdCN88/psexec-port.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/psexec-port.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-1013159968383051504</guid><pubDate>Wed, 14 Jan 2009 06:42:00 +0000</pubDate><atom:updated>2009-01-15T18:00:24.874-08:00</atom:updated><title>HOWTO: Set up VNC server in Ubuntu</title><description>I have 2 reference guide from:&lt;br /&gt;1. &lt;a href="http://ubuntuforums.org/showthread.php?t=259448"&gt;http://ubuntuforums.org/showthread.php?t=259448&lt;/a&gt;&lt;br /&gt;2. &lt;a href="http://ubuntuforums.org/showthread.php?t=122402"&gt;http://ubuntuforums.org/showthread.php?t=122402&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What i need is to use vncserver to start kde when the user do remote desktop with vnc viewer client. IN my &lt;a href="http://boilinglinux.blogspot.com/2009/01/how-to-install-configure-vnc-in-ubuntu.html"&gt;previous howto&lt;/a&gt;, i should login to kde first before i can do a remote desktop so this method will be no use if i put the server in host center and when the machine reboot, i couldn't manage to do a remote desktop to that server because kde/gnome desktop isn't activated.&lt;br /&gt;&lt;br /&gt;I just copied this manual from the forum, just to prevent if sometimes the thread has been removed and i still have a copy in here :)&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;This guide is very similar to the Gnome Ubuntu HOWTO, located here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=122402" target="_blank"&gt;http://ubuntuforums.org/showthread.php?t=122402&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have borrowed a lot of the notes from that author, only changing things to work for Kubuntu users. Most of the credit for the info goes to the author of that post. If you are having problems, I &lt;b&gt;strongly recommend&lt;/b&gt; browsing through that thread first.&lt;br /&gt;&lt;br /&gt;This guide is intended for Kubuntu users, and details how to enable Xdmcp for your KDE session. It was written using Kubuntu 6.06 (i386) as a reference. In the steps, I use kate as the text editor, but you can use whatever editor you prefer. In reality I use vi, but most people don't know vi commands so I stick with kate in these examples.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Required packages:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To make sure you have the proper software installed, execute the following:&lt;br /&gt;&lt;br /&gt;Type in a terminal:&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 apt-get install vnc4server xinetd xvncviewer&lt;/pre&gt; &lt;/div&gt;The latest versions are:&lt;br /&gt;vnc4server: Xvnc Free Edition 4.1.1&lt;br /&gt;xinetd: xinetd Version 2.3.14 libwrap loadavg&lt;br /&gt;xvncviewer: VNC viewer version 3.3.7 - built Feb 20 2006 12:04:05&lt;br /&gt;&lt;br /&gt;If you're using previous versions of any of these packages, there's no guarantee this will work. (Actually, there's no guarantee this will work anyway, but if you use versions below what I indicated, then you're just making it harder on yourself &lt;img src="http://ubuntuforums.org/images/smilies/eusa_wall.gif" alt="" title="Brick wall" class="inlineimg" border="0" /&gt; )&lt;br /&gt;&lt;br /&gt;WARNING:  Make sure you install &lt;b&gt;vnc4server&lt;/b&gt; and NOT &lt;b&gt;vncserver&lt;/b&gt;.  These packages ARE different, and the latter will NOT work correctly.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note to AMD64 users:&lt;/b&gt; The current version of vnc4server in the repositories has a bug, so you need to download and install the fixed vnc4 packages as shown below:&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: 82px; text-align: left;"&gt;wget http://qt1.iq.usp.br/download/vnc4server_4.0-7.3_amd64.deb&lt;br /&gt;wget http://qt1.iq.usp.br/download/xvnc4viewer_4.0-7.3_amd64.deb&lt;br /&gt;sudo dpkg -i vnc4server_4.0-7.3_amd64.deb&lt;br /&gt;sudo dpkg -i xvnc4viewer_4.0-7.3_amd64.deb&lt;/pre&gt; &lt;/div&gt;&lt;b&gt;THE STEPS:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. ENABLE XDMCP IN KDE&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Type in a terminal:&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 kate /etc/kde3/kdm/kdmrc&lt;/pre&gt; &lt;/div&gt;At the very bottom of the file, you'll see this section:&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: 66px; text-align: left;"&gt;[Xdmcp]&lt;br /&gt;Enable=false&lt;br /&gt;Willing=/etc/kde3/kdm/Xwilling&lt;/pre&gt; &lt;/div&gt;Change it to look exactly like this:&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;[Xdmcp]&lt;br /&gt;Enable=true&lt;br /&gt;Port=177&lt;br /&gt;Xaccess=/etc/kde3/kdm/Xaccess&lt;br /&gt;Willing=/etc/kde3/kdm/Xwilling&lt;/pre&gt; &lt;/div&gt;Save the file and quit.  Then type this in your terminal:&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;sudo kate /etc/kde3/kdm/Xaccess&lt;/pre&gt; &lt;/div&gt;This is a big file and can be confusing, so make sure you do this exactly as shown.  Scroll down and find this line:&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;#*                                       #any host can get a login window&lt;/pre&gt; &lt;/div&gt;Remove the &lt;b&gt;#&lt;/b&gt; from the beginning of that line, so it looks 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;*                                       #any host can get a login window&lt;/pre&gt; &lt;/div&gt;Then find this line:&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;#*               CHOOSER BROADCAST       #any indirect host can get a chooser&lt;/pre&gt; &lt;/div&gt;Remove the &lt;b&gt;#&lt;/b&gt; from the beginning of that line, so it looks like this:&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;*               CHOOSER BROADCAST       #any indirect host can get a chooser&lt;/pre&gt; &lt;/div&gt;Save the file and quit out of KATE.&lt;br /&gt;&lt;br /&gt;Now we need to restart the KDM process so it will re-read the configuration file. The easiest way to do this is to just reboot the machine. The quickest is to do the following:&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;ps -ef | grep kdm&lt;/pre&gt; &lt;/div&gt;This will print out a list of processes with the letters 'kdm' in the name. Find the one that looks like the following (Specifically the one that ends in /usr/bin/kdm):&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;root    4530      1     0 0:09:20 ?          00:00:00 /usr/bin/kdm&lt;/pre&gt; &lt;/div&gt;See the number right after root? 4530 in my example, you will almost certainly have a different number. That's the process ID or PID. Type the following command to restart kdm (Substituting the PID number you have for the 4530 in my example):&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;sudo kill -HUP 4530&lt;/pre&gt; &lt;/div&gt;&lt;br /&gt;&lt;b&gt;2. SET THE VNC PASSWORD&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Type this in a terminal:&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 vncpasswd /root/.vncpasswd&lt;/pre&gt; &lt;/div&gt;&lt;br /&gt;&lt;b&gt;3. ADD VNC SERVICE TO XINETD&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Type this in a terminal:&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 kate /etc/xinetd.d/Xvnc&lt;/pre&gt; &lt;/div&gt;Enter this in to the new file:&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: 210px; text-align: left;"&gt;service Xvnc&lt;br /&gt;{&lt;br /&gt;      type = UNLISTED&lt;br /&gt;      disable = no&lt;br /&gt;      socket_type = stream&lt;br /&gt;      protocol = tcp&lt;br /&gt;      wait = yes&lt;br /&gt;      user = root&lt;br /&gt;      server = /usr/bin/Xvnc&lt;br /&gt;      server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd&lt;br /&gt;      port = 5901&lt;br /&gt;}&lt;/pre&gt; &lt;/div&gt;I recommend leaving all of that code alone, but you can safely change the 1024x768 to be a bigger or smaller resolution for your Xvnc window, depending on what you want. You can also change the depth, but understand that increasing the depth bits will cause more bandwidth to be used over your network, which could slow down your VNC experience considerably.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. RESTART XINETD&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If the following code does not work, try rebooting:&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: 66px; text-align: left;"&gt;sudo /etc/init.d/xinetd stop&lt;br /&gt;sudo killall Xvnc&lt;br /&gt;sudo /etc/init.d/xinetd start&lt;/pre&gt; &lt;/div&gt;Don't worry if you see a message like "Xvnc: no process killed". This just means there was no open, active session of VNC running at the time. This is expected and is normal.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. TEST&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you followed all of the above steps correctly, you should now be able to test your VNC server. Type the following in a terminal:&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;vncviewer localhost:1&lt;/pre&gt; &lt;/div&gt;You should be prompted for the VNC password, and then see the KDM login screen where you can login and start a new X session. If that works, you can now go ahead and try to connect from remote machine using your favorite VNC client (remember to first close the local vncviewer we started above). Remember to use the VNC server machine's domain name or IP address, followed by :1 (e.g. 192.168.0.100:1). If connecting locally as shown above works, but connecting remotely fails, then this means you have a problem with a firewall which is blocking some ports. See the notes below about how to deal with that.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note about ports:&lt;/b&gt; The VNC server set up as shown uses TCP port 5901. If you are using firewall software (e.g. firestarter) on that machine, you need to allow incoming connections on this port. If you are using a router which assigns your machine a private address (e.g. 192.168.0.100) which is not accessible from the internet, then you need to forward TCP port 5901 from the router to this machine.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note about security:&lt;/b&gt; This setup allows any user to start an X-session remotely by logging in using his regular password (after starting the VNC connection using the VNC password), so if the user disconnects without logging out, any other user which knows the VNC password can connect afterwards and resume the same session that the first user started. So if you do not want to log out before disconnecting, it's advisable to at least lock your VNC X-session screen. Also note that while a remote user is connected thru VNC, no other connection will be accepted. An idle VNC client will be disconnected after one hour, but this can be changed by using the "-IdleTimeout" option in the server_args line in /etc/xinetd.d/Xvnc. For example, you can add "-IdleTimeout 300" to change it to 5 minutes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;reference links:&lt;br /&gt;Gnome VNC howto: &lt;a href="http://ubuntuforums.org/showthread.php?t=122402" target="_blank"&gt;http://ubuntuforums.org/showthread.php?t=122402&lt;/a&gt;&lt;br /&gt;Xdmcp in kdm: &lt;a href="http://klomdark.servebeer.com:8081/MessageBase2/ReadMessage.aspx?MsgNum=1967" target="_blank"&gt;http://klomdark.servebeer.com:8081/M...px?MsgNum=1967&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Good luck!&lt;/blockquote&gt;My vncserver setting a bit different since i only can see a grey window from the screen when i do the remote desktop. I use this command to run the vncserver:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;user # &lt;span style="font-size:85%;"&gt;vncserver :0 -name kde -geometry 1024x768 -depth 16 -httpport 5800&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;I need to run this vncserver on port 5900 so i should use :0 because my firewall only opened to this port.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-1013159968383051504?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/WmvW0MpLnik" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/WmvW0MpLnik/howto-set-up-vnc-server-in-ubuntu.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/howto-set-up-vnc-server-in-ubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7200595626262369522.post-1476219959918857713</guid><pubDate>Wed, 07 Jan 2009 14:18:00 +0000</pubDate><atom:updated>2009-01-07T06:29:11.105-08:00</atom:updated><title>How to install &amp; configure VNC in Ubuntu - Remote Desktop in Ubuntu</title><description>Install X11VNC and vnc-java packages.&lt;br /&gt;&lt;blockquote&gt;# sudo apt-get install x11vnc vnc-java&lt;/blockquote&gt;Run the terminal command&lt;br /&gt;&lt;blockquote&gt;# x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 -shared&lt;/blockquote&gt;When you run above command, system will prompt you to create password and the password will be kept in /home/&lt;your-admin-user&gt;/.vnc&lt;br /&gt;&lt;br /&gt;*PS:&lt;br /&gt;-usepw : use password&lt;br /&gt;-shared: will allow more than 1 user to remote&lt;/your-admin-user&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7200595626262369522-1476219959918857713?l=boilinglinux.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/BoilingLinuxAndWindows/~4/XjfsqZGmI_A" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/BoilingLinuxAndWindows/~3/XjfsqZGmI_A/how-to-install-configure-vnc-in-ubuntu.html</link><author>hanselzen@gmail.com (Last King of Kho's Kingdom)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://boilinglinux.blogspot.com/2009/01/how-to-install-configure-vnc-in-ubuntu.html</feedburner:origLink></item></channel></rss>
