Closed jayjupdhig closed 4 years ago
The problem is that you are trying to install this to a root folder. Vdesktop has to run some commands as an unprivileged user for them to work correctly. For example, line 19:
sudo -u pi git clone https://github.com/Botspot/vdesktop "${DIRECTORY}.new"
You can try to remove all the instances of sudo -u pi
, or simply delete the folder and install again manually.
You could also allow the Pi user to access your installation folder:
chown pi:pi /root/TEMP
Does not seem to work, also not with chown -R pi:pi /root/TEMP
and chmod -R 0777 /root/TEMP
Will try to reinstall it completely when i have some time. Thx.
Did you try deleting all instances of sudo -u pi
in the vdesktop script? If so, what were the new errors?
"You can try to remove all the instances of sudo -u pi ... "
Yes, that works, thank you very much!
The chown
thing does not seem to work...
Will better install it on the pi
user profile! ;-)
I'm going to try to fix this. On your root system, do both of the below commands output "root"?
whoami
echo $USER
("jmar83" is my personal account.)
I think so (what else?), but currently im not in the company. I'm logged in with SSH as root with permmitting root SSH login in config file on /etc/sshd
Will test it tomorrow, thanks.
Any updates?
Oh, thank you for the message, i completely forgot it due to the stress (working and so on) in had in the last few days.
Both commands, whoami
and echo $USER
print the same output "root" - but that was expectable. ;-)
OK, good.
I'm going to update vdesktop to run as root user if the $USER variable is "root
".
OK, why not, thank you very much!
I finished implementing it. So if you run the manual install instructions one more time, it should work.
ok, thx. will try it asap.
thx, seems to work as root now...
Hi!
There seems to be a problem with V12 update:
sudo
does also not help, but i don't wonder about that because im root anyway:Best regards from Switzerland, Jan