- Edit the proxy server in /etc/bash.bashrc
rzfwch:~$ gedit/etc/bash.bashrc &
# edit the proxy servicer
# This function allows you toset up the http and ftp proxies in a terminal window for
# performing "wget",etc. Type proxy at the command line and enter the correct
# id/pw.
functionproxy(){
echo-n "username: "
read-e username
echo-n "password: "
read-es password
exporthttps_proxy="https://$username:[email protected]:8080/"
exporthttp_proxy="http://$username:[email protected]:8080/"
exportftp_proxy="http://$username:[email protected]:8080/"
echo""
}
- How to use In shell
rzfwch:~$proxy # enter proxy and press return
username:rzfwch # enter your netid
password:xxxx # enter your password
Install software using apt-get
rzfwch:~$ sudo -s #enter root mode
root:~#proxy
username: rzfwch
password: xxxx
# Using apt-get to installpackage
apt-get update
apt-get install xxxx
...