CLEO Thread, Raspberry Pi connecting to Proxy server in Regional Broadband Consortiums (RBC); Hello all,
Has anyone been able to connect to their Raspberry Pi's to the Network so that the 'sudo apt-get ...
7th May 2013, 04:24 PM #1
Raspberry Pi connecting to Proxy server
Has anyone been able to connect to their Raspberry Pi's to the Network so that the 'sudo apt-get update' command works?
I have followed some advice found online which enables me to point the Raspberry Pi to the Cache box and it appears to work, however when I run the update I get about 6% through before it fails citing that it cannot connect to the mirror sites.
Is it a case that the address is being blocked by CLEO or have I missed something? Has anyone managed to connect the Raspberry Pi, who is still receiving their Internet connection through CLEO?
7th May 2013, 04:40 PM #2
Have you created /etc/apt/apt.conf to contain the line
(change as appropriate)?
Acquire::http::Proxy "http://proxy url:port";
Last edited by mats; 7th May 2013 at 04:41 PM.
Thanks to mats from:
tudorcrisp (8th May 2013)
8th May 2013, 12:51 PM #3
I created a file in the following location
which contains the above piece of code. Should this be in another file?
8th May 2013, 12:56 PM #4
I used the following forum post to get it working for me Raspberry Pi • View topic - Connect Raspi to a Proxy, you have to add the proxy details to two locations, the file you have already created and the /etc/environment file.
Thanks to HilcrRWise from:
tudorcrisp (14th May 2013)
14th May 2013, 04:32 PM #5
I have configured the two files and still no joy. I found another thread that told me to put this command into the terminal prompt and this works
sudo apt-get -o Acquire::http:roxy="http://proxyurlort" update
I guess I just need to find the right file to input the Acquire command
14th May 2013, 05:17 PM #6
Did you include a slash (/) at the end of the proxy url, after the port number, before the last ". If I remember correctly it wouldn't work for me until I added the slash at the end.
14th May 2013, 05:22 PM #7
We did something that allows the kids to log-in with their username and connect to the proxy using their credentials
Alter the /home/pi/.profile so that when the Pi starts up, the pupil 'logs in' (not really, but it looks like it's logging in) and their user and password is set via export, then fires up the GUI with startx.
See if this is of help.
The additional code is shown in red text.
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
echo "Please enter your school username: "
echo "Please enter your password: "
read -s password
Last edited by jinnantonnixx; 14th May 2013 at 05:44 PM.
By Divaldo in forum Raspberry Pi, Arduino & Other SBCs
Last Post: 5th October 2012, 10:54 AM
By tmcd0035 in forum Wired Networks
Last Post: 2nd February 2012, 01:14 PM
By nawbus in forum Network and Classroom Management
Last Post: 11th July 2008, 01:48 PM
Last Post: 27th February 2008, 02:42 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)