Post subject: [Windows] Downloading Firefox (US)... without a browser Posted: Sat Jul 28, 2007 8:27 am
1337 Beta Collector
Joined Sat Sep 30, 2006 5:00 pm
Posts 3615
The title may sound a bit strange, but here's the deal: I recently set up Windows FLP without IE and forgot to make Firefox available offline. So I had to download it, but I didn't have a browser to do that. Solution: FTP.
Fire up the Command Prompt (Start/Run, "cmd", ENTER) and then enter these commands, each followed by ENTER:
Code:
ftp open ftp.mozilla.org user anonymous pass xy@xy.xy cd /pub/mozilla.org/firefox/releases/2.0.0.5/win32/en-US binary get "Firefox Setup 2.0.0.5.exe"
Wait until the ftp> prompt reappears, then close with:
Code:
quit exit
The file will have been downloaded to \Documents and Settings\<YourUserName>. The path given above downloads the English Windows version of Firefox 2.0.0.5, if you want another version, another language version, or if you run another OS, you'll have to assimilate the path and the file name accordingly.
_________________ Mozilla/5.0 (Macintosh; U; PPC; en-US; mimic; rv:9.3.2) Clecko/20120101 Classilla/CFM "Stupid can opener! You killed my father, and now you've come back for me!"
This could be useful for OPENSTEP, I have a browser (OmniWeb 3) and wget there now but I had to make a ISO with them to make it work.
FiFi: Yeah, but I think there's an option to completely remove it. IIRC this also disables stuff like help and those neat folder-options on the left.
Bit of a catch-22 if you only have one boxen availible, unless you included wget you can't download this guide so you can download Firefox (Opera) to view this guide...
I don't think this will work, have you verified it? ftp won't accept the file without errors as it contains "illegal" commands, and what about the "del script.txt" command? If you name your file script.txt, it won't be executable. I'd rather do it this way:
Code:
@echo off echo Getting Firefox... echo open ftp.mozilla.org > script.tmp echo anonymous >> script.tmp echo lol@private.com >> script.tmp echo binary >> script.tmp echo cd "/pub/mozilla.org/firefox/releases/2.0.0.5/win32/en-US" >> script.tmp echo get "Firefox Setup 2.0.0.5.exe" >> script.tmp echo bye >> script.tmp ftp -s:script.tmp del script.tmp "Firefox Setup 2.0.0.5.exe"
Save it with a .bat (all MS-DOS/Windows systems) or .cmd (NT only) extension and you're done.
I don't think this will work, have you verified it? ftp won't accept the file without errors as it contains "illegal" commands, and what about the "del script.txt" command? If you name your file script.txt, it won't be executable. I'd rather do it this way:
Code:
@echo off echo Getting Firefox... echo open ftp.mozilla.org > script.tmp echo anonymous >> script.tmp echo lol@private.com >> script.tmp echo binary >> script.tmp echo cd "/pub/mozilla.org/firefox/releases/2.0.0.5/win32/en-US" >> script.tmp echo get "Firefox Setup 2.0.0.5.exe" >> script.tmp echo bye >> script.tmp ftp -s:script.tmp del script.tmp "Firefox Setup 2.0.0.5.exe"
Save it with a .bat (all MS-DOS/Windows systems) or .cmd (NT only) extension and you're done.
I tried a similar method, however the FTP app kept asking for a password, even though it was supplied. Not sure what happened there...
My script does work: the FTP program gets passed the batch file itself as its script. The first few lines of non-FTP commands it just gives a "bad command" error, then it processes the others up until the bye command. FTP disregards the rest of the script. Meanwhile, the rest of the script runs in CMD because it jumps over the FTP commands.
I tried a similar method, however the FTP app kept asking for a password, even though it was supplied. Not sure what happened there...
My script does work: the FTP program gets passed the batch file itself as its script. The first few lines of non-FTP commands it just gives a "bad command" error, then it processes the others up until the bye command. FTP disregards the rest of the script. Meanwhile, the rest of the script runs in CMD because it jumps over the FTP commands.
I must have accidentally left del script.txt in there from when I was trying to do it like you just posted, my bad. I'll fix that now.
Okay, this sounds like a good reason to use your script. Thanks for the explanation but I can perfectly understand what your script is doing as I'm quite familiar with batch scripts myself Yep, the "del script.txt" was just intriguing me as it would just have complained about the missing file. Maybe we should run ftp with ">NUL" because that would get rid of the error messages due to the wrong commands (but this will be muting all errors then).
Is there anyway to create an automatic batch file so when loaded, it automatically connects to the server and disconnects when the file is downloaded?
Code:
echo Getting Firefox! ftp -s:%0 goto done open ftp.mozilla.org anonymous lolnobody@hotmail.com binary cd /pub/mozilla.org/firefox/releases/2.0.0.5/win32/en-US get "Firefox Setup 2.0.0.5.exe" bye :done
"Firefox Setup 2.0.0.5.exe"
It even runs the setup once it's done.
EDITED: Left an extra line in there that wasn't needed. To use this, copy it into notepad and save it as something like getfirefox.bat
This works.
_________________ Mozilla/5.0 (Macintosh; U; PPC; en-US; mimic; rv:9.3.2) Clecko/20120101 Classilla/CFM "Stupid can opener! You killed my father, and now you've come back for me!"
That's real neat. But doesn't Windows always keep a copy of the Internet Explorer, so you can browse websites through your normal explorer window?
From my experience with FLP,
when I tried to go to www.google.com it just closed out the window..thats it.
So either its blocking IE from accessing web or explorer.exe is using a stripped down version of IE..
Mac OS X has a similar FTP command, so you can do this same technique if you want in the OS X Terminal. Also when the FTP command asks for a password you don't actually have to put anything in and it will still log you in.
Post subject: Re: [Windows] Downloading Firefox (US)... without a browser Posted: Sat Jan 10, 2009 7:01 pm
1337 Beta Collector
Joined Fri Aug 18, 2006 4:30 pm
Posts 1527
Favourite OS Mac OS 9.2.2
Theres an option in Windows FLP installer that won't install IE, so the OS is installed without a browser.
_________________ Mozilla/5.0 (Macintosh; U; PPC; en-US; mimic; rv:9.3.2) Clecko/20120101 Classilla/CFM "Stupid can opener! You killed my father, and now you've come back for me!"
Users browsing this forum: No registered users and 3 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.