Skip to main content

Fedora Workstation: TigerVNC

TigerVNC Logo

Install TigerVNC Server

sudo dnf install tigervnc-server

Last metadata expiration check: 0:04:05 ago on Tue 14 Jul 2020 09:41:54 AM +07.
Dependencies resolved.
=====================================================================================
 Package                 Architecture   Version                Repository       Size
=====================================================================================
Installing:
 tigervnc-server         x86_64         1.10.1-5.fc32          updates         247 k

Transaction Summary
=====================================================================================
Install  1 Package

Total download size: 247 k
Installed size: 616 k
Is this ok [y/N]: y
Downloading Packages:
tigervnc-server-1.10.1-5.fc32.x86_64.rpm              40 kB/s | 247 kB     00:06
-------------------------------------------------------------------------------------
Total                                                 33 kB/s | 247 kB     00:07
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                             1/1
  Installing       : tigervnc-server-1.10.1-5.fc32.x86_64                        1/1
  Running scriptlet: tigervnc-server-1.10.1-5.fc32.x86_64                        1/1
Failed to preset unit: Unit file vncserver.service does not exist.
Failed to preset unit: Unit file xvnc.service does not exist.

  Verifying        : tigervnc-server-1.10.1-5.fc32.x86_64                        1/1

Installed:
  tigervnc-server-1.10.1-5.fc32.x86_64

Complete!
sudo cp /lib/systemd/system/vncserver@.service /etc/systemd/system/

Edit /etc/systemd/system/vncserver@.service

sudo vi /etc/systemd/system/vncserver@.service


Reload daemon

systemctl daemon-reload

Set password for user

vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n

Start VNC Server

systemctl start vncserver@:1.service

Check VNC Server status

[tuyen@g73jh ~]$ systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
     Loaded: loaded (/etc/systemd/system/vncserver@.service; disabled; vendor preset>
     Active: active (running) since Tue 2020-07-14 10:01:30 +07; 3s ago
    Process: 13434 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>
   Main PID: 13436 (vncserver_wrapp)
      Tasks: 1 (limit: 16642)
     Memory: 1.7M
     CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
             ├─13436 /usr/bin/sh /usr/bin/vncserver_wrapper tuyen :1
             └─13515 sleep 0.1

Jul 14 10:01:30 g73jh systemd[1]: Starting Remote desktop service (VNC)...
Jul 14 10:01:30 g73jh systemd[1]: Started Remote desktop service (VNC).
lines 1-13/13 (END)

Enable VNC Server on reboot

$ systemctl enable vncserver@:1.service

Created symlink /etc/systemd/system/multi-user.target.wants/vncserver@:1.service → /etc/systemd/system/vncserver@.service.

Popular posts from this blog

Powershell: Enable Firewall Log

We sometimes need to enable Windows firewall's log to troubleshoot. Here is how.

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

[Microsoft Outlook]: Set .pst and .ost files location with ForcePSTPath Registry Key

Set .pst and .ost files location with ForcePSTPath Registry Key The ForcePSTPath registry key is supported by Microsoft Outlook 2003 and later. In Microsoft Outlook 2003 and 2007, it applies to new profiles only. Microsoft Outlook 2013 and Outlook 2016 it applies to new accounts created in a profile. Microsoft Outlook 2013 saves .pst in   %userprofile%\Documents\Outlook Files folder by default. We can change that default setting by adding a new string registry key called ForcePSTPath and set the value to the folder that we want to save those files. Set Microsoft Outlook 2013 always save new .pst and .ost files to D:\Data\Mail folder OST file reached the maximum size The OST File Has Reached The Maximum Size