Installing Discord

I have a qube on which I’m planning to install Discord (not private, but so many people use it…)

I add the free and non-free RPM repositories

However, when I try to
sudo dnf install discord
I am told that no such package can be found

How have y’all installed Discord on Qubes OS please?

1 Like

Good evening,

You’ll need to install it via flatpak – I’m running Discord, Element, and Signal on a dedicated Fedora 42 xfce template where I setup flatpak onto.

Make sure to follow @solene guide on how to properly setup flatpaks on Qubes:

4 Likes

Thank you for the quick response

sudo dnf install flatpak

went OK

export all_proxy=http://127.0.0.1:8082/

gave no output after I restarted the qube

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

gives me

error: Can't load uri https://dl.flathub.org/repo/flathub.flatpakrepo: While fetching https://dl.flathub.org/repo/flathub.flatpakrepo: [7] Could not connect to server
1 Like

Don’t reboot between the export command and the flatpak one

2 Likes
sudo dnf install flatpak

Flatpak already installed

export all_proxy=http://127.0.0.1:8082/

No output

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

gives
error: Can't load uri https://dl.flathub.org/repo/flathub.flatpa

No restarts involved after the first command

1 Like

Try:

  export all_proxy=http://127.0.0.1:8082/
  export http_proxy=http://127.0.0.1:8082/
  export https_proxy=http://127.0.0.1:8082/

before trying to add the remote.

If you want to automate this for future Flatpak operations:

Add

if [ "$(qubesdb-read /type)" = "TemplateVM" ]
then
  export all_proxy=http://127.0.0.1:8082/
  export http_proxy=http://127.0.0.1:8082/
  export https_proxy=http://127.0.0.1:8082/
fi

to /etc/profile.d/qubes-flatpak-proxy.sh in your TemplateVM and reboot.

1 Like

Thank you - still no joy :frowning:

I have found that I cannot ping 6.6.6.6 from this qube
However, I can ping 1.1.1.1, so I infer that I can access the Internet from this qube…

1 Like

I was able to install the Discord app via their tar.gz download on their website.

I actually ended up using it in the browser though. It’s a bit lighter so it saves me some RAM

1 Like

I have a Discord qube I use to chat with some family who are big Discord users. Here was my process, more or less:

  • Clone debian-12-minimal to template-discord or whatever name, and then within that new template:
  • Install unlisted Discord dependencies: pulseaudio-qubes qubes-core-agent-networking libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0
  • Install the discord-repo_1.1_all.deb package from here: GitHub - palfrey/discord-apt: APT repository for Discord (warning: non-official) to add the /etc/apt entry for Discord
  • apt update and apt install discord
  • Shutdown template-discord

Then create a new qube with template template-discord, set the netvm to whatever makes sense. Should work, at least it does for me :+1:

1 Like

If you use Discord in the browser, you can utilize the following .desktop file to make it as seamless as possible (no bars, and ability to launch from the Qubes app menu if you put it in the template):

[Desktop Entry]
Version=1.0
Type=Application
Name=Discord-Kiosk
GenericName=Discord (Kiosk)
Comment=Open Discord in Firefox kiosk mode (no browser chrome)
Exec=firefox -kiosk "https://discord.com/channels/@me"
TryExec=firefox
Terminal=false
StartupNotify=true
Icon=discord
Categories=Network;InstantMessaging;WebBrowser;
Keywords=discord;chat;voice;video;gaming;messages;
StartupWMClass=firefox
2 Likes

Hi, if you’re still having the problem, I made a simple updated guide for installing Flatpak. Cheers.

1 Like

I used snap to install Discord.

The alternative would be to download the package for Linux directly from the Discord site and then manually install it via the terminal.

1 Like

I am no expert, but this worked on my PC.

I got a template for general use (Brave, Zoom, Discord).
I installed like this:

  1. download the .deb file from Discord’s web page
  2. sudo apt install ./discord-0.0.113.deb

It works fine.

1 Like

:confused:

Setting up a fresh qube, this time a non-XFCE Fedora rather than a Fedora XFCE, has enabled me to dnf install without issue

I am not complaining. Thank you to each of you who contributed solutions

1 Like

burp,

2 Likes

It would have been better to install it via Flatpak; I hope that package gets updated on Fedora. Cheers.

2 Likes

Oh? Why so, please?

1 Like

It includes solutions for vulnerabilities discovered after the version was installed, performance improvements, new features, and generally everything important about having the latest version of the program.

1 Like

burp

1 Like

I think everything is compromised, or there are active tools/vulnerabilities not disclosed to the general public that can be exploited, so real security doesn’t exist. The risk of intrusion can only be mitigated to a greater or lesser degree.

1 Like