9 More Discussions You Might Find Interesting
1. What is on Your Mind?
Oh Boy,
Sad News.
My amazing ASUS ROG Swift PG348Q 34" Gaming Monitor has just died.
I'm pretty sure the problem is with the electronic on/off switch, but none-the-less, it's dead.
Purchased on 10 January 2017, the warranty card say it's under 3 year warranty, and I still have the... (10 Replies)
Discussion started by: Neo
10 Replies
2. HP-UX
Hi,
I am trying to setup subversion on hpux 11.11, the svnserve process can be started and the repos have been created, but every we connect to the svn via port 3699 the svnserver will died.
how can i troubleshoot this issue? there is not error from the syslog file. (0 Replies)
Discussion started by: robertngo
0 Replies
3. UNIX for Dummies Questions & Answers
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
4. What is on Your Mind?
so my windows xp box has died. trust me, if i didnt game so much id be using solaris or linux but they dont make games for them :( anyway, i've got a really beat up old linux laptop that i'm using now. it runs well it just can't handle most of todays web pages. gmail is awful on this thing!! i wish... (4 Replies)
Discussion started by: pupp
4 Replies
5. HP-UX
Hello.
system fails on reboot this AM.
received message about not possible for kernel to find process that caused crash.
system does memory dump succesfully, then tries to boot again.
looking further at messages during this time, i'm getting 'init died with return value 256'...system panic... (12 Replies)
Discussion started by: mrviking
12 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Today, on one of my SCO machines, i was getting the following:
PANIC : exit cannot exec /etc/init (PID1).
I used two floppy boot/root disks to boot from floppy.
I followed the procedures to restore the files:
/usr/lib/libc.so.1 and /etc/init.
When I reached the part of making... (6 Replies)
Discussion started by: BAM
6 Replies
7. UNIX for Dummies Questions & Answers
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
8. UNIX for Advanced & Expert Users
Hi,
I have a problem on CDE 1.4 Solaris 8.
It looks like each time I lock the screen, the dtexec that invoke
the dtscreen (that is o.k.) do not died after it done his job and it stay in the system and cause many zombie.
Any suggestions?
Thanks,
Itay. (3 Replies)
Discussion started by: itayst
3 Replies
9. UNIX for Dummies Questions & Answers
Hi, everyone. I tried to install red hat 8.0 on this computer ( CPU: Intel PIII 866, Memory 128 M, HD: 6.4G MATROX, Vedio card: RIVA TNT 16M), but the process always stuck. And the CD-ROM stopped and the light turned of, the HardDrive's light still on. I waited for almost one hour, but nothing... (5 Replies)
Discussion started by: HOUSCOUS
5 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)