I'm trying to launch a gui over ssh, but I get the error
Gtk-WARNING **: cannot open display: :0.0
- I start the remote machine via
wakeonlan
- It sits at Ubuntu's login screen
- I connect via ssh to the remote machine
DISPLAY=:0 someprogram &
fails do to the error above
However, if I login on the remote machine and get past the login screen, all ssh gui commands now work.
So how do I login remotely?
Some more background:
I'm attempting to wake my desktop computer from my laptop. I then try to launch spotify on my desktop, since it's connected to the speakers in my room. If I can get spotify to run on my desktop, I can then launch spotify on my laptop and control it from my laptop. The issue is that spotify needs to be running on both, and the gui for spotify on the desktop won't run until I'm logged in.
Let me know if any more information is needed. For now I simply need to walk over to my desktop and log in which is no issue, but ideally I'd be able to do this all from my laptop.