LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware laptop in school (http://www.linuxquestions.org/questions/slackware-14/slackware-laptop-in-school-4175426710/)

marbangens 09-11-2012 11:15 AM

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...;)

kikinovak 09-11-2012 11:46 AM

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.

mrclisdue 09-11-2012 11:51 AM

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,

marbangens 09-11-2012 12:53 PM

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.

T3slider 09-11-2012 01:05 PM

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).

marbangens 09-11-2012 01:15 PM

T3slider
How can I see sites IP addresses? will ping do?

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

thanks again!

marbangens 09-11-2012 01:20 PM

Quote:

Originally Posted by T3slider (Post 4777834)
What happens if you specify 192.168.52.242:8080 as the proxy in Firefox?.

I will try that tomorrow.

T3slider 09-11-2012 01:26 PM

Quote:

Originally Posted by marbangens (Post 4777839)
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).

turtleli 09-11-2012 01:31 PM

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.

kikinovak 09-11-2012 02:04 PM

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.

marbangens 09-11-2012 02:58 PM

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!:)

ReaperX7 09-11-2012 09:17 PM

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.

kite 09-11-2012 09:33 PM

Perhaps chrome browser has better pac configuration file support, please test it if necessary.

kikinovak 09-12-2012 01:33 AM

Quote:

Originally Posted by marbangens (Post 4777887)
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.

marbangens 09-12-2012 02:01 AM

Quote:

Originally Posted by kikinovak (Post 4778163)
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...


All times are GMT -5. The time now is 11:53 PM.