参考: centos7安装优化

关闭防火墙

ufw disable

pip换源

yum install python-pip -y
mkdir ~/.pip
cat > pip.conf<<a
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/ [install]
trusted-host=mirrors.aliyun.com
a

拷贝python环境

virtualenv -p /user/bin/python --no-site-packages python2

Ubuntu16的源

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main 装其他软件:
apt-get install tree dos2unix sysstat lrzsz vim -y

  

退格键问题

stty erase "^H" #加入到/etc/profile里即可.
参考: http://www.cnblogs.com/fzzl/archive/2013/03/07/2947759.html

1,换源

http://wiki.ubuntu.org.cn/源列表#Utopic.2814.10.29.E7.89.88.E6.9C.AC
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
换完源后执行:sudo apt-get update cp /etc/apt/sources.list /etc/apt/sources.list_backup
gedit /etc/apt/sources.list
14.04
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

2,装vim及优化

apt-get install vim-gtk
在命令行下,输入命令:sudo vim /etc/vim/vimrc 请在您的VIM的最后一行,输入他们,可以让您的VIM变得更漂亮、舒服。
set nu // 在左侧行号
set tabstop=4 //tab 长度设置为 4
set nobackup //覆盖文件时不备份
set cursorline //突出显示当前行
set ruler //在右下角显示光标位置的状态行
set autoindent //自动缩进
set vb t_vb= //关闭vim tab声音 #######################################2016.0.13更新###################################
set nu
set cursorline
set nobackup
set ruler
set autoindent
set vb t_vb=
set ts=4
set expandtab
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}
set laststatus=2 ###########################################################################################

3,修改主机名

hostnamectl 搞定
/etc/hosts
127.0.0.1 localhost
127.0.1.1 v-jiwan-ubuntu

4,安装SSH需要允许root登录

apt-get install openssh-server

最新文章

  1. [UWP] 使用SemanticZoom控件
  2. bzoj 2005
  3. [CareerCup] 4.2 Route between Two Nodes in Directed Graph 有向图中两点的路径
  4. 在T-SQL中访问远程数据库(openrowset、opendatasource、openquery)
  5. Spring Data JPA教程, 第四部分: JPA Criteria Queries(未翻译)
  6. C#中显/隐式实现接口及其访问方法
  7. Qt之显示网络图片(可以改成升级模块)
  8. [Effective C++ --005]了解C++默默编写并调用哪些函数
  9. java 中hashcode和equals 总结
  10. NTP工作机制及时间同步的方法
  11. Bye,IE!服务互联网20年IE终于要退役了
  12. Activiti 6.0 之SkipExpression
  13. 《精通android网络开发》--HTTP数据通信
  14. ubuntu安装 tar.gz格式程序
  15. Zephyr的Time、Timer、sleep
  16. SLAM学习资料汇总
  17. div展现与收起效果(鼠标移入移出)
  18. kbmMW TkbmMWHashSHA256与Delphi 10.2 THashSHA2算出相同的结果
  19. Ansible组件之inventory主机清单
  20. 使用80percent开发rails程序:gem的了解。(kaminari)

热门文章

  1. linux下apache的使用
  2. cybergarage-upnp
  3. Spark1.0.0 生态圈一览
  4. 算法笔记_001:斐波那契数的多种解法(Java)
  5. TOD&amp;FIXME&amp;XXX
  6. js setTimeout 传递带参数的函数的2种方式
  7. Java编程思想(十五) —— 类型信息之反射
  8. python之模块csv之CSV文件一次写入多行
  9. Java菜鸟入坑学习要点
  10. Oracle LISTENER 主机名修改为IP地址后LISTENER无法监听到实例 oracle监听错误与hosts文件配置