Is it possible to have my desktop loaded before login?

Posted by Dims on Ask Ubuntu See other posts from Ask Ubuntu or by Dims
Published on 2012-11-30T13:16:35Z Indexed on 2012/11/30 17:20 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

I am connecting to the system with Putty (this is Windows SSH client) then running some service in interactive personal mode.

For example this is a script to run freeswitch:

dims@nebulla:~$ cat freeswitch.sh
#!/bin/sh
cd ~/bin/freeswitch/bin
gnome-terminal -e ./freeswitch &

I.e. it is installed in user directory.

Also DISPLAY is set to :0

The problem is that I can't use this script until login once.

Script responds with

dims@nebulla:~$ ./freeswitch.sh
dims@nebulla:~$ No protocol specified
Failed to parse arguments: Cannot open display:

After login, I can do "Switch user" and see login screen but script will be able to run since desktop exists.

My question is: is it possible to "preload" my desktop, so that initial situation was as if I loogged in and the went to switch user?

© Ask Ubuntu or respective owner

Related posts about 11.10

Related posts about unity