Thursday, 18 June 2015

Add JustBrowsing+config file to E2B

The August 2014 version of JustBrowsing allows you to save the browser settings in a config file.
The file must be saved on a mounted volume which has a volume name of JUSTDATA.
'maddog' asked me to make a .mnu file for it...


Here is the .mnu file for Easy2Boot which allows you to have these settings persistent on each boot.
Depending on the ISO, you will need to change the name of the iso file in two places and maybe edit the title text too...

# Create file \justbrowsing-rw in root of E2B USB drive using RMPrepUSB - Create small 5MB Ext2 FS  Volume Name = JUSTDATA
# Place the iso file and this file in \_ISO\MAINMENU\MNU  (or some other menu folder at 3rd level - e.g. \_ISO\LINUX\BROWSER)

iftitle [if exist $HOME$/justbrowsing_20140808_chrome.iso] JustBrowsing with Config file\n Settings are saved in a configuration file

set ISO=$HOME$/justbrowsing_20140808_chrome.iso
set PERS=/justbrowsing-rw

if "%E2BDEV%"=="" set E2BDEV=hd0 && pause E2BDEV forced to hd0!
if exist CD echo WARNING: Cannot use partnew command! && pause && configfile (bd)/menu.lst
#enable parttype output
partnew (%E2BDEV%,3) 0x0 %ISO%
# make empty table entry in 3rd position in ptn table
debug 1
parttype (%E2BDEV%,2) | set check=
debug off
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (%E2BDEV%,2) 0 0 0
if not "%check%"=="0x00" echo WARNING: PTN TABLE 3 IS ALREADY IN USE! && pause
debug 1
if not exist %PERS% echo WARNING: %PERS% persistence file not found! && pause
errorcheck off
if "%check%"=="0x00" partnew (%E2BDEV%,2) 0x0 %PERS%
errorcheck on
/%grub%/QRUN.g4b %ISO%
boot

I will add the final version of this to next Beta release.