On Mon, 9 Mar 2009, James Weatherall wrote:
"localhost:25901:1" isn't a valid VNC Server description - you need to
drop the trailing ":1" in this case.
Thanks! I found that on someone's web page and wondered about it, but it
worked, so I kept the :1. I assume this applies to all vncviewers on all
OSs, am I right?
Related question: Is there a reason to prefer localhost:25901 to
127.0.0.1:25901 ? Do they *always* do exactly the same thing?
Best,
Mike
-----Original Message-----
From: vnc-list-ad...@realvnc.com [mailto:vnc-list-ad...@realvnc.com] On
Behalf Of Mike Miller
Sent: 06 March 2009 00:03
To: VNC List
Subject: vncviewer on thumb drive for Mac OS X
I put the VNC viewer for Mac OS X on a thumb drive and managed to get
it to work with SSH and the script I was working on the other day. It
doesn't seem to recognize the "localhost:25901:1" part of the command
though, so I had to increase "sleep 10" to "sleep 100" to have enough
time to deal with entering "localhost:25901:1" in the dialog box. I
also had to use a different path for VNC viewer and a different path
for bash than the paths I used for GNU/Linux.
See below.
If there is a way to make that work better, let us know, if you don't
mind.
Mike
$ cat /media/disk/vnc/mac_os_x/vnc_myserver.bash
#!/bin/bash
exec_dir="$(dirname "$0")"
file_dir="${exec_dir}/files"
ssh -f -L 25901:127.0.0.1:5901 m...@myserver.edu sleep 100
"$file_dir"/vncviewer.app/Contents/MacOS/VNCViewer -Shared localhost:25901:1 &
-----------------------------------------------------------------------
---
$ tree /media/disk/vnc/mac_os_x/
/media/disk/vnc/mac_os_x/
|-- files
| |-- vnc-E4_4_3-universal_macosx_viewer.dmg
| `-- vncviewer.app
| `-- Contents
| |-- Info.plist
| |-- MacOS
| | `-- VNCViewer
| |-- PkgInfo
| `-- Resources
| |-- DownloadIcon.png
| |-- DragIcon.png
| |-- English.lproj
| | |-- Connection.nib
| | | |-- classes.nib
| | | |-- info.nib
| | | `-- keyedobjects.nib
| | |-- InfoPlist.strings
| | `-- MainMenu.nib
| | |-- classes.nib
| | |-- info.nib
| | `-- keyedobjects.nib
| |-- Options.nib
| | |-- classes.nib
| | |-- info.nib
| | `-- keyedobjects.nib
| |-- VNCViewer.icns
| |-- VNCViewer_new.icns
| |-- about.png
| |-- activity00_32x32.png
| |-- activity01_32x32.png
| |-- activity10_32x32.png
| |-- activity11_32x32.png
| |-- close_connection32x32.png
| |-- connectiongraphic.png
| |-- connectioninfo32x32.png
| |-- ctrl_alt_del32x32.png
| |-- dockIcon.png
| |-- dotcursor.png
| |-- encryption_off32x32.png
| |-- encryption_on32x32.png
| |-- fetch_files32x32.png
| |-- fullscreen32x32.png
| |-- fullscreen_revert32x32.png
| |-- logo58x55.bmp
| |-- new_connection32x32.png
| |-- newviewer.png
| |-- options32x32.png
| |-- save_connection32x32.png
| |-- selected.png
| |-- share_files32x32.png
| |-- unselected.png
| |-- up.bmp
| |-- vncviewer128x128.png
| `-- vncviewer72x72.png
`-- vnc_myserver.bash
9 directories, 46 files
_______________________________________________
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list