IPFS Desktop - installing from source issue - Running as root without --no-sandbox is not supported
See original GitHub issue- Linux 18.04.06 LTS
- IPFS Desktop 0.20.4
Describe the bug Hi there, I kinda new in linux world, so any suggestion is welcome. 😃 Anyway, about the issue. I tried to follow these steps to install ipfs-desktop. On early phase of installation, I got this kind of error
/root/ipfs-desktop/node_modules/electron/dist/electron: error while loading shared libraries: libasound.so.2: c annot open shared object file: No such file or directory
So, every error around that, I install it one by one (you can see on steps to reproduce
below, no.4).
And at last, I tried npm start
and it gives me another error, as written on steps to reproduce
below, no.5
So, is there any issue about that?
I wonder if running it as root
is an issue, but when I see, there’s no documentation (or do I miss it?) around that, so I think it’s okay if we run it as root
.
Also, I’m not sure about packages / .so
libraries that missing, so, is there any per-requisites before installing this other than installing node and npm itself?
And last, if we can’t run it as root
due some issue etc, do you think it needs to be added on documentation?
To Reproduce Steps to reproduce the behavior:
-
SSH login as root
-
Following the same steps to install ipfs-desktop
-
When reaching
npm start
, got some errors related.so
packages, so I install some of it one-by-one depends of what it needs. To sum-up I did thissudo apt-get install libnss3 -y && sudo apt-get install libatk-bridge2.0-0 -y && sudo apt-get install libcups2 -y && sudo apt-get install libgtk-3-0 -y && sudo apt-get install libgbm -y && sudo apt-get install libasound2 -y
-
Try to do
npm start
and it shows
> ipfs-desktop@0.20.4 start > cross-env NODE_ENV=development electron . [0331/023137.699363:FATAL:electron_main_delegate.cc(291)] Running as root without --no-sandbox is not supported . See https://crbug.com/638180. /root/ipfs-desktop/node_modules/electron/dist/electron exited with signal SIGTRAP
Expected behavior Not sure, but, ipfs-desktop should start without an issue(?).
Additional context
I did those above steps, as root
. I tried to check around the solution, but I ended-up no idea of what it is or how to do that.
Here’s one of the result when I tried to check around how to overcome this issue - link. But I really have no idea what it’s, but I think I shouldn’t need to tweak the code(?)
Thanks for your time! 😃
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
electron-builder
takes care of selecting all the necessary libraries for us – you could investigate.deb
or.rpm
packages and see which deps are listed in manifests thereThank you for your comments. I will take notes for it, for future references! Cheers! 😃