Tuesday, 12 September 2017

linux - Run startx over SSH

This question has been asked several times, but the solutions I've found always solve the problem in a different way.


On the remote machine (the one on which I want to run startx), I have already


echo allowed_users=anybody | sudo tee /etc/X11/Xwrapper.config

When I ssh to the machine and run startx;, I get the error,


Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

I added myself to the tty group after which the error is


Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)

Speculating, when I log in to the machine locally, getty (running as root) assigns ownership of tty0 to my user, and this is sine qua non. How can I make this assignment happen without typing my username and password on that virtual terminal? Maybe I can send keystrokes to the virtual terminal? Maybe I can chown the right files so that I can own it?


Of course this is a "XY" problem. The real problem is: when I'm away, I would like to log into the machine (e.g. after a reboot) and turn on its monitor (a projector in this case) so that my family can watch movies on my profile without knowing or having to type my password.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...