Jump to content

Recommended Posts

Posted

Hey Guys,

 

Do any of you know the exact steps in order to make a Raspberry Pi running raspbian use a proxy server. I have created a file in /etc/apt/apt.conf.d called 10proxy and did the instructions I found on here though the internet browser still shows up our SSL page (which it shouldn't if going through that proxy) I should also mention that the proxy I'm pointing it to has no authentication method.

 

Thanks :)

Posted

The apt.conf.d folder contains configuration settings for apt (the package manager). So what you've actually done is configured apt to use the proxy.

 

To set the environment proxy (which the browser uses), run this in a terminal (you can also add it to /home/pi/.bashrc to have it run every time the machine starts):

 

export http_proxy="http://domain\username:password@proxyip:port/"

 

PS - if you're going to make it in this game, you really need to work on your Google-fu :p

  • Thanks 1
  • 3 weeks later...
Posted

I'm just going to jump onto this thread as one of you two might know to save me making another thread, I have just got to Raspberry Pi's to run the two screens in the school, and I have got the proxy on them after much googling, but I can't seem for the life of me figure out how to get something else to work, I have enabled ssh on the Raspberry and I can putty to it, but I have no idea what the command line is to open a powerpoint show up on the raspberry pi, not the putty window (I have got libreoffice installed so it will run).

 

Do either of you know?

Thanks

  • 1 month later...
Posted (edited)

I have set up some Ubuntu laptops here at my school and getting them to work properly with the Proxy server was a huge pain! Here are my notes I made at the time, they might help you out:

 

[b]Proxy[/b]
Proxy settings in Linux are complex and frustrating to say the least!

System-wide proxies in CLI Ubuntu/Server must be set as environment variables.

Open the /etc/environment file with vi (or your favorite editor). This file stores the system-wide variables initialized upon boot.
Add the following lines, modifying appropriately. You must duplicate in both upper-case and lower-case because (unfortunately) some programs only look for one or the other:

http_proxy="http://myproxy.server.com:8080/"
https_proxy="http://myproxy.server.com:8080/"
ftp_proxy="http://myproxy.server.com:8080/"
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
HTTP_PROXY="http://myproxy.server.com:8080/"
HTTPS_PROXY="http://myproxy.server.com:8080/"
FTP_PROXY="http://myproxy.server.com:8080/"
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"

apt-get, aptitude, etc. will not obey the environment variables when used normally with sudo. So separately configure them; create a file called 95proxies in /etc/apt/apt.conf.d/, and include the following:

Acquire::http::proxy "http://myproxy.server.com:8080/";
Acquire::ftp::proxy "ftp://myproxy.server.com:8080/";
Acquire::https::proxy "https://myproxy.server.com:8080/";

Next we need to edit the /etc/nsswitch.conf file. Alter the line that begins with “hosts:” so that the entry “dns” appears on the line BEFORE the “[NOTFOUND=return]” entry.
Finally, logout and reboot to make sure the changes take effect.

Edited by MrBrownPr
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...