From 019bc05b50eb56804650b101de94442079ac8477 Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Thu, 22 Oct 2020 03:18:25 +0000 Subject: [PATCH] Submit systemd-specific configuration for TigerVNC git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23831 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- introduction/welcome/changelog.xml | 4 ++ xsoft/other/tigervnc.xml | 92 ++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index f4d247b000..9a89673c32 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -44,6 +44,10 @@ October 21st, 2020 + + [renodr] - Add configuration instructions for the systemd + variant of TigerVNC. + [renodr] - Adapt gnome-nettool to work with current versions of ping, ping6, and netstat. diff --git a/xsoft/other/tigervnc.xml b/xsoft/other/tigervnc.xml index 6d57f9513e..752b50189d 100644 --- a/xsoft/other/tigervnc.xml +++ b/xsoft/other/tigervnc.xml @@ -92,6 +92,12 @@ + + + Required patch: + + + Optional files: @@ -102,6 +108,9 @@ + + + @@ -135,6 +144,16 @@ Installation of Tigervnc + + First, make adjustments to the configuration files to make them + compatible with LFS systems: + + + +patch -Np1 -i ../tigervnc-&tigervnc-version;-configuration_fixes-1.patch + Install tigervnc by running the following commands: @@ -187,6 +206,13 @@ make install && ( cd unix/xserver/hw/vnc && make install ) && [ -e /usr/bin/Xvnc ] || ln -svf $XORG_PREFIX/bin/Xvnc /usr/bin/Xvnc + + + Finally, modify the PAM file to be compatible with elogind: + + +sed -i 's/pam_systemd.so/pam_elogind.so/' /etc/pam.d/tigervnc + + + +echo ":1=$(whoami)" >> /etc/tigervnc/vncserver.users + + + Next, setup a configuration file to tell + vncserver which desktop environment should be + used and what display geometry should be used. There are several other + options that can be defined in this file, but they are outside the scope + of BLFS. + + +cat > ~/.vnc/config << EOF +# Begin ~/.vnc/config + +session=LXDE # The session must match one listed in /usr/share/xsessions. +geometry=1024x768 + +# End ~/.vnc/config +EOF + + + To start the VNC Server, run the following command: + + +systemctl start vncserver@:1 + + + To start the VNC Server when the system boots, run the following command: + + +systemctl enable vncserver@:1 +