Debian vps的配置

  • Debian7的源,debian8的话一般把wheezy换成jessie就行。
    编辑nano /etc/apt/sources.list

改完记得apt-get updateapt-get upgrade

  • 美国源

  1. http://ftp.us.debian.org/debian/ wheezy main

deb-src http://ftp.us.debian.org/debian/ wheezy main
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

  • 国内阿里云源

  1. http://mirrors.aliyun.com/debian wheezy main contrib non-free

deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

  • 国内中科大源

  1. http://mirrors.ustc.edu.cn/debian wheezy main contrib non-free

deb-src http://mirrors.ustc.edu.cn/debian wheezy main contrib non-free
deb http://mirrors.ustc.edu.cn/debian wheezy-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian wheezy-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ wheezy/updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian-security/ wheezy/updates main non-free contrib

  • 中国香港特别行政区

  1. http://mirror.xtom.com.hk/debian stable main contrib non-free

deb-src http://mirror.xtom.com.hk/debian stable main contrib non-free
deb http://mirror.xtom.com.hk/debian/ wheezy-updates main contrib non-free
deb-src http://mirror.xtom.com.hk/debian/ wheezy-updates main contrib non-free
deb http://mirror.xtom.com.hk/debian-security/ wheezy/updates main non-free contrib
deb-src http://mirror.xtom.com.hk/debian-security/ wheezy/updates main non-free contrib

  • 日本

  1. http://ftp.jp.debian.org/debian wheezy main contrib non-free

deb-src http://ftp.jp.debian.org/debian wheezy main contrib non-free
deb http://ftp.jp.debian.org/debian wheezy-updates main contrib non-free
deb-src http://ftp.jp.debian.org/debian wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

  • 欧洲俄国

  1. http://mirror.yandex.ru/debian stable main contrib non-free

deb-src http://mirror.yandex.ru/debian stable main contrib non-free
deb http://mirror.yandex.ru/debian/ wheezy-updates main contrib non-free
deb-src http://mirror.yandex.ru/debian/ wheezy-updates main contrib non-free
deb http://mirror.yandex.ru/debian-security/ wheezy/updates main non-free contrib
deb-src http://mirror.yandex.ru/debian-security/ wheezy/updates main non-free contrib

软件

  • apt-get install screen zsh git

  • oh my zsh

    • via curl
      sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)";

    • via wget
      sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

    • 插件:

nano ~/.zshrc
plugins=(
  git
  bundler
  dotenv
  osx
  rake
  rbenv
  ruby
)

标签: none

添加新评论