﻿<?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>学习日记 &#187; ubuntu</title>
	<atom:link href="https://www.softwareace.cn/?cat=87&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.softwareace.cn</link>
	<description>时刻想着为自己的产品多做一些对他好的事情</description>
	<lastBuildDate>Fri, 20 Mar 2026 06:58:28 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Installing Apache, PHP and MySQL on IBM AIX 7.1</title>
		<link>https://www.softwareace.cn/?p=1651</link>
		<comments>https://www.softwareace.cn/?p=1651#comments</comments>
		<pubDate>Mon, 12 Jun 2017 09:58:05 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.softwareace.cn/?p=1651</guid>
		<description><![CDATA[I have recently had the pleasure of installing Apache,  [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="fusion-fullwidth fullwidth-box hundred-percent-fullwidth" style="color: #747474;">
<div class="fusion-builder-row fusion-row ">
<div class="fusion-layout-column fusion_builder_column fusion_builder_column_1_1  fusion-one-full fusion-column-first fusion-column-last fusion-column-no-min-height 1_1">
<div class="fusion-column-wrapper" data-bg-url="">
<div id="codeSnippetWrapper">I have recently had the pleasure of installing Apache, PHP and MySQL on a new Power 7+ 740 System running AIX 7.1 and no matter how many times I get involved with installing these products I tend to spend a lot of the day looking up the same old information and today I have decided that this is worthy of a blog post if only to serve as reminder for the next time that I will inevitably have to do this for another client.</div>
<p>Here is the process that I followed together with the various links that I have found useful in sourcing the open source products that I required to get the basic installations operational.</p>
<p>Firstly I created a separate filesystem for /usr/sys/inst.images and gave it a size of 5GB just to ensure that the /usr filesystem itself does not get too bloated with the install packages.</p>
<p>In order to avoid the “RPM Dependency Hell” that many of you are, I am in no doubt, more than familiar with I followed the instructions given at the following weblink:</p>
<p><a style="color: #aad75b;" title="http://www.perzl.org/aix/index.php?n=FAQs.FAQs#rpm-dependency-hell" href="http://www.perzl.org/aix/index.php?n=FAQs.FAQs#rpm-dependency-hell">http://www.perzl.org/aix/index.php?n=FAQs.FAQs#rpm-dependency-hell</a></p>
<p>…and installed wget-1.14-2aix5.1 together with its following list of dependencies (theres no getting around it) all of which are downloadable from <a style="color: #aad75b;" title="http://www.oss4aix.org/download/everything/RPMS/" href="http://www.oss4aix.org/download/everything/RPMS/">http://www.oss4aix.org/download/everything/RPMS/</a></p>
<p>bash-4.2-10.aix5.1.ppc.rpm</p>
<div id="advman-ad-1"></div>
<p><span style="font-weight: bold; color: black;">Installation of the httpd (Apache Server)</span></p>
<p>Lets start by creating the apache user and group which will be used for the running of the Web Server, although these can be changed later if required.</p>
<p># mkuser apache<br />
# mkgroup -A apache<br />
# mkdir /usr/sys/inst.images/httpd<br />
# cd /usr/sys/inst.images/httpd</p>
<p>Download httpd-2.4.4-1.aix5.1.ppc.deps from the following link:</p>
<p><a style="color: #aad75b;" title="http://www.oss4aix.org/download/rpmdb/deplists/aix71/httpd-2.4.3-1.aix5.1.ppc.deps" href="http://www.oss4aix.org/download/rpmdb/deplists/aix71/httpd-2.4.3-1.aix5.1.ppc.deps">http://www.oss4aix.org/download/rpmdb/deplists/aix71/httpd-2.4.3-1.aix5.1.ppc.deps</a></p>
<p>and the httpd-2.4.4-1.aix5.1.rpm from the following link:</p>
<p><a style="color: #aad75b;" title="http://www.oss4aix.org/download/everything/RPMS/httpd-2.4.3-1.aix5.1.ppc.rpm" href="http://www.oss4aix.org/download/everything/RPMS/httpd-2.4.3-1.aix5.1.ppc.rpm">http://www.oss4aix.org/download/everything/RPMS/httpd-2.4.3-1.aix5.1.ppc.rpm</a></p>
<p>and copy them into the directory created in the above step and then run the following:</p>
<p># wget -B http://www.oss4aix.org/download/everything/RPMS/ -i httpd-2.4.3-1.aix5.1.ppc.deps</p>
<p>Now install all the files as follows:</p>
<p># rpm -Uvh *.rpm</p>
<p>If you receive a message stating that any packages are already installed your can either use the –force option as follows:</p>
<p># rpm -Uvh –force *.rpm</p>
<p><span style="color: #ff0000;">* BEWARE *</span>  use the —force option with caution as this will replace and overwrite existing packages even if existing packages are NEWER than those being installed. An alternative method is to simply remove the files for which you receive an “already installed” message from the directory and run the rpm –Uvh *.rpm command again, thus ensuring that none of your previously installed packages will be overwritten. Verify that all of the files that you want to install are correct by issuing the following command and checking the output contains the files packages that you think you should have installed.</p>
<p># rpm -qa| sort | more</p>
<p>Once you are happy that the files you require have been installed you can start the Web Server with the following command:</p>
<p># /opt/freeware/sbin/apachectl start</p>
<p>You can then verify that the server has started and you should see something similar to the following output:</p>
<p># ps -ef|grep httpd</p>
<p>root 7077970 1 0 14:17:10 – 0:00 /opt/freeware/sbin/httpd -k start<br />
apache 8519684 7077970 0 14:17:11 – 0:00 /opt/freeware/sbin/httpd -k start<br />
apache 8585222 7077970 0 14:17:11 – 0:00 /opt/freeware/sbin/httpd -k start<br />
apache 8716298 7077970 0 14:17:11 – 0:00 /opt/freeware/sbin/httpd -k start</p>
<p>Now you should be able to browse to the IP address of your AIX server and see something similar to the following:</p>
<p><a style="color: #aad75b;" href="https://i2.wp.com/www.scheerer.co.uk/wp-content/uploads/2013/05/image1.png" data-caption=""><img title="image" src="https://i2.wp.com/www.scheerer.co.uk/wp-content/uploads/2013/05/image_thumb1.png?resize=630%2C184" alt="image" width="630" height="184" border="0" /></a></p>
<p>Now if you wish to have the Apache Server start every time the system is rebooted then you should enter the following command to add the required entry to the /etc/inittab</p>
<p># mkitab <span class="str">“apache:2:once:/opt/freeware/sbin/apachectl start &gt; /dev/null 2&gt;&amp;1”</span></p>
<p>…and Voila!!! Apache is installed and working, so as a little tidy up you can now remove the /usr/sys/inst.images/httpd directory and its contents.</p>
<h6 style="font-weight: 400;" data-fontsize="13" data-lineheight="17"></h6>
<h6 style="font-weight: 400;" data-fontsize="13" data-lineheight="17">Installing PHP for AIX</h6>
<p>The process for installing PHP is very similar and here is the process that I followed:</p>
<p># mkdir /usr/sys/inst.images/php<br />
# cd /usr/sys/inst.image/php</p>
<p>Now download the dependency list for mod_php_ap24-5.4.14-1.aix5.1.rpm from the following link:</p>
<p><a style="color: #aad75b;" title="http://www.oss4aix.org/download/rpmdb/deplists/aix71/mod_php_ap24-5.4.14-1.aix5.1.ppc.deps" href="http://www.oss4aix.org/download/rpmdb/deplists/aix71/mod_php_ap24-5.4.14-1.aix5.1.ppc.deps">http://www.oss4aix.org/download/rpmdb/deplists/aix71/mod_php_ap24-5.4.14-1.aix5.1.ppc.deps</a></p>
<p>and the mod_php_ap24-5.4.14-1.aix5.1.rpm package from the following link:</p>
<p><a style="color: #aad75b;" title="http://www.oss4aix.org/download/everything/RPMS/mod_php_ap24-5.4.14-1.aix5.1.ppc.rpm" href="http://www.oss4aix.org/download/everything/RPMS/mod_php_ap24-5.4.14-1.aix5.1.ppc.rpm">http://www.oss4aix.org/download/everything/RPMS/mod_php_ap24-5.4.14-1.aix5.1.ppc.rpm</a></p>
<p>and copy them into the directory that you created</p>
<p>Now run the following command to download the required files:</p>
<p># wget -B http://www.oss4aix.org/download/everything/RPMS/ -i mod_php_ap24-5.4.14-1.aix5.1.ppc.deps</p>
<p>and once the download is complete then run the following command to install the filesets:</p>
<p># rpm -Uvh *.rpm</p>
<p>If you receive a message stating that any packages are already installed your can either use the –force option as follows:</p>
<p># rpm -Uvh –force *.rpm</p>
<p><span style="color: #ff0000;">* BEWARE *</span>  use the —force option with caution as this will replace and overwrite existing packages even if existing packages are NEWER than those being installed. An alternative method is to simply remove the files for which you receive an “already installed” message from the directory and run the rpm –Uvh *.rpmcommand again, thus ensuring that none of your previously installed packages will be overwritten. Verify that all of the files that you want to install are correct by issuing the following command and checking the output contains the files packages that you think you should have installed.</p>
<p>If all of the filesets have been installed correctly then the required modifications will have been made to the /opt/freeware/etc/httpd/conf/httpd.conf which you can check by running the following command:</p>
<p># tail /opt/freeware/etc/httpd/conf/httpd.conf</p>
<p>the last 3 lines should look like the following:<br />
# PHP settings<br />
Include conf/extra/httpd-php.conf</p>
<p>now you can restart the Apache Web Server in order to activate the PHP with the following command:</p>
<p># /opt/freeware/sbin/apachectl restart</p>
<p>In order to test whether the PHP is actually being processed you can create a file /var/www/htdocs/testing.php which contains the following lines:</p>
<div id="advman-ad-3"></div>
<h1 style="font-weight: 400;" data-fontsize="34" data-lineheight="47">PHP testing</h1>
<p>phpinfo() ?&gt;</p>
<p>When you have done this you can then open a browser and navigate to the following web page where is the address of your server:</p>
<p><a style="color: #aad75b;" href="http://%3Cip/">http://&lt;ip&lt; a=&#8221;&#8221;&gt; address&gt;/testing.php</a></p>
<p>If everything is working then you should see the following:</p>
<p><a style="color: #aad75b;" href="https://i0.wp.com/www.scheerer.co.uk/wp-content/uploads/2013/05/image2.png" data-caption=""><img title="image" src="https://i2.wp.com/www.scheerer.co.uk/wp-content/uploads/2013/05/image_thumb2.png?resize=630%2C404" alt="image" width="630" height="404" border="0" /></a></p>
<p>Congratulations, you now have a working Apache Server with PHP Hypertext processing…</p>
<p>So the next and final step is to install the MySQL database.</p>
<p>In order to complete this step I followed the procedure as detailed on the IBM Power Systems – AIX and Open Source Wiki, which you can find by clicking <a style="color: #aad75b;" href="https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power+Systems/page/AIX+and+Open+Source+-+old" target="_blank">HERE</a></p>
<p>For the purposes of my installation I have updated the procedure slightly for my own purposes as follows:</p>
<ol>
<li>Login as root</li>
<li>I created a new 2GB filesystem on the rootvg and mounted it to /usr/local</li>
<li>I substituted the MySQL version detailed in the IBM reference material with the current latest tar ball version 5.1.30 can be downloaded from the following website: http://ftp.nchu.edu.tw/MySQL/downloads/mysql/5.1.html#aixYou might also try the following link for the MySQL Version 5.1.61 distributionhttp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-5.1/mysql-5.1.61-aix5.3-powerpc.tar.gzYou can also download most versions of MySQL for AIX from the following link directly from the Oracle MySQL Product Archiveshttp://downloads.mysql.com/archives.php?p=mysql-5.1&amp;o=aix</li>
<li> Make sure you have sufficient free space in /opt and /tmp (60MB+)</li>
<li>Download and Install the following<br />
* Prerequisite Tools –        http://www.ibm.com/servers/aix/products/aixos/linux/download.html<br />
* gcc-4.0.0-1.aix5.3.ppc.rpm<br />
* libgcc-4.0.0-1.aix5.3.ppc.rpm<br />
* gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm<br />
* libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm<br />
* libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm<br />
* Install using rpm -Uvh rpm name<br />
* MySQL<br />
* Download: http://dev.mysql.com/downloads/mysql/5.0.html<br />
* Download the 32 bit version if you plan to use PHP. I was unable to compile PHP5 with the 64 bit MySQL libraries.<br />
* The file I downloaded was mysql-standard-5.0.27-aix5.2-powerpc.tar.gz. Your file may be newer.<br />
* For this example, we’ll assume you download the file to /usr/local<br />
* Caution: Use “compatible” versions of Apache, PHP and MySQL. Don’t mix old with new versions. They are not compatible. I used Apache2.2, PHP5 and MySQL5. (For example, PHP4 from the AIX Linux Toolbox is not compatible with the current versions of Apache and MySQL.)</li>
<li>Create MySQL UserID and Group<br />
* mkuser mysql<br />
* mkgroup -A mysql</li>
<li>Uncompress the MySQL File and Link the Directory to /usr/local/mysql<br />
* cd /usr/local<br />
* gunzip mysql-standard-5.0.27-aix5.2-powerpc.tar.gz<br />
* tar xf mysql-standard-5.0.27-aix5.2-powerpc.tar<br />
* This creates the directory mysql-standard-5.0.27-aix5.2-powerpc</li>
<li>Link Directory to /usr/local/mysql<br />
* ln -s mysql-standard-5.0.27-aix5.2-powerpc /usr/local/mysql</li>
<li>Configure MySQL<br />
* cd /usr/local/mysql<br />
* scripts/mysql_install_db –user=mysql<br />
* chown -R root.mysql .<br />
* chown -R mysql.mysql data<br />
* chgrp -R mysql . (redundant: chown -R root.mysql .)<br />
* nohup bin/mysqld_safe –user=mysql &amp;</li>
<li>Validate MySQL Installation by Logging into Database<br />
* mysql -u root<br />
* &gt;use mysql;<br />
* &gt;show tables;<br />
* &gt;exit;</li>
<li>Add MySQL Start-Up Script to /etc/rc.d<br />
* cp /usr/local/mysql/support-files/mysql.server to /etc/rc.d/init.d<br />
* chmod a+x /etc/rc.d/init.d/mysql.server<br />
* Add a link in rc2.d: cd /etc/rc.d/rc2.d; ln -s /etc/rc.d/init.d/mysql.server S10mysql.server K10mysql.server</li>
</ol>
<div>Although there will be much more work to do in configuring particular requirements for your own environments, that pretty much completes the basic installation of the Apache, PHP and MySQL to a point where everything is working.</div>
<div></div>
<div>All that remains is for a reboot to ensure that all your services start automatically as expected and your work is done, pass it off to the DBA….</div>
<div class="fusion-clearfix"></div>
</div>
</div>
</div>
</div>
<div class="fusion-fullwidth fullwidth-box nonhundred-percent-fullwidth" style="color: #747474;">
<div class="fusion-builder-row fusion-row ">
<div class="fusion-layout-column fusion_builder_column fusion_builder_column_1_1  fusion-one-full fusion-column-first fusion-column-last fusion-column-no-min-height 1_1">
<div class="fusion-column-wrapper" data-bg-url="">
<div class="fusion-title title fusion-title-size-one">
<h1 class="title-heading-left" style="font-weight: 400;" data-fontsize="34" data-lineheight="47">*** Update – June 2015 ***</h1>
<div class="title-sep-container"></div>
</div>
<p>I have received some interesting feedback from people that are following this guide in relation to the latest versions of PHP (namely the 5.4 version that is available from perzl.org).</p>
<p>This information has been kindly provided to me by Peter Barnett in relation to his recent attempts at installing mySQL and PHP.</p>
<p>&nbsp;</p>
<div id="advman-ad-4"></div>
<p>&nbsp;</p>
<p>Peter states that he encountered issues with the PHP connecting to the mySQL database and he received an error stating that PHP was unable to find model mysql_connect (or mysql_connect), unfortunately Peter did not provide the exact syntax of the error.</p>
<p>Peter has found that the PHP 5.4 Version available for download from perzl.org no longer contains the legacy mySQL libraries and instead now contains the mysqli-&gt;mysqlnd API which now uses mysql scripting.</p>
<p>Once Peter investigated the mysql scripting he found that he could get everything working as he needed to.</p>
<p>Peter found some useful tutorials at the following website:</p>
<p><a style="color: #aad75b;" href="http://www.w3schools.com/php/func_mysqli_connect.asp" target="_blank">http://www.w3schools.com/php/func_mysqli_connect.asp</a></p>
<p>I have not personally had the need to investigate this fully, but I hope that it may help some of you if you are struggling.</p>
<p>Happy to receive any comments, both positive or negative, life is a constant learning curve…</p>
<p>https://www.scheerer.co.uk/2013/05/installing-apache-php-and-mysql-on-ibm-aix-7-1/</p>
<p>&nbsp;</p>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>https://www.softwareace.cn/?feed=rss2&#038;p=1651</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>win7下制作ubuntu系统安装启动盘和U盘安装ubuntu全过程 转</title>
		<link>https://www.softwareace.cn/?p=715</link>
		<comments>https://www.softwareace.cn/?p=715#comments</comments>
		<pubDate>Wed, 05 Mar 2014 05:20:06 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.softwareace.cn/?p=715</guid>
		<description><![CDATA[在我搞坏了两个系统之后，一切都得从头开始了，这回好了，电脑就是一台裸机了。没办法，重新下win7吧。这个要先做 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>在我搞坏了两个系统之后，一切都得从头开始了，这回好了，电脑就是一台裸机了。没办法，重新下win7吧。这个要先做一个win7的启动盘，然后再安装，只能说我技术不行，没能把win7搞定。让大神给装的win7，他让我用wubi装ubuntu，但是自我感觉那样太没意思，所以就偷偷的把ubuntu装上了。某些人说我干什么都干不成，呵呵。。不感慨了，步骤如下：</p>
<h1><a name="t0"></a>一.制作ubuntu的安装U盘</h1>
<h1><a name="t1"></a> 1.前期准备</h1>
<div>         下载ubuntu12.04的镜像文件，地址：http://www.ubuntu.com/download/desktop/zh-CN</div>
<div>         下载制作工具：Universal-USB-Installer-1.9.1.4.exe – October 23, 2012</div>
<div>     工具的下载地址：<a href="http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/#button" target="_blank">http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/#button</a></div>
<div>
<h2><a name="t2"></a>2. U盘启动盘的制作</h2>
<h2><a name="t3"></a>下载完后，直接运行就可以，下图显示了所支持的LINUX的版本（显示不全）：</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439844Q0d3.jpg" target="_blank"><img title="clip_image002" alt="clip_image002" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439845ldiF.jpg" width="468" height="484" border="0" /></a></p>
<h2><a name="t4"></a> 打开下载的最新版本的工具，点击“I Agree”。</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439846ngk2.jpg" target="_blank"><img title="clip_image003" alt="clip_image003" src="http://blog.chinaunix.net/attachment/201210/28/272339_13514398477om8.jpg" width="516" height="399" border="0" /></a></p>
<h2><a name="t5"></a> 下图是本USB安装器的最重要的一个窗口，LINUX版本的选择等都是在此窗口中完成的。<br />
通过三步的设定，就可以开始制作啦。</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439848b4DR.jpg" target="_blank"><img title="clip_image004" alt="clip_image004" src="http://blog.chinaunix.net/attachment/201210/28/272339_13514398495Ra3.jpg" width="511" height="397" border="0" /></a></p>
<h2><a name="t6"></a>在step 1中选择要制作的LINUX发行版本。<br />
在Step 2中，选择LINUX ISO所在的位置。</h2>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="22"></td>
</tr>
<tr>
<td></td>
<td><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439849FxrQ.png" target="_blank"><img title="clip_image005" alt="clip_image005" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439849xkXe.png" width="516" height="85" border="0" /></a></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439850e3l3.jpg" target="_blank"><img title="clip_image006" alt="clip_image006" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439852meQy.jpg" width="508" height="402" border="0" /></a><br />
&nbsp;</p>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_13514398540M5A.jpg" target="_blank"><img title="clip_image008" alt="clip_image008" src="http://blog.chinaunix.net/attachment/201210/28/272339_135143985567ZI.jpg" width="515" height="407" border="0" /></a></p>
<h2><a name="t7"></a>点“Creat”后，会弹出一个提示，对U盘进行相关操作的步骤。需要注意的是，提示中第一步就是说明，要对U盘进行格式化，格式化成fat32。<br />
点“是（Y）”后，你就可以不用管啦，呵呵，几分钟后就能完成制作。</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439857ozpT.jpg" target="_blank"><img title="clip_image009" alt="clip_image009" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439859ons9.jpg" width="461" height="484" border="0" /></a></p>
<h2><a name="t8"></a>下图是执行上图操作步骤的截图：</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439861fF7u.jpg" target="_blank"><img title="clip_image010" alt="clip_image010" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439863NY25.jpg" width="479" height="484" border="0" /></a></p>
<h2><a name="t9"></a>几分钟后，完成制作，点“Close”就可以使有了。</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439865UJ64.jpg" target="_blank"><img title="clip_image011" alt="clip_image011" src="http://blog.chinaunix.net/attachment/201210/28/272339_13514398687LQN.jpg" width="515" height="393" border="0" /></a></p>
<h2><a name="t10"></a>制作完成后，U盘显示：</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_13514398683TqF.jpg" target="_blank"><img title="clip_image012" alt="clip_image012" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439869CCkM.jpg" width="322" height="31" border="0" /></a></p>
<h2><a name="t11"></a> U盘中的内容：</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439870iOn2.jpg" target="_blank"><img title="clip_image014" alt="clip_image014" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439873EUET.jpg" width="558" height="368" border="0" /></a></p>
<h2><a name="t12"></a>3.ubuntu系统的安装</h2>
<h2><a name="t13"></a>设置U盘启动，开启U盘安装Ubuntu12.04之旅：选择ubuntu安装</h2>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439875wzw9.jpg" target="_blank"><img title="clip_image015" alt="clip_image015" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439877Pk15.jpg" width="568" height="484" border="0" /></a></p>
<p>选择安装语言</p>
<p><a href="http://blog.chinaunix.net/attachment/201210/28/272339_1351439878TiY5.jpg" target="_blank"><img title="clip_image017" alt="clip_image017" src="http://blog.chinaunix.net/attachment/201210/28/272339_1351439879qXUY.jpg" width="558" height="430" border="0" /></a></p>
<h2><a name="t14"></a>在红色区域前面打勾，是安装一些基本的软件</h2>
<div><img alt="" src="http://img.blog.csdn.net/20130827210303750?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></div>
<p><img alt="" src="http://blog.csdn.net/liangcaiyun2013/article/details/10410797" /></p>
<h2><a name="t15"></a> 选择是否连接网络，建议不要连接，因为连接的话就会在安装的同时下载一些更新，严重影响进程哦</h2>
<p><img alt="" src="http://img.blog.csdn.net/20130827210334765?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<div>
<p><img alt="" src="http://blog.csdn.net/liangcaiyun2013/article/details/10410797" /></p>
<h2><a name="t16"></a>这一步大家不要疏忽了，可能很多人都会选第一个吧，其实是第三个哦，点继续</h2>
<p><img alt="" src="http://img.blog.csdn.net/20130827210349265?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p><img alt="" src="http://blog.csdn.net/liangcaiyun2013/article/details/10410797" /></p>
<h2><a name="t17"></a>下面就进入最重要的环节了，磁盘分区</h2>
<p>磁盘分区的原则：在一个MBR分区表类型的<a href="http://baike.baidu.com/view/4480.htm" target="_blank">硬盘</a>中最多只能存在4个<a href="http://baike.baidu.com/view/1304004.htm" target="_blank">主分区</a>。如果一个<a href="http://baike.baidu.com/view/4480.htm" target="_blank">硬盘</a>上需要超过4个以上的磁盘分块的话，那么就需要使用<a href="http://baike.baidu.com/view/55597.htm" target="_blank">扩展分区</a>了。如果使用<a href="http://baike.baidu.com/view/55597.htm" target="_blank">扩展分区</a>，那么一个物理<a href="http://baike.baidu.com/view/4480.htm" target="_blank">硬盘</a>上最多只能3个<a href="http://baike.baidu.com/view/1304004.htm" target="_blank">主分区</a>和1个扩展分区。<a href="http://baike.baidu.com/view/55597.htm" target="_blank">扩展分区</a>不能直接使用，它必须经过第二次分割成为一个一个的<a href="http://baike.baidu.com/view/143399.htm" target="_blank">逻辑分区</a>，然后才可以使用。一个<a href="http://baike.baidu.com/view/55597.htm" target="_blank">扩展分区</a>中的<a href="http://baike.baidu.com/view/143399.htm" target="_blank">逻辑分区</a>可以任意多个。所以分区的时候一不小心就会出现不可用的情况。这样的话建议先分逻辑分区，也就是先分/swap。</p>
<p>/boot分区一般200M就够了，“/”20G就可以，/swap空间应大于或等于<a href="http://baike.baidu.com/view/138684.htm" target="_blank">物理内存</a>的大小，最小不应小于64M，通常Swap空间的大小应是物理内存的2-2.5倍。</p>
<p>至于/home，就看你心情了！</p>
<p>双击“空闲”</p>
<p><img alt="" src="http://img.blog.csdn.net/20130827212449875?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p>就会出现下图了：这里分的是/boot，“/”，“/home”，&#8221;/swap&#8221;分区的步骤是一样的。</p>
<p><img alt="" src="http://pic002.cnblogs.com/images/2012/361541/2012101523091672.png" /></p>
<p>只不过“/swap”分区的时候就不选“Ext4日至文件系统”了，在下拉菜单中选择“交换空间”即可。如图：</p>
<p><img alt="" src="http://img.blog.csdn.net/20130827213404265?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p>把分区设置好了，下一步很关键！首先在上边看你创建的“/boot”分区的编号是什么，比如我的是“sda10”（你的不一定是这个哦，取决于你的“/boot”分区编号）。那么下边的“安装启动引导区的设备”下拉菜单中选择“sda10”，如果这步忽略了，那就是用ubuntu来引导windows了。</p>
<p><img alt="" src="http://img.blog.csdn.net/20130827214959656?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p>下边的就可以缓一口气了，无非就是一些设置用户，密码的这些了。linux是必须要有密码的。</p>
<p>之后重启计算机，你会发现又进入windows了。不要惊慌。这是正常的。之前我以为没弄好，还重装了一遍系统呢！</p>
<p>进入windows之后，下载一个软件“easyBCD”,为了给ubuntu添加一个入口，不然是进不去ubuntu的。</p>
<p>下载完之后，打开软件，选择“add new entry”,选择“Linux/BSD”，name那行随便写，我写的是“ubuntu12.04”</p>
<p>Device这一行选择刚刚我们创建的200M的那个“/boot”分区，前边有linux标记，如下图：</p>
<p><img alt="" src="http://img.blog.csdn.net/20130827220134718?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p>哈哈，重启电脑，选择ubuntu就OK了！</p>
<p>就在我写这篇文章的时候，忽然发现我要写的东西和键盘不对应，经过大婶的指点我才知道，原来安装的时候我忘了选择键盘了！！</p>
<p>吓的我呀，我以为还得重装系统呢！不过后来在大婶的帮助下找到了解决的办法：点击“系统设置”-&gt;&#8221;键盘&#8221;-&gt;&#8221;布局设置&#8221;，我一看，我当时竟然</p>
<p>选择的是荷兰语！！时间有限，先敲到这把。。</p>
<p>今天早上回来本来想敲程序，用纯字符界面（我的习惯），结果发现键盘设置在这上边根本不起作用，这里还是“荷兰语”！！（我和我的小伙伴们都惊呆了）后来晓得了更改方法：</p>
<p>在图形界面命令行输入：“sudo dpkg-reconfigure keyboard-configuration”,然后确定，按照截图的顺序一步一步来就好了</p>
<p><img alt="" src="http://img.blog.csdn.net/20130828101408750?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p><img alt="" src="http://img.blog.csdn.net/20130828101449734?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p><img alt="" src="http://img.blog.csdn.net/20130828101547828?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p><img alt="" src="http://img.blog.csdn.net/20130828101607656?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p><img alt="" src="http://img.blog.csdn.net/20130828101637609?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p><img alt="" src="http://img.blog.csdn.net/20130828101732218?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGlhbmdjYWl5dW4yMDEz/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /></p>
<p>&nbsp;</p>
<p>enter之后就进入命令行了，然后就风平浪静了。。</p>
<p>http://blog.csdn.net/liangcaiyun2013/article/details/10410797</p>
<p>&nbsp;</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>https://www.softwareace.cn/?feed=rss2&#038;p=715</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
