Bug 1295275 - Update comments in vncserver configuration file example
Summary: Update comments in vncserver configuration file example
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tigervnc
Version: 7.2
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Grulich
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1203710 1297830 1313485
TreeView+ depends on / blocked
 
Reported: 2016-01-04 04:47 UTC by amit yadav
Modified: 2019-12-16 05:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 01:29:45 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2237 0 normal SHIPPED_LIVE tigervnc bug fix and enhancement update 2016-11-03 13:28:30 UTC

Description amit yadav 2016-01-04 04:47:50 UTC
Description of problem:

$ more /lib/systemd/system/vncserver@.service
  # The vncserver service unit file
  #
  # Quick HowTo:
  # 1. Copy this file to /etc/systemd/system/vncserver@.service
  # 2. Edit <USER> and vncserver parameters appropriately
  #   ("runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2")
  # 3. Run `systemctl daemon-reload`
  # 4. Run `systemctl enable vncserver@:<display>.service`


In step 2. of comment section, actually 2 lines need to be modified instead of just the first line

("runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2")

It should be 

ExecStart=/sbin/runuser -l USER -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/USER/.vnc/%H%i.pid

Please update the Quick HowTo in comments to be consistent with RHEL documentation (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-TigerVNC.html).

Version-Release number of selected component (if applicable):
tigervnc-server-1.3.1-3.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. N.A.

Actual results:
The vncserver configuration file suggest to modify <USER> in only one line. 
"runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2"

Expected results:
The vncserver configuration file should suggest to modify <USER> in following two lines:

ExecStart=/sbin/runuser -l USER -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/USER/.vnc/%H%i.pid

Comment 2 Jan Grulich 2016-01-19 07:59:27 UTC
Easy fix, can be fixed in RHEL 7.3.

Comment 3 Jan Grulich 2016-03-24 09:53:58 UTC
Fixed in tigervnc-1.3.1-5.el7.

Comment 7 errata-xmlrpc 2016-11-04 01:29:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2237.html


Note You need to log in before you can comment on or make changes to this bug.