Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Change the default settings

Should you have problems with the JavaViewer, here's the place to look for help or report issues
Post Reply
mathias1980
Posts: 1
Joined: 2009-03-16 10:39

Change the default settings

Post by mathias1980 »

Hello,

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??

Thanks for your help :)
Geving
Posts: 1
Joined: 2009-03-22 19:22

Re: Change the default settings

Post by Geving »

I would allso like to know if this is possible..
I'd allso like to be able to remove the buttons on top.

[EDIT]
I've looked at the source, and removing the buttons can be done by using "<PARAM NAME = 'Show Controls' VALUE='No'>" in the HTML code..
Last edited by Geving on 2009-03-23 15:47, edited 1 time in total.
pedig
Posts: 3
Joined: 2009-04-16 13:22
Location: Switzerland - Glarus

Re: Change the default settings

Post by pedig »

Hello,

the default settings can be changed by passing parameters with the calling of JavaViewer.

Example:

Code: Select all

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?
pedig
Posts: 3
Joined: 2009-04-16 13:22
Location: Switzerland - Glarus

Re: Change the default settings

Post by pedig »

The first way I found to start the JavaViewer in a browser is to call the following html-file:

Code: Select all

<html>
	<head>
		<title>appletTitle</title>
	</head>
	<body> 
		<applet code="VncViewer.class" width="800" height="632">
			<param name="archive" value="VncViewer.jar">
			<param name="host" value="hostUrl">
			<param name="port" value="5900">
			<param name="Open New Window" value="Yes">
			<param name="Show Controls" value="No">
			<param name="View only" value="Yes">
			<param name="JPEG image quality" value="JPEG off">
			<param name="Restricted colors" value="Full">
		</applet>
	</body>
</html>
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).
wristbandsnow
Posts: 2
Joined: 2009-06-13 07:28

Re: Change the default settings

Post by wristbandsnow »

Java in UBUNTU:

Choosing the default Java to use:


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
Post Reply