Multiple clients may connect to a VNC server at. Set vnc password which we will use while accessing this system from VNC Viewer - ~]# vncpasswd Password: Verify: Would you like to enter a view-only password (y/n)? y Password: Verify: ~]# cp following lines to service file - (user name can be changed to any as per your requirement, here I am using root) ~]# vim Description=Remote desktop service (VNC) After=syslog.target network.target Type=forking ExecStartPre=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’ ExecStart=/sbin/runuser -l root -c “/usr/bin/vncserver %i -geometry 1280x1024” PIDFile=/root/.vnc/%H%i.pid ExecStop=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’ WantedBy=multi-user. VNC is platform-independent there are clients and servers for many GUI-based operating systems and for Java. Install vnc server software on the Linux Box which we want to access from our Mac Client - ~]# yum install tigervnc-server -y Installing : tigervnc-server-1.8.0–19.el7.x86_64 1/1 Verifying : tigervnc-server-1.8.0–19.el7.x86_64 1/1 Installed: tigervnc-server.x86_64 0:1.8.0–19.el7 Complete! Log in as the user who wants to own the VNC session.
0 Comments
Leave a Reply. |