vim簡單配置
~/.vimrc
syntax on
set autoindent
set number
set laststatus=2
set ruler
set history=1000
配置ip
ifconfig eth0 172.16.55.62 netmask 255.255.255.0
route add default gw 172.16.53.2
/etc/init.d/networking restart 或者 service networking restart
apt-get 自動補全
apt-get install bash_completion
. /etc/bash_completion (加到~/.bashrc)
proftpd 安裝配置
apt-get install proftpd
vi /etc/proftpd.proftpd.conf
(1)去掉 <Anonymous ~ftp>段的註釋 =>啓用默認用戶ftp,密碼爲空,可讀
(2)註釋<Directory *> =>可寫
service proftpd restart
死機造成ubuntu無窗口管理器metacity
系統-->首選項-->啓動應用程序 添加metacity
以下爲修復死機造成找不到opengl庫
echo /usr/lib/mesa/ >> /etc/ld.so.conf
ldconfig
screen配置
#
# ~/.screenrc
#
# 啓動時不顯示歡迎屏幕
startup_message off
# 定義screen的功能鍵爲Ctrl-Z。向終端輸入Ctrl-Z時應按 Ctrl-Z z。
escape ^Zz
# 屏幕緩衝區 1024 行。
defscrollback 1024
# 在最下一行顯示窗口列表和時鐘
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rY}%n %t%{-}%+w %=%{..G} %H(%l) %{..Y} %Y/%m/%d %c:%s "
# 關閉錯誤提示
vbell off
# 按 Ctrl-Z w 或 Ctrl-Z Ctrl-W 顯示窗口列表
bind w windowlist -b
bind ^w windowlist -b
bindkey -k k6 screen
bindkey -k k7 prev
bindkey -k k8 next
bindkey -k k9 title