<?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>MUKI space* &#187; linux</title>
	<atom:link href="http://blog.mukispace.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mukispace.com</link>
	<description>網站教學 // 電影評論 // 單眼樂摸 // 心情日誌</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:04:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<atom:link rel='hub' href='http://blog.mukispace.com/?pushpress=hub'/>
		<item>
		<title>Fedora - 修改終端機(terminal)的標題</title>
		<link>http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/</link>
		<comments>http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 05:26:14 +0000</pubDate>
		<dc:creator>muki</dc:creator>
				<category><![CDATA[舊文收錄區]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[程式語言]]></category>

		<guid isPermaLink="false">http://blog.mukispace.com/?p=469</guid>
		<description><![CDATA[<p>這是作業的一部份</p><p>剛好那天因為要趕畢專所以沒有上到課</p><p>上網搜尋到相關的內容修改~</p><p>這邊註記一下，也分享給本班同學:)</p><p> <span class='read-more'><a href='http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/'>繼續閱讀 »</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>這是作業的一部份<br />
剛好那天因為要趕畢專所以沒有上到課<br />
上網搜尋到相關的內容修改~<br />
這邊註記一下，也分享給本班同學:)<br />
<span id="more-469"></span><br />
開啟終端機之後，執行以下指令<br />
<strong>vi /etc/bashrc</strong><br />
開啟這個檔案之後，<br />
搜尋<br />
<strong>PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}";</strong><br />
以及<br />
<strong>PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}";</strong><br />
把這兩邊的<span style="color: #ff0000;">${USER}</span>改成自己想要的標題</p>
<p><img src="http://farm4.static.flickr.com/3243/2982765739_c1d6a2af47.jpg" alt="" /></p>
<p>修改完之後，請將檔案儲存離開‧<br />
接著重新開啟終端機，就會看到上面的標題已經被修改囉~</p>
<p><img src="http://farm4.static.flickr.com/3040/2982765747_8e4b6b35e9_o.png" alt="" /></p>
<p><img src="http://blog.mukispace.com/wp-content/uploads/2008/09/line-300x7.gif" alt="" title="line" width="300" height="7" class="alignnone size-medium wp-image-364" /></p>
<p>如果你不想永久的把自己的終端機標題改過，只是想先看看他的效果如何<br />
可以在終端機輸入以下指令：<br />
<strong>echo -ne "\033]0;this is muki space\!!\007"; read</strong><br />
後面加上 ;read是讓你自己可以即時看到修改的效果<br />
不過只要按下 Enter 鍵之後，標題又會變回預設的root@localhost</p>
<p>@資料來源：<br />
<a href="http://wiki.debian.org.hk/w/Change_the_terminal_emulator_title">改變終端機模擬器的標題</a> / OSWikiHK</p>

	<a href="http://blog.mukispace.com/tag/linux/" title="linux" rel="tag">linux</a>, <a href="http://blog.mukispace.com/tag/%e7%a8%8b%e5%bc%8f%e8%aa%9e%e8%a8%80/" title="程式語言" rel="tag">程式語言</a><br />

	<ul class="st-related-posts">
	<li><div class="title"><a href="http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/">簡易Linux指令#2</a></div><div class="date">2008.10.07</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/simple-linux-command-1/">簡易Linux指令 #1</a></div><div class="date">2008.09.23</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/javascript-windows-reload/">運用javascript開啟、關閉視窗以及reload母頁面</a></div><div class="date">2008.12.03</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/ubuntu-virtualbox-problem/">UBUNTU - 使用virtualbox會碰到的問題</a></div><div class="date">2008.06.13</div><br clear="all" /></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>簡易Linux指令#2</title>
		<link>http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/</link>
		<comments>http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 15:16:25 +0000</pubDate>
		<dc:creator>muki</dc:creator>
				<category><![CDATA[舊文收錄區]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[程式語言]]></category>

		<guid isPermaLink="false">http://blog.mukispace.com/?p=378</guid>
		<description><![CDATA[<p>vi編輯器(續)：</p><p>新增文字按i</p><p>如果不想使用vi編輯器，可以用gedit這個指令</p><p> <span class='read-more'><a href='http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/'>繼續閱讀 »</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>vi編輯器(續)：<br />
新增文字按i<br />
如果不想使用vi編輯器，可以用gedit這個指令<br />
<span id="more-378"></span><br />
<coolcode lang="linux"><br />
man 指令檔 //觀看此指令檔的使用說明<br />
q (離開)<br />
ctrl+c //停止現在的工作<br />
ps //秀出目前在執行的process<br />
ps -ax //系統所有在執行的process  a=all<br />
ls /sbin > ~/aaa  //將sbin底下的東西放到aaa資料夾底下 (>=redirection)<br />
</coolcode><br />
如果家裡有雙系統(xp.<a href="http://blog.mukispace.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="有標籤 linux 的文章">linux</a>)，想將兩邊的資料夾互通，可以這麼作：<br />
先將xp的資料夾設成共用，取好<span class="yhl">英文檔名</span>(ex.share)<br />
執行→cmd→ipconfig，查詢自己電腦的ip位置(ex.170.52.32.5)<br />
mount -t cifs 170.52.32.5/share /mnt<br />
// -t=type<br />
// cifs 網路上的芳鄰<br />
// mnt為linux裡頭的資料夾，可以直接新增<br />
其實如果家裡是雙系統，windows的資料夾本身就可以在linux讀取共用。<br />
只是因為windows是用硬碟的概念，linux是用資料夾的概念，所以初學者剛開始上手的時候的確是要尋找一下自己的東西放在哪~<br />
不過這個方法是老師教的，所以還是特別註記一下囉<br />
<coolcode lang="linux"><br />
RPM套件用法<br />
rpm -qf ~/rpm存放路徑  //可以看此rpm的資訊<br />
RPM database: /var/lib/rpm<br />
rpm -qa  //列出所有rpm的安裝套件<br />
rpm -qa | wc -l  //列出rpm的安裝套件個數(只會出現總數目)<br />
rpm -ihv ~/rpm路徑  //安裝rpm(h顯示安裝%數，v顯示rpm的相關資訊)<br />
rpm -qa | greq xxx //查詢安裝的xxx rpm套件，使用grep可以用模糊比對搜尋，只會顯示此套件的名稱<br />
rpm -e rpm名稱  //移除此套件<br />
man rpm //可以觀看rpm的更多指令<br />
yum install rpm套件名稱  //安裝此rpm時候，可以自動尋找安裝相關的rpm<br />
yum update rpm套件名稱 //同上，只不過安裝變成更新<br />
</coolcode><br />
TAB 選擇相近英文字</p>
<p>《下次要查詢如果修改終端機標頭的root@localhost》</p>

	<a href="http://blog.mukispace.com/tag/linux/" title="linux" rel="tag">linux</a>, <a href="http://blog.mukispace.com/tag/%e7%a8%8b%e5%bc%8f%e8%aa%9e%e8%a8%80/" title="程式語言" rel="tag">程式語言</a><br />

	<ul class="st-related-posts">
	<li><div class="title"><a href="http://blog.mukispace.com/simple-linux-command-1/">簡易Linux指令 #1</a></div><div class="date">2008.09.23</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/">Fedora - 修改終端機(terminal)的標題</a></div><div class="date">2008.10.29</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/javascript-windows-reload/">運用javascript開啟、關閉視窗以及reload母頁面</a></div><div class="date">2008.12.03</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/ubuntu-virtualbox-problem/">UBUNTU - 使用virtualbox會碰到的問題</a></div><div class="date">2008.06.13</div><br clear="all" /></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>簡易Linux指令 #1</title>
		<link>http://blog.mukispace.com/simple-linux-command-1/</link>
		<comments>http://blog.mukispace.com/simple-linux-command-1/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 12:44:05 +0000</pubDate>
		<dc:creator>muki</dc:creator>
				<category><![CDATA[舊文收錄區]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[程式語言]]></category>

		<guid isPermaLink="false">http://blog.mukispace.com/?p=348</guid>
		<description><![CDATA[<p>ls</p><p>*列出檔案</p><p>ls /bin</p><p>*列出bin底下的所有檔案</p><p>ls /etc &#124; more</p><p>*列出etc底下的所有檔案，並且使用分頁功能</p><p>ls --color /etc &#124; more</p><p>*列出etc底下的檔案，使用分頁功能以及色彩標籤</p><p>(spacebar換頁)</p><p>藍色：資料夾</p><p>綠色：執行檔</p><p>淺藍色：softlink</p><p>紅色：特殊權限使用</p><p>ls -a</p><p>*看所有的檔案，包含隱藏檔</p><p> <span class='read-more'><a href='http://blog.mukispace.com/simple-linux-command-1/'>繼續閱讀 »</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p><coolcode lang="linux"><br />
ls  *列出檔案<br />
ls /bin  *列出bin底下的所有檔案<br />
ls /etc | more  *列出etc底下的所有檔案，並且使用分頁功能<br />
ls --color /etc | more  *列出etc底下的檔案，使用分頁功能以及色彩標籤<br />
(spacebar換頁)<br />
藍色：資料夾<br />
綠色：執行檔<br />
淺藍色：softlink<br />
紅色：特殊權限使用<br />
ls -a  *看所有的檔案，包含隱藏檔<br />
</coolcode><br />
<span id="more-348"></span><br />
<coolcode lang="linux"><br />
vi /etc/inittab  *使用vi編輯inittab這個檔案<br />
將游標移到想要更改的檔案，按下r，再按下要修改的英數<br />
輸入 : wq  *存檔.寫入.離開</p>
<p>修改prompt<br />
vi .bashrc  *編輯隱藏檔<br />
vi /etc/bashrc<br />
PROMPT_CoMMAND (環境變數)<br />
vi .bashrc<br />
按下o，輸入 PROMPT_COMMAND='echo"學號"'<br />
輸入 : wq  *存檔.寫入.離開<br />
</coolcode></p>
<p><coolcode lang="linux"><br />
man ls  *列出指令<br />
info ls  *列出指令<br />
ls -l /bin  *看權限<br />
-rwx r-x r-x  *owner group other<br />
r:read  w:write  x:excute<br />
如果前面有d表示為dir資料夾</p>
<p>cd /  *進入根目錄<br />
pwd  *得知現在目錄的位置<br />
快速keyin檔案名稱請按tab<br />
cd ~  *回到root底下<br />
</coolcode></p>

	<a href="http://blog.mukispace.com/tag/linux/" title="linux" rel="tag">linux</a>, <a href="http://blog.mukispace.com/tag/%e7%a8%8b%e5%bc%8f%e8%aa%9e%e8%a8%80/" title="程式語言" rel="tag">程式語言</a><br />

	<ul class="st-related-posts">
	<li><div class="title"><a href="http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/">簡易Linux指令#2</a></div><div class="date">2008.10.07</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/">Fedora - 修改終端機(terminal)的標題</a></div><div class="date">2008.10.29</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/javascript-windows-reload/">運用javascript開啟、關閉視窗以及reload母頁面</a></div><div class="date">2008.12.03</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/ubuntu-virtualbox-problem/">UBUNTU - 使用virtualbox會碰到的問題</a></div><div class="date">2008.06.13</div><br clear="all" /></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.mukispace.com/simple-linux-command-1/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>UBUNTU - 使用virtualbox會碰到的問題</title>
		<link>http://blog.mukispace.com/ubuntu-virtualbox-problem/</link>
		<comments>http://blog.mukispace.com/ubuntu-virtualbox-problem/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 15:23:02 +0000</pubDate>
		<dc:creator>muki</dc:creator>
				<category><![CDATA[舊文收錄區]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.mukispace.com/?p=133</guid>
		<description><![CDATA[<p>因為.net應該是不能在linux平台上面使用，所以我打算使用VirtualBox來安裝xp系統</p><p>不過碰到了以下兩個錯誤訊息</p><p>這邊特地紀錄一下</p><p>我是使用Synaptic套件管理程式搜尋virtualbox來安裝插件</p><p>搜尋會列出一大串相關套件</p><p>我只安裝以下兩個：virtualbox-ose 、 virtualbox-ose-dbg</p><p>安裝完之後執行virtualbox設定完按下啟動，卻出現了錯誤訊息</p><p>差不多是長這樣</p><p>VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. <span style="color: #993300;">Please install the virtualbox-ose-modules package for your kernel, e.g. virtualbox-ose-modules-generic..</span></p><p>VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).</p><p>解決方法如下：</p><p> <span class='read-more'><a href='http://blog.mukispace.com/ubuntu-virtualbox-problem/'>繼續閱讀 »</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>因為.net應該是不能在linux平台上面使用，所以我打算使用VirtualBox來安裝xp系統<br />
不過碰到了以下兩個錯誤訊息<br />
這邊特地紀錄一下</p>
<p>我是使用Synaptic套件管理程式搜尋virtualbox來安裝插件<br />
搜尋會列出一大串相關套件<br />
我只安裝以下兩個：virtualbox-ose 、 virtualbox-ose-dbg</p>
<p>安裝完之後執行virtualbox設定完按下啟動，卻出現了錯誤訊息<br />
差不多是長這樣</p>
<blockquote><p>VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. <span style="color: #993300;">Please install the virtualbox-ose-modules package for your kernel, e.g. virtualbox-ose-modules-generic..</span><br />
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).</p></blockquote>
<p>解決方法如下：<br />
<span id="more-133"></span><br />
1.執行以下代碼<br />
<coolcode lang="c">sudo apt-get install virtualbox-ose-source</coolcode><br />
如果出現這個錯誤訊息：<strong>Unable to lock the administration directory</strong><br />
就先執行下面的代碼把lock解除<br />
<coolcode lang="c">sudo rm /var/lib/dpkg/lock</coolcode><br />
2.接著重新執行<br />
<coolcode lang="c">sudo apt-get install virtualbox-ose-source</coolcode><br />
3.跑完之後再執行<br />
<coolcode lang="c">cd /usr/src</coolcode><br />
4.開啟cd目錄之後，解壓code<br />
<coolcode lang="c">sudo tar xjvf virtualbox*.bz2<br />
cd modules/virtualbox-ose<br />
sudo ./build_in_tmp install</coolcode><br />
5.這部份要跑比較久，需要重新編譯code，編譯完之後輸入以下代碼<br />
<coolcode lang="c">sudo /etc/init.d/vboxdrv start</coolcode></p>
<p>結束</p>
<p>這部份完成之後，我記得系統會提示說要重新登入<br />
重新登入之後再啟動VirtualBox，應該就會成功了:)</p>
<p>ps.如果在虛擬機器裡頭鍵盤不能使用，再安裝底下兩個apt<br />
sudo apt-get install scim-bridge-client-q<br />
sudo apt-get install scim-bridge-client-qt4</p>

	<a href="http://blog.mukispace.com/tag/linux/" title="linux" rel="tag">linux</a>, <a href="http://blog.mukispace.com/tag/ubuntu/" title="ubuntu" rel="tag">ubuntu</a><br />

	<ul class="st-related-posts">
	<li><div class="title"><a href="http://blog.mukispace.com/ubuntudhcp%e9%80%a3%e7%b7%9a%e8%a8%ad%e5%ae%9a/">UBUNTU - DHCP連線設定</a></div><div class="date">2008.06.13</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/">簡易Linux指令#2</a></div><div class="date">2008.10.07</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/simple-linux-command-1/">簡易Linux指令 #1</a></div><div class="date">2008.09.23</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/">Fedora - 修改終端機(terminal)的標題</a></div><div class="date">2008.10.29</div><br clear="all" /></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.mukispace.com/ubuntu-virtualbox-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UBUNTU - DHCP連線設定</title>
		<link>http://blog.mukispace.com/ubuntudhcp%e9%80%a3%e7%b7%9a%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://blog.mukispace.com/ubuntudhcp%e9%80%a3%e7%b7%9a%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 09:22:20 +0000</pubDate>
		<dc:creator>muki</dc:creator>
				<category><![CDATA[舊文收錄區]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.mukispace.com/?p=132</guid>
		<description><![CDATA[<p>我前天為了裝vb.net的報表元件使得xp又經歷藍底白字的死當畫面</p><p>冏的是明天就要交作業，我的檔案卻卡死在xp的桌面目錄底下</p><p>而且連安全模式都進不去....心灰意冷的時候，突然想起之前ubuntu有寄光碟片到我家來</p><p>以前有想過要換成ubuntu這個os，可是網路不管怎麼設定就是不能上網，當時也不急，所以就擱在那</p><p>這次ubuntu簡直是我的救星，因為灌了這個os之後我就可以把作業從c槽取出來</p><p> <span class='read-more'><a href='http://blog.mukispace.com/ubuntudhcp%e9%80%a3%e7%b7%9a%e8%a8%ad%e5%ae%9a/'>繼續閱讀 »</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>我前天為了裝vb.net的報表元件使得xp又經歷藍底白字的死當畫面<br />
冏的是明天就要交作業，我的檔案卻卡死在xp的桌面目錄底下<br />
而且連安全模式都進不去....心灰意冷的時候，突然想起之前ubuntu有寄光碟片到我家來<br />
以前有想過要換成ubuntu這個os，可是網路不管怎麼設定就是不能上網，當時也不急，所以就擱在那<br />
這次ubuntu簡直是我的救星，因為灌了這個os之後我就可以把作業從c槽取出來<br />
<span id="more-132"></span></p>
<p>而經過這個慘痛的教訓，我毅然決定將os換成ubuntu，然後努力搞好網路設定<br />
現在終於是可以上網了!!!!(<del datetime="2008-06-14T10:59:54+00:00">不過其實設定很簡單，真不懂當初怎麼可以搞那麼久)</del><br />
今天又發現不能上網，剛搞了一下，發現我的設定其實非常的微妙，可能跟大家都不一樣 冏</p>
<blockquote><p>使用版本：<a href="http://blog.mukispace.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="有標籤 ubuntu 的文章">ubuntu</a> 8.04<br />
網路連線方式：DHCP<br />
步驟：<br />
1.安裝好ubuntu之後，先設定左上角的連線，有線設置的地方選擇ip連線<br />
將自己的ip資料填入(可別照填我的囉)<br />
<span style="color: #c0c0c0;">219.70.176.46<br />
255.255.255.0<br />
219.70.176.254</span><br />
2.等它跑完之後再換成dhcp的連線，接著關閉視窗<br />
<span style="text-decoration: line-through;"><span style="color: #c0c0c0;"><em>3.開啟終端機輸入以下指令<br />
sudo gedit /etc/network/interfaces  (vi:look  gedit:edit)<br />
4.打開interface的文件，會看到裡頭已經有這兩行(請勿刪除喔)<br />
auto lo<br />
iface lo inet loopback<br />
5.請在這兩行下面輸入以下指令<br />
auto eth0<br />
iface eth0 inet dhcp</em></span></span><br />
6.回到終端機輸入以下指令<br />
#重新啟動網路<br />
sudo /etc/init.d/networking restart</p>
<p>出現DHCP抓到ip的一些指令就可以了<br />
結束</p></blockquote>
<p>所以其實我的interfaces裡頭的文件是長這樣的</p>
<blockquote><p>auto lo<br />
iface lo inet loopback</p>
<p>auth eth0<br />
iface eth0 inet dhcp<br />
address ---<br />
netmask ---<br />
gateway ---</p>
<p>auto eth0</p></blockquote>
<p>我只能說，真妙啊<img onclick="grin(':twisted:');" src="../wp-includes/images/smilies/icon_twisted.gif" alt=":twisted:" /></p>
<p>現在還在習慣ubuntu這個系統，希望可以用一段很長的時間<br />
不過xp可能還是要灌一下，畢竟我需要asp.net寫專題orz.....</p>

	<a href="http://blog.mukispace.com/tag/linux/" title="linux" rel="tag">linux</a>, <a href="http://blog.mukispace.com/tag/ubuntu/" title="ubuntu" rel="tag">ubuntu</a><br />

	<ul class="st-related-posts">
	<li><div class="title"><a href="http://blog.mukispace.com/ubuntu-virtualbox-problem/">UBUNTU - 使用virtualbox會碰到的問題</a></div><div class="date">2008.06.13</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/%e7%b0%a1%e6%98%93linux%e6%8c%87%e4%bb%a42/">簡易Linux指令#2</a></div><div class="date">2008.10.07</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/simple-linux-command-1/">簡易Linux指令 #1</a></div><div class="date">2008.09.23</div><br clear="all" /></li>
	<li><div class="title"><a href="http://blog.mukispace.com/fedora-%e4%bf%ae%e6%94%b9%e7%b5%82%e7%ab%af%e6%a9%9fterminal%e7%9a%84%e6%a8%99%e9%a1%8c/">Fedora - 修改終端機(terminal)的標題</a></div><div class="date">2008.10.29</div><br clear="all" /></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.mukispace.com/ubuntudhcp%e9%80%a3%e7%b7%9a%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

