Migrate more apps to flatpaks

This commit is contained in:
Zoness committed 2026-09-21 08:10:51 -05:00
1 parent 78e195ccde
commit 66a43ca3dd
1 file changed
+20 -44
+20 -44
View File
@@ -57,6 +57,7 @@ pkg_install() {
flatpak_install() { flatpak_install() {
local ref local ref
for ref in "$@"; do for ref in "$@"; do
if flatpak info "$ref" >/dev/null 2>&1; then if flatpak info "$ref" >/dev/null 2>&1; then
echo "Flatpak already installed: $ref" echo "Flatpak already installed: $ref"
@@ -124,14 +125,12 @@ run $SUDO dnf update -y @multimedia --setopt=install_weak_deps=False --exclude=P
echo echo
echo "Installing common RPM apps..." echo "Installing common RPM apps..."
pkg_install \ pkg_install \
filezilla \
git \ git \
hugo \ hugo \
NetworkManager-openvpn \ NetworkManager-openvpn \
openvpn \ openvpn \
qbittorrent \ qbittorrent \
steam \ steam \
thunderbird \
oh-my-posh \ oh-my-posh \
openrgb \ openrgb \
screenfetch \ screenfetch \
@@ -148,10 +147,6 @@ write_vscode_repo
run $SUDO dnf makecache -y || warn "dnf makecache failed" run $SUDO dnf makecache -y || warn "dnf makecache failed"
pkg_install code pkg_install code
echo
echo "Installing optional RPM apps..."
pkg_install discord || warn "discord not available from enabled repos"
echo echo
echo "Installing Flatpaks..." echo "Installing Flatpaks..."
flatpak_install \ flatpak_install \
@@ -159,46 +154,27 @@ flatpak_install \
com.bitwarden.desktop \ com.bitwarden.desktop \
io.github.martinrotter.rssguard \ io.github.martinrotter.rssguard \
com.spotify.Client \ com.spotify.Client \
io.github.Archeb.opentrace io.github.Archeb.opentrace \
org.filezillaproject.Filezilla \
org.mozilla.Thunderbird \
com.discordapp.Discord
echo echo
echo "Setting ownership hint for /mnt/games..." echo "Configuring Flatpak access to mounted media..."
echo "After you mount the ext4 games partition, you may want:" run flatpak override --user --filesystem=/mnt/media org.filezillaproject.Filezilla \
echo " sudo chown -R ${REAL_USER}:${REAL_USER} /mnt/games" || warn "Could not grant FileZilla access to /mnt/media"
cat <<EOF echo
echo "Setting ownership hint for mounted directories..."
echo "After you mount the ext4 games/media partitions, you may want:"
echo " sudo chown -R ${REAL_USER}:${REAL_USER} /mnt/games /mnt/media"
=== Setup completed at $(date --iso-8601=seconds) === echo
Check log: $LOGFILE echo "qBittorrent note: keep the RPM build for host-level VPN adapter binding."
echo "After connecting OpenVPN, select its tun interface in qBittorrent:"
echo " Tools -> Options -> Advanced -> Network interface"
echo "Then restart qBittorrent and verify transfers stop when the VPN disconnects."
Manual mount follow-up: echo
echo "=== Fedora New Machine Setup Finished at $(date --iso-8601=seconds) ==="
1. Find UUIDs: echo "Log saved to: $LOGFILE"
lsblk -f
2. Back up fstab:
sudo cp /etc/fstab /etc/fstab.bak
3. Add entries like these:
# ext4 games partition
UUID=XXXXXX-XXXX /mnt/games ext4 defaults,nofail 0 2
# example media partition if still NTFS
UUID=YYYYYY-YYYY /mnt/media ntfs defaults,nofail,uid=1000,gid=1000 0 0
4. Test mounts:
sudo mount -a
5. For the ext4 games partition, fix ownership if needed:
sudo chown -R ${REAL_USER}:${REAL_USER} /mnt/games
6. Reboot and verify.
Notes:
- /mnt/games is assumed to be ext4.
- Signal Desktop is installed via Flatpak only.
- ext4 stores ownership/permissions in the filesystem itself.
- Use KDE Partition Manager or GNOME Disks if you prefer a GUI.
EOF