CentOS 7 vnc-server ¼³Ä¡
CentOS 7 ÃÖ¼Ò¹öÀü ¼³Ä¡ ÈÄ vnc ¼³Ä¡
<CentOS 7 ¼³Ä¡>
http://angelhyun.tistory.com/58
[ GNOME ¼³Ä¡ ]
# yum -y groupinstall "GNOME Desktop" "Graphical Administration Tools"
[ runlevel º¯°æ ]
# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
[tigervnc-server ¼³Ä¡]
# yum install -y tigervnc-server
[±¸¼º ÆÄÀÏ º¹»ç]
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
- ps : CentOS 6.x ¹öÀü±îÁö´Â /etc/sysconfig/vncservers ¿´À¸³ª CentOS 7 ·Î ¿Ã¶ó¿À¸é¼ ÇØ´ç °æ·Î°¡ /lib/systemd/system/vncserver@.service ·Î º¯°æµÊ
[±¸¼ºÆÄÀÏ ¼³Á¤]
# vi /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 root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target
[¼³Á¤ÆÄÀÏ Àç½ÃÀÛ]
# systemctl daemon-reload
[vnc ¼ºñ½º È°¼ºÈ]
# systemctl enable vncserver@:1.service
[vnc ¼ºñ½º ½ÃÀÛ]
# vncserver
- Æнº¿öµå ÀÔ·Â(ÀÌ ¼³Á¤µÈ Æнº¿öµå´Â vnc Á¢¼Ó½Ã »ç¿ëÇÏ´Â Æнº¿öµåÀÔ´Ï´Ù.)
[root@test ~]# vncserver
You will require a password to access your desktops.
Password: <-- VNC Æнº¿öµå
Verify: <-- VNC Æнº¿öµå
xauth: file /root/.Xauthority does not exist
New 'test:1 (root)' desktop is test:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test:1.log
[root@test ~]#
[¹æȺ® ¼³Á¤]
# firewall-cmd --permanent --zone=public --add-service vnc-server
# firewall-cmd --reload
[¿ø°Ý Á¢¼Ó]
- Á¢¼ÓÇÏ·Á´Â IP µÚ¿¡ 5901 Æ÷Æ®Á¤º¸ ³Ö¾îÁà¾ßµÊ ex) 199.199.199.100:5901
[Âü°í Site]
https://www.howtoforge.com/vnc-server-installation-on-centos-7
[download Site]
https://www.realvnc.com/download/vnc/
Ãâó: http://angelhyun.tistory.com/entry/CentOS-7-vnc-server-¼³Ä¡ [Sam's Data]