vnc server fixed resolution


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 02-02-2018
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:
Code:
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
# 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"
PIDFile=/home/wvleider/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target

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 itwex Red Hat 6 04-25-2013 11:13 AM
Blank Screen after logoff server via vnc Viewer. purushottamaher Ubuntu 0 04-09-2013 08:14 AM
Name resolution is only working from server side. Clients cannot resolve host names. dbadmin100 Red Hat 7 11-11-2012 03:04 PM
Perl and VNC server ab52 Shell Programming and Scripting 0 03-13-2012 07:48 PM
VNC Client/Server has different display h0ujun Fedora 0 03-04-2012 09:27 PM
VNC Server Unauthenticated Access - Nessus kopper UNIX for Dummies Questions & Answers 2 11-24-2011 07:24 PM
vnc server or x11vnc @ startup linuxadmin Red Hat 2 07-25-2011 08:46 AM
Doubt on fixed ip address assinged by dhcp server? Gopi Krishna P UNIX for Advanced & Expert Users 3 03-27-2010 02:15 AM
Question on the dhcp-server configuration for a fixed IP address. Gopi Krishna P Debian 2 02-09-2010 06:37 AM
vnc server error fugitive Solaris 0 10-13-2009 06:27 AM
VNC Server, brings up really basic Xwindows frankkahle Linux 4 11-25-2008 08:15 AM
VNC server from the Companion cd. Solaris 8 SPARC mads-nielsen Solaris 0 01-28-2008 07:02 AM
How can I take control the native X server on AIX5.3 via VNC ? art AIX 0 01-26-2007 10:58 AM
VNC Server http listening port kxchen_home Linux 6 02-07-2004 12:23 AM
Resolution..?? Linux_fan UNIX Desktop Questions & Answers 3 03-06-2002 11:33 AM