On 07/08/2010 07:08 PM, Adam Tkac wrote:
> On Sat, Jul 03, 2010 at 09:12:31PM +0700, Antoine Martin wrote:
>> Hi,
>>
>> I can't seem to get vncviewer to connect to an OSX display exported via
>> VNC if I use the PasswordFile option!
>>
>> The server is setup using:
>> sudo
>> /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
>> -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy
>> yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all
>>
>> Then the client just does:
>> vncviewer PasswordFile=mypasswd.txt OSX::5900
>>
>> It says it is connected, but doesn't display anything:
>>  CConn:       connected to host 192.168.42.111 port 5900
>>  CConnection: Server supports RFB protocol version 3.889
>>  CConnection: Using RFB protocol version 3.8
>> ^ Stuck at this point, no window appears.
>>
>> But if I do:
>> echo mypasswd | vncviewer passwdInput=1 192.168.42.111::5900
>> or if I just type the password into the dialog box... it works!
>>
>> I've tried vncviewer 1.0.1 on various platforms and the version that
>> comes with Fedora 13... no go
> 
> That's weird, I tried the PasswordFile option and it works fine in my
> case (I tried it with UNIX Xvnc, not with OSX VNC server).
That's what is weird, it works just fine against Xvnc or winvnc4.exe,
but not against apple's ARD!

Just to confirm/clarify:
echo -n "mypasswd" > passwordfile.txt
cat passwordfile.txt | vncviewer...           does work
vncviewer PasswordFile=./passwordfile.txt     does not!

But *only* when doing it against OSX's vnc server.

> Would it be
> possible to tell me how did you create mypasswd.txt file, please? Did
> you use "vncpasswd" utility?
Nope, I did not. This is just a plain text file saved by my tool and
copied from server to the clients behind the scenes. *It just works*
So it is exactly the same text file used in:
* Xvnc PasswordFile= ...
* vncviewer PasswordFile=
* ARGAgent.app -vncpw CONTENTSOFFILE

Thanks
Antoine
> 
> Regards, Adam
> 


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to