Skip to content

Instantly share code, notes, and snippets.

@felipelima94
Last active January 8, 2026 19:57
Show Gist options
  • Select an option

  • Save felipelima94/7791a4243a73a07fd95e90758607267a to your computer and use it in GitHub Desktop.

Select an option

Save felipelima94/7791a4243a73a07fd95e90758607267a to your computer and use it in GitHub Desktop.
Install DiscordPTB on Fedora
echo "Remove any previous Discord PTB installation..."
sudo rm -rf /opt/discord-ptb
echo "Downloading Discord PTB..."
discordptb=$(curl -Ls -o /dev/null -w '%{url_effective}\n' https://discord.com/api/download/ptb?platform=linux&format=tar.gz)
wget $discordptb -O discord-ptb.tar.gz
echo "Installing Discord PTB..."
tar -xzf discord-ptb*.tar.gz
rm discord-ptb.tar.gz
sudo mv DiscordPTB /opt/discord-ptb
echo "Setting permissions..."
sudo chown -R root:root /opt/discord-ptb
sudo chmod -R 755 /opt/discord-ptb
if [ ! -f /usr/share/applications/discord-ptb.desktop ]; then
echo "Creating desktop entry..."
sudo printf '%s\n' \
"[Desktop Entry]" \
"Name=Discord PTB" \
"Comment=Discord Public Test Build" \
"Exec=/opt/discord-ptb/DiscordPTB" \
"Icon=/opt/discord-ptb/discord.png" \
"Type=Application" \
"Categories=Network;InstantMessaging;" \
"StartupWMClass=discord-ptb" \
> /usr/share/applications/discord-ptb.desktop
sudo update-desktop-database
fi
echo "Discord PTB installation complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment