Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to get kdm over vnc session?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Wed Sep 14, 2005 12:50 am    Post subject: how to get kdm over vnc session? Reply with quote

Good morning...

I have just set up a gentoo 2005.1 system with kde. I wish to connect to the display remotely via VNC.

Currently I log in via text console over SSH (using putty on windows) and start vncserver manually. But this is very tedious. :P

Is there any way to have kdm start up, but attached to vncserver instead of a normal X server? In other words, is there any way to have vnc client connect to my gentoo box and get the kdm display?

Thanks in advance.
Back to top
View user's profile Send private message
tom78999
n00b
n00b


Joined: 25 Apr 2005
Posts: 12
Location: UK

PostPosted: Wed Sep 14, 2005 1:11 am    Post subject: Reply with quote

You should be able to add the command to start the VNC Server to the KDM startup script, which I believe is located at:

Code:
/usr/kde/*/share/config/kdm/Xsetup


I do a similar thing with GDM and x11vnc by adding the following to the end (but before "exit 0") of the GDM startup script (at /etc/X11/gdm/Init/Default):

Code:
/usr/bin/x11vnc -o /tmp/x11vnc.log -rfbauth /home/tom/.vncpasswd -forever -bg


Hope this helps!
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Wed Sep 14, 2005 1:59 am    Post subject: Reply with quote

Or, enabled XDMCP in your /usr/kde/3.4/share/config/kdm/kdmrc file (near the bottom I think) and then when you start the VNC server, pass "-query localhost" as a command line parameter. Make sure to restart xdm for the XDMCP settings to take effect.
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Thu Oct 13, 2005 8:42 am    Post subject: Reply with quote

tom78999 wrote:
You should be able to add the command to start the VNC Server to the KDM startup script, which I believe is located at:

Code:
/usr/kde/*/share/config/kdm/Xsetup


I do a similar thing with GDM and x11vnc by adding the following to the end (but before "exit 0") of the GDM startup script (at /etc/X11/gdm/Init/Default):

Code:
/usr/bin/x11vnc -o /tmp/x11vnc.log -rfbauth /home/tom/.vncpasswd -forever -bg


Hope this helps!


Many thanks, works fine for me ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum