Hello,
I did nearly the same as here https://docs.fedoraproject.org/en-US/Fedora/25/html/System_Administrators_Gu...
by the way this ExecStart=/sbin/runuser -l USER -c "/usr/bin/vncserver %i -geometry 1280x1024"
must be ExecStart=/usr/bin/vncserver %i -geometry 1280x1024
because the 'runuser'-variant doesn't work at all, no connection possible from VNCviewer;
or is there also something missing in the SELinux policies?
the -geometry parameter is ignored, I only get a display of 1024x768 when connecting with VNCviewer from other machine ...
Thanks, Walter
On 06/26/17 01:19, Walter H. wrote:
Hello,
I did nearly the same as here https://docs.fedoraproject.org/en-US/Fedora/25/html/System_Administrators_Gu...
by the way this ExecStart=/sbin/runuser -l USER -c "/usr/bin/vncserver %i -geometry 1280x1024"
must be ExecStart=/usr/bin/vncserver %i -geometry 1280x1024
because the 'runuser'-variant doesn't work at all, no connection possible from VNCviewer;
or is there also something missing in the SELinux policies?
the -geometry parameter is ignored, I only get a display of 1024x768 when connecting with VNCviewer from other machine ...
FWIW.....
My /etc/systemd/system/vncserver@.service contains...
ExecStart=/usr/bin/vncserver %i -geometry 1920x1080
The running process shows....
egreshko 839 1 0 11:01 ? 00:00:03 /usr/bin/Xvnc :1 -geometry 1920x1080 -auth /home/egreshko/.Xauthority -desktop f25f.greshko.com:1 (egreshko) -fp catalogue:/etc/X11/fontpath.d -httpd /usr/share/vnc/classes -pn -rfbauth /home/egreshko/.vnc/passwd -rfbport 5901 -rfbwait 30000
And when I connect via vncviewer from another system I get the following output from xrandr
Screen 0: minimum 32 x 32, current 1920 x 1080, maximum 32768 x 32768 VNC-0 connected primary 1920x1080+0+0 0mm x 0mm 1920x1080 60.00*+ 1920x1200 60.00 1600x1200 60.00 1680x1050 60.00 1400x1050 60.00 1360x768 60.00 1280x1024 60.00 1280x960 60.00 1280x800 60.00 1280x720 60.00 1024x768 60.00 800x600 60.00 640x480 60.00
I also happen to set my ~/.vnc/config file to that geometry as a habit.
On 26.06.2017 05:10, Ed Greshko wrote:
On 06/26/17 01:19, Walter H. wrote:
Hello,
I did nearly the same as here https://docs.fedoraproject.org/en-US/Fedora/25/html/System_Administrators_Gu...
by the way this ExecStart=/sbin/runuser -l USER -c "/usr/bin/vncserver %i -geometry 1280x1024"
must be ExecStart=/usr/bin/vncserver %i -geometry 1280x1024
because the 'runuser'-variant doesn't work at all, no connection possible from VNCviewer;
or is there also something missing in the SELinux policies?
the -geometry parameter is ignored, I only get a display of 1024x768 when connecting with VNCviewer from other machine ...
FWIW.....
My /etc/systemd/system/vncserver@.service contains...
ExecStart=/usr/bin/vncserver %i -geometry 1920x1080
The running process shows....
egreshko 839 1 0 11:01 ? 00:00:03 /usr/bin/Xvnc :1 -geometry 1920x1080 -auth /home/egreshko/.Xauthority -desktop f25f.greshko.com:1 (egreshko) -fp catalogue:/etc/X11/fontpath.d -httpd /usr/share/vnc/classes -pn -rfbauth /home/egreshko/.vnc/passwd -rfbport 5901 -rfbwait 30000
how do you get this output?
And when I connect via vncviewer from another system I get the following output from xrandr
Screen 0: minimum 32 x 32, current 1920 x 1080, maximum 32768 x 32768 VNC-0 connected primary 1920x1080+0+0 0mm x 0mm 1920x1080 60.00*+ 1920x1200 60.00 1600x1200 60.00 1680x1050 60.00 1400x1050 60.00 1360x768 60.00 1280x1024 60.00 1280x960 60.00 1280x800 60.00 1280x720 60.00 1024x768 60.00 800x600 60.00 640x480 60.00
I also happen to set my ~/.vnc/config file to that geometry as a habit.
xrandr only shows
Screen 0: minimum 32 x 32, current 1024 x 768, maximum 32768 x 32768 VNC-0 connected primary 1024x768+0+0 0mm x 0mm 1600x1200 60.00 + 1920x1200 60.00 1920x1080 60.00 1680x1050 60.00 1400x1050 60.00 1360x768 60.00 1280x1024 60.00 1280x960 60.00 1280x800 60.00 1280x720 60.00 1024x768 60.00* 800x600 60.00 640x480 60.00
/etc/systemd/system/vncserver@.service has this ExecStart=/usr/bin/vncserver %i -geometry 1600x1200
and ~/.vnc/config has this geometry=1600x1200
and still connected with 1024x768 ... even when setting SELINUX to permissive why?
the goal is either 1600x1200 or 1280x1024, the default 1024x768 is too small
Thanks, Walter
On 27.06.2017 19:23, Walter H. wrote:
xrandr only shows
Screen 0: minimum 32 x 32, current 1024 x 768, maximum 32768 x 32768 VNC-0 connected primary 1024x768+0+0 0mm x 0mm 1600x1200 60.00 + 1920x1200 60.00 1920x1080 60.00 1680x1050 60.00 1400x1050 60.00 1360x768 60.00 1280x1024 60.00 1280x960 60.00 1280x800 60.00 1280x720 60.00 1024x768 60.00* 800x600 60.00 640x480 60.00
/etc/systemd/system/vncserver@.service has this ExecStart=/usr/bin/vncserver %i -geometry 1600x1200
and ~/.vnc/config has this geometry=1600x1200
and still connected with 1024x768 ... even when setting SELINUX to permissive why?
the goal is either 1600x1200 or 1280x1024, the default 1024x768 is too small
Thanks, Walter
strange thing
when I'm connected and on a terminal I can enter the following
xrandr -s 1280x1024 or xrandr -s 1600x1200 or xrandr -s 1920x1200
and the display changes to this resolution on the fly
how can I bring the system to do this before I connect via vncviewer from my other box?
Thanks, Walter
On 06/28/17 01:46, Walter H. wrote:
On 27.06.2017 19:23, Walter H. wrote:
xrandr only shows
Screen 0: minimum 32 x 32, current 1024 x 768, maximum 32768 x 32768 VNC-0 connected primary 1024x768+0+0 0mm x 0mm 1600x1200 60.00 + 1920x1200 60.00 1920x1080 60.00 1680x1050 60.00 1400x1050 60.00 1360x768 60.00 1280x1024 60.00 1280x960 60.00 1280x800 60.00 1280x720 60.00 1024x768 60.00* 800x600 60.00 640x480 60.00
/etc/systemd/system/vncserver@.service has this ExecStart=/usr/bin/vncserver %i -geometry 1600x1200
and ~/.vnc/config has this geometry=1600x1200
and still connected with 1024x768 ... even when setting SELINUX to permissive why?
the goal is either 1600x1200 or 1280x1024, the default 1024x768 is too small
Thanks, Walter
strange thing
when I'm connected and on a terminal I can enter the following
xrandr -s 1280x1024 or xrandr -s 1600x1200 or xrandr -s 1920x1200
and the display changes to this resolution on the fly
how can I bring the system to do this before I connect via vncviewer from my other box?
A couple of things....
The 1600x1200 60.00 + in your xrandr output indicates what the Xserver, in this case Xvnc, is offering as the optimal resolution and 1024x768 60.00* (with the *) is what you've connected at. But I think you already knew that. I just like typing.
What I believe is that the vncviewer is doing is requesting 1024x768 and that is what you'll get. Now, the "interesting" or bad thing is that once you connect at a lower resolution than what you want Xvnc will stick with it no matter what you do from the viewer side.
So.... Try disconnecting, restart the server, and then use "vncviewer -geometry 1600x1200 hostname:1" to connect.
In other words, once you connect with a given resolution you're stuck to it on subsequent connections. :-(
On 06/27/2017 03:59 PM, Ed Greshko wrote:
What I believe is that the vncviewer is doing is requesting 1024x768 and that is what you'll get. Now, the "interesting" or bad thing is that once you connect at a lower resolution than what you want Xvnc will stick with it no matter what you do from the viewer side.
So.... Try disconnecting, restart the server, and then use "vncviewer -geometry 1600x1200 hostname:1" to connect.
In other words, once you connect with a given resolution you're stuck to it on subsequent connections. :-(
I was surprised to discover that xrandr works with Xvnc. I had initially started the vnc server at 1024x768 as a convenient default. But checking with xrandr showed that long list of options and changing the mode worked and is persistent on future connections. I use Remmina, but I expect vncviewer would work the same. If not, Remmina works well and handles a wide variety of protocols and connection options.