vnc only allows 2 users


 
Thread Tools Search this Thread
Operating Systems Solaris vnc only allows 2 users
# 1  
Old 12-30-2014
vnc only allows 2 users

Hello, have an odd question... i have had VNC installed on my solaris server for over a year now and all of a sudden, i cannot have more that two sessions connected thru VNC at a time. I used to be able to have 8 users. The other problem is someone else installed the VNC server and i cannot seem to find where any of the files are installed at on the server.

just came in one day and now i get the error message on my pc of
Error in TightVNC Viewer, Unsuppoted Protocol /opt/tigntvn on my windows desktop

thank you.... happy holidays everyone
# 2  
Old 12-30-2014
So, your config is tightvnc on windows to vnc on solaris? I use the free version, and there is no user limit but the 100 ports. I recall times I had to edit 'vncserver' to force it to use TCP because UNIX socket directories had too tight permissions. Are you sure that is your Xvnc on that socket?
# 3  
Old 01-01-2015
How do get to the machine that has your VNC server(s) running? SSH? Check the remote server and see what's listening on ports starting at 6000 and up, maybe up to 6030 or so.

Each VNCserver virtual display needs to open a standard X Windows server display port and listen on it for connections from client processes that want to display on that server. The envval "DISPLAY=host1:8.0" means display 0 on port 6008 on host1, while "DISPLAY=host2:2.1" means display 1 (not normally used) on port 6002 on host2. The most common - "DISPLAY=:0.0" means display 0 on port 6000 on the local host.

If there are no port conflicts, firewall rules could be limiting the available ports.
# 4  
Old 01-02-2015
Yes, each additional user on a host has to consume a port number 5900-5999 for incoming viewer connections, to take X connections on 6000-6099 respectively. A firewall may not be letting your viewer in. Try "netstat -an | grep '\.59[0-9][0-9][^0-9]'" to see users of vnc ports. You can easily get vncserver to use any port, so try a higher one.
# 5  
Old 01-12-2015
this is what i am getting on the netstat. not sure even how to shut down and restart the server. when i try vncserver i get an xauth not found error. so thinking maybe there is a different command to shut down the services.

thank you for your replys

Code:
10.100.99.99.5962    192.168.1.71.62685   65536      0 49640      0 ESTABLISHED
127.0.0.1.5988             *.*                0      0 49152      0 LISTEN
127.0.0.1.5987             *.*                0      0 49152      0 LISTEN
      *.5960               *.*                0      0 49152      0 LISTEN
      *.5961               *.*                0      0 49152      0 LISTEN
      *.5962               *.*                0      0 49152      0 LISTEN
      *.5963               *.*                0      0 49152      0 LISTEN
      *.5964               *.*                0      0 49152      0 LISTEN

---------- Post updated at 10:09 AM ---------- Previous update was at 10:07 AM ----------

getting unsupported protocol, fatal serv error when trying to connect a second session after first session is connected on another machine

---------- Post updated at 04:21 PM ---------- Previous update was at 10:09 AM ----------

ok, i found some other items that seems strange. when doing a svcs -a | grep -i x11 i get the following services:

Code:
# svcs -a | grep -i x11
disabled       12:36:27 svc:/application/x11/xvnc-inetd:default
online         Dec_10   svc:/application/x11/xfs:default

if i try to bring up the xvnc-inetd:default, it does not enable, it says maintenance mode.

does the above statemnt mean i am running a differnt version of vnc. this was upgraded from a solaris 9 and always ran the tightvnc. we had some database issues and lost a directory for a while but that has since been rebuilt. that was the /opt directory and it now checks without errors.

my question is what is the xfs:default service and is it preventing me from enabling the xvnc?

thanks

Last edited by Corona688; 01-12-2015 at 06:55 PM..
# 6  
Old 01-22-2015
It looks like another app is using 59?? ports. Does vncserver check for taken ports both 60?? and 59??, if not a vnc bug. Yes, vncserver checks both ports:
Code:
#
# GetDisplayNumber gets the lowest available display number.  A display number
# n is taken if something is listening on the VNC server port (5900+n) or the
# X server port (6000+n).
#
sub GetDisplayNumber
{
    foreach $n (1..99) {
        if (&CheckDisplayNumber($n)) {
            return $n+0; # Bruce Mah's workaround for bug in perl 5.005_02
        }
    }
    die "$prog: no free display number on $host.\n";
}
 
#
# CheckDisplayNumber checks if the given display number is available.  A
# display number n is taken if something is listening on the VNC server port
# (5900+n) or the X server port (6000+n).
#
sub CheckDisplayNumber
{
    local ($n) = @_;
    socket(S, $AF_INET, $SOCK_STREAM, 0) || die "$prog: socket failed: $!\n";
    eval 'setsockopt(S, &SOL_SOCKET, &SO_REUSEADDR, pack("l", 1))';
    if (!bind(S, pack('S n x12', $AF_INET, 6000 + $n))) {
        close(S);
        return 0;
    }
    close(S);
    socket(S, $AF_INET, $SOCK_STREAM, 0) || die "$prog: socket failed: $!\n";
    eval 'setsockopt(S, &SOL_SOCKET, &SO_REUSEADDR, pack("l", 1))';
    if (!bind(S, pack('S n x12', $AF_INET, 5900 + $n))) {
        close(S);
        return 0;
    }
    close(S);
    if (-e "/tmp/.X$n-lock") {
        warn "\nWarning: $host:$n is taken because of /tmp/.X$n-lock\n";
        warn "Remove this file if there is no X server $host:$n\n";
        return 0;
    }
    if (-e "/tmp/.X11-unix/X$n") {
        warn "\nWarning: $host:$n is taken because of /tmp/.X11-unix/X$n\n";
        warn "Remove this file if there is no X server $host:$n\n";
        return 0;
    }
    if (-e "/usr/spool/sockets/X11/$n") {
        warn("\nWarning: $host:$n is taken because of ".
             "/usr/spool/sockets/X11/$n\n");
        warn "Remove this file if there is no X server $host:$n\n";
        return 0;
    }
    return 1;
}

It'd be interesting to see the lsof of those ports, who is using them for what, but you need to be root for that (to see all user info). You'd think 100 ports would be enough.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

2. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

3. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

4. Solaris

VNC in solaris 10

First you need to know that I'm 100% new to solaris/unix. I'm trying to setup VNC on my sparc based server that I just installed solaris 10 on but when I type in vncserver to start it, I get "couldn't find "xauth" on your PATH" What do I do so I can get a gui up and running remotely on my... (20 Replies)
Discussion started by: QuadRunner750
20 Replies

5. Solaris

VNC Connect

Hi all, Almost at my wit ends, trying to connect to vnc port 0 on Solaris 10. configured Xservers with the followin: :0 Local local_uid@none root /usr/X11/bin/Xserver :0 -rfbauth /etc/.vnc/passwd -rfbport 5900 :1 Local local_uid@none root /usr/X11/bin/Xserver :1 -rfbauth... (1 Reply)
Discussion started by: srage
1 Replies

6. UNIX for Dummies Questions & Answers

Problem with VNC

Hi all, I have vncserver installed on Sun Solaris 8. The xstartup file looks like: #!/bin/sh && xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & /usr/dt/bin/dtwm & I have installed VNC on /usr/local/bin. When I try to... (0 Replies)
Discussion started by: naw_deepak
0 Replies

7. UNIX for Advanced & Expert Users

Timer for VNC

Hello fellows, I am new in this forum, i would appreciate your assistance. I need a timming system for my vnc desktops (Cybercafe timer stuff). Each unix user login to my server only with vnc, and i want to write a program that can generate timer tickets and have control on the time used for... (1 Reply)
Discussion started by: foweja
1 Replies

8. Shell Programming and Scripting

VNC Timer

Hello fellows, I am new in this forum, i would appreciate your assistance. I need a timming system for my vnc desktops (Cybercafe timer stuff). Each unix user login to my server only with vnc, and i want to write a program that can generate timer tickets and have control on the time used for... (0 Replies)
Discussion started by: foweja
0 Replies

9. HP-UX

VNC depot

Hi All, I'm having a very difficult time compiling VNC for HPUX 11.0. Is there a vnc depot sitting somewhere out there ? Thanks a bunch, KENT (1 Reply)
Discussion started by: kxchen_home
1 Replies

10. UNIX for Dummies Questions & Answers

Vnc

Anyone know of a site where I can download a copy (non-evaluation copy and preferably free. ;) nods to Neo's post in UNIX Operating System thread) of VNC for RedHat 8? Thanks in advance. (7 Replies)
Discussion started by: google
7 Replies
Login or Register to Ask a Question