How to install OpenOffice on CentOS


apache openoffice

OpenOffice.org (OOo), commonly known as OpenOffice, is a discontinued open-source office suite. It was an open-sourced version of the earlier StarOffice, which Sun Microsystems acquired in 1999 for internal use.

Homepage: https://www.openoffice.org/

Step 1: install JRE
How to install Java on CentOS

Step 2: Download RPM
For CentOS 64bits

wget https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.6/binaries/en-US/Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_en-US.tar.gz

For CentOS 32bits

wget https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.6/binaries/en-US/Apache_OpenOffice_4.1.6_Linux_x86_install-rpm_en-US.tar.gz

Result:

[root@tutorialspots ~]# wget https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.6/binaries/en-US/Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_en-US.tar.gz
--2019-01-06 00:28:25--  https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.6/binaries/en-US/Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_en-US.tar.gz
Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 163655877 (156M) [application/x-gzip]
Saving to: ‘Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_en-US.tar.gz’

100%[======================================>] 163,655,877 20.3MB/s   in 18s

2019-01-06 00:28:44 (8.45 MB/s) - ‘Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_en-US.tar.gz’ saved [163655877/163655877]

Step 3: unpack the archive

tar -xvf Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_en-US.tar.gz

Result:

[root@tutorialspots ~]# tar -xvf Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_en-US.tar.gz
en-US/
en-US/RPMS/
en-US/RPMS/openoffice-brand-calc-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-draw-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-brand-impress-4.1.6-9790.x86_64.rpm
en-US/RPMS/desktop-integration/
en-US/RPMS/desktop-integration/openoffice4.1.6-suse-menus-4.1.6-9790.noarch.rpm
en-US/RPMS/desktop-integration/openoffice4.1.6-mandriva-menus-4.1.6-9790.noarch.rpm
en-US/RPMS/desktop-integration/openoffice4.1.6-freedesktop-menus-4.1.6-9790.noarch.rpm
en-US/RPMS/desktop-integration/openoffice4.1.6-redhat-menus-4.1.6-9790.noarch.rpm
en-US/RPMS/openoffice-core01-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-images-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-calc-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-brand-base-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-core03-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-res-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-core05-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-core02-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-writer-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-core04-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-writer-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-pyuno-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-impress-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-ogltrans-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-xsltfilter-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-brand-writer-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-draw-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-core07-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-graphicfilter-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-core06-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-ure-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-math-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-ooofonts-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-ooolinguistic-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-base-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-gnome-integration-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-onlineupdate-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-calc-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-help-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-brand-draw-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-brand-math-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-brand-en-US-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-impress-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-javafilter-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-math-4.1.6-9790.x86_64.rpm
en-US/RPMS/openoffice-en-US-base-4.1.6-9790.x86_64.rpm
en-US/licenses/
en-US/licenses/LICENSE
en-US/licenses/NOTICE
en-US/readmes/
en-US/readmes/README_en-US.html
en-US/readmes/README_en-US

Step 4:

cd en-US/RPMS

Step 5: Install

su -c 'yum install *.rpm'

Result:

...
  Installing : openoffice-ure-4.1.6-9790.x86_64                            1/41
  Installing : openoffice-core01-4.1.6-9790.x86_64                         2/41
  Installing : openoffice-en-US-4.1.6-9790.x86_64                          3/41
  Installing : openoffice-impress-4.1.6-9790.x86_64                        4/41
  Installing : openoffice-en-US-help-4.1.6-9790.x86_64                     5/41
  Installing : openoffice-en-US-math-4.1.6-9790.x86_64                     6/41
  Installing : openoffice-en-US-res-4.1.6-9790.x86_64                      7/41
  Installing : openoffice-en-US-base-4.1.6-9790.x86_64                     8/41
  Installing : openoffice-en-US-draw-4.1.6-9790.x86_64                     9/41
  Installing : openoffice-en-US-impress-4.1.6-9790.x86_64                 10/41
  Installing : openoffice-en-US-calc-4.1.6-9790.x86_64                    11/41
  Installing : openoffice-en-US-writer-4.1.6-9790.x86_64                  12/41
  Installing : openoffice-math-4.1.6-9790.x86_64                          13/41
  Installing : openoffice-core06-4.1.6-9790.x86_64                        14/41
  Installing : openoffice-writer-4.1.6-9790.x86_64                        15/41
  Installing : openoffice-core07-4.1.6-9790.x86_64                        16/41
  Installing : openoffice-core04-4.1.6-9790.x86_64                        17/41
  Installing : openoffice-core02-4.1.6-9790.x86_64                        18/41
  Installing : openoffice-core05-4.1.6-9790.x86_64                        19/41
  Installing : openoffice-core03-4.1.6-9790.x86_64                        20/41
  Installing : openoffice-calc-4.1.6-9790.x86_64                          21/41
  Installing : openoffice-base-4.1.6-9790.x86_64                          22/41
  Installing : openoffice-draw-4.1.6-9790.x86_64                          23/41
  Installing : openoffice-images-4.1.6-9790.x86_64                        24/41
  Installing : openoffice-4.1.6-9790.x86_64                               25/41
  Installing : openoffice-brand-math-4.1.6-9790.x86_64                    26/41
  Installing : openoffice-brand-impress-4.1.6-9790.x86_64                 27/41
  Installing : openoffice-brand-calc-4.1.6-9790.x86_64                    28/41
  Installing : openoffice-brand-base-4.1.6-9790.x86_64                    29/41
  Installing : openoffice-brand-writer-4.1.6-9790.x86_64                  30/41
  Installing : openoffice-brand-draw-4.1.6-9790.x86_64                    31/41
  Installing : openoffice-brand-en-US-4.1.6-9790.x86_64                   32/41
  Installing : openoffice-ogltrans-4.1.6-9790.x86_64                      33/41
  Installing : openoffice-onlineupdate-4.1.6-9790.x86_64                  34/41
  Installing : openoffice-ooolinguistic-4.1.6-9790.x86_64                 35/41
  Installing : openoffice-javafilter-4.1.6-9790.x86_64                    36/41
  Installing : openoffice-graphicfilter-4.1.6-9790.x86_64                 37/41
  Installing : openoffice-gnome-integration-4.1.6-9790.x86_64             38/41
  Installing : openoffice-ooofonts-4.1.6-9790.x86_64                      39/41
  Installing : openoffice-pyuno-4.1.6-9790.x86_64                         40/41
  Installing : openoffice-xsltfilter-4.1.6-9790.x86_64                    41/41
  Verifying  : openoffice-brand-math-4.1.6-9790.x86_64                     1/41
  Verifying  : openoffice-onlineupdate-4.1.6-9790.x86_64                   2/41
  Verifying  : openoffice-brand-impress-4.1.6-9790.x86_64                  3/41
  Verifying  : openoffice-ooolinguistic-4.1.6-9790.x86_64                  4/41
  Verifying  : openoffice-math-4.1.6-9790.x86_64                           5/41
  Verifying  : openoffice-en-US-help-4.1.6-9790.x86_64                     6/41
  Verifying  : openoffice-brand-calc-4.1.6-9790.x86_64                     7/41
  Verifying  : openoffice-core01-4.1.6-9790.x86_64                         8/41
  Verifying  : openoffice-javafilter-4.1.6-9790.x86_64                     9/41
  Verifying  : openoffice-core06-4.1.6-9790.x86_64                        10/41
  Verifying  : openoffice-ogltrans-4.1.6-9790.x86_64                      11/41
  Verifying  : openoffice-writer-4.1.6-9790.x86_64                        12/41
  Verifying  : openoffice-core07-4.1.6-9790.x86_64                        13/41
  Verifying  : openoffice-brand-base-4.1.6-9790.x86_64                    14/41
  Verifying  : openoffice-core04-4.1.6-9790.x86_64                        15/41
  Verifying  : openoffice-core02-4.1.6-9790.x86_64                        16/41
  Verifying  : openoffice-core05-4.1.6-9790.x86_64                        17/41
  Verifying  : openoffice-en-US-math-4.1.6-9790.x86_64                    18/41
  Verifying  : openoffice-core03-4.1.6-9790.x86_64                        19/41
  Verifying  : openoffice-brand-writer-4.1.6-9790.x86_64                  20/41
  Verifying  : openoffice-impress-4.1.6-9790.x86_64                       21/41
  Verifying  : openoffice-ure-4.1.6-9790.x86_64                           22/41
  Verifying  : openoffice-graphicfilter-4.1.6-9790.x86_64                 23/41
  Verifying  : openoffice-en-US-res-4.1.6-9790.x86_64                     24/41
  Verifying  : openoffice-en-US-base-4.1.6-9790.x86_64                    25/41
  Verifying  : openoffice-calc-4.1.6-9790.x86_64                          26/41
  Verifying  : openoffice-en-US-draw-4.1.6-9790.x86_64                    27/41
  Verifying  : openoffice-gnome-integration-4.1.6-9790.x86_64             28/41
  Verifying  : openoffice-ooofonts-4.1.6-9790.x86_64                      29/41
  Verifying  : openoffice-pyuno-4.1.6-9790.x86_64                         30/41
  Verifying  : openoffice-en-US-impress-4.1.6-9790.x86_64                 31/41
  Verifying  : openoffice-en-US-calc-4.1.6-9790.x86_64                    32/41
  Verifying  : openoffice-brand-draw-4.1.6-9790.x86_64                    33/41
  Verifying  : openoffice-base-4.1.6-9790.x86_64                          34/41
  Verifying  : openoffice-en-US-4.1.6-9790.x86_64                         35/41
  Verifying  : openoffice-4.1.6-9790.x86_64                               36/41
  Verifying  : openoffice-en-US-writer-4.1.6-9790.x86_64                  37/41
  Verifying  : openoffice-brand-en-US-4.1.6-9790.x86_64                   38/41
  Verifying  : openoffice-draw-4.1.6-9790.x86_64                          39/41
  Verifying  : openoffice-xsltfilter-4.1.6-9790.x86_64                    40/41
  Verifying  : openoffice-images-4.1.6-9790.x86_64                        41/41

Installed:
  openoffice.x86_64 0:4.1.6-9790
  openoffice-base.x86_64 0:4.1.6-9790
  openoffice-brand-base.x86_64 0:4.1.6-9790
  openoffice-brand-calc.x86_64 0:4.1.6-9790
  openoffice-brand-draw.x86_64 0:4.1.6-9790
  openoffice-brand-en-US.x86_64 0:4.1.6-9790
  openoffice-brand-impress.x86_64 0:4.1.6-9790
  openoffice-brand-math.x86_64 0:4.1.6-9790
  openoffice-brand-writer.x86_64 0:4.1.6-9790
  openoffice-calc.x86_64 0:4.1.6-9790
  openoffice-core01.x86_64 0:4.1.6-9790
  openoffice-core02.x86_64 0:4.1.6-9790
  openoffice-core03.x86_64 0:4.1.6-9790
  openoffice-core04.x86_64 0:4.1.6-9790
  openoffice-core05.x86_64 0:4.1.6-9790
  openoffice-core06.x86_64 0:4.1.6-9790
  openoffice-core07.x86_64 0:4.1.6-9790
  openoffice-draw.x86_64 0:4.1.6-9790
  openoffice-en-US.x86_64 0:4.1.6-9790
  openoffice-en-US-base.x86_64 0:4.1.6-9790
  openoffice-en-US-calc.x86_64 0:4.1.6-9790
  openoffice-en-US-draw.x86_64 0:4.1.6-9790
  openoffice-en-US-help.x86_64 0:4.1.6-9790
  openoffice-en-US-impress.x86_64 0:4.1.6-9790
  openoffice-en-US-math.x86_64 0:4.1.6-9790
  openoffice-en-US-res.x86_64 0:4.1.6-9790
  openoffice-en-US-writer.x86_64 0:4.1.6-9790
  openoffice-gnome-integration.x86_64 0:4.1.6-9790
  openoffice-graphicfilter.x86_64 0:4.1.6-9790
  openoffice-images.x86_64 0:4.1.6-9790
  openoffice-impress.x86_64 0:4.1.6-9790
  openoffice-javafilter.x86_64 0:4.1.6-9790
  openoffice-math.x86_64 0:4.1.6-9790
  openoffice-ogltrans.x86_64 0:4.1.6-9790
  openoffice-onlineupdate.x86_64 0:4.1.6-9790
  openoffice-ooofonts.x86_64 0:4.1.6-9790
  openoffice-ooolinguistic.x86_64 0:4.1.6-9790
  openoffice-pyuno.x86_64 0:4.1.6-9790
  openoffice-ure.x86_64 0:4.1.6-9790
  openoffice-writer.x86_64 0:4.1.6-9790
  openoffice-xsltfilter.x86_64 0:4.1.6-9790

Complete!

Find installed directory

root@tutorialspots ~]# find / -name "soffice"
/opt/openoffice4/program/soffice

Make symlink:

ln -s /opt/openoffice4/program/soffice /usr/bin/soffice

Install tigervnc-server

yum groupinstall "GNOME Desktop"
yum install tigervnc-server

Result:

[root@tutorialspots ~]# yum install tigervnc-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: repos-tx.psychz.net
 * epel: kdeforge2.unl.edu
 * extras: repo.miserver.it.umich.edu
 * ius: muug.ca
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: mirror.compevo.com
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.8.0-13.el7 will be installed
--> Processing Dependency: xorg-x11-xinit for package: tigervnc-server-1.8.0-13.el7.x86_64
--> Processing Dependency: xorg-x11-xauth for package: tigervnc-server-1.8.0-13.el7.x86_64
--> Processing Dependency: tigervnc-server-minimal for package: tigervnc-server-1.8.0-13.el7.x86_64
--> Running transaction check
---> Package tigervnc-server-minimal.x86_64 0:1.8.0-13.el7 will be installed
--> Processing Dependency: xorg-x11-xkb-utils for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
--> Processing Dependency: tigervnc-license for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
--> Processing Dependency: libXfont2.so.2()(64bit) for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
--> Processing Dependency: libXdmcp.so.6()(64bit) for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be installed
---> Package xorg-x11-xinit.x86_64 0:1.3.4-2.el7 will be installed
--> Processing Dependency: xorg-x11-server-utils for package: xorg-x11-xinit-1.3.4-2.el7.x86_64
--> Running transaction check
---> Package libXdmcp.x86_64 0:1.1.2-6.el7 will be installed
---> Package libXfont2.x86_64 0:2.0.3-1.el7 will be installed
---> Package tigervnc-license.noarch 0:1.8.0-13.el7 will be installed
---> Package xorg-x11-server-utils.x86_64 0:7.7-20.el7 will be installed
--> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
---> Package xorg-x11-xkb-utils.x86_64 0:7.7-14.el7 will be installed
--> Processing Dependency: libxkbfile.so.1()(64bit) for package: xorg-x11-xkb-utils-7.7-14.el7.x86_64
--> Running transaction check
---> Package libXxf86misc.x86_64 0:1.0.3-7.1.el7 will be installed
---> Package libxkbfile.x86_64 0:1.0.9-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                      Arch        Version               Repository
                                                                           Size
================================================================================
Installing:
 tigervnc-server              x86_64      1.8.0-13.el7          base      215 k
Installing for dependencies:
 libXdmcp                     x86_64      1.1.2-6.el7           base       34 k
 libXfont2                    x86_64      2.0.3-1.el7           base      143 k
 libXxf86misc                 x86_64      1.0.3-7.1.el7         base       19 k
 libxkbfile                   x86_64      1.0.9-3.el7           base       83 k
 tigervnc-license             noarch      1.8.0-13.el7          base       29 k
 tigervnc-server-minimal      x86_64      1.8.0-13.el7          base      1.0 M
 xorg-x11-server-utils        x86_64      7.7-20.el7            base      178 k
 xorg-x11-xauth               x86_64      1:1.0.9-1.el7         base       30 k
 xorg-x11-xinit               x86_64      1.3.4-2.el7           base       58 k
 xorg-x11-xkb-utils           x86_64      7.7-14.el7            base      103 k

Transaction Summary
================================================================================
Install  1 Package (+10 Dependent packages)

Total download size: 1.9 M
Installed size: 4.4 M
Is this ok [y/d/N]: y
Downloading packages:
(1/11): libXdmcp-1.1.2-6.el7.x86_64.rpm                    |  34 kB   00:00
(2/11): libXxf86misc-1.0.3-7.1.el7.x86_64.rpm              |  19 kB   00:00
(3/11): libXfont2-2.0.3-1.el7.x86_64.rpm                   | 143 kB   00:00
(4/11): tigervnc-license-1.8.0-13.el7.noarch.rpm           |  29 kB   00:00
(5/11): libxkbfile-1.0.9-3.el7.x86_64.rpm                  |  83 kB   00:00
(6/11): tigervnc-server-1.8.0-13.el7.x86_64.rpm            | 215 kB   00:00
(7/11): xorg-x11-server-utils-7.7-20.el7.x86_64.rpm        | 178 kB   00:00
(8/11): tigervnc-server-minimal-1.8.0-13.el7.x86_64.rpm    | 1.0 MB   00:00
(9/11): xorg-x11-xauth-1.0.9-1.el7.x86_64.rpm              |  30 kB   00:00
(10/11): xorg-x11-xinit-1.3.4-2.el7.x86_64.rpm             |  58 kB   00:00
(11/11): xorg-x11-xkb-utils-7.7-14.el7.x86_64.rpm          | 103 kB   00:00
--------------------------------------------------------------------------------
Total                                              3.7 MB/s | 1.9 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64                         1/11
  Installing : tigervnc-license-1.8.0-13.el7.noarch                        2/11
  Installing : libXdmcp-1.1.2-6.el7.x86_64                                 3/11
  Installing : libXfont2-2.0.3-1.el7.x86_64                                4/11
  Installing : libxkbfile-1.0.9-3.el7.x86_64                               5/11
  Installing : xorg-x11-xkb-utils-7.7-14.el7.x86_64                        6/11
  Installing : tigervnc-server-minimal-1.8.0-13.el7.x86_64                 7/11
  Installing : libXxf86misc-1.0.3-7.1.el7.x86_64                           8/11
  Installing : xorg-x11-server-utils-7.7-20.el7.x86_64                     9/11
  Installing : xorg-x11-xinit-1.3.4-2.el7.x86_64                          10/11
  Installing : tigervnc-server-1.8.0-13.el7.x86_64                        11/11
  Verifying  : xorg-x11-xinit-1.3.4-2.el7.x86_64                           1/11
  Verifying  : libXxf86misc-1.0.3-7.1.el7.x86_64                           2/11
  Verifying  : libxkbfile-1.0.9-3.el7.x86_64                               3/11
  Verifying  : tigervnc-server-minimal-1.8.0-13.el7.x86_64                 4/11
  Verifying  : libXfont2-2.0.3-1.el7.x86_64                                5/11
  Verifying  : xorg-x11-server-utils-7.7-20.el7.x86_64                     6/11
  Verifying  : libXdmcp-1.1.2-6.el7.x86_64                                 7/11
  Verifying  : xorg-x11-xkb-utils-7.7-14.el7.x86_64                        8/11
  Verifying  : tigervnc-license-1.8.0-13.el7.noarch                        9/11
  Verifying  : tigervnc-server-1.8.0-13.el7.x86_64                        10/11
  Verifying  : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64                        11/11

Installed:
  tigervnc-server.x86_64 0:1.8.0-13.el7

Dependency Installed:
  libXdmcp.x86_64 0:1.1.2-6.el7
  libXfont2.x86_64 0:2.0.3-1.el7
  libXxf86misc.x86_64 0:1.0.3-7.1.el7
  libxkbfile.x86_64 0:1.0.9-3.el7
  tigervnc-license.noarch 0:1.8.0-13.el7
  tigervnc-server-minimal.x86_64 0:1.8.0-13.el7
  xorg-x11-server-utils.x86_64 0:7.7-20.el7
  xorg-x11-xauth.x86_64 1:1.0.9-1.el7
  xorg-x11-xinit.x86_64 0:1.3.4-2.el7
  xorg-x11-xkb-utils.x86_64 0:7.7-14.el7

Complete!

Create new user:

useradd tutorialspots
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

Content example:

[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 tutorialspots -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/tutorialspots/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target

Switch user:

su - tutorialspots

Start vncserver

[tutorialspots@tutorialspots ~]$ vncserver :0

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:
xauth:  file /home/tutorialspots/.Xauthority does not exist

New 'tutorialspots.tutorialspots.net:0 (tutorialspots)' desktop is tutorialspots.tutorialspots.net:0

Creating default startup script /home/tutorialspots/.vnc/xstartup
Creating default config /home/tutorialspots/.vnc/config
Starting applications specified in /home/tutorialspots/.vnc/xstartup
Log file is /home/tutorialspots/.vnc/tutorialspots.tutorialspots.net:0.log
su -
systemctl daemon-reload
systemctl enable vncserver@:1.service
reboot
systemctl start vncserver@:1.service

Install xorg-x11-server-Xvfb

[root@tutorialspots ~]# yum install xorg-x11-server-Xvfb
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: repos-tx.psychz.net
 * epel: kdeforge2.unl.edu
 * extras: mirror.genesisadaptive.com
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: mirror.mobap.edu
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-server-Xvfb.x86_64 0:1.20.1-5.1.el7 will be installed
--> Processing Dependency: xorg-x11-server-common >= 1.20.1-5.1.el7 for package: xorg-x11-server-Xvfb-1.20.1-5.1.el7.x86_64
--> Running transaction check
---> Package xorg-x11-server-common.x86_64 0:1.20.1-5.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch        Version             Repository    Size
================================================================================
Installing:
 xorg-x11-server-Xvfb        x86_64      1.20.1-5.1.el7      updates      853 k
Installing for dependencies:
 xorg-x11-server-common      x86_64      1.20.1-5.1.el7      updates       54 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 907 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): xorg-x11-server-common-1.20.1-5.1.el7.x86_64.rpm    |  54 kB   00:00
(2/2): xorg-x11-server-Xvfb-1.20.1-5.1.el7.x86_64.rpm      | 853 kB   00:00
--------------------------------------------------------------------------------
Total                                              2.0 MB/s | 907 kB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : xorg-x11-server-common-1.20.1-5.1.el7.x86_64                 1/2
  Installing : xorg-x11-server-Xvfb-1.20.1-5.1.el7.x86_64                   2/2
  Verifying  : xorg-x11-server-Xvfb-1.20.1-5.1.el7.x86_64                   1/2
  Verifying  : xorg-x11-server-common-1.20.1-5.1.el7.x86_64                 2/2

Installed:
  xorg-x11-server-Xvfb.x86_64 0:1.20.1-5.1.el7

Dependency Installed:
  xorg-x11-server-common.x86_64 0:1.20.1-5.1.el7

Complete!
[root@tutorialspots ~]# Xvfb :0 -screen 0 1024x768x8 &
[1] 16771

Leave a Reply