简体   繁体   中英

VM player win7 setting up proxy for ubuntu

我正在使用最新的VM Player,并使用win7 x64作为主机OS,并在VMplayer上安装了ubuntu作为来宾OS,但是问题是在win7中已经在使用代理并且能够访问Internet,但不确定什么设置为了能够在ubuntu中访问互联网,我知道代理名称,用户名和密码,但不确定将这些信息放在何处,请提供任何清晰的指南。

Here is how to set up a Ubuntu desktop (GUI) to use a proxy server:

How to Configure Ubuntu Desktop to use your proxy server

If you are looking to set proxy settings on a Ubuntu Server edition VM, you can enable it in a couple places for customized functionality:

Just Aptitude

gksudo nano /etc/apt/apt.conf:
Acquire::http::Proxy "http://yourproxyaddress:proxyport";

BASH rc method

This method adds a two lines to your .bashrc file in your $HOME directory. This method is useful if you would like apt-get and other applications for instance wget, to use a http-proxy.

gksudo nano ~/.bashrc

Add these lines to the bottom of your ~/.bashrc file (substitute your details for yourproxyaddress and proxyport)

http_proxy=http://yourproxyaddress:proxyport
export http_proxy

Save the file. Close your terminal window and then open another terminal window or source the ~/.bashrc file:

source ~/.bashrc

Test your proxy with sudo apt-get update and whatever networking tool you desire. You can use firestarter or conky to see active connections.

If you make a mistake and go back to edit the file again, you can close the terminal and reopen it or you can source ~/.bashrc as shown above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM