Networking :: Using DSL Behind Proxy Server



I just installed DSL to the hard-disk, and got my LAN card to work. I am on a college LAN, through which I am connected to the internet. In Windows, we use "172.24.2.1" as the proxy server with port 8080. I used the same setting with success in Firefox. However, if I try to Enable Apt, or install Synaptic, I get the following errors.

Code Sample

Grabbing the compressed dpkg database and programs...
wget: server returned error 504: HTTP/1.0 504 Gateway Time-out
Connecting to 172.24.2.1 [172.24.2.1]:8080
wget: server returned error 504: HTTP/1.0 504 Gateway Time-out
Download error!
Press Enter to continue...


This is after I followed the advice given in the following topic:
http://www.damnsmalllinux.org/wiki...._Server

The contents of my /<user>/.bash_profile file are as follows:

Code Sample
#!/bin/bash
export IRCNICK=DSL
export http_proxy='http://172.24.2.1:8080'
export ftp_proxy='http://172.24.2.1:8080'

SSH=`env | grep SSH_CONNECTION`
RUNLEVEL=`runlevel|cut -f2 -d' '`
if [ -z "$SSH" ]; then
  if [ $RUNLEVEL -eq 5 ]; then
      startx
  fi
fi



Due to this, I am unable to install anything, as my version of DSL does not come equipped with a C compiler, owing to which I cannot use ./configure to install external .deb packages.
Please help... :(

1. use mydsl - its much easier.

2. If you want to continue to try using apt, I believe you need to change your apt repositories (sources.list)

Try also with a / on the end

eg. http_proxy="http://172.24.2.1:8080/"

This does not seem to be working.

1 - Tried all reasonable permutations of the syntax
2 - The same proxy works when defined in FireFox
3 - The mirror is accessible fine from a Win desktop

Did anyone manage to set this up? Care to share a real-world example? Does it expect username/password (our proxy doesn't need it) and in that case what to enter for such a proxy?

Thanks.

Did you relogin/restart after you edited that file?

You could also try something like...
Code Sample
sudo su
export http_proxy="http://172.24.2.1:8080"
apt-get update

Next Page...
original here.