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

    su - root
    vim /etc/sudoers
    

    添加:

    lane    ALL=(ALL)ALL
    
  2. 配置 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
    
  3. 登录自动显示系统运行时间:

    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
    
  4. 配置 ftp 服务器
  5. 配置 svn 服务器
  6. 配置 cron 自动定时任务
Comments
Write a Comment