10 More Discussions You Might Find Interesting
1. Hardware
My desktop computer is only turning on for a few seconds after that it turns off. I assumed it was the power supply so I bought another one. Last night I installed the power supply. It took awhile with me reseating everything and taking out the cmos battery to get the computer running. After that I... (4 Replies)
Discussion started by: cokedude
4 Replies
2. Hardware
I wasn't sure where to post this. Please move this as is fitting.
My 10yr old laptop's (Dell, Latitude E5530, 4G ram, 2.5Ghz x 2 CPU) spin drive has died (currently running TinyCore Linux on USB in ram).
I would be running Linux, compiling the kernel, and programming in C++. I do not do... (0 Replies)
Discussion started by: bedtime
0 Replies
3. Shell Programming and Scripting
I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ssh hostname path ksh HC_Report.ksh>out.html
...but it generates the HTML file in
remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies
4. Debian
Hi,
I've been looking for a way to execute a console program (is in windows but by now I accept the linux way) from a linux machine, but this program has to be opened in the remote side. Linux machine acts only as a "signaling" host. My program has to open the camera in the remote side, but only... (7 Replies)
Discussion started by: zauberberg
7 Replies
5. Solaris
hi gyus, i'm trying to login trough GUI (using login screen, instead to login to locahost I login to remote host) from on Solaris 10 to another one.
You know, I see the remote host in the host list, but It's not possible to login since the screen keeps black and after that get back to the former... (3 Replies)
Discussion started by: daninx
3 Replies
6. Shell Programming and Scripting
Dear all,
Where can i find documentation on how to access a remote computer using a perl script? I search to the internet but i can not find something straightforward to this issue.
Which is the easiest way to do that?
What i would like to do is to access a remote computer access a directory... (5 Replies)
Discussion started by: chriss_58
5 Replies
7. UNIX for Dummies Questions & Answers
Hey, how do I access the desktop gui for a remote fedora box?
$ ssh user@ip
$ xinit
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Thanks (1 Reply)
Discussion started by: JustinT
1 Replies
8. UNIX for Dummies Questions & Answers
i need to know how i would go about accessing my floppy disks, cd's and flash drives on my command prompt unix system (1 Reply)
Discussion started by: carlvernon
1 Replies
9. UNIX for Advanced & Expert Users
I have installed Oracle 9 client on 32-bit machine for Linux Enterprise 2.4. After complete installation and testing the oracle client.
After rebooting the system I was presented with a login prompt but the GUI desktop does not come. I tried startx but that did not work. What command would I use... (0 Replies)
Discussion started by: aliraza123
0 Replies
10. UNIX for Dummies Questions & Answers
Hi
I need to access files from a specific folder of a Linux system from an another Linux System Remotely.
I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility.
Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 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)