From vogtmann@cis.ohio-state.edu Mon Jan  6 23:20:42 EST 2003 
Article: 14471 of cis.general 
Path: news.cis.ohio-state.edu!not-for-mail 
From: "Kevin Vogtmann" <vogtmann@cis.ohio-state.edu> 
Newsgroups: cis.course.cis321,cis.course.cis222,cis.course.cis221,cis.general 
Subject: So you wanna do labs from your dorm (or anywhere but CL) 
Date: Mon, 6 Jan 2003 22:11:45 -0500 
Organization: The Ohio State University Dept. of Computer and Info. Science 
Lines: 95 
Sender: vogtmann@rsie-164-107-244-64.resnet.ohio-state.edu 
Message-ID: <avdgmp$mhp$1@news.cis.ohio-state.edu> 
NNTP-Posting-Host: rsie-164-107-244-64.resnet.ohio-state.edu 
X-Priority: 3 
X-MSMail-Priority: Normal 
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 
Xref: news.cis.ohio-state.edu cis.course.cis321:3560 cis.course.cis222:4188 cis.course.cis221:4458 cis.general:14471 
 
Now there are many programs for do this, X-win among them.  X-win is easy to 
configure. X-win is SLOW. I'm not going to cover X-win.  Instead I'm going 
to preach to you the virtues of VNC. 
 
VNC is not hard to use.  VNC is fast, perhaps not as fast as actually being 
at Caldwell, but still damn fast. 
 
On with the show! 
 
First we need to set up your CIS account to let you use VNC.  You're at 
Caldwell now right?  Good. Open a terminal and type "subscribe", and then 
press enter. Subscribe to package 4 (Contrib), and exit the program. 
 
Log out, and log back in again. 
 
Okay now, you're back. Open a terminal and type "vncserver"  It will ask you 
for a password, and then for you to verify it.  This password DOES NOT need 
to be the same as your CIS account password, although it can be. 
 
Now we go home.  Or to your dorm.  Or to your firends dorm, cause he's the 
only one with a computer.  Why you're a CIS major and you don't have a 
computer is beyond me, but that's okay, I'm not judgemental. 
 
First to get VNC on your own computer.  Go to 
http://www.uk.research.att.com/vnc/download.html and download it.  Install 
it.  It should be pretty self explanitory. 
 
Here's a choice.  Telnet or SSH.  On one hand you already have telnet, it 
should be c:\windows\telnet.exe.  its small, fast, and easy to use.  Your 
other choice is SSH.  You probably don't have this.  Why do I mention SSH 
then?  Security.  Telnet transmits everything in plain clear text, should 
someone go looking for it, they could steal your CIS password.  In any case 
I'm gonna go with telnet for now.  I have complete confidence in your 
ability to translate my instructions to SSH should you so want to.  You can 
get SSH Secure Shell at http://softwaretogo.osu.edu/upgrades/stg2wnx.html 
it's free. Go for it. 
 
Anyway, for telnet. Click the connect menu. Select "Remote System..." 
Supply "stdsun.cis.ohio-state.edu" for the Host Name, and connect. It will 
ask you for you name and cis password.  Telnet is like a terminal, so now 
type "vncserver -depth 24 -geometry 1280x1024", "-depth 24" means 24bit 
color.  If you run 16 bit color replace 24 with 16. If you run 32 bit color 
leave it at 24, or somethings don't work, somethings don't work at 16 as 
well.  The other option "-geometry 1280x1024" tells vnc how large of a 
window to make. If you don't type "-geometry 1280x1024" it defaults to 
1024x768, which I actually run at, so I can see other things while I work, 
still you'll probably find 1024x768 a tad small.  Anyway, alot of text will 
scroll. at the end you should see something like 
 
New 'X' desktop is gamma:83 
 
Starting applications specified in /n/bronze/14/vogtmann/.vnc/xstartup 
Log file is /n/bronze/14/vogtmann/.vnc/gamma:83.log 
 
If you see something like no X servers free, logout, and log into another 
server (eta, iota, and gamma are popular choices)  basicially replace 
"stdsun" with one of those, and reconnect.  If you see a message that you're 
already running a server, you're already running one, and I don't know why 
you're doing this.  But follow the on screen directions, and try again. 
 
Assuming all went well, run VNC viewer (its probably at start>>realVNC>>vnc 
viewer).  A little box should pop up type in the address and the port.  In 
this case its "gamma.cis.ohio-state.edu:83". If you had gotten: 
 
New 'X' desktop is eta:15 
 
Starting applications specified in /n/bronze/14/vogtmann/.vnc/xstartup 
Log file is /n/bronze/14/vogtmann/.vnc/eta:15.log 
 
The address would be "eta.cis.ohio-state.edu:15".  Another box will pop up, 
asking for your VNC password.  Enter it.  Drumroll, please, and now you 
should see yoru UNIX DESKTOP. wooooooo!!! 
 
Now when your done working, hit the log out button as usual. Then close the 
vnc window.  Go back to the telnet window, you didn't close it, right? Type 
"vncserver -kill gamma:83" for the first example, or "vncserver -kill 
eta:15" for the second. THIS IS IMPORTANT. DO THIS. VNC SERVER TAKES UP 
RESOURCES.  IT MAKES US UNHAPPY. 
 
Now you can type "lo" in telnet, to log out, and quit telnet. 
 
For more information, and less stupidity go to 
http://www.cis.ohio-state.edu/~rowland/vnc/  for gems such as, how you see 
vnc in an internet browser.  He also tells you how to do this stuff, but 
better! Sorta! 
 
Questions? Comments? Gripes? Hit the reply button! 
 
This has been crossposted to cis.cource.cis221 cis.cource.cis222 and 
cis.general for general happiness, and so others can learn the joy that is 
Virtual Network Computing. 
 
Kevin