LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-12-2012, 04:25 AM   #16
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Original Poster
Rep: Reputation: Disabled

I'm sitting here in school on my slackware laptop.
I followed T3slider and in 5 min all was working.
Amazing support you all gave me so fast.
This I will do next time I have a big problem.
I added some DNS servers into the /etc/hosts and
setup the proxy without the script. I tried that before without
the DNS servers in the /etc/hosts and i didn't worked.
but now I have learned something I can tell the schools admin...
hahahah!

Last edited by marbangens; 09-12-2012 at 04:27 AM.
 
Old 09-12-2012, 10:19 AM   #17
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,760

Rep: Reputation: 853Reputation: 853Reputation: 853Reputation: 853Reputation: 853Reputation: 853Reputation: 853
Quote:
Originally Posted by marbangens View Post
I'm sitting here in school on my slackware laptop.
I followed T3slider and in 5 min all was working.
Amazing support you all gave me so fast.
This I will do next time I have a big problem.
I added some DNS servers into the /etc/hosts and
setup the proxy without the script. I tried that before without
the DNS servers in the /etc/hosts and i didn't worked.
but now I have learned something I can tell the schools admin...
hahahah!
Just don't forget that this is a very ugly workaround. It is just wrong for users to have to worry about DNS and proxy. In our school, folks just use one of the available desktop clients (running Slackware ) or their own laptop (running Windows XP/Vista/Seven, Mac OS X, Ubuntu Linux), eventually connect to the wireless access point and use the (filtered) Internet. Zero hassle for them.
 
Old 09-12-2012, 05:30 PM   #18
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Hi,

I use to set http- and ftp-proxy as invironment-variables when I'm at work.
Provided the proxyserver has IP-adress 192.168.52.240 on port 8080, you could execute the following commands
Code:
export http_proxy=192.168.52.240:8080
export ftp_proxy=192.168.52.240:8080
and configure firefox to recognize the systems-network-settings.
I'll upload an attachement to this posting, there you can see the settings for firefox. It should also work if you put the url of the pac-script into the "Automatic proxy configuration URL".

The advantage of using http_proxy and ftp_proxy as environment-variables is that this also works with wget (for example).

Markus
Attached Images
File Type: jpg proxysettings.jpg (96.0 KB, 30 views)
 
3 members found this post helpful.
Old 09-13-2012, 11:41 AM   #19
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I want to add an explanation referring to Windows. Today I've read our proxy.pac script at work.

When you configure the networksettings on a Windows-computer in the ie (Internet-Explorer), you configure the systems networksettings, they are the same. The ie-settings represent the system-wide settings. This means that particularly other programs on a Windows-computer (for example Flashplayer when updating) use the same networksettings and "know" the correct proxysettings.

The proxy.pac script is simply javascript and should work in any browser, even on a Linux-computer!

The difference between Linux and Windows referring to these settings is that on Linux there is no ie (or other browser) which represents the systemwide proxysettings.

I don't know how this issue is solved in networks where there are Linux and Windows-computers (I use environment-variables as I wrote above). It should be possible, to write a shellscript which does the same as the proxy.pac script, namely find out the IP-adress and configure the correct proxy-settings for that network. Otherwise because the computer is always in the same network, it should be easier to configure it once manually.

If anyone has more information on this topic, I would like to read about that.

Markus
 
Old 09-13-2012, 12:47 PM   #20
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,276

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Quote:
Originally Posted by markush View Post
I don't know how this issue is solved in networks where there are Linux and Windows-computers
It is solved by not using PACs in the first place and instead using a transparent squid proxy or something similar. It may just be a bug in Firefox that is improperly applying (or not applying) the PAC but that would be for the OP to determine. It is acceptable (though poor practice) to require client-side configuration for network access when every machine is managed by the sysadmin, but if people are allowed to use their own machines on the network then mandatory client-side configuration is a very poor choice indeed. Of course, it isn't likely that the OP's school will suddenly change their infrastructure so the point is moot.
 
Old 09-14-2012, 09:22 AM   #21
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Original Poster
Rep: Reputation: Disabled
The school uses old vision of java and IE 7 still... I use the latest java and slackware current firefox 15.0.1 . I tried chromium but it didn't work either.
so maybe some bug in between firefox and java caused java not to run the script.

Last edited by marbangens; 09-14-2012 at 09:23 AM.
 
  


Reply

Tags
proxy, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: One hour with the XO laptop in a Nepali school LXer Syndicated Linux News 0 11-13-2009 12:51 AM
LXer: Charity laptop in Rwandan school LXer Syndicated Linux News 0 10-02-2009 07:00 AM
dsl on old school compaq 1220 laptop cjae DamnSmallLinux 5 04-12-2006 05:03 AM
Old school laptop with wireless, which distro? chri5 Linux - Newbie 5 12-01-2005 05:23 PM
Laptop with knoppix to school network? arkamir Linux - Networking 4 01-08-2004 02:34 PM


All times are GMT -5. The time now is 09:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration