°Ô½Ã¹° 259°Ç
   
[RHEL7.1] vncserver ¼³Á¤
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-11-22 (È­) 22:10 Á¶È¸ : 2279

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

- ÀÌ·¸°Ô Çϸé 5901Æ÷Æ®·Î Á¢¼ÓÇϰԵȴÙ.

# vi /etc/systemd/system/vncserver@:3.service


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

[Install]
WantedBy=multi-user.target


# firewall-cmd --permanent --zone=public --add-port=5903/tcp
success
# firewall-cmd --reload
success
#


# su - theko   / »ç¿ëÇÒ À¯Àú·Î ·Î±×ÀÎÈÄ 

$ vncpasswd   / vncpasswd ·Î ¼³Á¤À» ÇØÁà¾ßÇÕ´Ï´Ù. ¾ÈÇÏ¸é ¾Æ·¡¿Í °°ÀÌ ¿¡·¯°¡³ª¿È..

-----------------------------------------------------------------

Jul 02 11:31:03 theko-RHEL runuser[11622]: You will require a password to access your desktops.

Jul 02 11:31:03 theko-RHEL runuser[11622]: getpassword error: Inappropriate ioctl for device

Jul 02 11:31:03 theko-RHEL runuser[11622]: pam_unix(runuser-l:session): session closed for user theko

-----------------------------------------------------------------





[root@~]# systemctl daemon-reload
[root@~]# systemctl start vncserver@:1.service
[root@~]# systemctl enable vncserver@:1.service
ln -s '/etc/systemd/system/vncserver@:1.service' '/etc/systemd/system/multi-user.target.wants/vncserver@:1.service'
[root@~]#


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com