Difference between revisions of "CentOS 7.x Setup VNC service"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Setup VNC service">CentOS_7.x_tigervnc-server|tigervnc-server</yambe:breadcrumb> =CentOS 7.x Setup VNC service= To setup tigervnc-server in Linux use...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Remote access|Remote Access]] > [[CentOS 7.x tigervnc-server]] > [[CentOS 7.x Setup VNC service]] | |||
To setup tigervnc-server in Linux use following steps: | To setup tigervnc-server in Linux use following steps: | ||
Line 58: | Line 57: | ||
Refer: | Refer: | ||
* https://www.tecmint.com/install-and-configure-vnc-server-in-centos-7/ | * https://www.tecmint.com/install-and-configure-vnc-server-in-centos-7/ | ||
* https://www.howtoforge.com/vnc-server-installation-on-centos-7 | |||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Remote access|Remote Access]] > [[CentOS 7.x tigervnc-server]] > [[CentOS 7.x Setup VNC service]] |
Latest revision as of 16:31, 28 August 2022
Home > CentOS > CentOS 7.x > Remote Access > CentOS 7.x tigervnc-server > CentOS 7.x Setup VNC service
To setup tigervnc-server in Linux use following steps:
- Disable selinux
- Disable firewall
- Install tigervnc server
- yum install tigervnc-server
- If required, as local OS users
- useradd <useraccount>
- passwd <useraccount>
- Create vnc password for user account
- #Login as corresponding user
- su - <useraccount>
- vncpasswd
- Create & modify vnc configuration file via root
- cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
- vim /etc/systemd/system/vncserver@:1.service
- [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 <useraccount> -c "/usr/bin/vncserver %i"
- PIDFile=/home/<useraccount>/.vnc/%H%i.pid
- ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
- [Install]
- WantedBy=multi-user.target
-
- Replace <useraccount> with username
- Start vnc server
- systemctl daemon-reload
- systemctl start vncserver@:1.service
- If you want vnc server for that user enable at boot time
- systemctl enable vncserver@:1.service
- In CentOS7, VNC server access required for multiple users, each user should have separate configuration file and separate system service should run. If you want to create vnc access for multiple users, follow above steps from 4 to 7.
- VNC server can access from windows machines using realvnc viewer.
- Download link for realvnc viewer https://www.realvnc.com/en/connect/download/viewer/windows/
Refer:
- https://www.tecmint.com/install-and-configure-vnc-server-in-centos-7/
- https://www.howtoforge.com/vnc-server-installation-on-centos-7
Home > CentOS > CentOS 7.x > Remote Access > CentOS 7.x tigervnc-server > CentOS 7.x Setup VNC service