a1. 设置某用户可以作为sudo用户:

``` Bash
su - root
vim /etc/sudoers
```
添加:
``` Bash
lane    ALL=(ALL)ALL
```
  1. 配置vim:

    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
    

    配置vimsolarized颜色模式:

    sudo mv solarized.vim /usr/share/vim/vim73/colors
    
  2. 登录自动显示系统运行时间:

    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
    
  3. 配置ftp服务器

  4. 配置svn服务器

  5. 配置cron自动定时任务

2015-12-18 23:187