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.
How to run Discord?
Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators
Re: Discord?
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!
Omnia mea mecum porto.
Re: Discord?
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
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?
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!
Omnia mea mecum porto.
-
- Posts: 721
- Joined: Tue Aug 11, 2020 3:02 pm
- Location: The Pale Blue Dot
- Has thanked: 125 times
- Been thanked: 409 times
Re: How to run Discord?
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 (152.65 KiB) Viewed 1083 times
Re: How to run Discord?
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.