<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1903448306204759446</id><updated>2024-09-05T02:27:13.463+08:00</updated><category term="Ubuntu"/><category term="Wiki"/><title type='text'>Ubuntu Cookbook</title><subtitle type='html'>我的 Ubuntu 食補。帶你一步步玩新世代的 Ubuntu 作業系統！</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-3121602606292997338</id><published>2010-01-10T01:11:00.001+08:00</published><updated>2010-01-10T01:11:22.269+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu Linux 最佳化網路卡 MTU 與關掉 IPv6</title><content type='html'>這篇可能需要稍微要有 TCP / IP 與 OSI 七層模型的基礎，還有網路傳輸基本概念，可能才會比較清楚自己在改些什麼。 &lt;br /&gt;
&lt;br /&gt;
sudo ifconfig eth0 mtu 9000&lt;br /&gt;
# 修改 eth0 網卡的 MTU 為 9000&lt;br /&gt;
&lt;br /&gt;
ping -c 1 -s &lt;payload byte=&quot;&quot;&gt; -M do &lt;ip&gt;&lt;/ip&gt;&lt;/payload&gt;&lt;br /&gt;
# -M do 在 ICMP 上標示不要 Fragmentation。路由器就不會切割封包&lt;br /&gt;
# -s 參數為 ICMP payload 大小，值為 MTU 剪掉 ICMP 表頭大小 28&lt;br /&gt;
# 若 MTU 大小為 1500 則 payload byte 就是 1472&lt;br /&gt;
&lt;br /&gt;
將 MTU 值寫入開機設定檔&lt;br /&gt;
sudo vi /etc/network/interfaces # 編輯網路設定檔&lt;br /&gt;
iface eth0 inet static # 設定 eth0 網路卡為固定 IP&lt;br /&gt;
pre-up /sbin/ifconfig eth0 mtu 9000 # 設定 eth0 MTU&lt;br /&gt;
address 192.168.1.1&lt;br /&gt;
netmask 255.255.255.0&lt;br /&gt;
gateway 192.168.1.254&lt;br /&gt;
&lt;br /&gt;
iface eth1 inet dhcp # 設定 eth1 網路卡為 DHCP&lt;br /&gt;
pre-up /sbin/ifconfig eth1 mtu 9000  # 設定 eth1 MTU&lt;br /&gt;
&lt;br /&gt;
關閉 IPv6 支援&lt;br /&gt;
sudo vi /etc/modprobe.d/blacklist&lt;br /&gt;
加入 blacklist ipv6 即可</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/3121602606292997338/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-mtu-ipv6.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/3121602606292997338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/3121602606292997338'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-mtu-ipv6.html' title='Ubuntu Linux 最佳化網路卡 MTU 與關掉 IPv6'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-5501566158916207859</id><published>2010-01-10T01:10:00.005+08:00</published><updated>2010-01-10T01:10:56.329+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu Linux 網路相關指令速記</title><content type='html'>/etc/network/interfaces&lt;br /&gt;
# 設定 IP, netmask, Gateway 或使用 DHCP 網路組態&lt;br /&gt;
&lt;br /&gt;
/etc/hostname&lt;br /&gt;
# 主機名稱設定&lt;br /&gt;
&lt;br /&gt;
/etc/resolv.conf&lt;br /&gt;
# 設定 DNS 伺服器和本機的網域名稱或網域查詢列表&lt;br /&gt;
&lt;br /&gt;
/etc/hosts&lt;br /&gt;
# 建立靜態主機名稱與 IP 對應&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install network-manager-gnome&lt;br /&gt;
# 安裝圖形化網路管理介面 ( Gnome )&lt;br /&gt;
&lt;br /&gt;
sudo  apt-get install knetworkmanager&lt;br /&gt;
# 安裝圖形化網路管理介面 ( KDE )&lt;br /&gt;
&lt;br /&gt;
netstat&lt;br /&gt;
# -a 列出所有連線，包含 TCP、UDP 和 Socket 通訊&lt;br /&gt;
# -l 列出主機在 Listen 的連線，通常為伺服器軟體&lt;br /&gt;
# -n 列出 netstat 時不做 IP 反查，速度較快&lt;br /&gt;
# -p 列出使用該連線的軟體名稱和 PID&lt;br /&gt;
# -t 列出 TCP 連線&lt;br /&gt;
# -u 列出 UDP 連線&lt;br /&gt;
&lt;br /&gt;
ifconfig &lt;interfaces&gt; &lt;options&gt;&lt;/options&gt;&lt;/interfaces&gt;&lt;br /&gt;
# option: netmask, broadcast, mtu, IP address&lt;br /&gt;
# add UP or DOWN to enable or disable interface&lt;br /&gt;
# ifconfig eth0 hw ether AA:BB:CC:11:22:33 to change MAC address&lt;br /&gt;
&lt;br /&gt;
sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0&lt;br /&gt;
# 設定固定 IP 與子網路遮罩&lt;br /&gt;
&lt;br /&gt;
sudo route add default gw 192.168.1.254&lt;br /&gt;
# 設定預設閘道&lt;br /&gt;
&lt;br /&gt;
route -n&lt;br /&gt;
sudo route del -net 0.0.0.0 gw 192.168.0.1&lt;br /&gt;
route -n&lt;br /&gt;
sudo route add -net&amp;nbsp; default gw 192.168.0.1 dev eth0&lt;br /&gt;
route -n&lt;br /&gt;
# 移除並新增路由表範例&lt;br /&gt;
&lt;br /&gt;
sudo dhclient eth0&lt;br /&gt;
# 在網卡 eth0 上取得 IP, netmask, gateway and DNS&lt;br /&gt;
&lt;br /&gt;
sudo vi /etc/network/interfaces # 設定網路範例&lt;br /&gt;
&lt;br /&gt;
auto lo # 啟用 Loopback 設備。請勿變更！&lt;br /&gt;
iface lo inet loopback # 啟用 Loopback 設備。請勿變更！&lt;br /&gt;
&lt;br /&gt;
auto eth0 # 啟用 eth0 網路卡&lt;br /&gt;
auto eth1 # 啟用 eth1 網路卡&lt;br /&gt;
&lt;br /&gt;
iface eth0 inet static # 設定 eth0 網卡為固定 IP&lt;br /&gt;
address 192.168.1.1 # 設定 IP 位置&lt;br /&gt;
netmask 255.255.255.0 # 設定子網路遮罩&lt;br /&gt;
gateway 192.168.1.254 # 設定預設閘道&lt;br /&gt;
network 192.168.1.0 # 設定網路，可有可無&lt;br /&gt;
broadcast 192.168.1.255 # 設定廣播，可有可無&lt;br /&gt;
&lt;br /&gt;
iface eth1 inet dhcp # 設定 eth1 網卡從 DHCP Server 取得 IP&lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/networking restart&lt;br /&gt;
# 重新啟用網路介面&lt;br /&gt;
&lt;br /&gt;
sudo ifdown eth0&lt;br /&gt;
# 關閉 eth0 裝置&lt;br /&gt;
&lt;br /&gt;
sudo ifup eth0&lt;br /&gt;
# 啟用 eth0 裝置並從 interfaces 讀取設定檔&lt;br /&gt;
&lt;br /&gt;
sudo vi /etc/resolv.conf 編輯 resolv.conf 設定檔&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
nameserver 8.8.8.8 # 第一台 DNS 主機&lt;br /&gt;
nameserver 8.8.4.4 # 第二台 DNS 主機&lt;br /&gt;
&lt;br /&gt;
search yzu.edu.tw edu.tw&lt;br /&gt;
# 網域優先搜尋。假設 ping www 或連線 www 則會自動嘗試 DNS 正解 www.yzu.edu.tw，若存在則直接回傳 IP 位置，若不存在則再嘗試 www.edu.tw。故連線同網域主機常常用到。缺點是若要連線 www.gmail.com 則首先會嘗試 DNS 正解 www.gmail.com.yzu.edu.tw，然後依序查詢下去，導致效能低落。&lt;br /&gt;
&lt;br /&gt;
domain yzu.edu.tw&lt;br /&gt;
# 用法幾乎與 search 一樣，不過他只能設定一個，也就是主機本身的網域，不能含有其他。查詢的規則和 search 一樣，會把查詢的網址加上 domain 後所設定的網域，最後才會查詢到您的網址。&lt;br /&gt;
&lt;br /&gt;
sudo vi /etc/hostname&lt;br /&gt;
# 設定主機名稱&lt;br /&gt;
&lt;br /&gt;
sudo hostname -F /etc/hostname&lt;br /&gt;
# 立即更新系統 hostname&lt;br /&gt;
&lt;br /&gt;
hostname -f&lt;br /&gt;
# 查詢系統的 FQDN ( 出錯時通常為 hosts 或 resolv.conf 沒設定好 )</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/5501566158916207859/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux_09.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/5501566158916207859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/5501566158916207859'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux_09.html' title='Ubuntu Linux 網路相關指令速記'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-8569309338524397923</id><published>2010-01-10T01:10:00.003+08:00</published><updated>2010-01-10T01:10:29.728+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu Linux 無線網路設定筆記</title><content type='html'>Ubuntu Desktop 中的圖形化介面設定無線網路已十分完善，本篇將著重於 console 下如何設定無線網路。&lt;br /&gt;
&lt;br /&gt;
iwconfig&lt;br /&gt;
# 測試無線網路是否成功驅動&lt;br /&gt;
&lt;br /&gt;
lspci&lt;br /&gt;
# 查詢無線網路晶片組&lt;br /&gt;
&lt;br /&gt;
iwconfig wlan0 txpower on&lt;br /&gt;
# 開啟無線網路電源&lt;br /&gt;
&lt;br /&gt;
sudo iwlist eth0 scanning&lt;br /&gt;
# 查詢可用的無線網路&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo iwconfig eth0 up&lt;br /&gt;
sudo iwconfig eth0 essid &lt;ssid&gt; key 12345678&lt;/ssid&gt;&lt;br /&gt;
# 啟用 eth0 無線網卡，12345678 為 WEP 密碼&lt;br /&gt;
&lt;br /&gt;
sudo dhclient eth0&lt;br /&gt;
# 透過 DHCP 自動取得 IP&lt;br /&gt;
&lt;br /&gt;
sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0 # 設定 IP 與 netmask&lt;br /&gt;
sudo route add default gw 192.168.0.254 # 設定預設閘道&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
vi /etc/network/interfaces # 直接設定無線網路組態到 interfaces&lt;br /&gt;
auto eth0 # 啟用無線網路&lt;br /&gt;
iface eth0 inet static # 設定 eth0 為固定 IP 若要自動取得請改成 dhcp&lt;br /&gt;
wireless-essid &lt;ssid&gt; # 設定無線網路名稱&lt;/ssid&gt;&lt;br /&gt;
wireless-key &lt;key&gt; # 設定無線網路密碼&lt;/key&gt;&lt;br /&gt;
address 192.168.0.1&lt;br /&gt;
netmask 255.255.255.0&lt;br /&gt;
gateway 192.168.0.1&lt;br /&gt;
&lt;br /&gt;
若要使用 DHCP 則最下面三行可省略。</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/8569309338524397923/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/8569309338524397923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/8569309338524397923'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux.html' title='Ubuntu Linux 無線網路設定筆記'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-7224249122178685189</id><published>2010-01-10T01:10:00.001+08:00</published><updated>2010-01-10T01:10:04.178+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu Linux 透過 ADSL 上網</title><content type='html'>目前 Ubuntu 的最新發行版 9.10 圖形化介面中的 DSL 撥號程式仍然有 &lt;a href=&quot;http://chentunglee.blogspot.com/2009/12/ubuntu.html&quot;&gt;BUG&lt;/a&gt; &lt;br /&gt;
使用 console 來撥號是唯一使用 ADSL 連線上網的方法。&lt;br /&gt;
&lt;br /&gt;
sudo pppoeconf&lt;br /&gt;
# 文字介面 ADSL PPPOE 撥號連線&lt;br /&gt;
&lt;br /&gt;
plog&lt;br /&gt;
# 查詢 PPPOE 狀態&lt;br /&gt;
&lt;br /&gt;
sudo poff&lt;br /&gt;
# 中斷 PPPOE 連線&lt;br /&gt;
&lt;br /&gt;
sudo pon dsl-provider&lt;br /&gt;
# 啟用 PPPOE 連線</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/7224249122178685189/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-adsl.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7224249122178685189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7224249122178685189'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-adsl.html' title='Ubuntu Linux 透過 ADSL 上網'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-7753915904817948056</id><published>2010-01-10T01:09:00.003+08:00</published><updated>2010-01-10T01:12:22.088+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu Linux 簡單的 Shell 環境變數設定</title><content type='html'>看完書才知道 Shell 的博大精深與變幻莫測阿，這邊只是一個小小設定的紀錄，更多的詳細用法是無法在一篇文章內說完的，去買書吧XD&quot; &lt;br /&gt;
&lt;br /&gt;
PS1=&#39;${debian_chroot:+($debian_chroot)}\u@\h:\w\$ &#39;&lt;br /&gt;
# Ubuntu Linux 預設環境變數&lt;br /&gt;
&lt;br /&gt;
echo $PS1&lt;br /&gt;
# 印出 PS1 環境變數 ( \u 表示 username \h 表示 hostname \w 表示 folder )&lt;br /&gt;
&lt;br /&gt;
PS1=&#39;\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w\[\033[1;36m\]\$ \[\033[0m\]&#39;&lt;br /&gt;
&lt;br /&gt;
# 彩色 PS1 環境變數 ( 因排版限制，本處中間無斷行  )&lt;br /&gt;
&lt;br /&gt;
vi ~/.bashrc or vi /home/user/.bashrc&lt;br /&gt;
# 編輯個人的 bashrc 可使每次打開 shell 都自動定義好色彩</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/7753915904817948056/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/shell.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7753915904817948056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7753915904817948056'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/shell.html' title='Ubuntu Linux 簡單的 Shell 環境變數設定'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-8013391271954408008</id><published>2010-01-10T01:09:00.001+08:00</published><updated>2010-01-10T01:09:15.901+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu Linux 變更 console 解析度與中文檔名支援</title><content type='html'>sudo vi /boot/grub/menu.lst&lt;br /&gt;
# 編輯 Grub 設定檔&lt;br /&gt;
title&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ubuntu, kernel 2.6.18-30&lt;br /&gt;
root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (hd0,1)&lt;br /&gt;
kernel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /vmlinuz-2.6.18-30&lt;br /&gt;
root=/dev/hda3 ro quiet splash vga=0x31B&lt;br /&gt;
initrd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /initrd.img-2.6.18-30 savedefault&lt;br /&gt;
boot&lt;br /&gt;
將 kernel 最後方的 0x31B 修改為 framebuffer 的代碼，重開機後的 console 解析度就會生效囉&lt;br /&gt;
&lt;br /&gt;
sudo vi /etc/default/grub&lt;br /&gt;
# 若為 grub2 則須修改此檔案中的 GRUB_GFXMODE=640x480 變數&lt;br /&gt;
# 更改完記得 sudo update-grub 來更新設定檔案&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install jfbterm&lt;br /&gt;
# 安裝 UTF-8 中文 console 支援&lt;br /&gt;
&lt;br /&gt;
jfbterm&lt;br /&gt;
# 執行</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/8013391271954408008/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-console.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/8013391271954408008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/8013391271954408008'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-console.html' title='Ubuntu Linux 變更 console 解析度與中文檔名支援'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-4835997993809816033</id><published>2010-01-10T01:08:00.001+08:00</published><updated>2010-01-10T01:08:45.534+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu Linux 調整 IDE 裝置的效能</title><content type='html'>本篇只適用於 IDE 裝置，SATA 或 SCSI 預設已經開啟 DMA 加速。&lt;br /&gt;
&lt;br /&gt;
sudo hdparm /dev/hda&lt;br /&gt;
# 取得硬碟組態&lt;br /&gt;
# -m multcount 每一次 I/O 動作可以掃描的磁區多寡。通常設為 -m16 以取得最佳效能。而 -m0 為停用&lt;br /&gt;
# -c IO_support 預設是 16 位元傳輸 -c0 32 位元非同步傳輸是 -c1 同步傳輸參數是 -c3&lt;br /&gt;
# -d using_dma 一定要開！-d0 關閉。-d1 開啟&lt;br /&gt;
# -X UDMA 額外參數。ATA33 是 -X66 ATA66 是 -X68 ATA100 是 -X69&lt;br /&gt;
# -t cache 讀取測試。測試硬碟從快取讀取資料的速度，通常會比 -T 快很多很多，通常是實體匯流排的速度。&lt;br /&gt;
# -T 硬碟讀取測試。測試硬碟真正讀取資料速度。&lt;br /&gt;
# -i 硬碟組態資訊。顯示詳細硬碟組態設定。&lt;br /&gt;
&lt;br /&gt;
sudo hdparm -tT /dev/hda&lt;br /&gt;
# 測試硬碟效能&lt;br /&gt;
&lt;br /&gt;
sudo hdparm -c1 -m16 -d1 -X69 /dev/hda&lt;br /&gt;
# 設定新參數並測試效能&lt;br /&gt;
&lt;br /&gt;
sudo vi /etc/hdparm.conf&lt;br /&gt;
# 編輯硬碟參數設定檔 ( 設定完重開機才會生效 )&lt;br /&gt;
#/dev/cdroms/cdrom0 {&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dma = on&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interrupt_unmask = on&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; io32_support = 0&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#/dev/hda {&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mult_sect_io = 16&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write_cache = off&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dma = on&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#command_line {&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hdparm -q -m16 -q -W0 -q -d1 /dev/hda&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/hdparm restart&lt;br /&gt;
# 立即重新啟用 haparm</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/4835997993809816033/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-ide.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/4835997993809816033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/4835997993809816033'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2010/01/ubuntu-linux-ide.html' title='Ubuntu Linux 調整 IDE 裝置的效能'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-3437723098282217572</id><published>2009-12-30T18:17:00.003+08:00</published><updated>2009-12-30T18:17:33.733+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>使用 auto-apt 與 checkinstall 自動滿足套件編譯相依性</title><content type='html'>以往非 Debianize 的套件要安裝時，免不了要經過下列的噁心步驟：&lt;br /&gt;
&lt;br /&gt;
./configure # 設定軟體相關資訊並檢查是否滿足編譯條件&lt;br /&gt;
make # 編譯&lt;br /&gt;
sudo make install # 安裝到系統&lt;br /&gt;
&lt;br /&gt;
而且還往往非常不容易成功。現在可以利用 auto-apt 自動幫你搞定。 &lt;br /&gt;
&lt;br /&gt;
sudo apt-get install auto-apt&lt;br /&gt;
#&amp;nbsp; 安裝 auto-apt 套件&lt;br /&gt;
&lt;br /&gt;
sudo auto-apt update&lt;br /&gt;
# 更新套件庫清單&lt;br /&gt;
&lt;br /&gt;
auto-apt run ./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&lt;br /&gt;
&lt;br /&gt;
另外一種將原始碼徹底 Debianize 化的方法更簡單了&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install checkinstall&lt;br /&gt;
# 安裝 checkinstall 套件&lt;br /&gt;
&lt;br /&gt;
gunzip source.tgz&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
checkinstall&lt;br /&gt;
sudo dpkg -i source.deb&lt;br /&gt;
&lt;br /&gt;
沒錯，就是把最後一個步驟的 make install 換成 checkinstall 即可，是不是很簡單呢QQ</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/3437723098282217572/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/auto-apt-checkinstall.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/3437723098282217572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/3437723098282217572'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/auto-apt-checkinstall.html' title='使用 auto-apt 與 checkinstall 自動滿足套件編譯相依性'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-4664887740837605074</id><published>2009-12-30T18:17:00.001+08:00</published><updated>2009-12-30T18:17:01.891+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>使用 apt-build 編譯最佳化套件</title><content type='html'>sudo apt-get install apt-build&lt;br /&gt;
# 安裝 apt-build 套件&lt;br /&gt;
&lt;br /&gt;
sudo dpkg-reconfigure apt-build or sudo vi /etc/apt/apt-build.conf&lt;br /&gt;
# 重新設定 apt-build 選項與 apt-build 設定檔位置&lt;br /&gt;
&lt;br /&gt;
sudo apt-build update&lt;br /&gt;
# 更新套件庫清單&lt;br /&gt;
&lt;br /&gt;
sudo apt-build install &lt;package&gt;&lt;/package&gt;&lt;br /&gt;
# 安裝新套件，且自動最佳化編譯&lt;br /&gt;
&lt;br /&gt;
sudo apt-build --reinstall install &lt;package&gt;&lt;br /&gt;
&lt;/package&gt;&lt;br /&gt;
# 重新安裝套件，且重新最佳化編譯&lt;br /&gt;
&lt;br /&gt;
sudo dpkg --get-selections | awk &#39; { if ( $2 == &quot;install&quot; ) print $1 } &#39; &amp;gt; /etc/apt/apt-build.list&lt;br /&gt;
sudo apt-build world&lt;br /&gt;
# 匯出系統所有安裝套件清單，並做全系統編譯，費時好幾天，並可能失敗，請慎重考慮</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/4664887740837605074/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-build.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/4664887740837605074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/4664887740837605074'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-build.html' title='使用 apt-build 編譯最佳化套件'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-7816640196897616833</id><published>2009-12-30T18:16:00.001+08:00</published><updated>2009-12-30T18:16:29.604+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>利用 apt-get 自行編譯套件</title><content type='html'>sudo apt-get install build-essential&lt;br /&gt;
# 安裝 gcc-compiler make dpkg-dev 編譯程式常用環境&lt;br /&gt;
&lt;br /&gt;
sudo apt-get source &lt;package&gt;&lt;/package&gt;&lt;br /&gt;
# 取得軟體原始碼，可加 -b 下載完自動編譯&lt;br /&gt;
&lt;br /&gt;
sudo apt-get build-dep &lt;package&gt;&lt;/package&gt;&lt;package&gt;&lt;/package&gt;&lt;br /&gt;
# 安裝編譯此套件所需要的套件(表頭檔或函式庫補完)&lt;br /&gt;
&lt;br /&gt;
dpkg-source -x &lt;dsc file=&quot;&quot; name=&quot;&quot;&gt;&lt;/dsc&gt;&lt;br /&gt;
# 建立 Debianize 的原始檔方式。解開套件原始碼並上 patch&lt;br /&gt;
&lt;br /&gt;
tar xvf &lt;file.tar.gz&gt;&lt;br /&gt;
&lt;/file.tar.gz&gt;&lt;br /&gt;
# 解開套件原始碼&lt;br /&gt;
&lt;br /&gt;
zcat &lt;diff.gz filename=&quot;&quot; patch=&quot;&quot;&gt; | patch -p0&lt;/diff.gz&gt;&lt;br /&gt;
# 打上 Debianize 的 patch&lt;br /&gt;
&lt;br /&gt;
dpkg-buildpackage&lt;br /&gt;
# 編譯套件&lt;br /&gt;
&lt;br /&gt;
編譯 ntop 範例&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
# 更新套件庫清單&lt;br /&gt;
&lt;br /&gt;
sudo apt-get build-dep ntop&lt;br /&gt;
# 自動安裝編譯 ntop 所需套件&lt;br /&gt;
&lt;br /&gt;
sudo apt-get -b source ntop&lt;br /&gt;
# 下載原始碼並編譯&lt;br /&gt;
&lt;br /&gt;
sudo dpkg -i ntop.deb&lt;br /&gt;
# 安裝剛做好的 deb 套件</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/7816640196897616833/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-get_30.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7816640196897616833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7816640196897616833'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-get_30.html' title='利用 apt-get 自行編譯套件'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-8567303724132301434</id><published>2009-12-30T18:15:00.003+08:00</published><updated>2009-12-30T18:15:50.546+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>apt-key 金鑰管理</title><content type='html'>sudo apt-key list&lt;br /&gt;
# 列出 APT 系統所使用的公鑰&lt;br /&gt;
&lt;br /&gt;
$ sudo apt-key list&lt;br /&gt;
/etc/apt/trusted.gpg&lt;br /&gt;
--------------------&lt;br /&gt;
pub&amp;nbsp;&amp;nbsp; 1024D/437D05B5 2004-09-12 &lt;span style=&quot;color: #660000;&quot;&gt;# 1024D 表示金鑰擁有者 ID / 437D05B5 為金鑰指紋&lt;/span&gt;&lt;br /&gt;
uid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ubuntu Archive Automatic Signing Key &lt;ftpmaster@ubuntu.com&gt; &lt;span style=&quot;color: #660000;&quot;&gt;# 套件庫金鑰&lt;/span&gt;&lt;br /&gt;
sub&amp;nbsp;&amp;nbsp; 2048g/79164387 2004-09-12&lt;br /&gt;
&lt;br /&gt;
pub&amp;nbsp;&amp;nbsp; 1024D/FBB75451 2004-12-30&lt;br /&gt;
uid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ubuntu CD Image Automatic Signing Key &lt;cdimage@ubuntu.com&gt; &lt;span style=&quot;color: #660000;&quot;&gt;# 光碟用金鑰&lt;/span&gt;&lt;br /&gt;
&lt;/cdimage@ubuntu.com&gt;&lt;/ftpmaster@ubuntu.com&gt;&lt;br /&gt;
&lt;br /&gt;
一般公鑰會有2K以上，除非是用隨身碟傳，不然無法很容易傳遞。Ubuntu 的公鑰交換使用 Key Server 來傳遞。我們先對金鑰取特徵值，得到一組40碼的金鑰指紋，每一碼為0到F以16進位表示。然後將公鑰上傳到Key Server，其他人只須憑金鑰指紋即可下載完整公鑰。透過Key Server解決公鑰交換的問題。&lt;br /&gt;
&lt;br /&gt;
如果公鑰已經上傳到Key Server，可以使用下列指令下載公鑰：&lt;br /&gt;
gpg --keyserver hkp://wwwkeys.us.pgp.net --recv-keys &amp;lt;金鑰指紋&amp;gt;&lt;br /&gt;
# 金鑰指紋最少8碼或16碼，亦可用完整40碼來下載公鑰&lt;br /&gt;
&lt;br /&gt;
gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 010908312D230C5F&lt;br /&gt;
# 取得 Debian 套件庫公鑰&lt;br /&gt;
&lt;br /&gt;
由於 APT 系統所使用的公鑰列表雨 GPG 系統的公鑰列表各自獨立，所以要把 GPG 的工要匯出到 APT 系統&lt;br /&gt;
&lt;br /&gt;
gpg --armor --export &amp;lt;金鑰指紋&amp;gt; | sudo apt-key add -&lt;br /&gt;
# 輸出 GPG 金鑰並匯入 APT 系統&lt;br /&gt;
&lt;br /&gt;
sudo apt-key add chentunglee.asc&lt;br /&gt;
# 手動匯入金鑰。寫信向套件開發者取得。&lt;br /&gt;
&lt;br /&gt;
sudo apt-key del &amp;lt;金鑰指紋&amp;gt;&lt;br /&gt;
# 刪除公鑰</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/8567303724132301434/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-key.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/8567303724132301434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/8567303724132301434'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-key.html' title='apt-key 金鑰管理'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-2407112293669589953</id><published>2009-12-30T18:15:00.001+08:00</published><updated>2009-12-30T18:15:12.796+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>apt-file 以檔案找套件</title><content type='html'>這個小工具可以讓您的 Ubuntu 透過已知的執行檔、文件、函式庫、標頭檔等來找套件哦！&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install apt-file&lt;br /&gt;
# 安裝 apt-file 套件&lt;br /&gt;
&lt;br /&gt;
sudo apt-file update&lt;br /&gt;
# 根據 sources.list 同步套件庫清單&lt;br /&gt;
&lt;br /&gt;
apt-file search &lt;keyword&gt;&lt;/keyword&gt;&lt;br /&gt;
# 以關鍵字搜尋套件&lt;br /&gt;
&lt;br /&gt;
可用參數：&lt;br /&gt;
-l 只顯示套件，不顯示檔名&lt;br /&gt;
-i 忽略大小寫&lt;br /&gt;
-F 完全符合關鍵字&lt;br /&gt;
&lt;br /&gt;
範例：&lt;br /&gt;
apt-file search wx.h&lt;br /&gt;
apt-file search ftp&lt;br /&gt;
apt-file search /usr/bin/ftp&lt;br /&gt;
apt-file search /usr/bin/ftp -F&lt;br /&gt;
&lt;br /&gt;
sudo apt-file list &lt;package&gt;&lt;/package&gt;&lt;br /&gt;
# 列出套件所包含的檔案</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/2407112293669589953/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-file.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/2407112293669589953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/2407112293669589953'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-file.html' title='apt-file 以檔案找套件'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-6786497755629916274</id><published>2009-12-30T18:14:00.000+08:00</published><updated>2009-12-30T18:14:23.637+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>apt-get 套件安裝、移除、升級好工具</title><content type='html'>sudo apt-get update&lt;br /&gt;
# 同步系統套件庫清單&lt;br /&gt;
&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
# 更新沒有套件相依性問題的套件&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
# 依照套件相依性更新所有套件&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install &lt;package&gt;&lt;/package&gt;&lt;br /&gt;
# 自動安裝指定的套件&lt;br /&gt;
&lt;br /&gt;
sudo apt-get remove &lt;package&gt;&lt;/package&gt;&lt;br /&gt;
# 自動移除套件，並留下設定檔&lt;br /&gt;
&lt;br /&gt;
sudo apt-get --purge remove &lt;package&gt;&lt;/package&gt;&lt;br /&gt;
# 自動移除套件，不保留設定檔&lt;br /&gt;
&lt;br /&gt;
sudo apt-get clean&lt;br /&gt;
# 移除所有的套件暫存檔案 /var/cache/apt/archives&lt;br /&gt;
&lt;br /&gt;
sudo apt-get autoclean&lt;br /&gt;
# 移除所有舊版的套件暫存檔案，最新版本保留&lt;br /&gt;
&lt;br /&gt;
可用參數：&lt;br /&gt;
&lt;br /&gt;
-y 自動回答 yes&lt;br /&gt;
-s 安全模式，測試安裝 / 移除&lt;br /&gt;
-f 強制模式，強制安裝或修正錯誤&lt;br /&gt;
-d 只下載 deb 套件並存放在 /var/cache/apt/archives&lt;br /&gt;
--reinstall 重新安裝套件&lt;br /&gt;
&lt;br /&gt;
sudo dpkg --configure -a&lt;br /&gt;
# 重新設定之前因中斷等因素還沒裝好的套件&lt;br /&gt;
&lt;br /&gt;
sudo synaptic &lt;br /&gt;
# 用圖形化界面管理 APT 套件庫</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/6786497755629916274/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-get.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/6786497755629916274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/6786497755629916274'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-get.html' title='apt-get 套件安裝、移除、升級好工具'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-358874745318713730</id><published>2009-12-30T18:11:00.000+08:00</published><updated>2010-01-10T01:08:04.728+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="Wiki"/><title type='text'>我的筆記 DokuWiki</title><content type='html'>架設好DokuWiki一陣子了&lt;br /&gt;
裡面有我玩&lt;a href=&quot;http://www.ubuntu.com/&quot;&gt;Ubuntu Linux&lt;/a&gt;的一些紀錄&lt;br /&gt;
和同事使用&lt;a href=&quot;http://www.oracle.com/&quot;&gt;Oracle&lt;/a&gt;的紀錄&lt;br /&gt;
有需要就來翻翻吧&lt;br /&gt;
&lt;a href=&quot;http://chentunglee.no-ip.com/dokuwiki&quot;&gt;Eddie&#39;s DokuWiki&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/358874745318713730/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/dokuwiki.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/358874745318713730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/358874745318713730'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/dokuwiki.html' title='我的筆記 DokuWiki'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-7896892515982546411</id><published>2009-12-30T13:31:00.001+08:00</published><updated>2009-12-30T13:31:58.306+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>方便的 apt-cache 套件查詢工具</title><content type='html'>apt-cache search &lt;br /&gt;
# 從套件資訊中查詢包含 keyword 的套件&lt;br /&gt;
&lt;br /&gt;
apt-cache -n search &lt;br /&gt;
# 搜尋 keyword 的套件名稱&lt;br /&gt;
&lt;br /&gt;
apt-cache show &lt;br /&gt;
# 顯示套件詳細資訊和介紹&lt;br /&gt;
&lt;br /&gt;
apt-cache showsrc &lt;br /&gt;
# 顯示套件原始碼相關資訊&lt;br /&gt;
&lt;br /&gt;
apt-cache showpkg &lt;br /&gt;
# 顯示套件相依性相關資訊&lt;br /&gt;
&lt;br /&gt;
apt-cache depends &lt;br /&gt;
# 顯示套件相依性相關資訊&lt;br /&gt;
&lt;br /&gt;
apt-cache rdepends &lt;br /&gt;
# 顯示套件反向相依性相關資訊&lt;br /&gt;
&lt;br /&gt;
apt-cache stat&lt;br /&gt;
# 顯示套件庫資訊</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/7896892515982546411/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-cache.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7896892515982546411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/7896892515982546411'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/apt-cache.html' title='方便的 apt-cache 套件查詢工具'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1903448306204759446.post-3957205160742436658</id><published>2009-12-05T18:11:00.000+08:00</published><updated>2009-12-30T18:12:38.137+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ubuntu 你太求好心切了嗎？</title><content type='html'>一直以來我都是 Ubuntu 的頭號粉絲，死忠支持者。&lt;br /&gt;
但今天我想講的是，為什麼這麼多不穩定的 BUG 在 Version Release 過後這麼久，還未見改善。&lt;br /&gt;
Ubuntu 9.10 在今年10月底正式釋出。(其實我老早就從BETA開始一起努力)&lt;br /&gt;
雖然安裝的最新版本的過程中無任何不便，但裝完才是問題的開始。&lt;br /&gt;
也許你急著要開發許許多多讓 User 感覺驚豔的全新功能&lt;br /&gt;
也許你急著要讓桌面環境跟上 Gnome 的最新腳步&lt;br /&gt;
也許你急著要讓核心跟上 Linux 最新版本&lt;br /&gt;
...... &lt;br /&gt;
但你也不能忘了大家當初會選擇你的初衷：穩定，友善，好用。&lt;br /&gt;
&lt;br /&gt;
你不能讓 ADSL 上網的使用者每次都要下 sudo pppoeconf 來設定撥號連線&lt;br /&gt;
你不能讓使用者每次看 JAVA 網頁都要猜測方塊裡到底寫的是什麼字&lt;br /&gt;
你不能讓使用者安裝字型檔案時，迴圈回到一個無止盡&lt;br /&gt;
你不能讓使用者開機十次，有兩次無法順利登入 GDM&lt;br /&gt;
&lt;br /&gt;
這 些都是裝完後，一個禮拜內就發現的顯著問題，原本還以為穩定友善的 Ubuntu 團隊，一定會在最短的時間內修復這些，然而在幾乎一個月多過後，上述這些問題還是沒透過 Update or Patches 解決。真是讓我難掩失望，這叫我怎麼再跟別人推廣、怎麼再跟別人說 Ubuntu 的好？(泣...)&lt;br /&gt;
&lt;br /&gt;
雖然這些小問題，都可以透過指令修修改改來更正，但不能期望每個使用者都是 Linux 專家，還是需要顧及使用者的感受。還是很希望官方能盡速處理好這些問題，讓 Ubuntu 能越來越好。&lt;br /&gt;
&lt;br /&gt;
以下列出幾個小問題的解決方式：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://playubuntu.blogspot.com/2009/11/java.html?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A+blogspot%2Fplayerubuntu+%28%E6%89%8B%E6%8A%8A%E6%89%8B%E7%8E%A9Ubuntu%29&amp;amp;utm_content=Google+Reader&quot;&gt;安裝 Java 與修正亂碼&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://playubuntu.blogspot.com/2009/09/ttf-mscorefonts-installer.html&quot;&gt;搞定 ttf-mscorefonts-installer 安裝時出現的錯誤&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://playubuntu.blogspot.com/2009/03/blog-post.html&quot;&gt;沒聲音的進來瞧瞧&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://playubuntu.blogspot.com/2009/08/flashplayerfirefoxflash.html&quot;&gt;使用腳本自動安裝 FlashPlayer 與處理 Firefox 中的亂碼&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://ubuntucookbook.blogspot.com/feeds/3957205160742436658/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/ubuntu.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/3957205160742436658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1903448306204759446/posts/default/3957205160742436658'/><link rel='alternate' type='text/html' href='http://ubuntucookbook.blogspot.com/2009/12/ubuntu.html' title='Ubuntu 你太求好心切了嗎？'/><author><name>Michelle</name><uri>http://www.blogger.com/profile/17456217889639104883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>