HOWTO: VNC Res > 640x480 (regardless of console res)

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
Sniper Fox
Adept
Posts: 73
Joined: Thu Sep 04, 2003 9:11 pm
Location: Cincinnati, OH
Contact:

HOWTO: VNC Res > 640x480 (regardless of console res)

Post by Sniper Fox »

Having VNC resolutions of 640x480 is hardly useful. Below are instructions for how to change it.
Last edited by Sniper Fox on Tue Nov 04, 2003 4:05 pm, edited 3 times in total.
Sniper Fox
Adept
Posts: 73
Joined: Thu Sep 04, 2003 9:11 pm
Location: Cincinnati, OH
Contact:

Post by Sniper Fox »

/home/gentoox/.vncstart

Code: Select all

#!/bin/bash

/bin/vncctl start -geometry 1280x1024
/usr/share/tightvnc/classes/index.vnc

Code: Select all

<!--
     index.vnc - default HTML page for TightVNC Java viewer applet, to be
     used with Xvnc. On any file ending in .vnc, the HTTP server embedded in
     Xvnc will substitute the following variables when preceded by a dollar:
     USER, DESKTOP, DISPLAY, APPLETWIDTH, APPLETHEIGHT, WIDTH, HEIGHT, PORT,
     PARAMS. Use two dollar signs ($$) to get a dollar sign in the generated
     HTML page.

     NOTE: the $PARAMS variable is not supported by the standard VNC, so
     make sure you have TightVNC on the server side, if you're using this
     variable.
-->

<HTML>
<TITLE>
$USER's $DESKTOP desktop ($DISPLAY)
</TITLE>
<APPLET CODE=VncViewer.class ARCHIVE=VncViewer.jar
        WIDTH=1280 HEIGHT=1046>
<param name=PORT value=$PORT>
$PARAMS
</APPLET>
</HTML>
Then do ./.vncstop followed by ./.vncstart in gentoox's home directory (as user gentoox)
BOZOUK
Newbie
Posts: 3
Joined: Mon Nov 03, 2003 9:45 pm

Post by BOZOUK »

Thank you for the tutorial :)

very usefull
DracFlamloc
Linux User
Posts: 12
Joined: Fri Nov 14, 2003 1:01 am

Post by DracFlamloc »

Hey I'm just curious and this is probably a stupid question but why the extra pixels in the index.vnc file where you set the res?
DracFlamloc
Linux User
Posts: 12
Joined: Fri Nov 14, 2003 1:01 am

Post by DracFlamloc »

Nevermind, jeez I've been acting like an uber-newb lately. :oops: Buttons on top :wink:
SniperKilla
Newbie
Posts: 1
Joined: Fri Nov 21, 2003 5:34 am

Post by SniperKilla »

after doing this, VNC dosent work on startup anymore...

the thing is running cause if i do ./.vncstart it says its already running, but it wont connect

if i do ./.vncstop then start it again it works, any fix?
Shmio
Linux User
Posts: 15
Joined: Tue Jan 27, 2004 5:05 am

Post by Shmio »

does anyone know the files to edit for the current version of VNC...i tried two files (don't remember which ones, currently running magic fix displaytools1 && magic) and when i booted... xvkbd filled the entire screen...thanks
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

Note to readers: This no longer works.

The whole reason it was fixed at 640x480 was to stop it intefering with taskbar positioning, but someone always comes along who thinks they know best :/

The resolution of VNC is now determined by the resolution of Xfree.
The original Xbox adaptation of Gentoo
Post Reply