Sponsored Content
Full Discussion: vncserver
Operating Systems Linux Red Hat vncserver Post 302524010 by lramsb4u on Friday 20th of May 2011 04:14:18 PM
Old 05-20-2011
Hi ygemici, thanks for the reply with link.

I tried free edition of vncserver from realvnc and did following.

downloaded vnc-4_1_3-x86_linux[1].tar.gz from realvnc and winscp'ed to fedora box and untar it with following command
Code:
tar -zxvf vnc-4_1_3-x86_linux[1].tar.gz

this created a dir called "vnc-4_1_3-x86_linux[1]"
cd to that dir and ./vncinstall /usr/local/bin
this copied vncserver, vncpasswd,vncconfig etc files to /usr/local/bin
cd to /usr/local/bin and then the following

Code:
[root@testbox bin]# ./vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New testbox.local:1 (root)' desktop is testbox.local:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testbox.local:1.log
[root@testbox bin]# echo $?
0

But i haven't found /etc/sysconfig/vncservers file to edit.
And rpm -qa |grep vnc doesnt show the installed rpm.
(But it does created .vnc directory in /root )
What went wrong?

Last edited by radoulov; 05-20-2011 at 05:27 PM.. Reason: Code tags.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vncserver on SCo 505

I have installed vnc on my SCO 505 box. its running fin, but when I start a session and connect to it from my win machine I do get an Xsession but I only get an xterm and thats it. I know my settings are in my //.vnc/xstartup file but what exactly am I supposed to see there. will some one send... (3 Replies)
Discussion started by: franruiz
3 Replies

2. UNIX and Linux Applications

vncserver xlib error

Hello! Im running tight VNC on Red Hat Enterprise Linux 4.0. How can I increase the number of X clients that I can run in a VNC session?I need to run aproximately 500 programs in one VNC session, but at this time I can only 236 -> i've tryed to launch 250 xclock's in background and when it... (0 Replies)
Discussion started by: karpoand
0 Replies

3. Red Hat

how to use vncserver and vncviewer?

hello, I have two fedora 8 systems connected in LAN. I have typed "vncserver" on one terminal; gave a password. Then went to the next terminal and typed "vncviewer".It asked me for host server.I gave the IP address of the above system.But it prompted that "server not found". I tried "ping"... (4 Replies)
Discussion started by: nsharath
4 Replies

4. Linux

vncserver gnome display error

Hi all, I installed vncserver on fedora core 10. I am able to start vncserver and access it via vncviewer but i am not getting gnome display. I am getting the following errors. 1) The panel has encountered a fatal error: the panel could not register with bonobo activation server (error... (6 Replies)
Discussion started by: lramsb4u
6 Replies

5. Ubuntu

VNCserver not working?

Hi, I am having trouble connecting to the vncserver on my Ubuntu server 10.04.2. # vncserver :1 A VNC server is already running as :1 # ps -ef | grep vnc root 2944 1683 0 13:47 pts/0 00:00:00 grep --color=auto vnc I think I have got all the necessary binaries (below) but when I... (0 Replies)
Discussion started by: Duffs22
0 Replies

6. Red Hat

VNCSERVER Install

Hi All, Just wondering if someone can help me out here: Wanted to install vnc server on Centos 6, yum installed tigervnc but there after I do not see any services associated with it. Also, I had installed SAMBA and proceeded with SWAT installation but I am unable to access... (2 Replies)
Discussion started by: a2z1982
2 Replies

7. UNIX for Dummies Questions & Answers

Works on command line but not in script; vncserver on solaris 10

Hi guys. My first post, so be gentle... On my Solaris 10 machine vnc server is running. I need a command to extract most recent client session number (screen). So with: Code: bash-3.2# ps -ef | grep vnc | grep Xaut root 19805 19797 0 15:41:44 ? 0:01 Xvnc :4 -inetd -once... (5 Replies)
Discussion started by: cp6uja
5 Replies

8. Linux

Vncserver NOT working

Hi all, I received following messages while trying to run vncserver, what could be reason behind this. vncserver Warning: system1.pen.com:1 is taken because of /tmp/.X11-unix/X1 Remove this file if there is no X server system1.pen.com:1 Warning: system1.pen.com:2 is taken because of... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

9. UNIX Desktop Questions & Answers

Unable to start vncserver

Hi, While trying to connect vncserver, i am gettting below errors: sh: /home/$USER/.vnc/$HOSTNAME:2.log: Permission denied sh: /home/$USER/.vnc/$HOSTNAME:2.pid: Permission denied New '$HOSTNAME:2 ($USER)' desktop is $HOSTNAME:2 Starting applications specified in... (1 Reply)
Discussion started by: pandeesh
1 Replies
Net::VNC(3pm)						User Contributed Perl Documentation					     Net::VNC(3pm)

NAME
Net::VNC - A simple VNC client SYNOPSIS
use Net::VNC; my $vnc = Net::VNC->new({hostname => $hostname, password => $password}); $vnc->depth(24); $vnc->login; print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . " "; my $image = $vnc->capture; $image->save("out.png"); DESCRIPTION
Virtual Network Computing (VNC) is a desktop sharing system which uses the RFB (Remote FrameBuffer) protocol to remotely control another computer. This module acts as a VNC client and communicates to a VNC server using the RFB protocol, allowing you to capture the screen of the remote computer. This module dies upon connection errors (with a timeout of 15 seconds) and protocol errors. This implementation is based largely on the RFB Protocol Specification, <http://www.realvnc.com/docs/rfbproto.pdf>. That document has an error in the DES encryption description, which is clarified via <http://www.vidarholen.net/contents/junk/vnc.html>. METHODS
new The constructor. Given a hostname and a password returns a Net::VNC object: my $vnc = Net::VNC->new({hostname => $hostname, password => $password}); Optionally, you can also specify a port, which defaults to 5900. For ARD (Apple Remote Desktop) authentication you must also specify a username. You must also install Crypt::GCrypt::MPI and Crypt::Random. login Logs into the remote computer: $vnc->login; name Returns the name of the remote computer: print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . " "; width Returns the width of the remote screen: print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . " "; height Returns the height of the remote screen: print $vnc->name . ": " . $vnc->width . ' x ' . $vnc->height . " "; capture Captures the screen of the remote computer, returning an Image::Imlib2 object: my $image = $vnc->capture; $image->save("out.png"); You may call capture() multiple times. Each time, the $image buffer is overwritten with the updated screen. So, to create a series of ten screen shots: for my $n (1..10) { my $filename = sprintf 'snapshot%02d.png', $n++; $vnc->capture()->save($filename); print "Wrote $filename "; } depth Specify the bit depth for the screen. The supported choices are 24, 16 or 8. If unspecified, the server's default value is used. This property should be set before the call to login(). save_bandwidth Accepts a boolean, defaults to false. Specifies whether to use more CPU-intensive algorithms to compress the VNC datastream. LAN or localhost connections may prefer to leave this false. This property should be set before the call to login(). list_encodings Returns a list of encoding number/encoding name pairs. This can be used as a class method like so: my %encodings = Net::VNC->list_encodings(); send_key_event_down Send a key down event. The keys are the same as the corresponding ASCII value. Other common keys: BackSpace 0xff08 Tab 0xff09 Return or Enter 0xff0d Escape 0xff1b Insert 0xff63 Delete 0xffff Home 0xff50 End 0xff57 Page Up 0xff55 Page Down 0xff56 Left 0xff51 Up 0xff52 Right 0xff53 Down 0xff54 F1 0xffbe F2 0xffbf F3 0xffc0 F4 0xffc1 ... ... F12 0xffc9 Shift (left) 0xffe1 Shift (right) 0xffe2 Control (left) 0xffe3 Control (right) 0xffe4 Meta (left) 0xffe7 Meta (right) 0xffe8 Alt (left) 0xffe9 Alt (right) 0xffea $vnc->send_key_event_down('A'); send_key_event_up Send a key up event: $vnc->send_key_event_up('A'); send_key_event Send a key down event followed by a key up event: $vnc->send_key_event('A'); send_key_event_string Send key events for every character in a string: $vnc->send_key_event_string('Hello'); send_pointer_event( $button_mask, $x, $y ) Send pointer event (usually a mouse). This is used to move the pointer or make clicks or drags. It is easier to call the "mouse_move" or <mouse_click> methods instead. mouse_move_to($x, $y) Send the pointer to the given position. The cursor instantly jumps there instead of smoothly moving to there. mouse_click Click on current pointer position. mouse_right_click Right-click on current pointer position. BUGS AND LIMITATIONS
Bit depth We do not yet support 8-bit true-colour mode, which is commonly supported by servers but is rarely employed by clients. Byte order We have currently tested this package against servers with the same byte order as the client. This might break with a little-endian server/big-endian client or vice versa. We're working on tests for those latter cases. Testing and patching help would be appreciated. Efficiency We've implemented a subset of the data compression algorithms supported by most VNC servers. We hope to add more of the high-compression transfer encodings in the future. AUTHORS
Leon Brocard acme@astray.com Chris Dolan clotho@cpan.org Apple Remote Desktop authentication based on LibVNCServer Maurice Castro maurice@ipexchange.com.au Many thanks for Foxtons Ltd for giving Leon the opportunity to write the original version of this module. Copyright (C) 2006, Leon Brocard This module is free software; you can redistribute it or modify it under the same terms as Perl itself. perl v5.12.4 2011-10-31 Net::VNC(3pm)
All times are GMT -4. The time now is 01:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy