<?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>Blog @ AvantBiz Design &#187; Linux</title>
	<atom:link href="http://blog.avantbiz.com/category/computer/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.avantbiz.com</link>
	<description>Weblog about stuffs other than design</description>
	<lastBuildDate>Wed, 06 Jul 2011 02:45:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Setup a remote connection to MySQL</title>
		<link>http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/</link>
		<comments>http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 03:45:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/</guid>
		<description><![CDATA[To remotely connect to your MySQL databases, you must have an I.P.-based account. Login to your control panel and click on the side menu &#8220;ValueApps&#8221; then the &#8220;Database&#8221; tab. If you have not installed MySQL, click on &#8220;MySQL Database&#8221; under Available ValueApps. If you have already installed MySQL, click on &#8220;MySQLs&#8221; under Installed ValueApps. Check [...]]]></description>
			<content:encoded><![CDATA[<p>To remotely connect to your MySQL databases, you must have an I.P.-based account. Login to your control panel and click on the side menu &#8220;ValueApps&#8221; then the &#8220;Database&#8221; tab. If you have not installed MySQL, click on &#8220;MySQL Database&#8221; under Available ValueApps. If you have already installed MySQL, click on &#8220;MySQLs&#8221; under Installed ValueApps. Check the box &#8220;TCP/IP Connection&#8221;. Now login to your account via SSH.</p>
<p>Use the MySQL monitor to grant privileges.</p>
<p>Start the MySQL monitor with this command:</p>
<p>mysql</p>
<p>or:<br />
/usr/local/mysql/bin/mysql</p>
<p>Your shell prompt should now look like this:<br />
mysql></p>
<p>Run this command:</p>
<p>GRANT ALL PRIVILEGES ON *.* TO <a href="mailto:USERNAME@IP" rel="nofollow" >USERNAME@IP</a> IDENTIFIED BY &#8220;PASSWORD&#8221;;</p>
<p>USERNAME is the username that you would like to create.<br />
IP is the public IP address of your remote connection. See examples<br />
PASSWORD is the password you would like to use for this username.<br />
You now must flush MySQL&#8217;s privileges. Run this command:</p>
<p>FLUSH PRIVILEGES;</p>
<p>Run this command to exit MySQL:</p>
<p>exit;<br />
 </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Change file owner</title>
		<link>http://blog.avantbiz.com/2006/11/04/linux-change-file-owner/</link>
		<comments>http://blog.avantbiz.com/2006/11/04/linux-change-file-owner/#comments</comments>
		<pubDate>Sat, 04 Nov 2006 01:59:25 +0000</pubDate>
		<dc:creator>klyuen</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2006/11/04/linux-change-file-owner/</guid>
		<description><![CDATA[chown newusername *.* chown newusername *]]></description>
			<content:encoded><![CDATA[<p>chown newusername *.*<br />
chown newusername *</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2006/11/04/linux-change-file-owner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use .htaccess to restrict access to web pages</title>
		<link>http://blog.avantbiz.com/2006/10/16/htaccess-htpasswd-restrict-web-access/</link>
		<comments>http://blog.avantbiz.com/2006/10/16/htaccess-htpasswd-restrict-web-access/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 06:27:29 +0000</pubDate>
		<dc:creator>klyuen</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web 網頁]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2006/10/16/htaccess-htpasswd-restrict-web-access/</guid>
		<description><![CDATA[This document demonstrates the use .htaccess to restrict access to web documents by user and password.   The Restricted Access Document The document &#8220;Restricted Information&#8221; is only available to user john with password orange and user sheri with password apple. The first time you click on &#8220;Restricted Information&#8221;, your web browser should prompt you for [...]]]></description>
			<content:encoded><![CDATA[<p>This document demonstrates the use .htaccess to restrict access to web documents by user and password.</p>
<p><span id="more-57"></span></p>
<p> </p>
<h2>The Restricted Access Document</h2>
<p>The document &#8220;<a href="http://blog.avantbiz.com/~jdoe/info/htaccess/example/restricted.html">Restricted Information</a>&#8221; is only available to user <strong>john</strong> with password <strong>orange</strong> and user <strong>sheri</strong> with password <strong>apple</strong>. The first time you click on &#8220;Restricted Information&#8221;, your web browser should prompt you for a user name and password. If it does not you may be using a web browser which is not HTTP authentication capable. </p>
<hr />
<h2>Ingredients</h2>
<p><strong>NOTE:</strong> Please make sure you are setting this up in the directory that you want passwd protected. The .htpasswd file will end up in the wrong directory otherwise. For more infomation on how to use Unix, please check out our <a href="http://blog.avantbiz.com/unix.tutorial/">Unix Tutorial</a>.</p>
<ul>
<li>The <a href="http://blog.avantbiz.com/~jdoe/info/htaccess/example/restricted.html">web document</a> to be protected.Actually, access is restricted by directory so all files in the same directory will be protected. </li>
<li>The file <a href="http://blog.avantbiz.com/htaccess.txt">.htaccess</a>.This file should be in the directory which contains the documents to restrict access to. The contents of this file specify the name of the password file.For example if you were user jdoe with web documents in the local directory &#8220;/home/jdoe/public_html/goodstuff&#8221; that you wanted to restrict access to, your .htaccess might look like:
<p><code>AuthUserFile /home/jdoe/public_html/goodstuff/.htpasswd<br />
AuthName jdoe_goodstuff<br />
AuthType Basic</code><code>require valid-user<br />
</code>Note that .htaccess will not work if there are extra spaces after AuthUserFile.</p>
<p> </li>
<li>The file <a href="http://blog.avantbiz.com/htpasswd.txt">.htpasswd</a>.This file contains the passwords of the users.To create the .htpasswd file log in to this server using SSH, change directory to the directory you want to restrict access to, and type:
<p><code>htpasswd -c .htpasswd someuser</code></p>
<p>for the first user (where someuser is the username). You will then be prompted twice for the user&#8217;s password. The -c option causes the .htpasswd file to be created. For each additional user type:</p>
<p><code>htpasswd .htpasswd someuser</code></p>
<p> </li>
</ul>
<p><strong>NOTE</strong>: There is <strong>no</strong> correspondence between the usernames and passwords used for accounts on this server and usernames and passwords in any specific .htpasswd file. A user doesn&#8217;t need to have an account on this system in order to be validated for access to files protected by HTTP-based authentication.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2006/10/16/htaccess-htpasswd-restrict-web-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

