|
Home | Switchboard | Unix Administration | Red Hat | TCP/IP Networks | Neoliberalism | Toxic Managers |
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and bastardization of classic Unix |
|
|
eTrust Spyware Encyclopedia - VNC -- vnc can be installed as a Trojan
Virtual Network Computing (VNC) Utility a useful article by Ray Ballisti, June 2000 (Last rev. 20th November 2003)
... ... ...Let try to use VNC between two SUN machines (this do not make much sense but is good as a test):
Machine AA is the display server, i.e. your local one.
Machine BB is the application server, i.e. the remote one.Please note: do NOT use ssh at this stage because VNC will not work then.
AA% rlogin BB
BB% top <== check that there is enough memory and CPU power
BB% vncserver :1Comment:
The ":1" here means DISPLAY no. 1.
Please do NOT use display nr. 0 as this is already your present (telnet or rlogin) session.
In some special cases (for instance if you are running more then one vnc server) there is a conflict with the display numbering: just enter an higher number.
Check your ~/.vnc/server_name:1.log file to see if everything is OK
For instance this is a possible log file's name:
~/.vnc/sirrah.ee.ethz.ch:71.log for machine 'sirrah' and DISPLAY ':71'
The content of this file looks like this:24/11/03 15:05:04 Xvnc version 3.3.3r1 24/11/03 15:05:04 Copyright (C) AT&T Laboratories Cambridge. 24/11/03 15:05:04 All Rights Reserved. 24/11/03 15:05:04 See http://www.uk.research.att.com/vnc for information on VNC 24/11/03 15:05:04 Desktop name 'X' (sirrah.ee.ethz.ch:71) 24/11/03 15:05:04 Protocol version supported 3.3 24/11/03 15:05:04 Listening for VNC connections on TCP port 5971 24/11/03 15:05:04 Listening for HTTP connections on TCP port 5871 24/11/03 15:05:04 URL http://sirrah.ee.ethz.ch:5871If this is the first time that you are using vncserver then you will be asked to enter (define) a password.
You may want to check if the server is really running. Do it with the command:
ps -ef | grep Xvnc | grep -v grep
you should see something like this:
BB% ps -ef | grep Xvnc | grep -v grep
your_name 335 1 0 18:53:41 pts/4 0:01 Xvnc :1 -desktop X -httpd /usr/pack/vnc-3.3.3r1-rb/vnc_sun4_sosV_5.5/classes -ain the case above we are using the display BB:1.0 (more about it later)
To kill the server program LATER on (but do NOT forget it), execute:
BB% vncserver -kill :1you can now exit the application server leaving the VNC-server program running
BB% exit
Back on your local machine (here AA) starts the Viewer having the name of the server and the DISPLAY number as parameter:
AA % vncviewer BB:1
VNC server supports protocol version 3.3 (viewer 3.3)
Password:
VNC authentication succeeded
Desktop name "your_name's X desktop (BB:1)"
Connected to VNC server, using protocol version 3.3
VNC server default format:
8 bits per pixel.
True color: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using default color map and translating from BGR233. Pixel format:
8 bits per pixel.
True color: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Got 8 exact BGR233 colors out of 256
Using 77 existing shared colors
On your screen you will see a big window which represent a desktop similar to the one that you would have if you would have logged on the application server's console.
In this big windows one xterm is already open and there you can start all the utilities you wish on the server.
VNC (Virtual Network Computing) is a very useful network graphics protocol (applications running on one computer but displaying their windows on another) in the spirit of X, however, unlike X, the viewing-end is very simple and maintains no state. It is a remote framebuffer (RFB) protocol
Some VNC links:
For Unix, the VNC implementation includes a virtual X11 server Xvnc (usually launched via the vncserver command) that is not associated with a physical display, but provides a "fake" one X11 clients (
xterm
,mozilla
, etc.) can attach to. A remote user then connects to Xvnc via the VNC client vncviewer from anywhere on the network to view and interact with the whole virtual X11 desktop.The VNC protocol is in most cases better suited for remote connections with low bandwidth and high latency than is the X11 protocol (the exception is cached pixmap data on the viewing-end). Also, with no state maintained the viewing-end can crash, be rebooted, or relocated and the applications and desktop continue running. Not so with X11.
So the standard Xvnc/vncserver program is very useful, I use it for things like:
- Desktop conferencing with other users (e.g. codereviews).
- Long running apps/tasks I want to be able to view from many places.
- Motif, GNOME, and similar applications that would yield very poor performance over a high latency link.
However, sometimes one wants to connect to a real X11 display (i.e. one attached to a physical monitor, keyboard, and mouse: a Workstation or a SunRay session) from far away. Maybe you want to close down an application cleanly rather than using
kill
, or want to work a bit in an already running application, or would like to help a distant colleague solve a problem with their desktop. This is where x11vnc is useful.
VNC over SSH2
- A TightVNC Tutorial Van
Emery - June, 2003
This tutorial is not about using VNC through a web browser, or via the
traditional unencrypted methods. This tutorial focuses on the following:
- Linux/Unix to Linux/Unix secure connections, especially over low-bandwidth
WAN links
We will also take a look at bandwidth utilization and quality compared to
X over SSH,
and security considerations. When complete, you should be able to use TightVNC
over SSH2 to assist you in your daily work.
TightVNC and VNC both have excellent documentation on their respective webpages,
and I urge you to take a look for yourself if you want more information on how
to use VNC for other tasks. Also, the man pages that come with the TightVNC
packages are well-written and thorough.
- Win32 to Linux secure connections
Setting up TightVNC and SSH on a Windows NT machine Note: I have switched to TightVNC, an enhanced version of VNC. The old page about setting up WinVNC and SSH is here.
With TightVNC and Cygwin ported packages, we can log onto a Windows box and even run Windows GUI programs remotely. TightVNC is based on WinVNC. VNC stands for Virtual Network Computing. It allows you to view a computing 'desktop' environment not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures. WinVNC is a VNC server that allows you to view your Windows desktop from any VNC viewer. WinVNC makes the existing desktop of the PC available remotely, rather than creating a separate desktop as happens with the Unix server. TightVNC offers good enhancement such as better compression ratio and easier configuration.
Although TightVNC does not send your VNC password directly on the network, it sends all other information unencrypted. Therefore, your key strokes sending from the client may be eavesdropped on the net, which raises serious security concerns. To make TightVNC secure, we need the TCP forwarding support from SSH (Secure Shell). SSH will also give us an interactive shell so that if we only want to run some console-based programs, we do not need VNC. SSH console uses much less network bandwidth than VNC because no graphics information is tranferred. In addition, SSH provides the file tranfer support through simple scp or the more sophisticated sftp utilities. OpenSSH is the most popular free (and open source) implementation of the SSH protocol suite of network connectivity tools for Unix like platforms. Through Cygwin, a UNIX emulation layer providing substantial UNIX API functionality, OpenSSH has been ported to Windows platforms.
I have a Windows NT machine in the lab with high speed Internet connection and a Windows 2000 machine at my home that can only dial up to the Internet. Here's how I set up the two computers so that I can run programs remotely on my lab computer from my home. The Windows NT machine in the lab acts as the server, the machine at home as the client. I am a member of the Administrators group on the lab machine. The following procedures are based on my experience.
setup.exe
program from
Cygwin website and run it. This stub
program will guide you through the installation process and download each
package. Please select the following packages as well as all your other
favorite utilities.
cygrunsrv
: NT/W2K service initiator
shutdown
: Shutdown, reboot, hibernate or suspend the
machine. (This is optional, but I installed it so that I can reboot the
machine remotely if all other means fail.)
openssh
: The OpenSSH server and client programs Putty
is my favorite SSH client. Download the latest putty
and pscp program from
putty website.
Version 0.52 and above supports TCP forwarding.
[PDF]
VNC Neighborhood Help -- scanning for VNC enabled servers.
How to setup ssh to tunnel VNC
traffic throught the Internet
TightVNC Remote X the secure, fast & easy way (LinuxWorld) This is a typical Joe Barr blah-blah-blah all over the place :-)
(LinuxWorld) - My dear friend Susan is happily running Red Hat 8.0 on my Sony Vaio laptop in her new home while she waits for me to build her a real desktop machine. I set up an account for myself on the laptop so that when I visit her I can get online and check my e-mail. We both connect to the Internet using Time-Warner's Road Runner cable service.
Sometimes I forget to shut down Evolution on my own desktop before I leave home. As a result, every ten minutes it retrieves my e-mail and deletes it from the various servers where I have an account. Then, when I check it from Susan's house, there's nothing there. I needed a better solution. Discussing the problem on the #linuxhelp channel on the irc.freenode.net network, I was told that VNC (Virtual Network Computing) might be the answer. More specifically, I was told to give TightVNC a try.
The original VNC was created at the Olivetti and Oracle Research Labs in Cambridge, England. The software allowed a desktop on one computer to be used by others, usually providing Windows-users with access to applications running on Unix machines - a panacea for those cross-platform blues. VNC became so popular that Olivetti released it as free software licensed under the GPL. When ATT acquired Olivetti in 1999, the name of the labs was changed to the ATT Laboratories at Cambridge.
Constantin Kaplinski, a Russian teaching assistant at Tomsk Polytechnic Institute in Russia, and his team of TightVNC developers have enhanced the original VNC in a number of ways to make it faster, more flexible, and more secure. There are full versions of TightVNC for both Windows and Unix. If you're using a Mac, you can try the Java version, but only the viewer (client) is available in Java. TightVNC is licensed under the GPL, and the source code is available for download from the Web site.
I was a little hesitant to try TightVNC - not just because I had never used VNC, but also because I was pretty sure that the installation and configuration was going to be a real chore. Not to worry; that definitely is not the case. If you're running Red Hat 7.x or later, there are RPMS available to make installation a breeze. All in all, TightVNC was as easy to configure and use as it was to install, even when I opted for extra privacy by using a secure tunnel between Susan's machine and mine. Here's how I did it.
Society
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
Quotes
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Bulletin:
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
History:
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
Classic books:
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|
You can use PayPal to to buy a cup of coffee for authors of this site |
Disclaimer:
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.
Last modified: March 12, 2019