看了几篇精华,还有几点不明白
在下面的步骤之前,我的电脑要通过代理上网,怎样在没有桌面的情况下设置啊?2.更新apt sourcelist:
将如下几行加到/etc/apt/source.list中:
代码:
deb http://ftp.jp.debian.org/debian/ unstable main non-free contrib #日本的apt server,更新较快,速度可以
deb http://marillat.free.fr/ unstable main #mplayer在此服务器上
然后执行apt-get update来更新apt-cache.
在下面的步骤之前,我的电脑要通过代理上网,怎样在没有桌面的情况下设置啊?
export http_proxy=" http://user:pass@server:port"
apt-get update
apt-get install xxxx
多谢了,linux的详细的环境变量在哪里找啊? set
在下面的步骤之前,我的电脑要通过代理上网,怎样在没有桌面的情况下设置啊?
export http_proxy=" http://user:pass@server:port"
apt-get update
apt-get install xxxx
好像不行,我的代理服务器是100.100.100.52:808,不用密码
我用
export http_proxy="http:// : @100.100.100.52:808"
然后
apt-get update
显示
fail to fetch http://ftp.jp.debian.org........
Temporary failureresolving ":@192.168.96.1" 我用的是VMWare,里面Hiweed的网址是192.168.96.2,用的是NAT
原来的机在网内是100.100.100.52,有一个虚拟机的网卡是192.168.96.1
我用Hiweed Ping 192.168.96.1能够Ping到,Ping 100.100.100.52不能够Ping到
CCproxy代理的端口是808,不用密码,没有IP限制
我在Hiweed用
export http_proxy="http:// : @192.168.96.1:808"
然后
apt-get update
不行
后来,根据网上的信息,生成一个
/etc/apt/apt.conf
Acquire
{
http
{
Proxy "http://192.168.96.1:808";
};
ftp
{
Proxy "ftp://192.168.96.1:808";
};
}
还是不行.
还有我除了192.168.96.1 以外什么都Ping不到,例如:100.100.100.52,更不要说其他了,是不是跟Gateway 有关?
还有我除了192.168.96.1 以外什么都Ping不到,例如:100.100.100.52,更不要说其他了,是不是跟Gateway 有关?
看看你vmware的网络配置, 用NAT是对的, 照道理是这样就可以通过192.168.96.1上网的, 关一下你win下的防火墙再看看, 也可以试一下用你的firefox上上网看一下, 在内网的话有时候ping是没有反映的,表现就是ping一个ip地址没有time request out, 但是也没有任何其他的东西.
export http_proxy="http:// : @192.168.96.1:808"
没有用户名的话应该是
export http_proxy="http://192.168.96.1:808" export http_proxy="http:// : @192.168.96.1:808"
??????????????????????????????????????????????
这个可以正常工作?
export http_proxy="http://用户名:密码 @192.168.96.1:808" 多谢指教。
我没有窗口管理器,只能用控制台命令,怎样试啊?
export http_proxy="http://用户名:密码 @192.168.96.1:808"
晕这不就是 好像不用引号也行。
页:
[1]