4

I'd really like to use the "ungoogled-chromium"-browser alongside firefox- but as a portable version. This mean: All the necessary files are stored in one folder and/or subfolders, so that I can move the folder whereever I want and run it from this location without losing the browser cache, settings and so on .. For example to switch between ubuntu computers.

If you take a look on the download site, the linux download-file is already called "portable". But if I extract the file and run the browser, it creates folders in my user-directory for example in .config, .cache

I saw a post, where someone helped a user with creating a script, who wanted a portable version of chrome. Is something like this maybe also possible for this ungoogled-chromium..? Or another way? It would mean a lot to me :)

Thanks for any help or information anyway!

sotirov
  • 4,379

2 Answers2

8

AppImage aims to be an application deployment system for Linux with the following objectives: simplicity, binary compatibility, distro agnosticism, no installation, no root permission, being portable, and keeping the underlying operating system untouched.

https://en.wikipedia.org/wiki/AppImage#:~:text=AppImage%20aims%20to%20be%20an,the%20underlying%20operating%20system%20untouched.

Download here as an AppImage:

https://ungoogled-software.github.io/ungoogled-chromium-binaries/releases/appimage/64bit/

Download the latest version and run chmod +x /PATH/TO/ungoogled-chromium_<version>.AppImage, create a folder in the same directory as the AppImage named ungoogled-chromium_<version>.AppImage.home to store all the data in there instead of your home directory, then execute it.

https://docs.appimage.org/user-guide/portable-mode.html

Enjoy :)
Mandi
  • 2,116
0

It should be possible to download the semi-official build from the public Chromium sources.

For example, a process of some Chromium version 95.0.4638 files search and download (adjusted steps originally written for version 44):

  1. Look in https://googlechromereleases.blogspot.com/search/label/Stable updates for the last time version 4638 was mentioned. There is a field which queries the general Google:

    enter image description here

    enter image description here

    Selected one of the above results and:

    enter image description here

  2. Loop up that version history (specifically, 95.0.4638.69) in the Position Lookup;

    enter image description here

  3. In this case it returns a base position of 920003. This is the commit of where the 95 release was branched, back in September 2021:

    enter image description here

  4. Try searching in all required platforms (i.e. Linux, Linux x64, Windows, Windows x64, Mac etc.) on continuous builds archive - paste "920003" into the filter field at the top and wait for all the results to XHR in. If no results is shown, try incrementing or decrementing the value (i.e. 920004, 920005 etc.).

  5. Eventually, it showed 920005 at Linux x64:

    enter image description here

  6. Download the required file (e.g. chrome-linux.zip).

  7. Unzip and voilĂ :

    enter image description here


Why 95.0.4638.0 instead of 95.0.4638.69? From the original steps page mentioned above:

As this build was made at 44 branch point, it does not have any commits merged in while in beta.

It's also worth to mention that www. for googleapis.com is mandatory.


For a broad example, to download the archive and run Chromium 95.0.4638.0-dev-x64:

if [ ! -f './chrome-linux/chrome' ];
then
    wget -O './chrome-linux.zip' -- 'https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F920005%2Fchrome-linux.zip?generation=1631232582939202&alt=media';
    unzip './chrome-linux.zip';
fi

cd './chrome-linux';

declare tmpDirpath; # Just in case it's a local variable tmpDirpath="$( mktemp; )"; readonly tmpDirpath; printf -- $'Temporary User directory: '%s'\n' "$tmpDirpath";

'./chrome' --user-data-dir="$tmpDirpath";

As mentioned in the above quite broad "script", in order to have a more isolated or "portable" environment, try setting option --user-data-dir for the executable.