But i doubt replacing Xvnc with gdm in the call made by xinetd would work. I would probably "add" gdm.
"Replace X with Xvnc in the gdm.conf. ", well maybe
Try, any of these changes are reversible, so you don't risk much.




No. I think you got it wrong. There isn't such a thing as "the real X", nor does Xvnc start it.tecknojunky wrote:Xvnc is an intermediary between the remote viewer and the real X.
If you look at ~/.vnc/xstartup, you will see that eventualy, the real X is started.
So Xvnc is not a replacement of X, it's more like a redirector of keyboard/mouse inputs and screen outputs over the network.
How gdm fits into this, that what's elude me for now.

Code: Select all
DisplayManager.errorLogFile: /var/log/xdm.log
DisplayManager.pidFile: /var/run/xdm.pid
DisplayManager.keyFile: /etc/X11/xdm/xdm-keys
DisplayManager.servers: /etc/X11/xdm/Xservers
DisplayManager.accessFile: /etc/X11/xdm/Xaccess
DisplayManager.willing: su nobody -c /etc/X11/xdm/Xwilling
DisplayManager*authorize: true
DisplayManager._0.setup: /etc/X11/xdm/Xsetup_0
DisplayManager._0.startup: /etc/X11/xdm/GiveConsole
DisplayManager._0.reset: /etc/X11/xdm/TakeConsole
DisplayManager*resources: /etc/X11/xdm/Xresources
DisplayManager*session: /etc/X11/xdm/Xsession
DisplayManager*authComplain: true
Code: Select all
[daemon]
AutomaticLoginEnable=false
AutomaticLogin=
TimedLoginEnable=false
TimedLogin=
TimedLoginDelay=30
LocalNoPasswordUsers=
AlwaysRestartServer=true
Configurator=/usr/bin/gdmsetup --disable-sound --disable-crash-dialog
GnomeDefaultSession=/usr/share/gnome/default.session
Chooser=/usr/bin/gdmchooser
DefaultPath=/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/local/bin:/usr/bin
RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/local/
bin:/usr/bin
DisplayInitDir=/etc/X11/gdm/Init
Greeter=/usr/bin/gdmlogin
RemoteGreeter=/usr/bin/gdmgreeter
User=gdm
Group=gdm
KillInitClients=true
LogDir=/var/lib/gdm
PidFile=/var/run/gdm.pid
PostSessionScriptDir=/etc/X11/gdm/PostSession/
PreSessionScriptDir=/etc/X11/gdm/PreSession/
FailsafeXServer=
XKeepsCrashing=/etc/X11/gdm/XKeepsCrashing
RebootCommand=/sbin/shutdown -r now;/usr/sbin/shutdown -r now
HaltCommand=/usr/bin/poweroff;/sbin/poweroff;/sbin/shutdown -h now;/usr/sbin/shu
tdown -h now
SuspendCommand=
ServAuthDir=/var/lib/gdm
SessionDir=/etc/X11/gdm/Sessions/
UserAuthDir=
UserAuthFBDir=/tmp
UserAuthFile=.Xauthority
StandardXServer=/usr/X11R6/bin/X
FlexibleXServers=5
Xnest=/usr/X11R6/bin/Xnest -audit 0 -name Xnest
FirstVT=7
VTAllocation=true
[security]
AllowRoot=true
AllowRemoteRoot=false
AllowRemoteAutoLogin=false
RelaxPermissions=0
RetryDelay=3
UserMaxFile=65536
SessionMaxFile=524388
[xdmcp]
Enable=true
HonorIndirect=true
MaxPending=4
MaxPendingIndirect=4
MaxSessions=16
MaxWait=15
MaxWaitIndirect=15
DisplaysPerHost=1
PingInterval=1
Port=177
Willing=/etc/X11/gdm/Xwilling
[gui]
GtkRC=/usr/share/themes/Default/gtk/gtkrc
MaxIconWidth=128
MaxIconHeight=128
[greeter]
TitleBar=true
ConfigAvailable=true
Browser=false
DefaultFace=/usr/share/pixmaps/nobody.png
Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,gdm,
postgres,pvm,rpm
MinimalUID=100
GlobalFaceDir=/usr/share/faces/
Icon=/usr/share/pixmaps/gdm.png
LocaleFile=/etc/X11/gdm/locale.alias
Logo=/usr/share/pixmaps/gdm-foot-logo.png
Quiver=true
SystemMenu=true
Welcome=Welcome to %n
LockPosition=false
SetPosition=false
PositionX=0
PositionY=0
XineramaScreen=0
BackgroundType=2
BackgroundImage=
BackgroundScaleToFit=true
BackgroundRemoteOnlyColor=true
BackgroundProgram=
RunBackgroundProgramAlways=false
ShowGnomeChooserSession=true
ShowGnomeFailsafeSession=true
ShowXtermFailsafeSession=true
Use24Clock=false
UseCirclesInEntry=false
GraphicalTheme=gentoo-emergence
GraphicalThemeDir=/usr/share/gdm/themes/
[chooser]
DefaultHostImg=/usr/share/pixmaps/nohost.png
HostImageDir=/usr/share/hosts/
ScanTime=3
Hosts=
Broadcast=false
[debug]
Enable=true
[servers]
0=Standard
1=Terminal -query localhost
[server-Standard]
name=Standard server
command=/usr/X11R6/bin/X -nolisten tcp -audit 0
flexible=true
[server-Terminal]
name=Terminal server
command=/usr/X11R6/bin/X -nolisten tcp -audit 0 -terminate
flexible=false
handled=false
Code: Select all
* #any host can get a login window
Tried different clients, no luck... TightVNC 4 win and RealVNC, tight exits with a connection lost message Real says nothing...vdboor wrote:Have you tried using a different vnc client? It almost sounds like your client crashes.
Tested without FW... same result...vdboor wrote: I was also thinking about a firewall issue, but I don't exactly know how (because it seams to work very well for me)
OK..vdboor wrote:Btw, if you're running gdm, you don't need to change the settings of xdm.
Code: Select all
May 14 12:27:37 aqua xinetd[2070]: START: vnc pid=22185 from=200.9.75.132
May 14 12:27:37 aqua gdm[2104]: gdm_xdmcp_decode: Received opcode QUERY from client 127.0.0.1
May 14 12:27:37 aqua gdm[2104]: gdm_xdmcp_handle_query: Opcode 2 from 127.0.0.1
May 14 12:27:37 aqua gdm[2104]: gdm_xdmcp_send_willing: Sending WILLING to 127.0.0.1
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_decode: Received opcode REQUEST from client 127.0.0.1
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_handle_request: Got REQUEST from 127.0.0.1
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_handle_request: pending=0, MaxPending=4, sessions=0, MaxSessions=16
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_display_dispose_check (localhost:7)
May 14 12:27:39 aqua gdm[2104]: gdm_auth_secure_display: Setting up access for localhost:7
May 14 12:27:39 aqua gdm[2104]: gdm_auth_secure_display: Setting up socket access
May 14 12:27:39 aqua gdm[2104]: gdm_auth_secure_display: Setting up network access
May 14 12:27:39 aqua gdm[2104]: gdm_auth_secure_display: Setting up access for localhost:7 - 3 entries
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_display_alloc: display=localhost:7, session id=1084505477, pending=1
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_send_accept: Sending ACCEPT to 127.0.0.1 with SessionID=1084505477
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_decode: Received opcode MANAGE from client 127.0.0.1
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_handle_manage: Got MANAGE from 127.0.0.1
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_handle_manage: Got Display=7, SessionID=1084505477 from 127.0.0.1
May 14 12:27:39 aqua gdm[2104]: gdm_xdmcp_handle_manage: Looked up localhost:7
May 14 12:27:39 aqua gdm[2104]: gdm_choose_indirect_lookup: Host 127.0.0.1 not found
May 14 12:27:39 aqua gdm[2104]: gdm_forward_query_lookup: Host 127.0.0.1 not found
May 14 12:27:39 aqua gdm[2104]: gdm_display_manage: Managing localhost:7
May 14 12:27:39 aqua gdm[2104]: Resetting counts for loop of death detection
May 14 12:27:39 aqua gdm[2104]: gdm_display_manage: Forked slave: 22186
May 14 12:27:39 aqua gdm[22186]: gdm_slave_start: Starting slave process for localhost:7
May 14 12:27:39 aqua gdm[22186]: gdm_slave_start: Loop Thingie
May 14 12:27:39 aqua gdm[22186]: gdm_slave_run: Opening display localhost:7
May 14 12:27:39 aqua gdm[22186]: gdm_slave_greeter: Running greeter on localhost:7
May 14 12:27:39 aqua gdm[2104]: (child 22186) gdm_slave_child_handler
May 14 12:27:39 aqua gdm[22186]: gdm_slave_greeter: Greeter on pid 22188
May 14 12:27:39 aqua gdm[22186]: Sending GREETPID == 22188 for slave 22186
May 14 12:27:39 aqua gdm[22186]: Sending GREETPID 22186 22188
May 14 12:27:39 aqua gdm[2104]: Handling message: 'GREETPID 22186 22188'
May 14 12:27:39 aqua gdm[2104]: Got GREETPID == 22188
May 14 12:27:39 aqua gdm[2104]: (child 22186) gdm_slave_usr2_handler: localhost:7 got USR2 signal
May 14 12:27:42 aqua gdm[22186]: gdm_slave_wait_for_login: In loop
May 14 12:27:42 aqua gdm[2104]: mainloop_sig_callback: Got signal 20
May 14 12:27:42 aqua gdm[2104]: gdm_cleanup_children: child 22186 returned 2
May 14 12:27:42 aqua gdm[2104]: gdm_child_action: Slave process returned 2
May 14 12:27:42 aqua gdm[2104]: gdm_display_unmanage: Stopping localhost:7 (slave pid: 0)
May 14 12:27:42 aqua gdm[2104]: gdm_display_dispose: Disposing localhost:7
May 14 12:27:42 aqua gdm[2104]: (child 22186) gdm_slave_child_handler
May 14 12:27:42 aqua gdm[2104]: (child 22186) gdm_slave_child_handler: 22188 died
May 14 12:27:42 aqua gdm[2104]: (child 22186) gdm_slave_child_handler: 22188 returned 1
May 14 12:27:42 aqua gdm[2104]: main: Exited main loop
Code: Select all
XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.24-sparc-r1 sparc64 [ELF]
Build Date: 30 January 2004
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.4.log", Time: Thu May 13 22:42:24 2004
(==) Using config file: "/etc/X11/XF86Config"
Detected FFB2+/vertical, Z-buffer, Double-buffered.
Symbol DRIQueryVersion from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRICreateInfoRec from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRIScreenInit from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRIDestroyInfoRec from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRIGetSAREAPrivate from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol drmAddMap from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol drmAddMap from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol drmAddMap from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol drmAddMap from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol drmAddMap from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRICloseScreen from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRIDestroyInfoRec from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRICloseScreen from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRIDestroyInfoRec from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol DRIFinishScreenInit from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!
Symbol GlxSetVisualConfigs from module /usr/X11R6/lib/modules/drivers/sunffb_drv.o is unresolved!

Code: Select all
bash-2.05b$ vncviewer localhost:71
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC serverTry: /usr/kde/3.2/share/config/kdm/kdmrcThere is no "kde" directory in /etc...
There is no configuration file for kde in /etc...
It sounds like xinetd has not been configured correctly or not started. You will usually get a connection refused when nothing is listening on that port. It could be firewall related as well.vncviewer: ConnectToTcpAddr: connect: Connection refused

xdm/gdm/kdm will manage your XDMCP connection between the Xvnc/vncclient.tomarsyd wrote:After reading most of this thread, I'm wondering if it's required to have gdm/xdm/kdm/etc installed. When I boot my machine I prefer to get a text login and then run startx to get going in my window manager of choice. Can I still run vnc without having gdm/xdm/kdm/etc running?
Code: Select all
echo "x11-base/xfree -ipv6" >> /etc/portage/package.useCode: Select all
USE="-ipv6" emerge xfreeCode: Select all
usermod -s /bin/bash nobody