Migrate more apps to flatpaks
This commit is contained in:
1 parent
78e195ccde
commit
66a43ca3dd
1 file changed
+20
-44
+20
-44
@@ -57,6 +57,7 @@ pkg_install() {
|
||||
|
||||
flatpak_install() {
|
||||
local ref
|
||||
|
||||
for ref in "$@"; do
|
||||
if flatpak info "$ref" >/dev/null 2>&1; then
|
||||
echo "Flatpak already installed: $ref"
|
||||
@@ -124,14 +125,12 @@ run $SUDO dnf update -y @multimedia --setopt=install_weak_deps=False --exclude=P
|
||||
echo
|
||||
echo "Installing common RPM apps..."
|
||||
pkg_install \
|
||||
filezilla \
|
||||
git \
|
||||
hugo \
|
||||
NetworkManager-openvpn \
|
||||
openvpn \
|
||||
qbittorrent \
|
||||
steam \
|
||||
thunderbird \
|
||||
oh-my-posh \
|
||||
openrgb \
|
||||
screenfetch \
|
||||
@@ -148,10 +147,6 @@ write_vscode_repo
|
||||
run $SUDO dnf makecache -y || warn "dnf makecache failed"
|
||||
pkg_install code
|
||||
|
||||
echo
|
||||
echo "Installing optional RPM apps..."
|
||||
pkg_install discord || warn "discord not available from enabled repos"
|
||||
|
||||
echo
|
||||
echo "Installing Flatpaks..."
|
||||
flatpak_install \
|
||||
@@ -159,46 +154,27 @@ flatpak_install \
|
||||
com.bitwarden.desktop \
|
||||
io.github.martinrotter.rssguard \
|
||||
com.spotify.Client \
|
||||
io.github.Archeb.opentrace
|
||||
io.github.Archeb.opentrace \
|
||||
org.filezillaproject.Filezilla \
|
||||
org.mozilla.Thunderbird \
|
||||
com.discordapp.Discord
|
||||
|
||||
echo
|
||||
echo "Setting ownership hint for /mnt/games..."
|
||||
echo "After you mount the ext4 games partition, you may want:"
|
||||
echo " sudo chown -R ${REAL_USER}:${REAL_USER} /mnt/games"
|
||||
echo "Configuring Flatpak access to mounted media..."
|
||||
run flatpak override --user --filesystem=/mnt/media org.filezillaproject.Filezilla \
|
||||
|| 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) ===
|
||||
Check log: $LOGFILE
|
||||
echo
|
||||
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:
|
||||
|
||||
1. Find UUIDs:
|
||||
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
|
||||
echo
|
||||
echo "=== Fedora New Machine Setup Finished at $(date --iso-8601=seconds) ==="
|
||||
echo "Log saved to: $LOGFILE"
|
||||
Reference in new issue
Block a user