:: [DNG] Finally figured out vnc and r…
Top Page
Delete this message
Reply to this message
Author: Walter Dnes
Date:  
To: Devuan List
Subject: [DNG] Finally figured out vnc and remote QEMU
Walter's not-so-excellent adventure...

QEMU has a built-in VNC server, so I launch the VM on the remote
machine (dev3) with a script like so...

#!/bin/bash
cd /home/misc/qemu/arca
sudo /usr/bin/qemu-system-x86_64 -enable-kvm -runas waltdnes \
-cpu host -monitor vc -display gtk \
-drive file=arcac.img,format=raw \
-netdev user,id=mynetwork \
-device e1000,netdev=mynetwork \
-rtc base=localtime,clock=host \
-m 1024 -name "ArcaOS VM" \
-vga std -parallel none \
-vnc :1

- This particular video game looks best in 1024x768, scaled up. Leaving
the VM at 1024x768 is squished. While QEMU supports scaling 1024x768
up *LOCALLY* to fullscreen (1920x1080) with {CTRL{ALT}{F}, QEMU's
built-in VNC server does not support passing the scaled up desktop.

- There's a right way, there's a wrong way, and then there's my way.

- I have a second local user account for doing admin stuff. So I press
{CTRL}{ALT}{F2} which puts me in a text console.

- I login as "user2" (not original, but whatever).

- I run "startx" with a minimal ICEWM config, ending up in 1920x1080
GUI mode in DISPLAY :1

- I run a script with the following commands...

#!/bin/bash
xrandr --display :1 --size 1024x768

- I'm now in 1024x768 GUI mode; no VNC re-sizing required. YES!!! You
can have two (or more?) X displays running simultaneously in different
resolutions in different consoles!!!

- I tried vncviewer with "--display :1 dev3:1". For some reason
"--display" is ignored, and I get error messages about trying to use
:0. The "--display" parameter is in the vncviewer man page, but has
no effect. Putting "display=:1" in the vncviewer config file gave an
"unknown parameter" error. I ended up installing "vinagre" instead
and launching it in :1 with...

#!/bin/bash
vinagre -f --display :1 dev3:1

...and finally it works. No mousepointer flakiness, because of no VM
scaling. To switch between displays press {CTRL}{ALT}F1} for DISPLAY :0
and {CTRL}{ALT}F2} for DISPLAY :1

-
Virtual packages like 'vncviewer' can't be remove.

--
Walter Dnes <waltdnes@???>
There are 2 types of people in this world
1) Those who can extrapolate from incomplete data