You are not logged in.
Hey,
funny title, I know. Here's the thing - I'm running i3-wm with autostart script - right after starting X it will run a couple of applications and set them up on the screen the way I want.
How can I achieve that after I reboot over SSH, system logs me in, starts X but with locked screen?
I want to be able to reboot it over SSH, and after I connect via Teamviewer, and then see my desktop the same way as if I logged in physically (sitting in front of the machine).
Putting a command in autostart script to run i3-lock after everything is not good enough since there is a time window when it will not be locked. Well, ok, it probably would be good enough for what I need, but I consider it a bad solution.
So, is there a way to run everything (X and all applications I have in my autostart script) like I logged in as if I was sitting in front of my computer, but to do it over SSH?
Thanks
Last edited by developej (2014-03-25 19:45:52)
Offline
You should run i3lock as the first command (it sends itself in the background). Then wait a bit (e.g. 2-5 seconds) before running the rest.
Edit: i3lock starts, waits until the screen is locked, then forks in the background.
Last edited by progandy (2014-03-25 18:52:44)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Ah...I just blindly copied the i3lock command which had -n in the end...removing -n switch and putting the i3lock command on top did the trick.
Thanks!
Offline