I use UVNC 1.05 with the Java-based viewer. Everything works fine but I have one question left. How can I change the default settings??
For example in the options menu the "Restricted Colors" are always set to 64 and I want to have "Full" as default. Is there a config file to change these settings or where can I do that??
java.exe -cp "your path to VncViewer" VncViewer HOST "host_url" PORT 5900 "Show Controls" No "View only" Yes "JPEG image quality" "JPEG off" "Restricted colors" "Full"
All possible parameters and their values can be found in the source code, VncViewer.java and OptionsFrame.java:
HOST
PORT
Open New Window
ENCPASSWORD
Show Controls
Show Offline Desktop
Defer screen updates
Defer cursor updates
Defer update requests
Encoding
Compression level
JPEG image quality
Cursor shape updates
Use CopyRect
Restricted colors
Mouse buttons 2 and 3
View only
Share desktop
What I don't know:
How do I have to call the JavaViewer in a Browser? I would type
http://host_name:5800
but in this case I get a generated HTML-file with the default-parameters in it. How can I change the default-settings of this HTML-file?
This call I make from the client-pc and I must have also the file vncviewer.class on the same pc (in this case actually in the same directory as the html-file).
Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:
* Open a Terminal window
*
Run sudo update-java-alternatives -l to see the current configuration and possibilities.
*
Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun
*
Run java -version to ensure that the correct version is being called.
You can also use the following command to interactively make the change;
* Open a Terminal window
*
Run sudo update-alternatives --config java
* Follow the onscreen prompt