How I made a Portable Chromium
Posted: Sun 05 May 2019, 14:30
First I downloaded Peebee's chromium.sfs, 75Mb to the drive my Bionic32-light is installed on. He's really good about keeping these up to date. This one is version 74.0.3729.108.
Next I extracted using UExtract. Went into the extracted folder, moved /usr/lib/chromium to the drive, in this case /mnt/sdc1/chromium.
Then I renamed the extracted folder to chromium-install, went inside and created /root/Startup. I wrote a new script, chromium_link, which contained:
Since the chromium folder is on the same drive as my Puppy I was able to use /initrd/mnt/dev_save/chromium, but this only works if you have already saved Puppy. There are alternate ways to do this that are more versatile, but I will keep it simple for now.
Next I used dir2sfs to resquash the chromium-install folder: giving me chromium-install_19.03.sfs, which I renamed to chromium-install.sfs. 336Kb
Now use Menu->System->Boot Manager->SFS-packages to tell Puppy to load chromium-install.sfs at bootup. "Chromium Web Browser" should appear on the Internet menu.
I've gone from using 256.9Mb of ram loading the original chromium.sfs to using 1.37Mb with the chromium-install.sfs
Next I extracted using UExtract. Went into the extracted folder, moved /usr/lib/chromium to the drive, in this case /mnt/sdc1/chromium.
Then I renamed the extracted folder to chromium-install, went inside and created /root/Startup. I wrote a new script, chromium_link, which contained:
Code: Select all
#!/bin/sh
rm -fr /usr/lib/chromium
ln -s /initrd/mnt/dev_save/chromium /usr/lib/chromium
Next I used dir2sfs to resquash the chromium-install folder:
Code: Select all
dir2sfs /mnt/sdc1/chromium
Now use Menu->System->Boot Manager->SFS-packages to tell Puppy to load chromium-install.sfs at bootup. "Chromium Web Browser" should appear on the Internet menu.
I've gone from using 256.9Mb of ram loading the original chromium.sfs to using 1.37Mb with the chromium-install.sfs