Discord

How to Install and Configure Discord in Manjaro

Discord is a popular group-chat application initially developed for gamers to build communities. But now, it is an alternative to Slack as it has branched out over the internet to include communities from offices, open-source project members, and artists. A discord community is a server that contains various channels, each dedicated to a different activity.

It is a cross-platform application that has both desktops and mobile versions. Hence it is available for Windows, macOS, Android, Linux, and iPhone. The article details the Discord installation and configuration process in Manjaro Linux via Pacman, snap, tar.gz file, and graphical user interface GUI.

Discord Installation via Pacman

Pacman is a distinguishing feature of all Arch-based Linux distributions. It’s a package management tool that allows users to install, remove, upgrade and downgrade packages. Use the pacman command to update the repository and install Discord.

[manjaro@manjaro ~]$ sudo pacman -Syu
[manjaro@manjaro ~]$ sudo pacman -S discord
[sudo] password for manjaro:
resolving dependencies...
looking for conflicting packages...
 
Packages (1) discord-0.0.14-1
 
Total Download Size: 52.73 MiB
Total Installed Size: 175.38 MiB
 
:: Proceed with installation? [Y/n] y

Now press the Windows key and enter Discord in the search bar to launch the application.

Use the following command to remove Discord via Pacman package manager.

[manjaro@manjaro ~]$ sudo pacman -R discord

Discord Installation via SNAP Package:

Snaps are a cross-distribution, independent, containerized easy to install software packaged with all its dependencies. Before getting started with a Discord installation via snaps enable snapd, it’s a background service responsible for managing and maintaining Snaps in Manjaro Linux.

Use Pacman to install snapd.

[manjaro@manjaro ~]$ sudo pacman -S snapd

After installation, enable the systemd unit that manages the snap communication socket with the help of the following command.

[manjaro@manjaro ~]$ sudo systemctl enable --now snapd.socket
……….
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /usr/lib/systemd/system/snapd.socket

Now restart the system to ensure successful initialization and update of the snap path.

Now install discord snap via the following command:

[manjaro@manjaro ~]$ sudo snap install discord

Similarly, use the snap remove command to uninstall Discord.

[manjaro@manjaro ~]$ sudo snap remove discord

The main advantage of Discord installation via snap is that snapd checks version updates 4 times a day, ensuring the application’s latest version installation and automatic updates. It also allows users to configure and manage updates manually. However, the only downside is that Discord will take time to launch.

Discord Installation via tar gz File

Discord provides a traditional way to install it on Linux. It offers a tar.gz file that requires manual configuration via terminal.

STEP I:
Go to the official Discord website to download the tar.gz file.

STEP II:
Go to the downloaded folder and use the tar utility with the -xvzf option to extract the discord-0.0.14.tar.gz file and place the extracted file content in the /opt directory.

[manjaro@manjaro ~]$ sudo tar -xvzf discord-0.0.10.tar.gz -C /opt

STEP III:

Now cd into the /opt directory to find a new Discord directory:

[manjaro@manjaro ~]$ cd /opt && ls -la
drwxr-xr-x 5 root root 4096 Mar 23 20:06 Discord

The step involves tackling two Discord files, namely a binary file and discord.desktop file. Since the /usr/bin directory contains executable commands in the system.

Symbolically link the discord binary file in the /usr/bin folder.

[manjaro@manjaro ~]$ sudo ln -sf /opt/Discord/Discord /usr/bin/Discord

Now cd into the /usr/bin directory and list the directory content to link to the binary file.

[manjaro@manjaro bin]$ ls -la | grep Discord
lrwxrwxrwx 1 root root 20 May 1 08:32 Discord -> /opt/Discord/Discord

Now any changes in the link will directly impact the original binary file. The link allows the users to run the command from anywhere in the system.

Step IV:

The discord command is available to run on the terminal, but the Discord graphical interface isn’t available in the system menu for launch.

For that edit the discord.desktop file located in the /opt/Discord folder. Open the file in the terminal-based editor and change the /usr/share/discord/Discord path to /usr/bin/Discord.

Similarly, the icon variable in the file is the Discord image, displayed in the system menu when the user searches for the application. Change the path to the Discord extracted folder /opt/Discord/discord.png. The file will look as follows:

[manjaro@manjaro bin]$ cd opt/Discord && sudo nano discord.desktop

[Desktop Entry]
Name=Discord
StartupWMClass=discord
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=/opt/Discord              
Icon=/opt/Discord/discord.png
Type=Application
Categories=Network;InstantMessaging;
Path=/usr/bin

Lastly, please save the file and move it from the extracted folder to the usr/share/applications directory as a desktop entry to be accessible by the system.

[manjaro@manjaro ~]$ sudo cp -r /opt/Discord/discord.desktop /usr/share/applications

Now search for the application in the system menu; if it isn’t available, log out and in again.

Once done, run the application to view the login screen.

The only problem with a traditional way of installing the Discord platform is that it won’t update to the new version automatically. Instead, it requires the user to remove the current installation and repeat the above procedure.

Install Discord via GUI

Manjaro Setting Manager offers a convenient way to install discord. Press the Windows button, go to ‘All Applications’ to select ‘Add/Remove Software‘ to open the GUI. Browse the platform name to install the application.

Conclusion

The article summarizes various ways for beginner Manjaro users to install the Discord platform as a video, voice, and text messaging application. The article explains the Discord application installation process through the command line terminal via Pacman, snap, and traditionally for intermediate Linux users. Lastly, we also discussed how to install Discord via Manjaro Settings Manager.

About the author

Usama Azad

A security enthusiast who loves Terminal and Open Source. My area of expertise is Python, Linux (Debian), Bash, Penetration testing, and Firewalls. I’m born and raised in Wazirabad, Pakistan and currently doing Undergraduation from National University of Science and Technology (NUST). On Twitter i go by @UsamaAzad14