<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Ubnutu</title><link>http://blog.blueshop.com.tw/guancheng713/category/2427.aspx</link><description>Ubnutu</description><managingEditor>Aery</managingEditor><dc:language>zh-TW</dc:language><generator>.Text Version 0.95.2004.101</generator><item><dc:creator>Aery</dc:creator><title>設定vsftp Virtual User對MySQL認證 on Ubuntu</title><link>http://blog.blueshop.com.tw/guancheng713/archive/2008/07/05/55772.aspx</link><pubDate>Sat, 05 Jul 2008 20:18:00 GMT</pubDate><guid>http://blog.blueshop.com.tw/guancheng713/archive/2008/07/05/55772.aspx</guid><wfw:comment>http://blog.blueshop.com.tw/guancheng713/comments/55772.aspx</wfw:comment><comments>http://blog.blueshop.com.tw/guancheng713/archive/2008/07/05/55772.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.blueshop.com.tw/guancheng713/comments/commentRss/55772.aspx</wfw:commentRss><trackback:ping>http://blog.blueshop.com.tw/guancheng713/services/trackbacks/55772.aspx</trackback:ping><description>&lt;p&gt;安裝相關套件及建立guest帳號&lt;br /&gt;
  sudo apt-get install vsftpd mysql-server-5.0 libpam-mysql&lt;br /&gt;
  sudo useradd web_edit&lt;/p&gt;
&lt;p&gt;先建立vsftpd這個資料庫，然後建立users這個資料表&lt;br /&gt;
  CREATE TABLE `users` (&lt;br /&gt;
  `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,&lt;br /&gt;
  `username` VARCHAR( 30 ) NOT NULL ,&lt;br /&gt;
  `password` VARCHAR( 50 ) NOT NULL ,&lt;br /&gt;
  UNIQUE (`username`)&lt;br /&gt;
  ) ENGINE = MYISAM ;&lt;/p&gt;
&lt;p&gt;INSERT INTO `users` (`username` ,`password`) VALUES ('user', PASSWORD('pass'));&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;修改/etc/pam.d/vsftpd&lt;br /&gt;
  sudo vi /etc/pam.d/vsftpd&lt;/p&gt;
&lt;p&gt;auth	required pam_mysql.so user=vsftpd passwd=bWrRDD host=localhost db=vsftpd table=users usercolumn=username passwdcolumn=password crypt=2&lt;br /&gt;
  account	required pam_mysql.so user=vsftpd passwd=bWrRDD host=localhost db=vsftpd table=users usercolumn=username passwdcolumn=password crypt=2&lt;/p&gt;
&lt;p&gt;修改/etc/vsftpd.conf&lt;br /&gt;
  sudo vi /etc/vsftpd.conf&lt;br /&gt;
  guest_enable=YES&lt;br /&gt;
  guest_username=web_edit&lt;/p&gt;
&lt;p&gt;sudo /etc/init.d/vsftpd restart&lt;/p&gt;&lt;img src ="http://blog.blueshop.com.tw/guancheng713/aggbug/55772.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Aery</dc:creator><title>在Ubuntu 裡安裝 PDT + Xdebug + 決解在8.04的錯誤</title><link>http://blog.blueshop.com.tw/guancheng713/archive/2008/05/07/54966.aspx</link><pubDate>Wed, 07 May 2008 01:19:00 GMT</pubDate><guid>http://blog.blueshop.com.tw/guancheng713/archive/2008/05/07/54966.aspx</guid><wfw:comment>http://blog.blueshop.com.tw/guancheng713/comments/54966.aspx</wfw:comment><comments>http://blog.blueshop.com.tw/guancheng713/archive/2008/05/07/54966.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.blueshop.com.tw/guancheng713/comments/commentRss/54966.aspx</wfw:commentRss><trackback:ping>http://blog.blueshop.com.tw/guancheng713/services/trackbacks/54966.aspx</trackback:ping><description>&lt;pre id="line1"&gt;PDT 1.0 + Xdebug in Ubuntu 安裝過程 [討論區 - 程式編輯器]&lt;br&gt;&lt;a href="http://twpug.net/modules/newbb/viewtopic.php?topic_id=2887"&gt;http://twpug.net/modules/newbb/viewtopic.php?topic_id=2887&lt;/a&gt;&lt;br&gt;&lt;/pre&gt;我是照這篇去做的，完成之後會出現一個錯誤訊息如下：&lt;br&gt;Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features.&lt;br&gt;&lt;br&gt;解決方法很簡單，手動建立$HOME/.mozilla/eclipse這個目錄即可&lt;br&gt;來源：&lt;a href="https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/188380"&gt;https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/188380&lt;/a&gt;&lt;br&gt;&lt;img src ="http://blog.blueshop.com.tw/guancheng713/aggbug/54966.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Aery</dc:creator><title>Ubuntu常用指令與技巧</title><link>http://blog.blueshop.com.tw/guancheng713/archive/2007/12/29/53876.aspx</link><pubDate>Sat, 29 Dec 2007 17:02:00 GMT</pubDate><guid>http://blog.blueshop.com.tw/guancheng713/archive/2007/12/29/53876.aspx</guid><wfw:comment>http://blog.blueshop.com.tw/guancheng713/comments/53876.aspx</wfw:comment><comments>http://blog.blueshop.com.tw/guancheng713/archive/2007/12/29/53876.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.blueshop.com.tw/guancheng713/comments/commentRss/53876.aspx</wfw:commentRss><trackback:ping>http://blog.blueshop.com.tw/guancheng713/services/trackbacks/53876.aspx</trackback:ping><description>&lt;P&gt;Ubuntu常用命令與技巧 &lt;BR&gt;sudo apt－get install 軟體名 安裝軟體命令 &lt;BR&gt;sudo nautilus 打開文件（有root權限） &lt;BR&gt;su root 切換到“root”&lt;/P&gt;
&lt;P&gt;ls 列出當前目錄文件（不包括隱含文件） &lt;BR&gt;ls -a 列出當前目錄文件（包括隱含文件） &lt;BR&gt;ls -l 列出當前目錄下文件的詳細資訊&lt;/P&gt;
&lt;P&gt;cd .. 回當前目錄的上一級目錄 &lt;BR&gt;cd - 回上一次所在的目錄 &lt;BR&gt;cd ~ 或 cd 回當前使用者的宿主目錄 &lt;BR&gt;mkdir 目錄名 創建一個目錄 &lt;BR&gt;rmdir 空目錄名 刪除一個空目錄 &lt;BR&gt;rm 文件名 文件名 刪除一個文件或多個文件 &lt;BR&gt;rm -rf 非空目錄名 刪除一個非空目錄下的一切&lt;/P&gt;
&lt;P&gt;mv 路經/文件 /經/文件 移動相對路經下的文件到絕對路經下 &lt;BR&gt;mv 文件名 新名稱 在當前目錄下改名 &lt;BR&gt;find 路經 -name “字符串” 搜尋路經所在範圍內滿足字符串匹配的文件和目錄&lt;/P&gt;
&lt;P&gt;fdisk fdisk -l 查看系統分區資訊 &lt;BR&gt;fdisk fdisk /dev/sdb 為一塊新的SCSI硬碟進行分區 &lt;BR&gt;chown chown root /home 把/home的屬主改成root使用者 &lt;BR&gt;chgrp chgrp root /home 把/home的屬組改成root組&lt;/P&gt;
&lt;P&gt;Useradd 創建一個新的使用者 &lt;BR&gt;Groupadd 組名 創建一個新的組 &lt;BR&gt;Passwd 使用者名 為使用者創建密碼 &lt;BR&gt;Passwd -d使用者名 刪除使用者密碼也能登陸 &lt;BR&gt;Passwd -S使用者名 查詢賬號密碼 &lt;BR&gt;Usermod -l 新使用者名 老使用者名 為使用者改名 &lt;BR&gt;Userdel–r 使用者名 刪除使用者一切&lt;/P&gt;
&lt;P&gt;tar -c 創建包 –x 釋放包 -v 顯示命令過程 –z 代表壓縮包 &lt;BR&gt;tar –cvf benet.tar /home/benet 把/home/benet目錄打包 &lt;BR&gt;tar –zcvf benet.tar.gz /mnt 把目錄打包並壓縮 &lt;BR&gt;tar –zxvf benet.tar.gz 壓縮包的文件解壓恢復 &lt;BR&gt;tar –jxvf benet.tar.bz2 解壓縮&lt;/P&gt;
&lt;P&gt;make 編譯 &lt;BR&gt;make install 安裝編譯好的源碼包 &lt;BR&gt;reboot Init 6 重啟LINUX系統 &lt;BR&gt;Halt Init 0 Shutdown –h now 關閉LINUX系統&lt;/P&gt;
&lt;P&gt;uname -a 查看內核版本 &lt;BR&gt;cat /etc/issue 查看ubuntu版本 &lt;BR&gt;lsusb 查看usb設備 &lt;BR&gt;sudo ethtool eth0 查看網卡狀態 &lt;BR&gt;cat /proc/cpuinfo 查看cpu資訊 &lt;BR&gt;lshw 查看當前硬體資訊 &lt;BR&gt;sudo fdisk -l 查看磁盤資訊 &lt;BR&gt;df -h 查看硬碟剩余空間 &lt;BR&gt;free -m 查看當前的記憶體使用情況 &lt;BR&gt;ps -A 查看當前有哪些進程 &lt;BR&gt;kill 進程號(就是ps -A中的第一列的數字)或者 killall 進程名( 殺死一個進程) &lt;BR&gt;kill -9 進程號 強制殺死一個進程&lt;/P&gt;
&lt;P&gt;常用apt命令：&lt;/P&gt;
&lt;P&gt;apt-cache search package 搜索包 &lt;BR&gt;apt-cache show package 獲取包的相關資訊，如說明、大小、版本等 &lt;BR&gt;sudo apt-get install package 安裝包 &lt;BR&gt;sudo apt-get install package - - reinstall 重新安裝包 &lt;BR&gt;sudo apt-get -f install 修復安裝”-f = –fix-missing” &lt;BR&gt;sudo apt-get remove package 刪除包 &lt;BR&gt;sudo apt-get remove package - - purge 刪除包，包括刪除配置文件等 &lt;BR&gt;sudo apt-get update 更新源 &lt;BR&gt;sudo apt-get upgrade 更新已安裝的包 &lt;BR&gt;sudo apt-get dist-upgrade 昇級系統 &lt;BR&gt;sudo apt-get dselect-upgrade 使用 dselect 昇級 &lt;BR&gt;apt-cache depends package 了解使用依賴 &lt;BR&gt;apt-cache rdepends package 是查看該包被哪些包依賴 &lt;BR&gt;sudo apt-get build-dep package 安裝相關的編譯環境 &lt;BR&gt;apt-get source package 下載該包的源代碼 &lt;BR&gt;sudo apt-get clean &amp;amp;&amp;amp; sudo apt-get autoclean 清理無用的包 &lt;BR&gt;sudo apt-get check 檢查是否有損坏的依賴&lt;/P&gt;
&lt;P&gt;清理所有軟體緩存（即緩存在/var/cache/apt/archives目錄里的deb包 ） &lt;BR&gt;sudo apt-get clean&lt;/P&gt;
&lt;P&gt;刪除系統不再使用的孤立軟體 &lt;BR&gt;sudo apt-get autoremove&lt;/P&gt;
&lt;P&gt;資料來源：&lt;A href="http://www.busfly.cn/post/Ubuntu-cmd.html"&gt;http://www.busfly.cn/post/Ubuntu-cmd.html&lt;/A&gt;&lt;/P&gt;&lt;img src ="http://blog.blueshop.com.tw/guancheng713/aggbug/53876.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Aery</dc:creator><title>Ubnutu 7.10更新後發生的錯誤</title><link>http://blog.blueshop.com.tw/guancheng713/archive/2007/12/29/53875.aspx</link><pubDate>Sat, 29 Dec 2007 16:41:00 GMT</pubDate><guid>http://blog.blueshop.com.tw/guancheng713/archive/2007/12/29/53875.aspx</guid><wfw:comment>http://blog.blueshop.com.tw/guancheng713/comments/53875.aspx</wfw:comment><comments>http://blog.blueshop.com.tw/guancheng713/archive/2007/12/29/53875.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.blueshop.com.tw/guancheng713/comments/commentRss/53875.aspx</wfw:commentRss><trackback:ping>http://blog.blueshop.com.tw/guancheng713/services/trackbacks/53875.aspx</trackback:ping><description>&lt;P&gt;在處理時有錯誤發生：&lt;BR&gt;ttf-opensymbol&lt;BR&gt;openoffice.org-core&lt;BR&gt;openoffice.org-common&lt;BR&gt;openoffice.org-style-human&lt;BR&gt;python-uno&lt;BR&gt;openoffice.org-writer&lt;BR&gt;openoffice.org-calc&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&lt;TEXTAREA class=php name=code rows=6 cols=50&gt;#!/bin/bash 
# 
# 修正 Ubuntu 7.04 fc-cache failed to write cache ?? 
#sudo touch /usr/share/fonts 
sudo touch /usr/share/fonts/X11 
sudo touch /usr/share/fonts/X11/100dpi 
sudo touch /usr/share/fonts/X11/75dpi 
sudo touch /usr/share/fonts/X11/Type1 
sudo touch /usr/share/fonts/X11/encodings 
sudo touch /usr/share/fonts/X11/encodings/large 
sudo touch /usr/share/fonts/X11/misc 
sudo touch /usr/share/fonts/X11/util 
sudo touch /usr/share/fonts/truetype 
sudo touch /usr/share/fonts/truetype/arphic 
sudo touch /usr/share/fonts/truetype/baekmuk 
sudo touch /usr/share/fonts/truetype/freefont 
sudo touch /usr/share/fonts/truetype/kochi 
sudo touch /usr/share/fonts/truetype/openoffice 
sudo touch /usr/share/fonts/truetype/thai 
sudo touch /usr/share/fonts/truetype/ttf-arabeyes 
sudo touch /usr/share/fonts/truetype/ttf-bengali-fonts 
sudo touch /usr/share/fonts/truetype/ttf-bitstream-vera 
sudo touch /usr/share/fonts/truetype/ttf-dejavu 
sudo touch /usr/share/fonts/truetype/ttf-devanagari-fonts 
sudo touch /usr/share/fonts/truetype/ttf-gentium 
sudo touch /usr/share/fonts/truetype/ttf-gujarati-fonts 
sudo touch /usr/share/fonts/truetype/ttf-kannada-fonts 
sudo touch /usr/share/fonts/truetype/ttf-lao 
sudo touch /usr/share/fonts/truetype/ttf-malayalam-fonts 
sudo touch /usr/share/fonts/truetype/ttf-mgopen 
sudo touch /usr/share/fonts/truetype/ttf-oriya-fonts 
sudo touch /usr/share/fonts/truetype/ttf-punjabi-fonts 
sudo touch /usr/share/fonts/truetype/ttf-tamil-fonts 
sudo touch /usr/share/fonts/truetype/ttf-telugu-fonts 
sudo touch /usr/share/fonts/type1 
sudo touch /usr/share/fonts/type1/gsfonts 
sudo touch /usr/share/X11/fonts 
sudo touch /usr/share/X11/fonts/100dpi 
sudo touch /usr/share/X11/fonts/75dpi 
sudo touch /usr/share/X11/fonts/Type1 
sudo touch /usr/share/X11/fonts/encodings 
sudo touch /usr/share/X11/fonts/encodings/large 
sudo touch /usr/share/X11/fonts/misc 
sudo touch /usr/share/X11/fonts/util 
sudo touch /usr/local/share/fonts 
sudo touch /var/lib/defoma/fontconfig.d 
sudo touch /var/lib/defoma/fontconfig.d/A 
sudo touch /var/lib/defoma/fontconfig.d/B 
sudo touch /var/lib/defoma/fontconfig.d/C 
sudo touch /var/lib/defoma/fontconfig.d/D 
sudo touch /var/lib/defoma/fontconfig.d/E 
sudo touch /var/lib/defoma/fontconfig.d/F 
sudo touch /var/lib/defoma/fontconfig.d/G 
sudo touch /var/lib/defoma/fontconfig.d/H 
sudo touch /var/lib/defoma/fontconfig.d/J 
sudo touch /var/lib/defoma/fontconfig.d/K 
sudo touch /var/lib/defoma/fontconfig.d/L 
sudo touch /var/lib/defoma/fontconfig.d/M 
sudo touch /var/lib/defoma/fontconfig.d/N 
sudo touch /var/lib/defoma/fontconfig.d/O 
sudo touch /var/lib/defoma/fontconfig.d/P 
sudo touch /var/lib/defoma/fontconfig.d/R 
sudo touch /var/lib/defoma/fontconfig.d/S 
sudo touch /var/lib/defoma/fontconfig.d/T 
sudo touch /var/lib/defoma/fontconfig.d/U 
sudo touch /var/lib/defoma/fontconfig.d/V 
sudo touch /var/lib/defoma/fontconfig.d/a 
sudo touch /var/lib/defoma/fontconfig.d/j 
sudo touch /var/lib/defoma/fontconfig.d/m 
sudo touch /var/lib/defoma/fontconfig.d/u &lt;/TEXTAREA&gt;&lt;/P&gt;
&lt;P&gt;資料來源：&lt;A href="http://www.busfly.cn/post/ubuntu－failed－to－write－cache.html"&gt;http://www.busfly.cn/post/ubuntu－failed－to－write－cache.html&lt;/A&gt;&lt;/P&gt;&lt;img src ="http://blog.blueshop.com.tw/guancheng713/aggbug/53875.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>
