首页 > 其他 > 详细

配置Odroid ubunutu 静态IP 并让PC 使用Ccproxy 做代理上网

时间:2015-07-02 15:19:22      阅读:531      评论:0      收藏:0      [点我收藏+]

1.配置Odroid板卡

vi /etc/network/interfaces  配置静态IP 

#source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 192.168.1.11
gateway 192.168.1.0
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

2.在PC启动ccproxy ,将PC ip设置为192.168.1.10  ,ccproxy 代理端口默认为808

3. 在Odroid板卡上设置代理

export http_proxy=192.168.1.10:808

export https_proxy=192.168.1.10:808

通用代理测试 wget www.baidu.com 

配置 apt 代理

vi  /etc/apt/apt.conf
Acquire::http::Proxy "http://192.168.1.10:808";

测试 apt-get update

4. sudo 命令默认忽略系统代理环境变量 ,可以 加参数-E 

sudo -E rosdep init 

 

配置Odroid ubunutu 静态IP 并让PC 使用Ccproxy 做代理上网

原文:http://www.cnblogs.com/fastwave2004/p/4615930.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!