MyDSL - configuring a proxy server ?


Forum: myDSL Extensions (deprecated)
Topic: MyDSL - configuring a proxy server ?
started by: cyn3rgy

Posted by cyn3rgy on May 05 2005,04:28
Hi all

I've been using my usb bootable 1.01 DSL for a few days. I have found that when I'm at work I can't use the MyDSL panel to download apps. The first interface appears, I select one of the options, say Apps, the app then goes into lala land. I assume this is because I'm on a private network behind a firewall/proxy. I have configured FireFox to use out corporate proxy server and I can get to the internet. Is there a way to confugre mydsl to use the proxy server also ? If not I guess I'll have to download the files using the browser though it's not as 'nice'.

thanks

Andrew

Posted by cyn3rgy on May 06 2005,02:04
Just a quick update to my original post. I've managed to modify the .wgetrc file. I've added a line
http_proxy=http://user:pass@proxyserver:port

wget now works fine. I've noticed there is a mydsl-wget but can't find any info about it anywhere. It seems to just be calling wget. I can' understand why it's not able to get the application list and yet when I run wget on it's own, things work fine. Does anyone know what MyDSL is doing when I click one of the menu buttons?

cheers

Andrew

Posted by cyn3rgy on May 06 2005,02:24
another update...  

I can run /usr/bin/mydslPanel.lua and it opens the mydsl panel. Everything then works as it should, using the proxy settings. But clicking on the mydsl icon on the desktop, it is still hanging when I select one of the options, eg. games. The system doesn't respond for around a 2 minutes and then displays a blank games window.

Anyone have any ideas?

Posted by SuperLou on May 06 2005,23:20
Where do I find the .wgetrc file?  Is a proxy the reason why when I go to the myDSL panel nothing loads?
Posted by roberts on May 07 2005,00:39
Don't know if I can be of much help as no way for me to test proxy.
However, the mydsl Browser solely uses wget, so the proxy in the proper .wgetrc should work.

I can explain how the myDSL Browser works.

But first a few questions to you?

When you say you ran it from a shell, it works. Be sure not to run as root user.

1, As user dsl
2. Using .wgetrc in /home/dsl

How about when run from the fluxbox menu?
Apps->Tools->MyDSL Browser

The desktop icon calls mydslPanel, the buttons, which when clicked pass a library name to mydslBrowser which uses wget to fetch index.html, which is then parsed to display the info file list. When a selection is made the info item is passed to mydslInfo which fetches the actual info.file and displays it as well as buttons to proceed to download or not. Proceeding with the download passes the selected item to mydsl-wget which you have found. This downloads the md5checksum and the actual extension then verifies a good download occured.

HTH

Posted by SuperLou on May 07 2005,02:23
Are the username and pass associated with DSL or with the proxy?   When I connect to through the proxy i just use the proxy server:port
Posted by cbagger01 on May 07 2005,03:36
Then skip the username pass part of the proxy definition.
Posted by SuperLou on May 08 2005,03:15
Do I use the @ sign and http:// bit?  Should I need to restart for it to take affect?
Posted by SuperLou on May 08 2005,03:53
Well I've been experimenting with adding different http_proxy:http://proxy:port and such but haven't been able to make anything show up in the myDSL download extension panel.  Is there any other way to get the files?  I'm completely new to this and would appreciate if you explain what each step actually does.  

Thanks,
Louis

Posted by cbagger01 on May 08 2005,04:44
< .wgetrc file explained >

And here is another place where you can get your mydsl files.  The link is also on the front page of the damnsmalllinux.org web site:

< http://distro.ibiblio.org/pub/linux/distributions/damnsmall/mydsl/ >

and the testing area:

< http://distro.ibiblio.org/pub....testing >

Posted by cyn3rgy on May 08 2005,12:43
Roberts

thanks for the reply. I was definitely running the wget as the dsl user. The .wgetrc file I created was in the /home/dsl dir.
I haven't tried it from the Apps->Tools>MyDSL Browser location yet. I'll try it tomorrow at work. The strangest thing is that it works fine running the myDSL browser from a terminal window.
I'll reply with my findings tomorrow.

cheers

andrew

Posted by cyn3rgy on May 08 2005,13:05
superlou

The user name and password in my post was associated with the proxy server. I guess you've figured that much out. If you are getting a blank dsl window, then you probably should check that wget is working first. Open a terminal window and type
wget < http://damnsmalllinux.org >
if it works then you're halfway there. If it doesn't work, then you hve a more fundamental internet connection problem. wget can be configured to use proxy (from what I've read). You can do this either by setting an environment variable or by placing the proxy settings into a file in your home directory (eg. /home/dsl) called .wgetrc (note the dot)
If you have no .wgetrc file the just create it and enter the proxy details like...
http_proxy=http://proxy_server.domain.com:80

the name of you proxy server may be different and the port may also differ. With my proxysettings I had to supply a username and password (otherwise called user authentication). my .wgetrc has the line
http_proxy=http://username:password@proxy.domain.com:80

Further to this you can just create a temporary environment variable by typing
export http_proxy=http://proxy.domain.com:80

This will work for wget and lynx (text mode browser) and perhaps some other apps also.

If your wget test earlier worked okay, then you can try running the app that creates the myDSL list of applications. The name eludes me at the moment as I'm at home and not running dsl. I'll post more details tomorrow if you think that will help.

good luck

andrew

Posted by cyn3rgy on May 11 2005,05:43
The command was mydslBrowser.lua, it's the one that loads the list of apps/games etc...   you can run it by typing
mydslBrowser.lua apps
and you should see the list of applications (providing your wget is working).

Posted by SuperLou on May 11 2005,18:10
I can get to the individual myDSL menus using the mydslBrowser.lua [type] command.  The myDSL panel does not load anything.

In order to make wget function I am using the export http_proxy:http://... to set the proxy.  I have tried the .wgetrc file but haven't had any luck.  The contents of the file are as follows:

Code Sample

#####







passive_ftp = on

waitretry = 10
http_proxy=http://netcache1.stevens.edu:8080
use_proxy=on#



I have left the whitespace intact because thats how the .wgetrc file came.  I have added .wgetrc to the filestool.lst and verified that it is getting backed up and restored.

I'm probably missing something simple.  Actually, just wondering, does the # sign mean ignore the entire line or just the text following it on that line?

Thanks,
Louis

Posted by cyn3rgy on May 25 2005,11:07
Hi SuperLou

I have the same issue. the .wgetrc file doesn't seem to have any affect. strange huh....   sorry I can't be more help. The export works for me too. The myDSL Panel works for me though... strange. Have you had a look through the myDSLPanel.lua file? It's been a few weeks so I can't quite remember it in detail, but perhaps you can pass the proxy on the wget command lines in that file?

let me know how you go

andrew

Posted by SuperLou on May 25 2005,19:15
I've been at it a bit.  Try putting the command "export http_proxy:http://..." and such for in .bach_profile in your home directory.  I'm pretty sure this will be executed during boot up.  I'm not under my school proxy right now and an unable to test.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.