LinuxQuestions.org
Review your favorite Linux distribution.
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-11-2012, 11:15 AM   #1
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Rep: Reputation: Disabled
Slackware laptop in school


Slackware tend to be an amazing, true and powerful GNU/Linux.
For many new Linux users it seems hard. The problems and the bugs
crawling makes some users scared. They often give up. Migrate to something
less powerful but more "working out off the box". And if they have a problem
with such system there exist east 2 to 5 mouse clicks fixes.
All very much sported vendors backing the dirty work up for them.
I don't give up so easy because I like my freedom, that pays time and not dollars.

In this school I'm in none knows about Linux. They have about 70 xp computers and a wireless connection for people with laptops. Including me "almost". One of the system admin got his as down to the school to help me set up my computer. They blame my Linux system for not support there windows proxy scrip. And I blame them for not supporting my freedom.

I'm now using my computer for writhing text and get one of there's for browsing the web. They have a weary little knowledge about computers. They are supported by a company that have there server some place far. One of my teacher says the firewall is up for blocking people from downloading virus and pissy software. Ironicly I can connect to ftp:// from my and there computers. and access https. But not browse the web on my own computer.

The admin could not help me... he didn't know Linux. They said I have to use IE for there proxy scrip.

this is the proxy scrip



function FindProxyForURL(url, host)
{

var myip=myIpAddress();
var ipbits=myip.split(".");
var myseg=parseInt(ipbits[3]);

if (!isResolvable(host))
return "PROXY 192.168.52.240:8080; PROXY 192.168.52.242:8080";

if (isPlainHostName (host) ||
dnsDomainIs(host, ".lernia.se") ||
isInNet(host, "10.0.0.0", "255.0.0.0") ||
isInNet(host, "172.16.0.0", "255.240.0.0") ||
isInNet(host, "192.168.0.0", "255.255.0.0") ||
isInNet(host, "81.8.136.113", "255.255.255.255") ||
isInNet(host, "94.254.123.15", "255.255.255.255") ||
isInNet(host, "81.92.67.52", "255.255.255.255") ||
isInNet(host, "81.92.67.53", "255.255.255.255") ||
isInNet(host, "81.92.67.54", "255.255.255.255") ||
isInNet(host, "81.92.67.55", "255.255.255.255") ||
isInNet(host, "81.92.67.56", "255.255.255.255") ||
isInNet(host, "81.92.67.57", "255.255.255.255") ||
isInNet(host, "81.92.68.6", "255.255.255.255") ||
isInNet(host, "81.92.68.7", "255.255.255.255") ||
isInNet(host, "127.0.0.1", "255.255.255.255") ||
isInNet(host, "160.8.0.0", "255.255.0.0"))
return "DIRECT";

if (isInNet(myIpAddress(), "10.224.0.0", "255.255.0.0") ||
isInNet(myIpAddress(), "10.226.0.0", "255.255.0.0") ||
isInNet(myIpAddress(), "10.228.0.0", "255.255.0.0") ||
isInNet(myIpAddress(), "10.234.0.0", "255.255.0.0") ||
isInNet(myIpAddress(), "10.236.0.0", "255.255.0.0") ||
isInNet(myIpAddress(), "10.238.0.0", "255.255.0.0"))
{


if(myseg==Math.floor(myseg/2)*2)

return "PROXY 192.168.52.240:8080; PROXY 192.168.52.242:8080";
else
return "PROXY 192.168.52.242:8080; PROXY 192.168.52.240:8080";

}
return "DIRECT";
}

can I modify this in some way or use an application to solve this?
don't say IE...
 
Old 09-11-2012, 11:46 AM   #2
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,946

Rep: Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968
Well, if you use Firefox and/or Seamonkey - or just about any modern web browser, for the matter - there should be no problem to define the use of a proxy for it.

Here's a little step-by-step mini-HOWTO for setting up a proxy manually with Firefox:

http://uniqueinternetservices.com/co...r-firefox.html

Now go and tell your obviously incompetent Windows-only admin that there's other OSes in the world. And point him to Squid, iptables and some documentation about setting up an OS-agnostic transparent proxy.
 
1 members found this post helpful.
Old 09-11-2012, 11:51 AM   #3
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
So, can we assume that you've loaded this pac into firefox, and it's failed?

It's been a few years since I've messed with proxy scripts, but a cursory glance, plus the fact that it *works* in windows, leads me to believe that the pac should work.

That being said, this tool:
code.google.com/p/pacparser/
will parse the pac and includes a tool to test it on your network.

Also, it's not necessarily my role to warn you, but your query may possibly be interpreted as violating lq rules regarding circumventing networks, etc., so I'm taking your word that you have the cooperation of an admin.

cheers,
 
1 members found this post helpful.
Old 09-11-2012, 12:53 PM   #4
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Original Poster
Rep: Reputation: Disabled
Thank you for the information. Yes the console output some text-encoding problem if I open the PAC file in Firefox. And I can't access http even when the scrip is loaded in firefox. my class mate have windows on his laptop and could only use skype until he set up the proxy from the same scrip in IE. No I'm not trying to bypass the firewall, network filter. And the schools admin tried to help me solve this but he didn't expected Linux.

well kikinovak I would like to. He sad that he have friends that are GNU/Linux geeks and that hi is amazed about it.

I tried to show you the error code. Firefox console printed but it was gone or maybe I deleted it.

Last edited by marbangens; 09-11-2012 at 12:55 PM.
 
Old 09-11-2012, 01:05 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,297

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
What happens if you specify 192.168.52.242:8080 as the proxy in Firefox? It will omit some exception rules, so certain URLs/hostnames that should be contacted directly will be unreachable, but I would think the majority of the web should work in the meantime while you sort it out. There may be some DNS issues as well (not sure) so it may benefit you to place a few well-known sites with their IPs in /etc/hosts as a test to ignore DNS entirely for those few sites (note: this is only a test and would only be beneficial if DNS fails with the proxy specified explicitly).

Last edited by T3slider; 09-11-2012 at 01:07 PM.
 
Old 09-11-2012, 01:15 PM   #6
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Original Poster
Rep: Reputation: Disabled
T3slider
How can I see sites IP addresses? will ping do?

IP addresses don't just change from day to day?

thanks again!

Last edited by marbangens; 09-11-2012 at 01:17 PM.
 
Old 09-11-2012, 01:20 PM   #7
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by T3slider View Post
What happens if you specify 192.168.52.242:8080 as the proxy in Firefox?.
I will try that tomorrow.
 
Old 09-11-2012, 01:26 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,297

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
Quote:
Originally Posted by marbangens View Post
T3slider
How can I see sites IP addresses? will ping do?

IP addresses don't just change from day to day?

thanks again!
Some websites have a pool of IPs but usually individual IPs stick around for a while. `nslookup linuxquestions.org` would give you LQ's IP (the bottom IP, directly under Name:; the top IP(s) are the DNS servers used in the query).
 
Old 09-11-2012, 01:31 PM   #9
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware, Slackware 64, Slackware ARM, Gentoo, Fedora
Posts: 160

Rep: Reputation: Disabled
If you are using Firefox then it may be related to this bug which affects Firefox on Linux systems: https://bugzilla.mozilla.org/show_bug.cgi?id=347307. It definitely is a good idea to see whether the manual proxy approach works.
 
Old 09-11-2012, 02:04 PM   #10
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,946

Rep: Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968
Let me state it bluntly. If your admin knew his job, he wouldn't force you to jump through burning loops just to be able to connect to the Internet.
 
Old 09-11-2012, 02:58 PM   #11
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Original Poster
Rep: Reputation: Disabled
well there exist many system administrators that only know the software that the organization use.
my school is a low budget school that barely have enough theaters so I don't blame them.

tomorrow I will try all this tips.
now I'm gonna install slackware on my supper computer and turn it into a multimedia production system.
cool!
 
Old 09-11-2012, 09:17 PM   #12
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,825
Blog Entries: 15

Rep: Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184
Any network/system administrator that hasn't had at least minimal Linux training shouldn't even be allowed to be a network/system administrator, period. Even if the school is a low-budget one, that's no excuse for hiring unqualified or under-qualified personnel.
 
Old 09-11-2012, 09:33 PM   #13
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 301

Rep: Reputation: 47
Perhaps chrome browser has better pac configuration file support, please test it if necessary.
 
Old 09-12-2012, 01:33 AM   #14
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,946

Rep: Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968
Quote:
Originally Posted by marbangens View Post
well there exist many system administrators that only know the software that the organization use.
my school is a low budget school that barely have enough theaters so I don't blame them.
Low budget is OK. The school where I'm a sysadmin is low budget, so they chose to go 100 % Linux (no licenses, much less maintenance). Low competence is not OK.
 
Old 09-12-2012, 02:01 AM   #15
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
Low budget is OK. The school where I'm a sysadmin is low budget, so they chose to go 100 % Linux (no licenses, much less maintenance). Low competence is not OK.
agree, but what to do...
 
  


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 01:51 AM
LXer: Charity laptop in Rwandan school LXer Syndicated Linux News 0 10-02-2009 08:00 AM
dsl on old school compaq 1220 laptop cjae DamnSmallLinux 5 04-12-2006 06:03 AM
Old school laptop with wireless, which distro? chri5 Linux - Newbie 5 12-01-2005 06:23 PM
Laptop with knoppix to school network? arkamir Linux - Networking 4 01-08-2004 03:34 PM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
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