View Single Post

   
  #7 (permalink)  
Old 01-04-2008, 09:23 PM
F. Michael Orr
 
Posts: n/a
Default Re: vnc session with CDE


"Steve Nottingham" <steve@wakefieldrfc.freeserve.co.uk> wrote in message
news:42862645.0310080239.7d8df948@posting.google.c om...
> > Along these lines, has anyone gotten VNC working through inetd? I
> > would love this method to present a dtlogin screen, but the best I
> > have been able to do is a grey screen with an X pointer...
> >
> > I am using the following:
> >
> > freeware.vnc.rte 3.3.3.2 COMMITTED Virtual Network
> > Computing
> >
> > Any help would be appreciated.
> >

>
> AFAIK VNC takes over the output that is currently on the graphical
> screen, it takes the image from the frame buffer on the graphics card,
> I might be wrong about this but that's how it seems to work on my C10.
>
> To get a dtlogin screen, you really need an X server on the box you
> want the login session to appear on. I use Cygwin and XFree86 on my
> PC's and to start a dtlogin session I issue: XWin -query <host> Where
> <host> is the box I want to login to CDE.
>
> Steve


No, that's not a requirement; we have our AIX servers running VNC servers
via inetd and getting CDE logins. In fact, we force our users to tunnel
this through SSH, for security and compression, and it all works great.

The VNC server that comes with the AIX Toolkit for Linux does not support
being started from inetd; you have to get another version, like from
www.bullfreeware.com.

1. Add to vnc ports to /etc/services. I add two: 5901 and 5902, with 5901
being a 800x600 screen, and 5902 being a 1024x768 screen.

vnc1 5901/tcp # Vnc port
vnc2 5902/tcp # Vnc port (1024x768 resolution)

2. Add the two vnc sessions to /etc/inetd.conf. This configuration uses
tcp_wrappers (which is nice).
vnc1 stream tcp nowait nobody /usr/local/bin/tcpd
/usr/local/bin/Xvnc -inetd -query localhost -once -depth 24 -geometry
800x600 -fp tcp/:7100
vnc2 stream tcp nowait nobody /usr/local/bin/tcpd
/usr/local/bin/Xvnc -inetd -query localhost -once -depth 24 -geometry
1024x768 -fp tcp/:7100

3. You _must_ run 'xfs' for font services. VNC will silently die if you
don't. Add it to whatever startup routines you have.

4. refresh -s inetd

If you have 'dtlogin' already running (e.g. you have a local graphics
console), your VNC sessions will be presented with the CDE login screen,
though you may have to restart dtlogin (I can't remember if a restart is
required or not). Connect to the ':1' session for 800x600, and to the ':2'
for 1024x768.


Reply With Quote