豪门惊梦2番外大结局:ubuntu配置简记

来源:百度文库 编辑:九乡新闻网 时间:2024/10/05 21:48:39


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)去掉 段的注释  =>启用默认用户ftp,密码为空,可读

(2)注释      =>可写

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