[Ubuntu] bash 記憶指令

之前 在 linux連線版有問過大家 如果讓bash 有像 freebsd cshrc的記憶功能 可以按上下鍵 就可以顯示出 以前用過的指令 比如說 我輸入 cat 然後按上 就會出現 cat /etc/bash.bashrc 結果我在 將下面寫入到 /etc/bash.bashrc

bind \
 '"\C-n": history-search-forward' \
 '"\M-OB": history-search-forward' \
 '"\M-[B": history-search-forward' \
 '"\C-p": history-search-backward' \
 '"\M-OA": history-search-backward' \
 '"\M-[A": history-search-backward'
[Read More]

[Ubuntu] 安裝 StarDict 星際譯王 以及 字典檔

如何在Ubuntu 底下安裝字典呢 先去搜尋 StarDict Shell Script{#p94}StarDict Shell Script{#p94}StarDict Shell Script{#p94} 套件

[root@appleboy-dorm][~][21:59:39]# apt-cache search stardict sdcv – StarDict Console Version stardict – International dictionary for GNOME 2 stardict-common – International dictionary for GNOME 2 – data files stardict-tools – The dictionary conversion tools of stardict 然後安裝

apt-get install stardict-* 安裝好之後就可以在 應用程式->附屬應用程式->星際譯王 但是安裝好之後沒有任何字典檔,所以請自行到網路上下載 http://stardict.sourceforge.net/Dictionaries_zh_TW.php 下載軟體後 請把他解壓縮到 /usr/share/stardict/dic/ 解壓縮的目錄應該有 *.dz *.idx *.ifo 這3個檔案 重新啟動該軟體 就可以使用了 Update: 2007.04.16 有人有寫好script了,底下給大家參考 StarDict Shell Script{#p94}

[Linux] Ubuntu 6.06 Proftpd + Mysql 安裝方式

ProFTPD Version 1.2.10 Mysql Version 4.1.0 支援 UTF8 請確定你的proftpd有支援sql module proftpd -l | grep mysql proftpd -l | grep sql mod_sql.c mod_sql_mysql.c mod_quotatab_sql.c 確定有支援之後 再來就是建立mysql資料庫 * 建立 proftp 資料庫 CREATE DATABASE `ftp` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; * 建立使用者資料表 CREATE TABLE `ftp` ( `username` varchar( 60 ) default NULL , `uid` int( 11 ) NOT NULL , `gid` int( 11 ) default NULL , `password` varchar( 30 ) default NULL , `homedir` varchar( 60 ) default NULL , `shell` varchar( 11 ) default ‘/bin/false’, PRIMARY KEY ( `uid` ) , UNIQUE KEY ( `username` ) ) TYPE = MYISAM; 此資料表是在紀錄使用者的基本資訊,uid是使用者系統uid,gid是使用者group的id,passwd使用者的密碼 homedir為使用者登入的家目錄, shell可以為該使用者指定相應的shell * 建立使用者群組資料表 CREATE TABLE `groups` ( `groupname` varchar( 30 ) NOT NULL default ‘’, `gid` int( 11 ) NOT NULL default ‘0′, `members` text default NULL ) TYPE = MYISAM; 其中grpname是組的名稱,gid是系統組的ID,members是組的成員。注意:多成員,他們之間要用逗號隔開,不能使用空格 例如 3個使用者 test1 test2 test3 ,members就要寫 (test1,test2,test3) #設置MySQL認證: SQLConnectInfo 資料庫 資料庫帳號 資料庫密碼 #設置user資料表資訊『對應你的設定的資料表』 SQLUserInfo ftp username password uid gid homedir shell #設置group資料表資訊『對應你的設定的資料表』 SQLGroupInfo groups groupname gid members #設定使用者密碼編碼方式 ex:Plaintext 純文字 SQLAuthTypes Plaintext #設定mysql log檔 SQLLogFile /var/log/sql. [Read More]