2010年9月30日

Debian安裝VritualBox錯誤訊息

安裝VirtualBox遇到的錯誤訊息.

W: GPG error: http://download.virtualbox.org lenny Release: 由於無法取得它們的公鑰,以下簽章無法進行驗證: NO_PUBKEY 54422A4B98AB5139

解決方式如下:

# apt-key list

/etc/apt/trusted.gpg
--------------------
pub 1024D/XX2584E6 2008-04-06 [到期: 2012-05-15] ...

...

pub 1024D/6DFBCBAE 2008-07-14

uid Sun Microsystems, Inc. (xVM VirtualBox archive signing key)
sub 2048g/78A86EAF 2008-07-14

刪除有問題的key 
#apt-key del 78A86EAF
重新下載公鑰 
#wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
加入公鑰
#apt-key add oracle_vbox.asc
更新update
#apt-get update

2010年9月23日

Apache 錯誤訊息:Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Apache在重新啟動時出現警告訊息:

Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName





解決方式如下:
vi /etc/apache2/apache2.conf

最後一行加上
ServerName 127.0.0.1

重新啟動後就不會再出現.

Apache關掉檔案列表,檔案清單

Apache 如目錄下不存在index.php會把檔案、目錄列出來,以下是關掉的方法.

vi /etc/apache2/sites-available/default
...
DocumentRoot /var/www/
Options Indexes FollowSymLinks   <-移除紅字部份再存檔即可
AllowOverride None

...

2010年9月22日

Debian安裝Java JDK記錄

安裝檔案名稱:jdk-6u21-linux-i586.bin

執行安裝
chmod 755 jdk-6u21-linux-i586.bin
./jdk-6u21-linux-i586.bin

安裝完後會產生目錄
/jdk1.6.0_21

將目錄移至 /usr/local 下
mv jdk1.6.0_21/ /usr/local/


建立link
ln -s /usr/local/jdk1.6.0_10/ /usr/local/jdk

Debian安裝套件清單

init.sh

#安裝基本套件
apt-get install vim mc ssh ftp

#安裝MYSQL
apt-get install mysql-server


#安裝Apache
apt-get install apache2 php5-mysql


#
apt-get install


#apt-get install