View previous topic :: View next topic |
Author |
Message |
MeatHead n00b
Joined: 07 Mar 2003 Posts: 31
|
Posted: Fri Mar 07, 2003 4:16 am Post subject: Help executing a .jar file |
|
|
I have a .jar file that I can execute as root but when I'm logged into my normal user account I get this;
~# java -jar my.jar
~# java.net.BindException: Permission denied
Evidently I need to set permissions somewhere, but where and how? |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Mar 07, 2003 4:29 am Post subject: |
|
|
What is the jar file? My guess is that it is a server trying to bind to a port <1024. You have to be root to do that. AFIK that is normal unix security and shouldn't be bypassed. I don't even know if you can bypass that. |
|
Back to top |
|
|
MeatHead n00b
Joined: 07 Mar 2003 Posts: 31
|
Posted: Fri Mar 07, 2003 4:55 am Post subject: |
|
|
You're right. Its a server that listens on port 80. It will only accept connections from localhost though. 127.0.0.1
I'm using it in conjunction with /etc/hosts. The sole purpose of the server is to accept the connection from my browser whenever /etc/hosts tells it to and serve a small .gif image to the browser. This keeps the browser from hanging until it times out waiting on a connection that doesn't exist. The purpose then is to speed up web browsing.
I'm using the hosts file to block advertising servers and such while web browsing.
The .jar is a program called eDexter that you can check out here;
http://www.accs-net.com/hosts/eDexter.html
If you're interested in using hosts to block ad servers you can check out;
http://www.smartin-designs.com/
Anyway... looks like I'll have to run this as root then if I'm going to use it huh? |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Mar 07, 2003 5:22 am Post subject: |
|
|
That's interesting, I have not seen that approach before. I guess you're probably familliar with the proxy server approach to ad blocking but if not might want to check out privoxy. It can do a lot more than just block images based on the server. I tried it out for a little while and it works pretty well. But I'm satisfied with blocking pop-ups for now, and mozilla does that on its own. |
|
Back to top |
|
|
MeatHead n00b
Joined: 07 Mar 2003 Posts: 31
|
Posted: Fri Mar 07, 2003 5:58 am Post subject: |
|
|
Yep.
I'm using privoxy right now.
I haven't really taken the time to dig into learning all the configuration stuff just yet though. I'm new to linux and there is so much to learn...
Do you know of any web sites where people share their privoxy configs, tips, tricks, etc.? There was plenty of that sort of thing for my old favorite windows proxy, proxomitron. |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Mar 07, 2003 6:13 am Post subject: |
|
|
Sorry, I only used it breifly. I havent found many user tips but, I found the documentetion pretty helpfull. Probably could get some help from others in these forums. |
|
Back to top |
|
|
|