{"title":"Using any Linux Distribution with Flatpak","url":"https://seanbehan.ca/posts/flatpak","description":"Flatpak makes the host distribution almost irrelevant, down to proprietary codecs and games on musl Alpine.","author":"Sean Behan","published":"2023-05-23T13:49:32.000Z","updated":null,"draft":false,"tags":["graphics","linux"],"readingMinutes":2,"image":null,"sections":[{"id":"introduction","text":"Introduction","level":2},{"id":"setting-up-flatpak","text":"Setting up Flatpak","level":2},{"id":"installing-applications","text":"Installing Applications","level":2},{"id":"steam-and-gaming","text":"Steam and Gaming","level":2},{"id":"managing-permissions-with-flatseal","text":"Managing Permissions with Flatseal","level":2},{"id":"google-chrome","text":"Google Chrome","level":2},{"id":"conclusion","text":"Conclusion","level":2}],"content_format":"text/markdown","content_url":"https://seanbehan.ca/posts/flatpak.md","content":"### Introduction\n\nI was using Fedora Silverblue for nearly a year before I realized I had been using Flatpak's for nearly all my software, which mind you isn't much, but I can use Firefox, Chrome, and play any video game I want using Flatpak alone so it makes sense for me.\n\nTo get this working all you need is a distribution where you can install Flatpak. I'm using Alpine Linux edge with musl and even that works. Using Flatpak allows me to use proprietary video and audio codecs in Firefox and Chrome since musl doesn't support those codecs as of right now.\n\n### Setting up Flatpak\n\nIf your distribution doesn't already come with FlatHub like Alpine, you'll need to [add it](https://flatpak.org/setup/).\n\n```sh\nflatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo\n```\n\n### Installing Applications\n\nThis will allow you access to the entire Flatpak library. You can search for software using:\n\n```sh\nflatpak search steam\n```\n\nThen install using:\n\n```sh\nflatpak install com.valvesoftware.Steam\n```\n\nMake sure you periodically update your Flatpak's as well using:\n\n```sh\nflatpak update\n```\n\n### Steam and Gaming\n\nFor Steam to work you'll likely need to install some other Flatpak's as well, but once they're installed all your other gaming Flatpak's should \"just work\".\n\n```sh\nflatpak install com.valvesoftware.Steam.CompatibilityTool.Proton\n```\n\nYou might also want to install your distribution's `steam-devices` package if you want to use a game controller.\n\n```sh\nsudo apt-get install steam-devices # ubuntu / debian\ndoas apk add steam-devices         # alpine\n```\n\n### Managing Permissions with Flatseal\n\nI like to give the Steam Flatpak access to my external drives so I can keep games there instead of on my hard drive. To do this I simply install Flatseal and use Flatseal to give rw (read+write) access to the directory where my drives mount to.\n\n```sh\nflatpak install com.github.tchx84.Flatseal\n```\n\n### Google Chrome\n\nNext if you want to install Google Chrome.\n\n```sh\nflatpak install com.google.Chrome\n```\n\n### Conclusion\n\nThat's all you have to do, then you would have Google Chrome installed.\n\nFlatpak uses it's own runtime, remember to update all your Flatpak's periodically with `flatpak update` to avoid security vulnerabilities and other issues.\n"}