Download the Linux version of Firefox (tar.xz) from the Mozilla website:
https://download.mozilla.org/?product=f ... os=linux64
Create a new folder, for example, firefox-portable.
Create a subfolder named profilordner inside the newly created folder.
Extract the downloaded archive into the firefox-portable folder to get the firefox folder.
Create a new file named loader.sh in the firefox-portable folder with the following content:
Code: Select all
#!/bin/sh
"$PWD/firefox/firefox" -no-remote -profile "$PWD/profilordner"
To start the portable Firefox, execute the loader.sh script.
You can move the firefox-portable folder to any location, even a USB stick.
Important notes: Do not run ~/firefox-portable/firefox/firefox directly.
Firefox updates itself if configured to do so in the settings.
All settings, bookmarks, etc., are preserved.
Bookmarks and settings are stored in the profile folder, ensuring persistence.
Using this same principle, derivatives can also be made portable.
Works for forks like Librewolf (privacy-focused Firefox) as they share the same core structure.
The loader.sh script and profile folder method remain identical.
Portable versions inherit the parent project’s update behavior (manual/auto).
This page served as the basis: https://wiki.ubuntuusers.de/Portable_Firefox/