source: xsoft/other/tigervnc.xml@ 96923ef

11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 96923ef was 1bbb5dd, checked in by Thomas Trepl (Moody) <thomas@…>, 22 months ago

Some more tags

  • Property mode set to 100644
File size: 17.2 KB
RevLine 
[133cfd33]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[8dfc5c3]7 <!ENTITY tigervnc-download-http "https://github.com/TigerVNC/tigervnc/archive/v&tigervnc-version;/tigervnc-&tigervnc-version;.tar.gz">
[f5f898c5]8 <!ENTITY tigervnc-download-ftp " ">
[cd9f166a]9 <!ENTITY tigervnc-md5sum "e92945f43654e2a120f2c9d8b3a9b869">
10 <!ENTITY tigervnc-size "1.5 MB">
11 <!ENTITY tigervnc-buildsize "101 MB">
[3b696780]12 <!ENTITY tigervnc-time "0.5 SBU (Using parallelism=4)">
13 <!ENTITY tigervnc-xorg-version "1.20.7">
[133cfd33]14]>
15
16<sect1 id="tigervnc" xreflabel="tigervnc-&tigervnc-version;">
17 <?dbhtml filename="tigervnc.html"?>
18
19 <sect1info>
[d027410]20 <date>$Date$</date>
[133cfd33]21 </sect1info>
22
23 <title>Tigervnc-&tigervnc-version;</title>
24
25 <indexterm zone="tigervnc">
26 <primary sortas="a-tigervnc">tigervnc</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Tigervnc</title>
31
[622c1021]32 <para>
33 <application>Tigervnc</application> is an advanced VNC (Virtual
34 Network Computing) implementation. It allows creation of an Xorg server
35 not tied to a physical console and also provides a client for
36 viewing of the remote graphical desktop.
[133cfd33]37 </para>
38
[1bbb5dd]39 &lfs112_checked;
[133cfd33]40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[622c1021]44 <para>
45 Download (HTTP): <ulink url="&tigervnc-download-http;"/>
46 </para>
[133cfd33]47 </listitem>
48 <listitem>
[622c1021]49 <para>
50 Download (FTP): <ulink url="&tigervnc-download-ftp;"/>
51 </para>
[133cfd33]52 </listitem>
53 <listitem>
[622c1021]54 <para>
55 Download MD5 sum: &tigervnc-md5sum;
56 </para>
[133cfd33]57 </listitem>
58 <listitem>
[622c1021]59 <para>
60 Download size: &tigervnc-size;
61 </para>
[133cfd33]62 </listitem>
63 <listitem>
[622c1021]64 <para>
65 Estimated disk space required: &tigervnc-buildsize;
66 </para>
[133cfd33]67 </listitem>
68 <listitem>
[622c1021]69 <para>
70 Estimated build time: &tigervnc-time;
71 </para>
[133cfd33]72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required file:
[0269d30]80 <ulink url="&xorg-download-http;/xserver/xorg-server-&tigervnc-xorg-version;.tar.bz2"/>
[133cfd33]81 </para>
82 </listitem>
83 </itemizedlist>
84
[622c1021]85 <note>
86 <para>
87 The version of <application>Xorg</application> may eventually be a few
88 versions out of date, but is required for the customizations needed
89 for this package.
90 </para>
91 </note>
[422ae04c]92
[555f708]93 <itemizedlist spacing="compact">
[019bc05]94 <listitem>
95 <para>
96 Required patch:
97 <ulink url="&patch-root;/tigervnc-&tigervnc-version;-configuration_fixes-1.patch"/>
98 </para>
99 </listitem>
[a027bdde]100 <listitem revision='sysv'>
101 <para>
102 Optional file to start the server without a display manager:
103 <ulink url="&sources-anduin-http;/tigervnc/vncserver"/>
104 </para>
105 </listitem>
106 <listitem revision='sysv'>
107 <para>
108 Optional manual page:
109 <ulink url="&sources-anduin-http;/tigervnc/vncserver.1"/>
110 </para>
111 </listitem>
112 <listitem revision='systemd'>
[555f708]113 <para>
[a027bdde]114 Optional file to start the server without a display manager:
115 <ulink url="&sources-anduin-http;/tigervnc/Xsession"/>
[555f708]116 </para>
117 </listitem>
118 </itemizedlist>
119
[133cfd33]120 <bridgehead renderas="sect3">Tigervnc Dependencies</bridgehead>
121
122 <bridgehead renderas="sect4">Required</bridgehead>
123 <para role="required">
124 <xref linkend="cmake"/>,
125 <xref linkend="fltk"/>,
126 <xref linkend="gnutls"/>,
127 <xref linkend="libgcrypt"/>,
128 <xref linkend="libjpeg"/>,
[8558044]129 <xref linkend="pixman"/>,
130 <xref linkend="xorg7-app"/>, and
[124f752c]131 <xref linkend="xorg7-legacy"/>
[133cfd33]132 </para>
133
134 <bridgehead renderas="sect4">Recommended</bridgehead>
135 <para role="recommended">
136 <xref linkend="imagemagick"/> and
137 <xref linkend="linux-pam"/>
138 </para>
139
140 <para condition="html" role="usernotes">User Notes:
141 <ulink url="&blfs-wiki;/tigervnc"/></para>
142
143 </sect2>
144
145 <sect2 role="installation">
146 <title>Installation of Tigervnc</title>
147
[019bc05]148 <para>
149 First, make adjustments to the configuration files to make them
150 compatible with LFS systems:
151 <!-- Replaces an incompatible PAM file and disables SELinux support
152 in systemd units. Also modifies the search path for
153 /usr/libexec/vncserver to include /etc/X11/tigervnc -->
154 </para>
155
156<screen><userinput remap="pre">patch -Np1 -i ../tigervnc-&tigervnc-version;-configuration_fixes-1.patch</userinput></screen>
157
[622c1021]158 <para>
159 Install <application>tigervnc</application> by running the following
160 commands:
161 </para>
[133cfd33]162
[5e279f2]163<screen revision="sysv"><userinput># Put code in place
164mkdir -p unix/xserver &amp;&amp;
165tar -xf ../xorg-server-&tigervnc-xorg-version;.tar.bz2 \
166 --strip-components=1 \
167 -C unix/xserver &amp;&amp;
168( cd unix/xserver &amp;&amp;
169 patch -Np1 -i ../xserver120.patch ) &amp;&amp;
170
171# Build viewer
172cmake -G "Unix Makefiles" \
173 -DCMAKE_INSTALL_PREFIX=/usr \
174 -DCMAKE_BUILD_TYPE=Release \
175 -DINSTALL_SYSTEMD_UNITS=OFF \
176 -Wno-dev . &amp;&amp;
177make &amp;&amp;
178
179# Build server
180pushd unix/xserver &amp;&amp;
181 autoreconf -fiv &amp;&amp;
182
183 CPPFLAGS="-I/usr/include/drm" \
184 ./configure $XORG_CONFIG \
185 --disable-xwayland --disable-dri --disable-dmx \
186 --disable-xorg --disable-xnest --disable-xvfb \
187 --disable-xwin --disable-xephyr --disable-kdrive \
188 --disable-devel-docs --disable-config-hal --disable-config-udev \
189 --disable-unit-tests --disable-selective-werror \
190 --disable-static --enable-dri3 \
191 --without-dtrace --enable-dri2 --enable-glx \
192 --with-pic &amp;&amp;
193 make &amp;&amp;
194popd</userinput></screen>
195
196<screen revision="systemd"><userinput># Put code in place
[3b696780]197mkdir -p unix/xserver &amp;&amp;
[3b9bfde]198tar -xf ../xorg-server-&tigervnc-xorg-version;.tar.bz2 \
199 --strip-components=1 \
200 -C unix/xserver &amp;&amp;
201( cd unix/xserver &amp;&amp;
202 patch -Np1 -i ../xserver120.patch ) &amp;&amp;
[133cfd33]203
[b636cda3]204# Build viewer
205cmake -G "Unix Makefiles" \
206 -DCMAKE_INSTALL_PREFIX=/usr \
207 -DCMAKE_BUILD_TYPE=Release \
[9cb3c66d]208 -Wno-dev . &amp;&amp;
[133cfd33]209make &amp;&amp;
210
[b636cda3]211# Build server
212pushd unix/xserver &amp;&amp;
[76ceca6]213 autoreconf -fiv &amp;&amp;
[133cfd33]214
[f4302700]215 CPPFLAGS="-I/usr/include/drm" \
[76ceca6]216 ./configure $XORG_CONFIG \
[fabfce3c]217 --disable-xwayland --disable-dri --disable-dmx \
[133cfd33]218 --disable-xorg --disable-xnest --disable-xvfb \
219 --disable-xwin --disable-xephyr --disable-kdrive \
[f5f898c5]220 --disable-devel-docs --disable-config-hal --disable-config-udev \
[133cfd33]221 --disable-unit-tests --disable-selective-werror \
[fabfce3c]222 --disable-static --enable-dri3 \
[f9dd885]223 --without-dtrace --enable-dri2 --enable-glx \
[b636cda3]224 --with-pic &amp;&amp;
[76ceca6]225 make &amp;&amp;
[133cfd33]226popd</userinput></screen>
227
[622c1021]228 <para>
229 This package does not come with a test suite.
230 </para>
[133cfd33]231
[622c1021]232 <para>
233 Now, as the <systemitem class="username">root</systemitem> user:
234 </para>
[133cfd33]235
[b636cda3]236<screen role="root"><userinput>#Install viewer
237make install &amp;&amp;
[133cfd33]238
[b636cda3]239#Install server
[3b9bfde]240( cd unix/xserver/hw/vnc &amp;&amp; make install ) &amp;&amp;
[fdc0c0a0]241
[133cfd33]242[ -e /usr/bin/Xvnc ] || ln -svf $XORG_PREFIX/bin/Xvnc /usr/bin/Xvnc</userinput></screen>
[019bc05]243
244 <para revision="sysv">
245 Finally, modify the PAM file to be compatible with elogind:
246 </para>
247
248<screen role="root" revision="sysv"><userinput>sed -i 's/pam_systemd.so/pam_elogind.so/' /etc/pam.d/tigervnc</userinput></screen>
249
[1d23596]250<!-- These are installed as part of 'make install' for the client.
[622c1021]251 <para>
252 Finally, create a menu entry. As the
253 <systemitem class="username">root</systemitem> user:
254 </para>
[133cfd33]255
256<screen role="root"><userinput>cat &gt; /usr/share/applications/vncviewer.desktop &lt;&lt; "EOF"
257<literal>[Desktop Entry]
258Type=Application
259Name=TigerVNC Viewer
260Comment=VNC client
261Exec=/usr/bin/vncviewer
262Icon=tigervnc
263Terminal=false
264StartupNotify=false
265Categories=Network;RemoteAccess;</literal>
[b636cda3]266EOF
267
[fbbc908]268install -vm644 media/icons/tigervnc_24.png /usr/share/pixmaps &amp;&amp;
[b636cda3]269ln -sfv tigervnc_24.png /usr/share/pixmaps/tigervnc.png</userinput></screen>
[1d23596]270-->
[133cfd33]271 </sect2>
272
273 <sect2 role="commands">
274 <title>Command Explanations</title>
275
[622c1021]276 <para>
277 <command>tar -xf .. xorg-server...</command>: This command extracts the
278 standard Xorg package into the tree in a location needed for modification.
279 </para>
[b636cda3]280
[622c1021]281 <para>
[a027bdde]282 <parameter>--disable ...</parameter>: Most options that are usually
283 needed for the standard Xorg server are not needed for the Xvnc
284 instance being built.
[622c1021]285 </para>
[133cfd33]286
[622c1021]287 <para>
288 <command>[ -e /usr/bin/Xvnc ] || ln ... Xvnc</command>: If the Xvnc server
289 is not installed in the <filename class='directory'>/usr/bin</filename>
290 directory, then create a link so the <command>vncserver</command> script
291 can find it.
292 </para>
[133cfd33]293
294 </sect2>
295
296 <sect2 role="configuration">
297 <title>Configuring Tigervnc</title>
298
[2737c2fd]299 <para revision='sysv'>
[555f708]300 The default installation of this package makes some changes in the way it
301 is used. The vncserver perl script is placed in /usr/libexec and the
302 server is designed to be run via a systemd style .service file or the
[8558044]303 vncsession script as the root user. The man page for vncserver is placed
304 in section 8 of the man pages. The new procedures require a display
[555f708]305 manager to be installed.
306 </para>
307
[2737c2fd]308 <para revision='sysv'>
309 To restore the previous behavior, install the additional downloaded
310 files as the <systemitem class="username">root</systemitem> user:</para>
[f37b5a32]311
[a027bdde]312<screen role="root" revision='sysv'><userinput>install -m755 --owner=root ../vncserver /usr/bin &amp;&amp;
[f37b5a32]313cp ../vncserver.1 /usr/share/man/man1</userinput></screen>
314
[2737c2fd]315 <para revision='sysv'>
[555f708]316 Using the previous procedures, the user specific configuration files of
317 vncserver reside in the <filename class='directory'>.vnc</filename>
318 directory in the user's home directory. The
319 <filename>xstartup</filename> file in that directory is a script
320 specifying what commands to run when a VNC desktop is started. If no
321 <filename>xstartup</filename> file exists, <command>vncserver</command>
322 will try to start an xterm in a twm session. An example
323 <filename>xstartup</filename> would be:
[622c1021]324 </para>
[133cfd33]325
[2737c2fd]326<screen revision='sysv'>#!/bin/sh
[133cfd33]327[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup
328[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources
329startlxde &amp;</screen>
330
[2737c2fd]331 <para revision='sysv'>
[a74d9d6]332 The <filename>xstartup</filename> file must be executable for the
[555f708]333 commands in it to be executed, so run <command>chmod a+x
334 ~/.vnc/xstartup</command>.
[a74d9d6]335 </para>
336
[2737c2fd]337 <para revision='sysv'>
[9816b812]338 Set up the vnc passwd with <command>vncpasswd</command>. The
[555f708]339 server can then be started with the <command>vncserver</command>
[9816b812]340 command.
[555f708]341 See the man pages in section 1 for the vncserver for the server
342 system and vncviewer for the remote system.
343 </para>
[a74d9d6]344
[019bc05]345 <bridgehead renderas="sect3" revision="systemd">Server Configuration</bridgehead>
346
[e56cae4b]347 <!--
[019bc05]348 <note revision="systemd">
349 <para>
350 This section is optional and is only useful if you want to have VNC
[8558044]351 sessions launch on system startup. Both configuration methods can
[019bc05]352 coexist on the same system.
353 </para>
354 </note>
[e56cae4b]355 -->
[019bc05]356 <para revision="systemd">
357 On systemd systems, another method of configuration is available.
[8558044]358 This configuration provides the added benefit of making tigervnc
[f433fbd]359 systemd aware for VNC sessions and allows desktop environments like
[019bc05]360 <application>GNOME</application> to autostart services once the VNC
361 session is started. This configuration also gives the added benefit
362 of starting VNC Sessions on system startup. To setup the VNC server
363 in this fashion, follow these instructions.
364 </para>
365
366 <para revision="systemd">
367 First, install a rudimentary Xsession file so that the VNC server
368 can initialize X sessions properly:
369 </para>
370
371<screen role="root" revision="systemd"><userinput>install -vdm755 /etc/X11/tigervnc &amp;&amp;
372install -v -m755 ../Xsession /etc/X11/tigervnc</userinput></screen>
373
374 <para revision="systemd">
[8558044]375 Next, setup a user mapping in
[019bc05]376 <filename>/etc/tigervnc/vncserver.users</filename>. This tells the VNC
377 Server which session is allocated to a user.
378 <!-- For example: :1=renodr will assign 'renodr' to :1 -->
379 </para>
380
381<screen role="root" revision="systemd"><userinput>echo ":1=$(whoami)" >> /etc/tigervnc/vncserver.users</userinput></screen>
382
383 <para revision="systemd">
384 Next, setup a configuration file to tell
385 <application>vncserver</application> which desktop environment should be
386 used and what display geometry should be used. There are several other
387 options that can be defined in this file, but they are outside the scope
388 of BLFS.
389 </para>
390
[8430372]391<screen revision="systemd"><userinput>install -vdm 755 ~/.vnc &amp;&amp;
392cat &gt; ~/.vnc/config &lt;&lt; EOF
[019bc05]393<literal># Begin ~/.vnc/config
394
395session=LXDE # The session must match one listed in /usr/share/xsessions.
396geometry=1024x768
397
398# End ~/.vnc/config</literal>
399EOF</userinput></screen>
400
401 <para revision="systemd">
402 To start the VNC Server, run the following command:
403 </para>
404
405<screen role="root" revision="systemd"><userinput>systemctl start vncserver@:1</userinput></screen>
406
407 <para revision="systemd">
408 To start the VNC Server when the system boots, run the following command:
409 </para>
410
411<screen role="root" revision="systemd"><userinput>systemctl enable vncserver@:1</userinput></screen>
412
[133cfd33]413 </sect2>
414
415 <sect2 role="content">
416 <title>Contents</title>
417
418 <segmentedlist>
419 <segtitle>Installed Programs</segtitle>
420 <segtitle>Installed Libraries</segtitle>
421 <segtitle>Installed Directories</segtitle>
422
423 <seglistitem>
[f3429309]424 <seg>Xvnc,
425 vncconfig,
426 vncpasswd,
427 vncserver,
428 vncviewer, and
[133cfd33]429 x0vncserver</seg>
[f3429309]430
[133cfd33]431 <seg>libvnc.so</seg>
[b636cda3]432 <seg>/usr/share/doc/tigervnc-&tigervnc-version;</seg>
[133cfd33]433 </seglistitem>
434 </segmentedlist>
435
436 <variablelist>
437 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
438 <?dbfo list-presentation="list"?>
439 <?dbhtml list-presentation="table"?>
440
441 <varlistentry id="xvnc">
442 <term><command>Xvnc</command></term>
443 <listitem>
[622c1021]444 <para>
445 is a X VNC (Virtual Network Computing) server.
446 It is based on a standard X server, but it has a
[4c24eb0a]447 <quote>virtual</quote> screen rather than a physical one
[622c1021]448 </para>
[133cfd33]449 <indexterm zone="tigervnc xvnc">
450 <primary sortas="b-xvnc">Xvnc</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
455 <varlistentry id="vncconfig">
456 <term><command>vncconfig</command></term>
457 <listitem>
[622c1021]458 <para>
[4c24eb0a]459 is a program to configure and control a VNC server
[622c1021]460 </para>
[133cfd33]461 <indexterm zone="tigervnc vncconfig">
462 <primary sortas="b-vncconfig">vncconfig</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
[28370fe]467 <varlistentry id="vncpasswd">
468 <term><command>vncpasswd</command></term>
469 <listitem>
470 <para>
[4c24eb0a]471 allows you to set the password used to access VNC desktops
[28370fe]472 </para>
473 <indexterm zone="tigervnc vncpasswd">
474 <primary sortas="b-vncpasswd">vncpasswd</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
[133cfd33]479 <varlistentry id="vncserver">
480 <term><command>vncserver</command></term>
481 <listitem>
[622c1021]482 <para>
[4c24eb0a]483 is a perl script used to start or stop a VNC server
[622c1021]484 </para>
[133cfd33]485 <indexterm zone="tigervnc vncserver">
486 <primary sortas="b-vncserver">vncserver</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
491 <varlistentry id="vncviewer">
492 <term><command>vncviewer</command></term>
493 <listitem>
[622c1021]494 <para>
[4c24eb0a]495 is a client used to connect to VNC desktops
[622c1021]496 </para>
[133cfd33]497 <indexterm zone="tigervnc vncviewer">
498 <primary sortas="b-vncviewer">vncviewer</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
502
503 <varlistentry id="x0vncserver">
504 <term><command>x0vncserver</command></term>
505 <listitem>
[622c1021]506 <para>
507 is a program to make an X display on a physical
[4c24eb0a]508 terminal accessible via TigerVNC or compatible viewers
[622c1021]509 </para>
[133cfd33]510 <indexterm zone="tigervnc x0vncserver">
511 <primary sortas="b-x0vncserver">x0vncserver</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 </variablelist>
517
518 </sect2>
519
520</sect1>
Note: See TracBrowser for help on using the repository browser.