vnc server fixed resolution

Login or Register to Reply

Thread Tools Search this Thread
# 1  
vnc server fixed resolution

Hello everyone,

This is my last resort.

I have searched the internet everywhere using different search engines as well.

I am using Redhat 7 where I activated a vncserver (since it comes pre-installed).
using the following service:
Description=Remote desktop service (VNC)

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/sbin/runuser -l wvleider -c "/usr/bin/vncserver %i -geometry 1680x1050 -depth 32"
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'


as you can see there is a -geometry parameter that is set to 1680x1050. this is the resolution i want the client to use no matter what client uses the VNC.

So far i have found out that xrandr is used within RedHat to change the resolution in an active session, meaning that it should be configurable somehow..

xrandr provides me some resolutions as preset, i tried to remove all resolutions i find unnecesary but xrandr does not allow me.

does anyone know how to fix the resolution server-side?

Thanks in advance!

Last edited by rbatte1; 02-02-2018 at 12:44 PM.. Reason: Changed Indented section to wrap it in CODE tags.
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
vnc to RedHat Server
I'm trying to use VNC from my desktop to connect to a RedHat (RHEL6) Server. I connect but the screen is black. It I go into the Data Centre the screen is unlocked and all is okay there. I can connect no problem to other Desktops & Servers. Is there a setting maybe or can anybody suggest another...... Red Hat
Red Hat
Perl and VNC server
Hi All I am trying to write a script that a user can use to start a a vncserver on a host and then connect to it, that bit is fine, i can do that using system commands but i have defined the hosts to use at the top of my scirpt my $allowedhosts = (site_sg() ? 'host2,host1' :...... Shell Programming and Scripting
Shell Programming and Scripting
VNC Client/Server has different display
Hi, I set-up my VNC Server on a Fedora 13 and I have a client on windows. I can access the Fedora PC but when I move the mouse and click on folders, I do not see the Fedora Desktop updating (I don't see the things that I am doing in my client on the Fedora PC) Then, when I do something on...... Fedora
vnc server or x11vnc @ startup
Dear all, I am using Fedora15 kde I have installed Real vnc (server & viewer) real vnc Viewer is working fine - i like this. real vnc server has License period expired problem (i dont know how to add) I have x11vnc server (Desktop sharing) installed - Its working fine too. I...... Red Hat
Red Hat
vnc server error
I 'm unable to start vnc server, i get following error in the log file Fatal server error: could not open default font 'fixed' xsetroot: unable to open display 'essapl020-u009:0' twm: unable to open display "essapl020-u009:0" xterm Xt error: Can't open display: essapl020-u009:0...... Solaris
vncsnapshot(1)								VNC							    vncsnapshot(1)

vncsnapshot - grab snapshots from VNC servers
vncsnapshot [options] host:display JPEG-file vncsnapshot [options] -listen local-display JPEG-file vncsnapshot [options] -tunnel host:display JPEG-file vncsnapshot [options] -via gateway host:display JPEG-file
VNC Snapshot is a command-line program for VNC. It will save a JPEG image of the VNC server's screen. This manual page documents version 1.2a of vncsnapshot.
-allowblank Allow blank (all black) images as snapshots. See -ignoreblank. -compresslevel level Compress network messages to level, if the server supports it. level is between 0 and 9, with 0 being no compression and 9 the maximum. The default is 4. -cursor Include the cursor in snapshots. Only effective if the remote server is a TightVNC version; otherwise ignored. -encodings list Use the given encodings. The default is "copyrect tight hextile zlib corre rre" or "raw copyrect tight hextile zlib corre rre" when VNC snapshot and the server are on the same machine. -ignoreblank Ignore blank (all black) screens; do not save the screen until a screen that is not all black is received. This is useful with some servers that send an initial all-black screen before sending the actual screen. This is the default. -jpeg Request the remote server to use JPEG-style encoding when sending the image, if possible. Currently only supported by TightVNC (and servers derived from it). This is the default. -nocursor Do not include the cursor in snapshots. Only effective if the remote server is a TightVNC version; otherwise ignored. This is the default. -nojpeg Request the remote server to not use JPEG-style encoding when sending the image, if possible. Currently only supported by TightVNC (and servers derived from it). -listen local-display Do not connect to a server; wait for the server to connect to the specified local "display". Cannot be used with -tunnel or -via options. -passwd filename Read encrypted password from filename instead of from the console. The filename can be made with the vncpasswd utility included with the vncsnapshot release. -quality quality Use the specified JPEG image quality (0-100) for the output file. The default is 100. -quiet Do not print any messages. Opposite of -verbose. -rect wxh+x+y Save a sub-rectangle of the screen, width w height h offset from the left by x and the top by y. A negative number for x or y makes it an offset from the opposite edge. A zero value for the width or height makes the snapshot extend to the right or bottom of the screen, respectively. The default is the entire screen. -tunnel Connect to the remote server via an SSH tunnel. Cannot be used with -listen or -via options. -via gateway Connect to the remote server via an SSH tunnel on the host gateway. Cannot be used with -listen or -tunnel options. -verbose Print messages; default. -vncQuality quality Use the specified image quality level (0-9) for tight encoding. The default is 9. Only effective if the remote server is a TightVNC version; otherwise ignored. -count number Take number snapshots; default 1. If greater than 1, vncsnapshot will insert a five-digit sequence number just before the output file's extension; i.e. if you specify out.jpeg as the output file, it will create out00001.jpeg, out00002.jpeg, and so forth -fps rate When taking multiple snapshots, take them every rate seconds; default 60.
vncsnapshot anhk-morpork:1 unseen.jpg Get a snapshot of screen 1 from the server ahnk-morpork and save it in unseen.jpg. The entire screen is saved; the default transport is used. vncsnapshot -listen 0 portrait.jpeg Wait for a server to connect to this host (using "screen" 0), and then save the full screen image in portrait.jpeg. vncsnapshot -passwd ~/.vnc/passwd -rect 640x0+120+30 :1 subarea.jpeg Using ~/.vnc/passwd to get the server's password, connect to screen 1 on the local machine and save a rectangle 640 pixels high and extending to the right edge, offset 120 pixels from the left and 30 pixels down. vncsnapshot -rect 0x0-800-600 :1 pict.jpeg Get a snapshot that is 800 pixels from the right edge and 600 pixels from the bottom of the screen. It will extend to the screen edges, making it 800x600. Alternatively, the rectangle could be given as -rect 800x600-0-0, which specifies the same region.
Grant McDorman <> Based on TightVNC <> and RealVNC <>.
Source for vncsnapshot can be found at <>.
vncviewer(1), Xvnc(1), vncpasswd(1), vncconnect(1) Grant McDorman 1.0beta2 vncsnapshot(1)

Featured Tech Videos