I have re emplaced my server and now is conected to the TV with xbmc functions. Mi problem is that I don’t know how can I setup the server to autostart other persistent session accesable with vnc:1
this session is where I will have access to programas which need X session started.
My VNC start aumaticaly perfectly but I don’t know how to make start the sesion X1 and how setup to make it persistent. I supose that I should modify this file:
service vnc2
{
type = UNLISTED
port = 5902
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -noreset -inetd -once -query localhost -geometry 1280x1024 -depth 16
disable = yes
}
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
# prompt. This VNC connection has a resolution of 1600x1200, 16bit depth.
On 05/14/2012 01:06 AM, Jahegu wrote:
>
> Sorry but I don’t understand your reponse,
>
> My VNC start aumaticaly perfectly but I don’t know how to make start
> the sesion X1 and how setup to make it persistent. I supose that I
> should modify this file:
>
> Code:
> --------------------
>
> service vnc2
> {
> type = UNLISTED
> port = 5902
> socket_type = stream
> protocol = tcp
> wait = no
> user = nobody
> server = /usr/bin/Xvnc
> server_args = -noreset -inetd -once -query localhost -geometry 1280x1024 -depth 16
> disable = yes
> }
> # default: off
> # description: This serves out a VNC connection which starts at a KDM login
> # prompt. This VNC connection has a resolution of 1600x1200, 16bit depth.
>
>
> --------------------
>
>
> thanks
>
>
If you mean that when the server boots, and logs in as some user, you
want the VNC:1 session to auto start at the time that the server boots.
Is that the problem?
If it is the problem, you can make a script that dbus-launches
vncserver:x at boot time and is activated by a cron job that calls the
script at boot time.
now I’m able to make autostart the sesions but I have another question. I only know how to launch the other sesion with autologin from the ssh but I don’t know how make it autorun when is another user who launch the :0 sesion
secuence:
boot and launch user1 sesion
it run the vncserver script with user2 credentials
I have the script but I don’t know how to make it runs from user1 as user2.
Thanks for your help, I will try anyway to find the solution