<?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>how to</title>
	<atom:link href="http://www.neteyaz.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.neteyaz.com</link>
	<description>linux and open source tips</description>
	<lastBuildDate>Mon, 23 May 2011 08:47:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mysql update to 5.5 (use mysql 5.5 with php with safe upgrade)</title>
		<link>http://www.neteyaz.com/mysql-update-to-5-5-use-mysql-5-5-with-php-with-safe-upgrade</link>
		<comments>http://www.neteyaz.com/mysql-update-to-5-5-use-mysql-5-5-with-php-with-safe-upgrade#comments</comments>
		<pubDate>Mon, 23 May 2011 08:47:12 +0000</pubDate>
		<dc:creator>banias</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=200</guid>
		<description><![CDATA[Updating to MySQL 5.5.8 
Super easy as I had MySQL 5.0.45 installed previously. Just went to http://www.mysql.com/downloads/ and grabbed the tar.gz file. After mysqldump&#8217;ing my old databases I simply ran these steps:
    sudo mv ~/Downloads/mysql-5.5.8-osx10.6-x86_64.tar.gz /usr/local
    cd /usr/local/
    sudo tar -xvf mysql-5.5.8-osx10.6-x86_64.tar.gz
    sudo [...]]]></description>
			<content:encoded><![CDATA[<h2>Updating to MySQL 5.5.8 </h2>
<p>Super easy as I had MySQL 5.0.45 installed previously. Just went to http://www.mysql.com/downloads/ and grabbed the tar.gz file. After mysqldump&#8217;ing my old databases I simply ran these steps:</p>
<p>    sudo mv ~/Downloads/mysql-5.5.8-osx10.6-x86_64.tar.gz /usr/local<br />
    cd /usr/local/<br />
    sudo tar -xvf mysql-5.5.8-osx10.6-x86_64.tar.gz<br />
    sudo ln -s /usr/local/mysql-5.5.8-osx10.6-x86_64 mysql<br />
    cd mysql<br />
    sudo chown -R _mysql .<br />
    sudo chgrp -R _mysql .<br />
    scripts/mysql_install_db &#8211;user=mysql<br />
    sudo chown -R root .<br />
    sudo chown -R _mysql data<br />
    sudo /usr/local/mysql/bin/mysqld_safe &#8211;user=mysql</p>
<p>I then reimported my data by opening a mysql prompt, creating the database, exiting, and then reimporting my data with mysql -u root -p db name < mysqldump file</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/mysql-update-to-5-5-use-mysql-5-5-with-php-with-safe-upgrade/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>indimail user adding script with python</title>
		<link>http://www.neteyaz.com/indimail-user-adding-script-with-python</link>
		<comments>http://www.neteyaz.com/indimail-user-adding-script-with-python#comments</comments>
		<pubDate>Mon, 07 Mar 2011 10:29:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[indimail]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=195</guid>
		<description><![CDATA[#!/usr/bin/python
import os
for i in range(1,500):
	cmd = '/var/indimail/bin/vadduser mal'+str(i)+'@domain.com password'
	os.system(cmd)
	print cmd

indimail batch user adding like:
mail1@domain.com with password
mail2@domain.com with password
mail3@domain.com with password
..
..
]]></description>
			<content:encoded><![CDATA[<blockquote><pre>#!/usr/bin/python
import os
for i in range(1,500):
	cmd = '/var/indimail/bin/vadduser mal'+str(i)+'@domain.com password'
	os.system(cmd)
	print cmd</pre>
</blockquote>
<p>indimail batch user adding like:<br />
mail1@domain.com with password<br />
mail2@domain.com with password<br />
mail3@domain.com with password<br />
..<br />
..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/indimail-user-adding-script-with-python/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>reading utf-8 files with python</title>
		<link>http://www.neteyaz.com/reading-utf-8-files-with-python</link>
		<comments>http://www.neteyaz.com/reading-utf-8-files-with-python#comments</comments>
		<pubDate>Wed, 26 Jan 2011 01:33:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=193</guid>
		<description><![CDATA[Reading UTF-8 Files
You can manually convert strings that you read from files, however there is an easier way:

import codecs
fileObj = codecs.open( "someFile", "r", "utf-8" )
u = fileObj.read() # Returns a Unicode string from the UTF-8 bytes in the file

The codecs module will take care of all the conversions for you. You can also open a [...]]]></description>
			<content:encoded><![CDATA[<h2>Reading UTF-8 Files</h2>
<p>You can manually convert strings that you read from files, however there is an easier way:</p>
<blockquote>
<pre>import codecs
fileObj = codecs.open( "someFile", "r", "utf-8" )
u = fileObj.read() # Returns a Unicode string from the UTF-8 bytes in the file</pre>
</blockquote>
<p>The <a href="http://www.python.org/doc/current/lib/module-codecs.html">codecs module</a> will take care of all the conversions for you. You can also open a file  for writing and it will convert the Unicode strings you pass in to <code>write</code> into whatever encoding you have chosen. However, take a look at the note below about the byte-order marker (BOM).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/reading-utf-8-files-with-python/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python 2.6 easy install on centOS</title>
		<link>http://www.neteyaz.com/python-2-6-easy-install-on-centos</link>
		<comments>http://www.neteyaz.com/python-2-6-easy-install-on-centos#comments</comments>
		<pubDate>Fri, 21 Jan 2011 09:04:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=191</guid>
		<description><![CDATA[Chris Lea provides a YUM repository for python26 RPMs that can co-exist with the &#8216;native&#8217; 2.4 that is needed for quite a few admin tools on CentOS.
Quick instructions that worked at least for me:

$ sudo rpm -Uvh http://yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm
$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CHL
$ sudo yum install python26
$ python26

]]></description>
			<content:encoded><![CDATA[<p>Chris Lea provides a YUM repository for python26 RPMs that can co-exist with the &#8216;native&#8217; 2.4 that is needed for quite a few admin tools on CentOS.</p>
<p>Quick instructions that worked at least for me:</p>
<blockquote>
<pre><code><span>$ sudo rpm </span><span>-</span><span>Uvh</span><span> http</span><span>:</span><span>//yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm</span><span>
$ sudo rpm </span><span>--</span><span>import</span><span> </span><span>/</span><span>etc</span><span>/</span><span>pki</span><span>/</span><span>rpm</span><span>-</span><span>gpg</span><span>/</span><span>RPM</span><span>-</span><span>GPG</span><span>-</span><span>KEY</span><span>-</span><span>CHL
$ sudo yum install python26
$ python26</span></code></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/python-2-6-easy-install-on-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eclipse and python in ubuntu (installing pydev on ubuntu)</title>
		<link>http://www.neteyaz.com/eclipse-and-python-in-ubuntu-installing-pydev-on-ubuntu</link>
		<comments>http://www.neteyaz.com/eclipse-and-python-in-ubuntu-installing-pydev-on-ubuntu#comments</comments>
		<pubDate>Wed, 19 Jan 2011 12:00:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pydev]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=188</guid>
		<description><![CDATA[
Writing a Python program can be done using any editor, even a text  editor. If you are running Ubuntu Linux, you may want to edit your code  using Eclipse. Eclipse is an Integrated Development Environment or IDE for building, deploying  and managing software. It is a source code editor and provides trace [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.techcolleague.com/images/stories/objects/eclipse.jpg" border="0" alt="Eclipse" hspace="6" width="131" height="68" align="left" /></p>
<p>Writing a Python program can be done using any editor, even a text  editor. If you are running Ubuntu Linux, you may want to edit your code  using Eclipse. <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> is an Integrated Development Environment or IDE for building, deploying  and managing software. It is a source code editor and provides trace  and debugging facilities. The Eclipse Project was originally created by  IBM in November 2001 and supported by a consortium of software vendors.  Today, the Eclipse community consists of individuals and organizations  from a cross section of the software  		industry.</p>
<p><span id="more-188"></span></p>
<h2>Install Eclipse</h2>
<p>1. Install Eclipse and Sun&#8217;s Java by running the following:</p>
<div>sudo apt-get install eclipse sun-java6-jdk</div>
<p>2. Make Sun&#8217;s Java the default by running the following:</p>
<div>sudo update-java-alternatives -s java-6-sun</div>
<p>3. Edit the JVM configuration file:</p>
<div>sudo -b gedit /etc/jvm</div>
<p>4. and add the following to the top of the file:</p>
<div>/usr/lib/jvm/java-6-sun</div>
<p><ins style="display: inline-table; border: medium none; height: 60px; margin: 0pt; padding: 0pt; position: relative; visibility: visible; width: 468px;"><ins id="google_ads_frame2_anchor" style="display: block; border: medium none; height: 60px; margin: 0pt; padding: 0pt; position: relative; visibility: visible; width: 468px;"></ins></ins></p>
<p>5. If you have 1GB or more of memory, you may want to increase the  heap size for better performance. The argument Xms refers to the minimum  heap size and Xmx refers to the maximum heap size. Edit the Eclipse  script file:</p>
<div>sudo -b gedit /usr/bin/eclipse</div>
<p>6. and change VMARGS=&#8221;" to the following:</p>
<div>VMARGS=&#8221;-Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m&#8221;</div>
<h2><img title="PyDev" src="http://www.techcolleague.com/images/stories/objects/pydev.gif" border="0" alt="PyDev" width="174" height="68" align="top" /></h2>
<h2>Install PyDev</h2>
<p>1. Run Eclipse and then go to Help | Software Updates | Find and Install&#8230;</p>
<p>2. In the <em>Feature Updates</em> window, select <strong>Search for new features to install</strong> and click Next.</p>
<p>3. In the <em>Install</em> window, select <strong>New Remote Site</strong>.</p>
<p>4. In the <em>New Update Site</em> window, specify the following:</p>
<div>Name: PyDev<br />
URL: http://pydev.org/updates</div>
<p>5. In the <em>Search Results</em> window, select both PyDev Extensions and click Next.</p>
<p>6. In the Feature License window, agree to the license agreement and click Next.</p>
<p>7. Configure the Python interpreter by going to Window | Preferences | Pydev | Interpreter &#8211; Python.</p>
<p>8. In the <em>Python interpreters</em> section, click New.</p>
<p>9. Locate your Python interpreter (e.g., /usr/bin/python).</p>
<p>10. When prompted, select your System PYTHONPATH. You can just leave the default checkboxes selected and click OK.</p>
<p>For further details about PyDev and additional information, visit the <a href="http://pydev.org/" target="_blank">PyDev</a> site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/eclipse-and-python-in-ubuntu-installing-pydev-on-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python smtplib 535 authorization failed (#5.7.1)</title>
		<link>http://www.neteyaz.com/python-smtplib-535-authorization-failed-5-7-1</link>
		<comments>http://www.neteyaz.com/python-smtplib-535-authorization-failed-5-7-1#comments</comments>
		<pubDate>Thu, 18 Nov 2010 22:12:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[authorization failed]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[smtpauth]]></category>
		<category><![CDATA[SMTPAuthenticationError]]></category>
		<category><![CDATA[smtplib]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=183</guid>
		<description><![CDATA[smtplib.SMTPAuthenticationError 535 authorization failed (#5.7.1
[root@proxy1 ~]# ./mail.py
send: &#8216;ehlo sender.host.net\r\n&#8217;
reply: &#8216;250-smtp.host.net\r\n&#8217;
reply: &#8216;250-AUTH LOGIN PLAIN CRAM-MD5\r\n&#8217;
reply: &#8216;250-AUTH=LOGIN PLAIN CRAM-MD5\r\n&#8217;
reply: &#8216;250-PIPELINING\r\n&#8217;
reply: &#8216;250-8BITMIME\r\n&#8217;
reply: &#8216;250-SIZE 10000000\r\n&#8217;
reply: &#8216;250-ETRN\r\n&#8217;
reply: &#8216;250-ATRN\r\n&#8217;
reply: &#8216;250 HELP\r\n&#8217;
reply: retcode (250); Msg: smtp.host.net
AUTH LOGIN PLAIN CRAM-MD5
AUTH=LOGIN PLAIN CRAM-MD5
PIPELINING
8BITMIME
SIZE 10000000
ETRN
ATRN
HELP
send: &#8216;STARTTLS\r\n&#8217;
reply: &#8216;454 TLS missing certificate: error:02001002:system library:fopen:No such file or directory (#4.3.0)\r\n&#8217;
reply: retcode (454); Msg: TLS missing certificate: error:02001002:system library:fopen:No [...]]]></description>
			<content:encoded><![CDATA[<h2>smtplib.SMTPAuthenticationError 535 authorization failed (#5.7.1</h2>
<blockquote><p>[root@proxy1 ~]# ./mail.py<br />
send: &#8216;ehlo sender.host.net\r\n&#8217;<br />
reply: &#8216;250-smtp.host.net\r\n&#8217;<br />
reply: &#8216;250-AUTH LOGIN PLAIN CRAM-MD5\r\n&#8217;<br />
reply: &#8216;250-AUTH=LOGIN PLAIN CRAM-MD5\r\n&#8217;<br />
reply: &#8216;250-PIPELINING\r\n&#8217;<br />
reply: &#8216;250-8BITMIME\r\n&#8217;<br />
reply: &#8216;250-SIZE 10000000\r\n&#8217;<br />
reply: &#8216;250-ETRN\r\n&#8217;<br />
reply: &#8216;250-ATRN\r\n&#8217;<br />
reply: &#8216;250 HELP\r\n&#8217;<br />
reply: retcode (250); Msg: smtp.host.net<br />
AUTH LOGIN PLAIN CRAM-MD5<br />
AUTH=LOGIN PLAIN CRAM-MD5<br />
PIPELINING<br />
8BITMIME<br />
SIZE 10000000<br />
ETRN<br />
ATRN<br />
HELP<br />
send: &#8216;STARTTLS\r\n&#8217;<br />
reply: &#8216;454 TLS missing certificate: error:02001002:system library:fopen:No such file or directory (#4.3.0)\r\n&#8217;<br />
reply: retcode (454); Msg: TLS missing certificate: error:02001002:system library:fopen:No such file or directory (#4.3.0)<br />
send: &#8216;AUTH CRAM-MD5\r\n&#8217;<br />
reply: &#8216;334 ***************************=\r\n&#8217;<br />
reply: retcode (334); Msg: ***************************=<br />
send: &#8216; ***************************\r\n&#8217;<br />
reply: &#8216;535 authorization failed (#5.7.1)\r\n&#8217;<br />
reply: retcode (535); Msg: authorization failed (#5.7.1)<br />
Traceback (most recent call last):<br />
File &#8220;./mail.py&#8221;, line 31, in ?<br />
smtpserver.login(sender,password)<br />
File &#8220;/usr/lib64/python2.4/smtplib.py&#8221;, line 587, in login<br />
raise SMTPAuthenticationError(code, resp)<br />
smtplib.SMTPAuthenticationError: (535, &#8216;authorization failed (#5.7.1)&#8217;)</p></blockquote>
<h2>solution</h2>
<p>ADD redline after ehlo()</p>
<blockquote><p>
&#8230;</p>
<p>smtpserver.ehlo()<br />
<span style="color: #ff0000;">smtpserver.esmtp_features["auth"] = &#8220;LOGIN PLAIN&#8221;</span><br />
smtpserver.starttls()<br />
..
</p></blockquote>
<p>also you can pass into debug mode with  &#8220;<strong>smtpserver.set_debuglevel(1)</strong>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/python-smtplib-535-authorization-failed-5-7-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>run php until last row</title>
		<link>http://www.neteyaz.com/run-php-until-last-row</link>
		<comments>http://www.neteyaz.com/run-php-until-last-row#comments</comments>
		<pubDate>Tue, 16 Nov 2010 23:11:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=179</guid>
		<description><![CDATA[ignore_user_abort() — Set whether a client disconnect should abort script execution
Sets whether a client disconnect should cause a script to be aborted.
When running PHP as a command line script, and the script&#8217;s tty goes away without the script being terminated then the script will die the next time it tries to write anything, unless value [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ignore_user_abort() — Set whether a client disconnect should abort script execution</strong></p>
<p>Sets whether a client disconnect should cause a script to be aborted.</p>
<p>When running PHP as a command line script, and the script&#8217;s tty goes away without the script being terminated then the script will die the next time it tries to write anything, unless value is set to TRUE </p>
<p>call the function at top of the script like this:</p>
<blockquote><p><?php<br />
// Ignore user aborts and allow the script<br />
// to run forever<br />
ignore_user_abort(true);<br />
set_time_limit(0);</p></blockquote>
<p><strong>be careful before call it, it can be dangerous, you can need a &#8220;httpd restart&#8221; or server can fire cause of loads</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/run-php-until-last-row/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lightweight mail server with python twisted</title>
		<link>http://www.neteyaz.com/lightweight-mail-server-with-python-twisted</link>
		<comments>http://www.neteyaz.com/lightweight-mail-server-with-python-twisted#comments</comments>
		<pubDate>Tue, 16 Nov 2010 23:07:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=176</guid>
		<description><![CDATA[i just found a new mail server daemon, developed with python twisted
codes are simple and can be implemented quickly.
project home: https://launchpad.net/txmailserver
to download :
bzr branch lp:txmailserver
]]></description>
			<content:encoded><![CDATA[<p>i just found a new mail server daemon, developed with python twisted</p>
<p>codes are simple and can be implemented quickly.</p>
<p><strong>project home: </strong>https://launchpad.net/txmailserver<br />
<strong>to download :</strong></p>
<blockquote><p>bzr branch lp:txmailserver</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/lightweight-mail-server-with-python-twisted/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lock resolv.conf in ubuntu or another linux</title>
		<link>http://www.neteyaz.com/lock-resolv-conf-in-ubuntu-or-another-linux</link>
		<comments>http://www.neteyaz.com/lock-resolv-conf-in-ubuntu-or-another-linux#comments</comments>
		<pubDate>Sun, 16 May 2010 08:46:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[resolv.conf]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=173</guid>
		<description><![CDATA[to lock your resolv.conf

Bug Description
Binary package hint: network-manager
This bug causes name resolution to be painfully slow. If I manually remove the routers ip from resolv.conf it works normally, but next time the machine is booted the address gets added to the list again. I found the only way around this was to lock the file. [...]]]></description>
			<content:encoded><![CDATA[<h2>to lock your resolv.conf</h2>
<p><strong><br />
Bug Description</strong></p>
<p>Binary package hint: network-manager</p>
<p>This bug causes name resolution to be painfully slow. If I manually remove the routers ip from resolv.conf it works normally, but next time the machine is booted the address gets added to the list again.<span id="more-173"></span> I found the only way around this was to lock the file. &#8220;sudo chattr +i /etc/resolv.conf&#8221; so that network manager would not re-edit the file upon boot. I have seen this problem many times on the forums, and believe it should be made a priority to fix this. This &#8220;slow internet&#8221; gives people a horrible first impression of Ubuntu, and seems it would be easy enough to to fix. Thank you for our time.</p>
<p>ProblemType: Bug<br />
DistroRelease: Ubuntu 10.04<br />
Package: network-manager 0.8-0ubuntu2<br />
ProcVersionSignature: hostname 2.6.32-18.27-generic 2.6.32.10+drm33.1<br />
Uname: Linux 2.6.32-18-generic x86_64<br />
NonfreeKernelModules: nvidia<br />
Architecture: amd64<br />
CRDA: Error: [Errno 2] No such file or directory<br />
Date: Tue Apr 6 00:42:02 2010<br />
Gconf:</p>
<p>IfupdownConfig:<br />
 auto lo<br />
 iface lo inet loopback<br />
InstallationMedia: Ubuntu 10.04 &#8220;Lucid Lynx&#8221; &#8211; Beta amd64 (20100318)<br />
IpRoute:<br />
 192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.5 metric 1<br />
 169.254.0.0/16 dev eth0 scope link metric 1000<br />
 default via 192.168.2.1 dev eth0 proto static<br />
Keyfiles: Error: [Errno 2] No such file or directory<br />
ProcEnviron:<br />
 LANG=en_US.utf8<br />
 SHELL=/bin/bash<br />
RfKill:</p>
<p>SourcePackage: network-manager</p>
<blockquote><p>sudo chattr +i /etc/resolv.conf</p></blockquote>
<p>after this command your resolv.conf file will be locked and the file will not change on boot, or after create new connection</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/lock-resolv-conf-in-ubuntu-or-another-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu Apache, PHP, mysql, and phpmyadmin</title>
		<link>http://www.neteyaz.com/ubuntu-apache-php-mysql-and-phpyadmin</link>
		<comments>http://www.neteyaz.com/ubuntu-apache-php-mysql-and-phpyadmin#comments</comments>
		<pubDate>Fri, 07 May 2010 10:52:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=171</guid>
		<description><![CDATA[Note: In this post I&#8217;ll be showing how  to install Apache, php, MySQL and phpMyAdmin (one by one) on Ubuntu 8.10  using Terminal. If you want to install them all at the same time with  minimal fuss, I recommend you to read my post on installing LAMP.]

Installing Apache
1. Open Terminal (Application -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Note: In this post I&#8217;ll be showing how  to install Apache, php, MySQL and phpMyAdmin (one by one) on Ubuntu 8.10  using Terminal. If you want to install them all at the same time with  minimal fuss, I recommend you to read my post on <strong>installing LAMP</strong>.]</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Installing Apache</span></strong></p>
<p style="text-align: justify;">1. Open Terminal (Application -&gt;  Accessories -&gt; Terminal) and execute the following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install apache2</em></p>
</blockquote>
<p style="text-align: justify;">2. When the setup is complete you can  check if the Apache is working properly by pointing your browser to http://localhost. If you  see the text “It works!”, it means Apache is working just fine.</p>
<p style="text-align: justify;">3. Towards the end of the installation  if you see a message like this inside Terminal, “<em>Could not reliably  determine the server’s fully qualified domain name, using 127.0.1.1 for  ServerName</em>“, you can fix this by executing the following command.  It will open Gedit (text editor).</p>
<blockquote>
<p style="text-align: left;"><em>gksu gedit /etc/apache2/conf.d/fqdn</em></p>
</blockquote>
<p style="text-align: justify;">4. When Gedit opens, type “ServerName  localhost” inside the file and click Save. Then close the file.</p>
<p style="text-align: justify;"><span id="more-151"> </span></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Installing php5</strong></span></p>
<p style="text-align: justify;">1. Inside Terminal, execute the  following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install php5  libapache2-mod-php5</em></p>
</blockquote>
<p style="text-align: justify;">2. When setup is complete, you have to  restart Apache so that php5 will work on Apache. Execute the following  command in Terminal:</p>
<blockquote>
<p style="text-align: left;"><em>sudo /etc/init.d/apache2 restart<span id="more-171"></span></em></p>
</blockquote>
<p style="text-align: justify;">3. You can now test to see if php5 works  with Apache. To do this you can create a new php file inside your  /var/www/ folder. (The text in red is the filename. You can put any  name.)</p>
<blockquote>
<p style="text-align: left;"><em>sudo gedit /var/www/<span style="color: #ff0000;">nass</span>.php</em></p>
</blockquote>
<p style="text-align: justify;">4. The command above will open Gedit.  Just type in the following php code, save and close the file:</p>
<blockquote>
<p style="text-align: left;"><em>&lt;? phpInfo(); ?&gt;</em></p>
</blockquote>
<p style="text-align: justify;">5. Now point your browser to  “http://localhost/<span style="color: #ff0000;">nass</span>.php”  and see if you can see the text “yoo hooo!” and a lot of information  about your php5 installation. If you see that, it means your have  successfully installed php5.</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Installing MySQL</strong></span></p>
<p style="text-align: justify;">1. Inside Terminal, execute the  following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install mysql-server  libapache2-mod-auth-mysql php5-mysql</em></p>
</blockquote>
<p style="text-align: justify;">2. Towards the end of the installation  you will be prompted to set your root or admin password (see pic below)</p>
<p style="text-align: center;"><img title="set root password" src="http://ubuntuexperiment.files.wordpress.com/2008/11/mysql11.png?w=480&amp;h=335" alt="set root password" width="480" height="335" /></p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Installing phpMyAdmin</strong></span></p>
<p style="text-align: justify;">1. Inside Terminal, execute the  following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install phpmyadmin</em></p>
</blockquote>
<p style="text-align: justify;">2 During the installation you will be  asked to select the webserver that would be used to run phpMyAdmin.  Select Apache2 (see pic below).</p>
<p style="text-align: justify;"><img title="choosing webserver" src="http://ubuntuexperiment.files.wordpress.com/2008/11/phpmyadmin.png?w=480&amp;h=335" alt="choosing webserver" width="480" height="335" /></p>
<p style="text-align: justify;">3. After the installation is over  execute the following command to copy the phpmyadmin folder into the  /var/www/ directory. (By default it is installed in  /usr/share/phpmyadmin/ directory.)</p>
<blockquote>
<p style="text-align: left;"><em>sudo ln -s /usr/share/phpmyadmin/  /var/www/phpmyadmin</em></p>
</blockquote>
<p style="text-align: justify;">4. Now you can go to the phpMyAdmin  login page by pointing your browser to: http://localhost/phpmyadmin/index.php</p>
<p style="text-align: justify;">The username for MySQL and phpMyAdmin is  “root”. The password will be what you set in step 2 (under installing  MySQL).</p>
<p style="text-align: justify;">That’s it! Now you’ve successfully  installed Apache 2 webserver, php5, MySQL and phpMyAdmin on Ubuntu.</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="color: #ff0000;">UPDATE</span> (28-Jan-09)</strong></span></p>
<p style="text-align: justify;"><span style="color: #888888;"><span style="text-decoration: underline;"><br />
</span></span></p>
<p>(how can you install apache and php ubuntu apt-get install apache)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/ubuntu-apache-php-mysql-and-phpyadmin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

