-
设置某用户可以作为
sudo
用户:su - root vim /etc/sudoers
添加:
lane ALL=(ALL)ALL
-
sudo vim /usr/share/vim/vimrc
添加:
syntax enable set background=dark colorscheme solarized set number set ruler set numberwidth=1 set autoindent "set cindent set tabstop=4 set softtabstop=4 set expandtab set smarttab set shiftwidth=4 set enc=utf-8 set fileencoding=utf-8
配置
vim
为solarized
颜色模式:sudo mv solarized.vim /usr/share/vim/vim73/colors
-
sudo vim /etc/profile
追加:
cat /proc/uptime| awk -F. '{run_days=$1 / 86400;run_hour=($1 % 86400)/3600;run_minute=($1 % 3600)/60;run_second=$1 % 60;printf("System has been running:% d-day %d-hour %d-min %d-sec",run_days,run_hour,run_minute,run_second)}' echo
- 配置 ftp 服务器
- 配置 svn 服务器
- 配置 cron 自动定时任务
Comments