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

<channel>
	<title>kwatog &#187; Linux</title>
	<atom:link href="http://kwatog.com/category/blog/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwatog.com</link>
	<description>tech notes and general nonsense</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:06:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Reset MySQL Root Password in CentOS</title>
		<link>http://kwatog.com/blog/reset-mysql-root-password-in-centos/</link>
		<comments>http://kwatog.com/blog/reset-mysql-root-password-in-centos/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:06:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=264</guid>
		<description><![CDATA[&#8220;Senior moments&#8221; tends to occur more frequently these days. Sign that I&#8217;m getting old. And several times already, I forgot the root password of my MySQL installation. You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. # /etc/init.d/mysql stop Step # 2: Start the [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Senior moments&#8221; tends to occur more frequently these days. Sign that I&#8217;m getting old. And several times already, I forgot the root password of my MySQL installation. </p>
<p>You can recover MySQL database server password with following five easy steps.<br />
<span id="more-264"></span><br />
<strong>Step # 1:</strong> Stop the MySQL server process.</p>
<p><code># /etc/init.d/mysql stop</code></p>
<p><strong>Step # 2:</strong> Start the MySQL (mysqld) server/daemon process with the &#8211;skip-grant-tables option so that it will not prompt for password.</p>
<p><code># mysqld_safe --skip-grant-tables &#038;</code></p>
<p><strong>Step # 3:</strong> Connect to mysql server as the root user.<br />
<code># mysql -u root</code><br />
<strong>Step # 4: </strong>Setup new mysql root account password.<br />
<code><br />
mysql> use mysql;<br />
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';<br />
mysql> flush privileges;<br />
mysql> quit<br />
</code></p>
<p><strong>Step # 5:</strong> Exit and restart the MySQL server.<br />
<code># /etc/init.d/mysql stop</code></p>
<p>Step # 6: Start MySQL server and test it<br />
# /etc/init.d/mysql start<br />
# mysql -u root -p</p>
<p>The steps are basically the same when resetting the password in other linux flavors. I&#8217;m using the same steps in Ubuntu but with a slight difference in shell commands. </p>
<p>reference :<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html">http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/reset-mysql-root-password-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My eeePC loves Ubuntu Netbook Edition</title>
		<link>http://kwatog.com/blog/linux/eepc-loves-ubuntu-netbook-is-fas/</link>
		<comments>http://kwatog.com/blog/linux/eepc-loves-ubuntu-netbook-is-fas/#comments</comments>
		<pubDate>Sat, 01 May 2010 02:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=257</guid>
		<description><![CDATA[I had bad experience with Ubuntu before when I tried to install it on my Compaq V3000 series laptop. You know, the overheating problem that activates the ACPI and then turns off my laptop? Otherwise, my notebook will burn. I mean really, the whole unit is freaking hot. Of course, I know that it has [...]]]></description>
			<content:encoded><![CDATA[<p>I had bad experience with Ubuntu before when I tried to install it on my Compaq V3000 series laptop. You know, the overheating problem that activates the ACPI and then turns off my laptop? Otherwise, my notebook will burn. I mean really, the whole unit is freaking hot. </p>
<p>Of course, I know that it has something to do with the BIOS. But I&#8217;m also well aware that I fuck the BIOS update, my laptop will become an expensive paperweight. That&#8217;s too big a risk to take a chance. That, coupled with other problems like FarmTown and FarmVille issues, lead me to realize it&#8217;s just too painful to make the notebook usable. And so I had to put on Windows XP again. Well, that notebook is primarily used by my wife and FarmTown, FarmVille and Social City are just too important for her so I don&#8217;t really have a choice but to put back XP on it.</p>
<p>And so I am stuck with an underpowered netbook, an eeePC 1002HA(btw, it was originally for the wife but since it&#8217;s damn slow, she got back the notebook). It&#8217;s a pretty decent netbook until I open a lot of tabs on my browser and run netbeans on top of XAMPP. It&#8217;s crawling and I understand. It takes ages for Netbeans to start up and do I still need to say that it takes at least 90 seconds to start up the machine(with all the things I run on it)?  But then again, the prospect of installing Ubuntu just doesn&#8217;t appeal me because of my earlier experience. </p>
<p>So when Ubuntu came up with Ubuntu Netbook Edition (formerly Ubuntu Netbook Remix) and got good reviews, I was persuaded to try again. To make the story short, I installed it (dual-boot mode) and surprisingly, I am now a happy man. I mean, really!</p>
<p>It boots fast,  all done and usable in 24 seconds. Yes, that includes all the peripherals like sound, bluetooth and WiFi working! Ok, not as fast as the Macbook Pro but hey, this is a netbook with an underpowered Atom N280 processor with 2GB of memory as compared to Core2Duo of MBP. And guess what, Netbeans  starts in a flash. </p>
<p>If all goes well, I might decide to ditch XP altogether and just install VMWare or VirtualBox for my Windows needs. More about this Linux adventure later.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/eepc-loves-ubuntu-netbook-is-fas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure-FTPD Installation</title>
		<link>http://kwatog.com/blog/linux/pure-ftpd-installation/</link>
		<comments>http://kwatog.com/blog/linux/pure-ftpd-installation/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 00:11:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=155</guid>
		<description><![CDATA[Install the pure-ftpd [root]# cd /usr/local/src/ [root]# wget http://internap.dl.sourceforge.net/sourceforge/pureftpd/pure-ftpd-1.0.21.tar.gz [root]# tar -xvzf pure-ftpd-1.0.21.tar.gz [root]# cd pure-ftpd-1.0.21/ -Change &#8211;with-language to you language- [root]#./configure --with-everything [root]#make [root]#make install-strip -This start the pure-ftpd with 5 Users simultaneous and 2 simultaneous users for IP. [root]#/usr/local/sbin/pure-ftpd -B -c 5 -C 2 -To test if the installation is ok: [root]#ftp localhost [...]]]></description>
			<content:encoded><![CDATA[<p>Install the pure-ftpd</p>
<p><code><br />
[root]# cd /usr/local/src/<br />
[root]# wget http://internap.dl.sourceforge.net/sourceforge/pureftpd/pure-ftpd-1.0.21.tar.gz<br />
[root]# tar -xvzf pure-ftpd-1.0.21.tar.gz<br />
[root]# cd pure-ftpd-1.0.21/<br />
</code></p>
<p>-Change &#8211;with-language to you language-<br />
<code><br />
[root]#./configure --with-everything<br />
[root]#make<br />
[root]#make install-strip<br />
</code></p>
<p>-This start the pure-ftpd with 5 Users simultaneous and 2 simultaneous users for IP.</p>
<p><code><br />
[root]#/usr/local/sbin/pure-ftpd -B -c 5 -C 2<br />
</code><br />
-To test if the installation is ok:<br />
<code><br />
[root]#ftp localhost<br />
</code></p>
<hr/>
taken from <a href="http://forums.rapidvps.com/showthread.php?t=166">RapidVPS Forum</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/pure-ftpd-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Administration Commands</title>
		<link>http://kwatog.com/blog/linux/mysql-admi-linux/</link>
		<comments>http://kwatog.com/blog/linux/mysql-admi-linux/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 12:11:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[create user]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=153</guid>
		<description><![CDATA[Backup MySQL Database into a File -bash-3.2$mysqldump -ujhondoe -p mydb_name > mydb_name_backup.sql password: -bash-3.2$ zip mydb_name_backup.zip mydb_name_backup.sql Load MySQL Backup Into Database -bash-3.2$mysql -ujhondoe mydb_name < mydb_name_backup.sql password: Create User in MySQL mysql> CREATE USER 'jhondoe'@'localhost' IDENTIFIED BY 'mypassword'; mysql> GRANT ALL PRIVILEGES ON mydbname.* TO 'jhondoe'@'localhost' WITH GRANT OPTION; mysql> CREATE USER 'jhondoe'@'%' IDENTIFIED [...]]]></description>
			<content:encoded><![CDATA[<h2>Backup MySQL Database into a File</h2>
<p><code><br />
-bash-3.2$mysqldump -ujhondoe -p mydb_name > mydb_name_backup.sql<br />
password: <type your password here><br />
-bash-3.2$ zip mydb_name_backup.zip mydb_name_backup.sql<br />
</code></p>
<h2>Load MySQL Backup Into Database</h2>
<p><code><br />
-bash-3.2$mysql -ujhondoe mydb_name < mydb_name_backup.sql<br />
password: <type your password here><br />
</code></p>
<h2>Create User in MySQL</h2>
<p><code><br />
mysql> CREATE USER 'jhondoe'@'localhost' IDENTIFIED BY 'mypassword';<br />
mysql> GRANT ALL PRIVILEGES ON mydbname.* TO 'jhondoe'@'localhost'   WITH GRANT OPTION;</p>
<p>mysql> CREATE USER 'jhondoe'@'%' IDENTIFIED BY 'mypassword';<br />
mysql> GRANT ALL PRIVILEGES ON mydbname.* TO 'monty'@'%'   WITH GRANT OPTION;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/mysql-admi-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TAR : Archiving and Extracting Files and Folders</title>
		<link>http://kwatog.com/blog/linux/tar-archiving-and-extracting-files-and-folders/</link>
		<comments>http://kwatog.com/blog/linux/tar-archiving-and-extracting-files-and-folders/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 16:17:55 +0000</pubDate>
		<dc:creator>kwatog</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=139</guid>
		<description><![CDATA[Here&#8217;s the common syntax I use in archiving and extracting files or folders. tar -xvf foo.tar verbosely extract foo.tar tar -xzf foo.tar.gz extract gzipped foo.tar.gz tar -cjf foo.tar.bz2 bar/ create bzipped tar archive of the directory bar called foo.tar.bz2 tar -xjf foo.tar.bz2 -C bar/ extract bzipped foo.tar.bz2 after changing directory to bar tar -xzf foo.tar.gz [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the common syntax I use in archiving and extracting files or folders.<br />
<code><br />
       tar -xvf foo.tar<br />
</code><br />
              verbosely extract foo.tar</p>
<p><code><br />
       tar -xzf foo.tar.gz<br />
</code><br />
              extract gzipped foo.tar.gz</p>
<p><code><br />
       tar -cjf foo.tar.bz2 bar/<br />
</code><br />
              create bzipped tar archive of the directory bar called foo.tar.bz2</p>
<p><code><br />
       tar -xjf foo.tar.bz2 -C bar/<br />
</code><br />
              extract bzipped foo.tar.bz2 after changing directory to bar</p>
<p><code><br />
       tar -xzf foo.tar.gz blah.txt<br />
</code><br />
              extract the file blah.txt from foo.tar.gz</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/tar-archiving-and-extracting-files-and-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
