MMM-Swipe icon indicating copy to clipboard operation
MMM-Swipe copied to clipboard

Cant run Magic Mirror as sudo

Open ardboer opened this issue 7 years ago • 2 comments

Magic Mirror works fine but with this module I need to run it as sudo but when I do DISPLAY=:0 sudo npm start it throws a lot of errors and doesnt work. Can anyone help me run Magic Mirror as sudo so I can use this awesome Swipe module?

ardboer avatar Feb 28 '17 21:02 ardboer

put sudo before the DISPLAY=:0 npm as in sudo DISPLAY=:0 npm

masaki84 avatar Mar 07 '17 19:03 masaki84

run sudo cp ~/.Xauthority /root/ then DISPLAY=:0 sudo npm start

StefanMeGit avatar Sep 29 '17 18:09 StefanMeGit