Difference between revisions of "Setting up internet access"

From Raspberry Pi Min-Grant project
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
<code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Acquire::http::Proxy "[http://username:password@proxy_address:port http://username:password@proxy_address:port]";</code>
 
<code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Acquire::http::Proxy "[http://username:password@proxy_address:port http://username:password@proxy_address:port]";</code>
  
<code>&nbsp;&nbsp;At DeKUT we type</code>
+
&nbsp;&nbsp;At DeKUT we type
  
<code>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</code><span style="font-family: monospace;">&nbsp;Acquire::http::Proxy "http://192.168.96.1:8080";</span><code>&nbsp;&nbsp;</code>
+
<code>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</code><span style="font-family: monospace;">&nbsp;Acquire::http::Proxy "[http://192.168.96.1:8080 http://192.168.96.1:8080]";</span><code>&nbsp;&nbsp;</code>
 
 
<code></code>
 
 
 
<code></code>
 
  
 
&nbsp;&nbsp;3. Save the file and exit- Type Ctrl-X and type Y when asked whether to save changes
 
&nbsp;&nbsp;3. Save the file and exit- Type Ctrl-X and type Y when asked whether to save changes
Line 25: Line 21:
 
&nbsp; 4. In the terminal type <span style="font-family:courier new,courier,monospace;">sudo apt-get update&nbsp;</span>
 
&nbsp; 4. In the terminal type <span style="font-family:courier new,courier,monospace;">sudo apt-get update&nbsp;</span>
  
<span style="font-family:courier new,courier,monospace;"></span>You should now have access to the internet
+
You should now have access to the internet
 
 
<span style="font-family:courier new,courier,monospace;"></span>
 

Latest revision as of 11:09, 29 April 2015

Setting up internet proxy

If you need to access the internet via a proxy as is the case in several universities we must follow the following steps 

  1. In the directory /etc/apt/apt.conf.d/  create the file10proxy

         cd /etc/apt/apt.conf.d/

         sudo nano 10proxy

  2. In this file add the line 

         Acquire::http::Proxy "http://username:password@proxy_address:port";

  At DeKUT we type

          Acquire::http::Proxy "http://192.168.96.1:8080";  

  3. Save the file and exit- Type Ctrl-X and type Y when asked whether to save changes

  4. In the terminal type sudo apt-get update 

You should now have access to the internet