LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   VNC Server login issue (https://www.linuxquestions.org/questions/linux-software-2/vnc-server-login-issue-741684/)

Deluka 07-21-2009 08:01 AM

VNC Server login issue
 
Hey there
I have install and configured a vnc server on my Linux box using this tutorial
I can login but not into the servers set in the /etc/sysconfig/vncservers

Code:

VNCSERVERS="2:Deluka"
VNCSERVERARGS[2]="-geometry 800x600 -depth 16"

If i'm not mistaking i could be able to logging using 192.168.1.4:5902.
Just to be sure i checked the /etc/xinetd.d/vncts.
this is what i have there.
Code:

# default: off
# To use this remote vnc method:
# * Allow local accesss to Xserver/XDMCP, add to /etc/X11/xdm/Xaccess:
#  localhost       
# Then, this server is accessible at vncviewer <server>:0-5
service vnc-1024x768x16
{
        disable                = no
        type                = UNLISTED
        port                = 5900
        socket_type        = stream       
        wait                = no
        user                = nobody
        group                = tty
        server                = /usr/bin/vncts
        server_args        = -geometry 1024x768 -depth 16
}
service vnc-800x600x16
{
        disable                = no
        type                = UNLISTED
        port                = 5901
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 800x600 -depth 16
}
service vnc-640x480x16
{
        disable                = no
        type                = UNLISTED
        port                = 5902
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 640x480 -depth 16
}
service vnc-1024x768x8
{
        disable                = no
        type                = UNLISTED
        port                = 5903
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 1024x768 -depth 8
}
service vnc-800x600x8
{
        disable                = no
        type                = UNLISTED
        port                = 5904
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 800x600 -depth 8
}
service vnc-640x480x8
{
        disable                = no
        type                = UNLISTED
        port                = 5905
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 640x480 -depth 8
}

So for i as far i can tell everything could be oke.
But the only way i can log is by using vncserver :6 and login remotely by using 192.168.1.4:5906 where i log directly into the root.
Those anyone have any idea what's going on here ?
Sorry for the double post can't seem to remove them

acid_kewpie 07-21-2009 08:17 AM

VNC is just so so so horrible as you can see there... why use such a massively poor system when good alternatives like NX are available?

Deluka 07-21-2009 10:40 AM

Solved
 
Needed to learn to set this VNC up for a my Server+ Training.
Don't now what NX was till you told me.
Well been playing around with with the settings and solved it.

I now can login only to the preset server and everything seems to work.
For the peeps having the same problem here is the content of the /etc/xinetd.d/vncts file.
No more errors on startup and no more login problems


Code:

# default: off
# To use this remote vnc method:
# * Allow local accesss to Xserver/XDMCP, add to /etc/X11/xdm/Xaccess:
#  localhost       
# Then, this server is accessible at vncviewer <server>:0-5
service vnc-1024x768x16
{
        disable                = yes
        type                = UNLISTED
        port                = 5900
        socket_type        = stream       
        wait                = no
        user                = nobody
        group                = tty
        server                = /usr/bin/vncts
        server_args        = -geometry 1024x768 -depth 16
}
service vnc-800x600x16
{
        disable                = yes
        type                = UNLISTED
        port                = 5901
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 800x600 -depth 16
}
service vnc-640x480x16
{
        disable                = yes
        type                = UNLISTED
        port                = 5902
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 640x480 -depth 16
}
service vnc-1024x768x8
{
        disable                = yes
        type                = UNLISTED
        port                = 5903
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 1024x768 -depth 8
}
service vnc-800x600x8
{
        disable                = yes
        type                = UNLISTED
        port                = 5904
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 800x600 -depth 8
}
service vnc-640x480x8
{
        disable                = yes
        type                = UNLISTED
        port                = 5905
        socket_type    = stream
        wait            = no
        user            = nobody
        group          = tty
        server          = /usr/bin/vncts
        server_args    = -geometry 640x480 -depth 8
}



All times are GMT -5. The time now is 05:24 AM.