1. Open file /etc/apache2/sites-available/default
2. edit the line
   Options Indexes FollowSymLinks MultiViews to Options -Indexes FollowSymLinks MultiViews
3. add the line
   DirectoryIndex index.php index.html
4. save && exit
5. Restart apache server .

Walter Blyss 發表在 痞客邦 留言(0) 人氣()


Debian -- 通用作業系統網址如下:
http://www.debian.org/
Debian 套件站台網址如下:
http://www.debian.org/distrib/packages#view

Walter Blyss 發表在 痞客邦 留言(0) 人氣()


Install xchm on debian
1. Download libchm1_0.39-10_i386.deb ,
   http://ftp.tw.debian.org/debian/pool/main/c/chmlib/libchm1_0.39-9_i386.deb . // download package
2. Download libwxbase2.8-0_2.8.7.1-1.1_i386.deb ,
   http://ftp.tw.debian.org/debian/pool/main/w/wxwidgets2.8/libwxbase2.8-0_2.8.7.1-1.1_i386.deb . // download package
3. Download libwxgtk2.8-0_2.8.7.1-1.1_i386.deb ,
   http://ftp.tw.debian.org/debian/pool/main/w/wxwidgets2.8/libwxgtk2.8-0_2.8.7.1-1.1_i386.deb . // download package
4. Download xchm_1.17-1_i386.deb ,
   http://ftp.tw.debian.org/debian/pool/main/c/chmlib/libchm1_0.39-9_i386.deb . // download package
5.# dpkg -i libchm1_0.39-10_i386.deb . // install package
6.# dpkg -i libwxbase2.8-0_2.8.7.1-1.1_i386.deb . // install package
7.# dpkg -i libwxgtk2.8-0_2.8.7.1-1.1_i386.deb . // install package
8.# dpkg -i xchm_1.17-1_i386.deb . // install package
7.Finish && Enjoy .

Walter Blyss 發表在 痞客邦 留言(0) 人氣()


Install nmap on debian
1. Download libpcap0.8_0.9.8-5_i386.deb ,
   URL is http://ftp.tw.debian.org/debian/pool/main/libp/libpcap/libpcap0.8_0.9.8-5_i386.deb . // download package
2. Download nmap_4.62-1_i386.deb ,
   URL is http://ftp.tw.debian.org/debian/pool/main/n/nmap/nmap_4.62-1_i386.deb . // download package
3.# dpkg -i libpcap0.8_0.9.8-5_i386.deb . // install package
4.# dpkg -i nmap_4.62-1_i386.deb . // install package
5.Finish && Enjoy .

Walter Blyss 發表在 痞客邦 留言(0) 人氣()


Debian download package
1.Use your favorite editor to open the file in /etc/apt/sources.list
2.Annotate the line of cdrom and add the follow lines:
deb http://debian.linux.org.tw/debian stable main contrib non-free
deb http://debian.linux.org.tw/debian-non-US stable main contrib non-free
3.Save && Exit .
4. Finish && Enjoy .

Walter Blyss 發表在 痞客邦 留言(0) 人氣()

Hi everybody:
To come out in favour of open source .
the web browser like firefox ,
and the operating system like Linux distribution ,
Debian , Ubuntu , and fedora are better choice with linux 。
Thanks for your support。
Walter

Walter Blyss 發表在 痞客邦 留言(0) 人氣()

測試的標誌    代表意義
1. 關於某個檔名的『檔案類型』判斷,如 test -e filename 表示存在否
-e    該『檔名』是否存在?(常用)
-f    該『檔名』是否存在且為檔案(file)?(常用)
-d    該『檔名』是否存在且為目錄(directory)?(常用)
-b    該『檔名』是否存在且為一個 block device 裝置?
-c    該『檔名』是否存在且為一個 character device 裝置?
-S    該『檔名』是否存在且為一個 Socket 檔案?
-p    該『檔名』是否存在且為一個 FIFO (pipe) 檔案?
-L    該『檔名』是否存在且為一個連結檔?
2. 關於檔案的權限偵測,如 test -r filename 表示可讀否 (但 root 權限常有例外)
-r    偵測該檔名是否存在且具有『可讀』的權限?
-w    偵測該檔名是否存在且具有『可寫』的權限?
-x    偵測該檔名是否存在且具有『可執行』的權限?
-u    偵測該檔名是否存在且具有『SUID』的屬性?
-g    偵測該檔名是否存在且具有『SGID』的屬性?
-k    偵測該檔名是否存在且具有『Sticky bit』的屬性?
-s    偵測該檔名是否存在且為『非空白檔案』?
3. 兩個檔案之間的比較,如: test file1 -nt file2
-nt    (newer than)判斷 file1 是否比 file2 新
-ot    (older than)判斷 file1 是否比 file2 舊
-ef    判斷 file2 與 file2 是否為同一檔案,可用在判斷 hard link 的判定上。 主要意義在判定,兩個檔案是否均指向同一個 inode 哩!
4. 關於兩個整數之間的判定,例如 test n1 -eq n2
-eq    兩數值相等 (equal)
-ne    兩數值不等 (not equal)
-gt    n1 大於 n2 (greater than)
-lt    n1 小於 n2 (less than)
-ge    n1 大於等於 n2 (greater than or equal)
-le    n1 小於等於 n2 (less than or equal)
5. 判定字串的資料
test -z string    判定字串是否為 0 ?若 string 為空字串,則為 true
test -n string    判定字串是否非為 0 ?若 string 為空字串,則為 false。
註: -n 亦可省略
test str1 = str2    判定 str1 是否等於 str2 ,若相等,則回傳 true
test str1 != str2    判定 str1 是否不等於 str2 ,若相等,則回傳 false
6. 多重條件判定,例如: test -r filename -a -x filename
-a    (and)兩狀況同時成立!例如 test -r file -a -x file,則 file 同時具有 r 與 x 權限時,才回傳 true。
-o    (or)兩狀況任何一個成立!例如 test -r file -o -x file,則 file 具有 r 或 x 權限時,就可回傳 true。
!    反相狀態,如 test ! -x file ,當 file 不具有 x 時,回傳 true

Walter Blyss 發表在 痞客邦 留言(0) 人氣()


When you want to install the ntop package,you'll chacked the package graphviz was already installed.

Walter Blyss 發表在 痞客邦 留言(0) 人氣()


When you want to install the package of VirtualBox,you'll chacked the package of qt4,qt4-x11,qt4-devel were already installed.

Walter Blyss 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。