Perl and VNC server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl and VNC server
# 1  
Old 03-13-2012
Perl and VNC server

Hi All

I am trying to write a script that a user can use to start a a vncserver on a host and then connect to it, that bit is fine, i can do that using system commands

but i have defined the hosts to use at the top of my scirpt


Code:
my $allowedhosts  = (site_sg() ? 'host2,host1' : 'host3,host4');

which is a little bit of code that we have that checked for site you are in and if you are SG will use host2 and host1 and if not then host3 and hosts4

want i need is a way of when the checking each host and if the a vncserver is already running then going onto the next host in the list until it finds one that a server is not running

hope that makes sense

thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

vnc server fixed resolution

Hello everyone, This is my last resort. I have searched the internet everywhere using different search engines as well. I am using Redhat 7 where I activated a vncserver (since it comes pre-installed). using the following service: Description=Remote desktop service (VNC)... (0 Replies)
Discussion started by: Deyan Broekman
0 Replies

2. Red Hat

vnc to RedHat Server

I'm trying to use VNC from my desktop to connect to a RedHat (RHEL6) Server. I connect but the screen is black. It I go into the Data Centre the screen is unlocked and all is okay there. I can connect no problem to other Desktops & Servers. Is there a setting maybe or can anybody suggest another... (6 Replies)
Discussion started by: itwex
6 Replies

3. Fedora

VNC Client/Server has different display

Hi, I set-up my VNC Server on a Fedora 13 and I have a client on windows. I can access the Fedora PC but when I move the mouse and click on folders, I do not see the Fedora Desktop updating (I don't see the things that I am doing in my client on the Fedora PC) Then, when I do something on... (0 Replies)
Discussion started by: h0ujun
0 Replies

4. UNIX for Dummies Questions & Answers

VNC Server Unauthenticated Access - Nessus

hi guys Suse 10 SP2 Security guys run an app called Nessus for vulnerabilities and they found this one on my linux VNC Server Unauthenticated Access and I really don't know what they mean... I can update vnc on these servers but there is not guarantee this will fix the issue and the... (2 Replies)
Discussion started by: kopper
2 Replies

5. Red Hat

vnc server or x11vnc @ startup

Dear all, I am using Fedora15 kde I have installed Real vnc (server & viewer) real vnc Viewer is working fine - i like this. real vnc server has License period expired problem (i dont know how to add) I have x11vnc server (Desktop sharing) installed - Its working fine too. I... (2 Replies)
Discussion started by: linuxadmin
2 Replies

6. Solaris

vnc server error

I 'm unable to start vnc server, i get following error in the log file Fatal server error: could not open default font 'fixed' xsetroot: unable to open display 'essapl020-u009:0' twm: unable to open display "essapl020-u009:0" xterm Xt error: Can't open display: essapl020-u009:0... (0 Replies)
Discussion started by: fugitive
0 Replies

7. Linux

VNC Server, brings up really basic Xwindows

I am running Startcom linux ES5 . When i bring up the VNC server and login to the machine running a vnc client , I only get the real basic x-windows session and a term window. how can i get it to bring up the real linux desktop on all sessions? Frank (4 Replies)
Discussion started by: frankkahle
4 Replies

8. Solaris

VNC server from the Companion cd. Solaris 8 SPARC

hey. i have been installing the VNC server from the solaris Companion cd under solaris 8 SPARC, when i try to open the vncserver i get: Xvnc is not in your PATH, how do i add it to the PATH ? and how do i install it if i need to do that, thx (0 Replies)
Discussion started by: mads-nielsen
0 Replies

9. AIX

How can I take control the native X server on AIX5.3 via VNC ?

Hello I need to be able to take control of the native X server ( :0.0 ) on AIX5.3 workstations via VNC to be able to assist users...seeing what they are doing is much better than them telling me what they are doing. I know that this can be done on linux so it should doable on AIX. On linux... (0 Replies)
Discussion started by: art
0 Replies

10. Linux

VNC Server http listening port

Hi All, I'm running RH 9.0 on a PII box with 160MB RAM. Just downloaded RealVNC X86 Linux (version 3.3.7). How can I get the HTTP listening port up ? Thanks, KENT (6 Replies)
Discussion started by: kxchen_home
6 Replies
Login or Register to Ask a Question
vncpasswd(1)						     Virtual Network Computing						      vncpasswd(1)

NAME
vncpasswd - change a VNC password SYNOPSIS
vncpasswd [passwd-file] DESCRIPTION
vncpasswd allows you to set the password used to access VNC desktops. It stores an obfuscated version of the password in the given file (default $HOME/.vnc/passwd). The vncserver script runs vncpasswd the first time you start a VNC desktop, and invokes Xvnc with the appro- priate -rfbauth option. vncviewer can also be given a password file to use via the -passwd option. The password must be at least six characters long, and only the first eight characters are significant. Note that the stored password is not encrypted securely - anyone who has access to this file can trivially find out the plaintext password, so vncpasswd always sets appro- priate permissions (read and write only by the owner). However, when accessing a VNC desktop a challenge-response mechanism is used over the wire making it hard for anyone to crack the password simply by snooping on the network. FILES
$HOME/.vnc/passwd Default location of the VNC password file. SEE ALSO
vncviewer(1), vncserver(1), Xvnc(1) vncconfig(1), http://www.realvnc.com AUTHOR
Tristan Richardson, RealVNC Ltd. VNC was originally developed by the RealVNC team while at Olivetti Research Ltd / AT&T Laboratories Cambridge. It is now being maintained by RealVNC Ltd. See http://www.realvnc.com for details. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability | | +-----------------------------+-----------------------------+ |Interface Stability | | +-----------------------------+-----------------------------+ RealVNC Ltd 03 Mar 2005 vncpasswd(1)