Ubuntu如何配置dnsmasq

ubuntu版本: 12.04

安装

sudo apt-get install dnsmasq

配置

修改配置文件

listen-address=127.0.0.1,10.xxx.xxx.xxx
bind-interfaces

修改/etc/hosts

10.xxx.xxx.xxx      myself             dns.folowing.com
10.yyy.yyy.yyy      prd01              prd01.folowing.com
10.zzz.zzz.zzz      prd02              prd02.folowing.com
......

修改/etc/openvpn ...

more ...

搭建自己的Pip镜像

服务器端

操作系统: ubuntu 12.04

运行以下命令

sudo pip install pip2pi
mkdir /home/pypi
cd /home/pypi
mkdir packages
vi requirement.txt # 添加你需要更新的包
pip2tgz packages/ -r requirements.txt
dir2pi packages/

修改 nginx conf

server {
    listen       80;
    server_name  pypi.folowing.com;

    location / {
        root   /home/pypi/packages;
    }
}

客户端

编辑: .pip/pip.conf

[global ...
more ...