How to run Discord?

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
je55eah
Posts: 183
Joined: Mon Jul 26, 2021 5:27 pm
Has thanked: 30 times
Been thanked: 5 times

How to run Discord?

Post by je55eah »

Has anyone successfully installed this? I tried to run the file in the tar they offer, but Linux doesn't know what to do with it.

User avatar
JakeSFR
Posts: 260
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 135 times

Re: Discord?

Post by JakeSFR »

I don't use Discord, but just checked and it starts for me; I have to use ./Discord --no-sandbox, though, since it doesn't like root.

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
je55eah
Posts: 183
Joined: Mon Jul 26, 2021 5:27 pm
Has thanked: 30 times
Been thanked: 5 times

Re: Discord?

Post by je55eah »

Interesting. I was opening the file manager through Firefox and clicking it so that I would run as spot, but that didn't work.

When I tried to run it form the terminal as you indicate I got the following:

Code: Select all

see image
discord crash.png
discord crash.png (352.25 KiB) Viewed 651 times

this is inside of an lxc sandbox. I'm not trying to install anything on the host system because everytime I change anything something else breaks.

(I wish there was an easy way to copy and paste from the sandbox to the host system. I Started using the sandbox because virtualbox randomly crashes every time I use it, but the sandbox is not only less isolated, but it is also less capable.)

User avatar
JakeSFR
Posts: 260
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 135 times

Re: Discord?

Post by JakeSFR »

I tried it as root in a regural sandbox.sh, I'm not familiar with the lxc one.
Just tried it directly also as spot and it started as well.

Given the info from your screenshot ("FATAL:.../dev/shm...") , it might an issue with lxc sandbox itself - /dev/shm doesn't seem to be available there:

Code: Select all

sandbox-lxc# ls /dev/shm
ls: cannot access '/dev/shm': No such file or directory
sandbox-lxc#

Can't help you with this one unfortunately, I hope James or somebody who's actually using it will chime in eventually...

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
jamesbond
Posts: 576
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 86 times
Been thanked: 306 times

Re: How to run Discord?

Post by jamesbond »

Inside sandbox-lxc

Code: Select all

# fixes missing /dev/shm
mkdir -p /dev/shm
mount -t tmpfs tmpfs /dev/shm

# fixes discord cannot be started as spot
chmod 1777 /tmp

# run this from where discord tarball is extended.
# tested to work with discord 0.22
run-as-spot ./Discord

I'm not a discord user so the following screenshot is as far as I can go.

Attachments
xscreenshot-20221212T005527.png
xscreenshot-20221212T005527.png (152.65 KiB) Viewed 611 times
je55eah
Posts: 183
Joined: Mon Jul 26, 2021 5:27 pm
Has thanked: 30 times
Been thanked: 5 times

Re: How to run Discord?

Post by je55eah »

Thank you. If anyone else is doing this, the shell commands provided do not go in the sandbox-lxc.sh file. They should be run within the sandbox manually.

After creating /dev/shm I ran

Code: Select all

chmod 1777 /dev/shm

because that was advised by the Discord app.

Post Reply

Return to “Software”