2015年11月3日 星期二

Debian 8.2 安裝 Webmin

以apt-get 安裝
編輯/etc/apt/sources.list,加入以下兩行:
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

新增GPG key,在/root下
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

接著執行:
apt-get update
apt-get install webmin
即可順利安裝。
webmin需要的元件較多,若有缺乏套件,請補齊以下套件:
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

2015年11月2日 星期一

vim 預設顏色配置

編輯/etc/vim/vimrc,將下列這行的註解拿掉
syntax on     "開啟語法加亮

另外:
set hls           "可加亮顯示搜尋的關鍵字
set number    "顯示行號
set cursorline "標註至游標整行
set background=dark "設定背景顏色

設定完存檔後再重新進入vim即可生效!

停用帳號

停用現有帳號:
passwd -l username

啟用被停用的帳號:
passwd -u username


將使用者加入現有的群組

將u1帳號加入mail群組:
usermod -a -G mail u1