[CentOS] How to setup VNC for GDM access on 6.3

2013-01-22 Thread Bruce Ferrell
Hi all,

I'm looking for pointer for setting up VNC so that access to the system is via 
gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but what I'm 
looking for is a sertup 
that allows me to see the *dm login screen instead of being dropped direct into 
a desktop.

Thanks in advance


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-22 Thread Johnny Hughes
On 01/22/2013 03:52 PM, Bruce Ferrell wrote:
> Hi all,
>
> I'm looking for pointer for setting up VNC so that access to the system is 
> via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but what 
> I'm looking for is a sertup 
> that allows me to see the *dm login screen instead of being dropped direct 
> into a desktop.

Depending on what you are really trying to accomplish, freenx/nx might
be what you need (and on centos-6, the OpenNX client):

http://wiki.centos.org/HowTos/FreeNX



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-22 Thread Bruce Ferrell
On 01/22/2013 02:15 PM, Johnny Hughes wrote:
> On 01/22/2013 03:52 PM, Bruce Ferrell wrote:
>> Hi all,
>>
>> I'm looking for pointer for setting up VNC so that access to the system is 
>> via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but what 
>> I'm looking for is a sertup
>> that allows me to see the *dm login screen instead of being dropped direct 
>> into a desktop.
> Depending on what you are really trying to accomplish, freenx/nx might
> be what you need (and on centos-6, the OpenNX client):
>
> http://wiki.centos.org/HowTos/FreeNX
yep,

I'm aware of freenx... and it drops you directly into a desktop. Not acceptable 
for this situation.  I'm *really* trying to be dropped into a *dm (gdm/kdm) 
screen to log into the 
system


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-22 Thread Johnny Hughes
On 01/22/2013 05:26 PM, Bruce Ferrell wrote:
> On 01/22/2013 02:15 PM, Johnny Hughes wrote:
>> On 01/22/2013 03:52 PM, Bruce Ferrell wrote:
>>> Hi all,
>>>
>>> I'm looking for pointer for setting up VNC so that access to the system is 
>>> via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but 
>>> what I'm looking for is a sertup
>>> that allows me to see the *dm login screen instead of being dropped direct 
>>> into a desktop.
>> Depending on what you are really trying to accomplish, freenx/nx might
>> be what you need (and on centos-6, the OpenNX client):
>>
>> http://wiki.centos.org/HowTos/FreeNX
> yep,
>
> I'm aware of freenx... and it drops you directly into a desktop. Not 
> acceptable for this situation.  I'm *really* trying to be dropped into a *dm 
> (gdm/kdm) screen to log into the 
> system

Well, you have to "log into the system" with the opennx client ... then
you get a desktop.

Just like you would be directed to a desktop when you complete the gdm
login.



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-22 Thread Scot P. Floess

There is absolutely a way to do this - I use to do so to my workstation 
from home...

And of course I cannot find the docs anywhere!

Not sure this will help: 
http://www.realvnc.com/products/vnc/documentation/5.0/misc/reference/vncserver-x11-serviced.html



On Tue, 22 Jan 2013, Bruce Ferrell wrote:

> On 01/22/2013 02:15 PM, Johnny Hughes wrote:
>> On 01/22/2013 03:52 PM, Bruce Ferrell wrote:
>>> Hi all,
>>>
>>> I'm looking for pointer for setting up VNC so that access to the system is 
>>> via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but 
>>> what I'm looking for is a sertup
>>> that allows me to see the *dm login screen instead of being dropped direct 
>>> into a desktop.
>> Depending on what you are really trying to accomplish, freenx/nx might
>> be what you need (and on centos-6, the OpenNX client):
>>
>> http://wiki.centos.org/HowTos/FreeNX
> yep,
>
> I'm aware of freenx... and it drops you directly into a desktop. Not 
> acceptable for this situation.  I'm *really* trying to be dropped into a *dm 
> (gdm/kdm) screen to log into the
> system
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Scot P. Floess RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
http://flossware.sourceforge.net
https://github.com/organizations/FlossWare
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-22 Thread Scot P. Floess

OK, also found this - which is "ringing a bell"

http://www.realvnc.com/products/vnc/documentation/4.6/unix/x0.html#vncso

Its been quite a few years since I've run VNC this way...  But this page 
is how I remember doing it now :)



On Tue, 22 Jan 2013, Bruce Ferrell wrote:

> On 01/22/2013 02:15 PM, Johnny Hughes wrote:
>> On 01/22/2013 03:52 PM, Bruce Ferrell wrote:
>>> Hi all,
>>>
>>> I'm looking for pointer for setting up VNC so that access to the system is 
>>> via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but 
>>> what I'm looking for is a sertup
>>> that allows me to see the *dm login screen instead of being dropped direct 
>>> into a desktop.
>> Depending on what you are really trying to accomplish, freenx/nx might
>> be what you need (and on centos-6, the OpenNX client):
>>
>> http://wiki.centos.org/HowTos/FreeNX
> yep,
>
> I'm aware of freenx... and it drops you directly into a desktop. Not 
> acceptable for this situation.  I'm *really* trying to be dropped into a *dm 
> (gdm/kdm) screen to log into the
> system
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Scot P. Floess RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
http://flossware.sourceforge.net
https://github.com/organizations/FlossWare
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-22 Thread Les Mikesell
On Tue, Jan 22, 2013 at 5:26 PM, Bruce Ferrell  wrote:
> On 01/22/2013 02:15 PM, Johnny Hughes wrote:
>> On 01/22/2013 03:52 PM, Bruce Ferrell wrote:
>>> Hi all,
>>>
>>> I'm looking for pointer for setting up VNC so that access to the system is 
>>> via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but 
>>> what I'm looking for is a sertup
>>> that allows me to see the *dm login screen instead of being dropped direct 
>>> into a desktop.
>> Depending on what you are really trying to accomplish, freenx/nx might
>> be what you need (and on centos-6, the OpenNX client):
>>
>> http://wiki.centos.org/HowTos/FreeNX
> yep,
>
> I'm aware of freenx... and it drops you directly into a desktop. Not 
> acceptable for this situation.  I'm *really* trying to be dropped into a *dm 
> (gdm/kdm) screen to log into the
> system


Errr, what?   Freenx  offers to leave your desktop running after you
have logged in and suspended - and then if you log back in as the same
user you can resume.  But you can terminate the session when you are
done if you don't want to leave it running.

I've used vnc spawned by xinetd in the past and it works the way you
describe.  It works, but not as nicely as freenx and if you lose your
connection it kills everything running, like it or not.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-23 Thread Ron Yorston
Bruce Ferrell wrote:
>I'm looking for pointer for setting up VNC so that access to the system
>is via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers
>but what I'm looking for is a sertup that allows me to see the *dm login
>screen instead of being dropped direct into a desktop.

I set this kind of thing up many years ago on CentOS 4.  I was curious to
see if it still worked on CentOS 6 and found that this works for me:

   Edit /etc/gdm/custom.conf to add 'Enable=true' to the '[xdmcp]'
   section.  Restart gdm.  (I just did 'telinit 3; telinit 5'.)

   Run this command to start a server:

   /usr/bin/Xvnc :1 -query localhost -geometry 1100x850 -securitytypes none &

Given a properly configured (or disabled) firewall you should then be able
to run 'vncviewer hostname:1' to get a login screen.

Once you've logged in the session will persist even if you close vncviewer,
so you can reconnect later.  This is, of course, hopelessly insecure.

Starting Xvnc from xinetd is also possible, but then sessions aren't
persistent.

For some reason that I've never been able to fathom if you log out from
a persistent session there's an annoying delay until the login screen
reappears.

Ron
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-23 Thread Steve Clark
On 01/23/2013 05:48 AM, Ron Yorston wrote:
> Bruce Ferrell wrote:
>> I'm looking for pointer for setting up VNC so that access to the system
>> is via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers
>> but what I'm looking for is a sertup that allows me to see the *dm login
>> screen instead of being dropped direct into a desktop.
> I set this kind of thing up many years ago on CentOS 4.  I was curious to
> see if it still worked on CentOS 6 and found that this works for me:
>
> Edit /etc/gdm/custom.conf to add 'Enable=true' to the '[xdmcp]'
> section.  Restart gdm.  (I just did 'telinit 3; telinit 5'.)
>
> Run this command to start a server:
>
> /usr/bin/Xvnc :1 -query localhost -geometry 1100x850 -securitytypes none &
>
> Given a properly configured (or disabled) firewall you should then be able
> to run 'vncviewer hostname:1' to get a login screen.
>
> Once you've logged in the session will persist even if you close vncviewer,
> so you can reconnect later.  This is, of course, hopelessly insecure.
>
> Starting Xvnc from xinetd is also possible, but then sessions aren't
> persistent.
>
> For some reason that I've never been able to fathom if you log out from
> a persistent session there's an annoying delay until the login screen
> reappears.
>
> Ron
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
Hello,

I set my xorg.conf file like below and I can then run:
vncviewer :0

and it just like I am sitting at my desk logging into kdm.

Section "ServerLayout"
 Identifier "Default Layout"
 Screen  0  "Screen0" 0 0
 InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Module"
 Load "vnc"
EndSection

Section "InputDevice"
# keyboard added by system-config-display
 Identifier  "Keyboard0"
 Driver  "kbd"
 Option  "XkbModel" "pc105+inet"
 Option  "XkbLayout" "us"
EndSection

Section "Device"
 Identifier  "Videocard0"
 Driver  "intel"
EndSection

Section "Screen"
 Identifier "Screen0"
 Device "Videocard0"
 DefaultDepth 24
 Option "SecurityTypes" "VncAuth"
 Option "UserPasswdVerifier" "VncAuth"
 Option "PasswordFile" "/root/.vnc/passwd"
 SubSection "Display"
 Viewport   0 0
 Depth 24
 EndSubSection
EndSection

-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.cl...@netwolves.com
http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-23 Thread Kevin Thorpe
This might be a little off-subject but look at xrdp. That sits on top of
vnc and let's you use Windows' remote desktop client to log in as any local
user.
 On Jan 22, 2013 9:53 PM, "Bruce Ferrell"  wrote:

> Hi all,
>
> I'm looking for pointer for setting up VNC so that access to the system is
> via gdm/kdm.  Yes, I know about vino, and /etc/sysconfig/vncservers but
> what I'm looking for is a sertup
> that allows me to see the *dm login screen instead of being dropped direct
> into a desktop.
>
> Thanks in advance
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-23 Thread Les Mikesell
On Tue, Jan 22, 2013 at 9:53 PM, Les Mikesell  wrote:
>
> I've used vnc spawned by xinetd in the past and it works the way you
> describe.  It works, but not as nicely as freenx and if you lose your
> connection it kills everything running, like it or not.
>

I know it is bad form to reply to myself, but now I remember that the
systems where I had this were originally installed with the k12ltsp
distribution which was Centos (or fedora for some versions) with some
additions to make ltsp (thin client network booting) work out of the
box, and it included the vnc-ltsp-config package in the base install.
  But you can install that via yum.  See the vnc-ltsp-config section
of http://wiki.centos.org/HowTos/VNC-Server.  This gives you vnc
sessions on demand with separate user logins for each.   And if you
want, you can arrange for different screen sizes on different ports.

-- 
   Les Mikesell
  lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-24 Thread Bob Hepple
Bruce Ferrell  writes:

> 
> Hi all,
> 
> I'm looking for pointer for setting up VNC so that access to the system is via
gdm/kdm.  Yes, I know about vino,
> and /etc/sysconfig/vncservers but what I'm looking for is a sertup 
> that allows me to see the *dm login screen instead of being dropped direct
into a desktop.
> 
> Thanks in advance
> 
This doe what you want - not sure if it's optimal, but by putting it in
/etc/rc.local I can see gdm on reboot:

x11vnc -xkb -auth guess -q -rfbauth /home/bhepple/.vnc/passwd -display :0
-clear_all -loop

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-24 Thread Bob Hepple
Bob Hepple  writes:

> 
> Bruce Ferrell  writes:
> 
> This doe what you want - not sure if it's optimal, but by putting it in
> /etc/rc.local I can see gdm on reboot:
> 
> x11vnc -xkb -auth guess -q -rfbauth /home/bhepple/.vnc/passwd -display :0
> -clear_all -loop
> 

Hmmm - apologies for repetition but it seems my followup was lost ...

I wanted to mention that it's probably a good idea to use a port other than the
default to avoid conflict with other servers which might be running eg vino. I
use "-rfbport 3389" as that port makes it through our firewall (it's the RDP
port). Also I should mention that the remote screen is unlocked and alive so
there are security concerns with this approach. Anyone know how to disable/lock
it?

Cheers

Bob



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-24 Thread Les Mikesell
On Thu, Jan 24, 2013 at 6:07 AM, Bob Hepple  wrote:
>>
>> I'm looking for pointer for setting up VNC so that access to the system is 
>> via
> gdm/kdm.  Yes, I know about vino,
>> and /etc/sysconfig/vncservers but what I'm looking for is a sertup
>> that allows me to see the *dm login screen instead of being dropped direct
> into a desktop.
>>
>> Thanks in advance
>>
> This doe what you want - not sure if it's optimal, but by putting it in
> /etc/rc.local I can see gdm on reboot:
>
> x11vnc -xkb -auth guess -q -rfbauth /home/bhepple/.vnc/passwd -display :0
> -clear_all -loop

Doesn't x11vnc always stay tied to the console screen?   Sometimes
that's what you want, but I generally want independent remote
sessions.

-- 
   Les Mikesell
  lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup VNC for GDM access on 6.3

2013-01-24 Thread Bob Hepple
Les Mikesell  writes:

> Doesn't x11vnc always stay tied to the console screen?   Sometimes
> that's what you want, but I generally want independent remote
> sessions.

Yes - but the OP wanted something that would tie to display :0 even for
gdm/kdm/xdm logins. 

Also - it looks like the -clientdpms option turns off the physical monitor(s)
when a vncviewer is attached; while not exactly secure, it's a step in the right
direction.




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos