Open main menu

CDOT Wiki β

Changes

Universal Firefox on a USB Key

3,016 bytes added, 21:06, 19 April 2008
Contributions
=== Version 0.3 ===
For 0.3 we have modified our Linux script, and spent much of our time getting familiar with the MAC OS system, since neither if us has ever used a mac before. We also investigated the possibility of running ONE script to start firefox Firefox on all three platforms, but found that this was not feasible. We have a proof of concept for MacOS, in that we directly copied the installed Firefox onto our flash drive, as we couldn't get the Web version running.
Initially we were working with the Mac release of Firefox from the official website. There was some learning curve to the Mac, so we had invested alot of time just fooling around with the operating system. Even just figuring out the different responses the system did combined with keys took some time. It didn't really help too much, and even confused us further when one Mac behaved differently from another. At some point we realized that the installer file from Firefox's site was actually behaving like an image than really installing the files on to the system. With that in mind we stumbled across how to extract the actual contents and put it on our USB drive. Having learned that MacOS is working with Linux as its backbone, we modified our Unix script to work for the Mac Firefox. Now we when we executed Firefox for Mac from the USB drive the program hung unexpectedly. It took a long time for the first window to appear and then we could not go any further. In the end we got a working Mac Firefox by taking it off of an existing install.  This is a little script we were playing with to isolate the particular flavor of the OS on Windows. If we have to make any platform specific changes we can add it to the specific OS in question.  @echo off ver | find "2003" > nul if %ERRORLEVEL% == 0 goto ver_2003 ver | find "XP" > nul if %ERRORLEVEL% == 0 goto ver_xp ver | find "2000" > nul if %ERRORLEVEL% == 0 goto ver_2000 ver | find "NT" > nul if %ERRORLEVEL% == 0 goto ver_nt echo Machine undetermined. goto exit :ver_2003 :Run Windows 2003-specific commands here. echo Windows 2003 goto exit :ver_xp :Run Windows XP-specific commands here. echo Windows XP goto exit :ver_2000 :Run Windows 2000-specific commands here. echo Windows 2000 goto exit :ver_nt :Run Windows NT-specific commands here. echo Windows NT goto exit :exit pause Our Mac script RC1 is as follows:(ignore the comments - just for our future reference/reminder)
#!/bin/bash echo "Starting Linux Firefox From USB" progname="$0" curdir=`dirname "$progname"` progbase=`basename "$progname"` #echo "progname - whole path and name= " $progname #echo "curdir - directory!! = " $curdir #echo "progbase - script name = " $progbase batchpath=${BASH_SOURCE%/*} # script_path=$0 # [ -e "$script_path" ] || script_path=$(command -v -- "$0") # echo $script_path # echo $batchpath #echo $batchpath $curdir/MACOS/firefox --no-remote -profile $curdir/Profiles/UniversalProfile '''<font color="red"><----this line returns the current directory of the shell script</font>'''
 The link to all of our files is Get the 0.3 release here: http://downloads.sykokillers.com/mozilla/Firefoxes_Official_0Firefoxes_0.23_RC1.zip
== Project Leader(s) ==
== Contributions ==
Our contributions were limited to the "soft" variety for our class mates, because we were all new to this and our projects were very different. Moral
support and helping each other while doing labs.
 
We used Bugzilla on a couple of occasions to contribute to the community, twice in particular to users who had lost their Profiles. I was bug watching several "profile" bugs and responded to these users with information on how to recover their profiles on Windows systems.
== Miscellaneous links and stuff ==
<br /> 5. Bug 230032 � Profile completely overwritten including passwords and bookmarks
'''Misc Stuff and Thingsrandom links'''
<br />http://mxr.mozilla.org/seamonkey/source/browser/app/mozilla.in
<br />http://lxr.mozilla.org/mozilla1.8.0/source/toolkit/profile/src/nsToolkitProfileService.cpp#774
1
edit