Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


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:
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
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
6
Red Hat
Perl and VNC server
ab52
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
0
Shell Programming and Scripting
VNC Client/Server has different display
h0ujun
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
0
Fedora
vnc server or x11vnc @ startup
linuxadmin
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
2
Red Hat
vnc server error
fugitive
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
0
Solaris
XpSetImageResolution(3Xp)					 XPRINT FUNCTIONS					 XpSetImageResolution(3Xp)

NAME
XpSetImageResolution - Sets the resolution for subsequent PutImage requests
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ] #include <X11/extensions/Print.h> Bool XpSetImageResolution ( display, print_context, image_res, prev_res_return ) Display * display ; XPContext print_context ; int image_res ; int * prev_res_return ;
ARGUMENTS
- display Specifies a pointer to the Display structure. - print_context Specifies the print context on which to set the resolution. - image_res Specifies the image resolution in pixels per inch. - prev_res_return Returns the previous image resolution in pixels per inch.
DESCRIPTION
XpSetImageResolution returns True if the printer server allowed the resolution to be set, otherwise False is returned. XpSetImageResolution sets the resolution for subsequent PutImage requests to the screen of the specified print context. If the return value is False, then the print server does not support image scaling for the particular resolution given the current configuration of the printer, and the application is responsible for any desired scaling. If the return value is True, then the contents of any subsequent PutImage request to a Pixmap or to a Window on the screen of the specified print context will automatically be scaled as part of the PutIm- age request. The scale factor is: default_printer_resolution / image_res Where default_printer_resolution is the current value of that page attribute. Only the image itself is scaled (meaning the effective width and height of the image change), the dst-x and dst-y parameters to PutImage are not altered. As a special case, a value of zero for image_res resets the resolution to automatically track the printer resolution; in this case (which is also the default setting for a newly created print context), subsequent images will not be scaled. If the return value is True and prev_res_return is a non-NULL pointer, then the previous image resolution that was set for the print con- text is stored in prev_res_return. XpSetImageResolution returns False immediately if image_res is negative or greater than 65535.
DIAGNOSTICS
XpBadContext A valid print context-id has not been set prior to making this call. X Version 11 libXp 1.0.0 XpSetImageResolution(3Xp)

Featured Tech Videos