#Centos
visudo运行普通用户$(whomai)执行sudo操作
http://www.cnblogs.com/xianyunhe/archive/2011/08/08/2124342.html
在/etc/gdm/custom.conf文件中添加以下内容
[daemon]
AutomaticLogin=username
AutomaticLoginEnable=True
#virtualbox Guest Host目录共享
sudo usermod -a -G vboxsf $(whomai)
#yum源镜像
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存
#docker的安装
http://git.oschina.net/wushifeng/hivedocker/blob/master/ready.sh
#!/usr/bin/env bash
#1 centos上安装docker
if [ -f /usr/bin/docker ]; then
echo ‘docker installed‘
else
sudo yum install docker.x86_64
docker -h
sudo systemctl enable docker.service
fi
#2 docker的仓库镜像的国内站点
https://www.daocloud.io/mirror#accelerator-doc
http://guide.daocloud.io/dcs/daocloud-9153151.html
#https://yq.aliyun.com/articles/29941
#Docker 镜像加速器
#docker version <=1.10
:<<EOF
sudo cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.service
sudo sed -i "s|ExecStart=/usr/bin/docker daemon|ExecStart=/usr/bin/docker daemon --registry-mirror=<your accelerate address>|g" /etc/systemd/system/docker.service
sudo systemctl daemon-reload
sudo service docker restart
EOF
#docker version >1.10
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-‘EOF‘
{
"registry-mirrors": ["https://2mt5bmc8.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
#3 普通用户使用dcoker
#普通的用户直接使用docker命令运行 [设置完成后,注销用户重新登陆]
sudo groupadd docker
sudo gpasswd -a $(whomai) docker
sudo systemctl restart docker
#maven
http://www.cnblogs.com/ae6623/p/4416256.html ~/.m2/settings.xml
阿里云的镜像
#nodejs
https://npm.taobao.org/
https://cnpmjs.org/