Page 1 of 1

How to run Discord?

Posted: Sat Dec 10, 2022 8:07 pm
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.


Re: Discord?

Posted: Sat Dec 10, 2022 9:40 pm
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!


Re: Discord?

Posted: Sat Dec 10, 2022 10:46 pm
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 840 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.)


Re: Discord?

Posted: Sat Dec 10, 2022 11:36 pm
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!


Re: How to run Discord?

Posted: Sun Dec 11, 2022 2:59 pm
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.


Re: How to run Discord?

Posted: Fri Dec 16, 2022 4:15 pm
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.