※ CentOS 7 설치 환경으로 진행
[GUI 환경으로 설치 진행]
# yum groupinstall "X Windows System" "GNOME Desktop"
# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
# reboot
1. xrdp 설치
# yum install epel-release -y
# yum install xrdp
# service xrdp start
# netstat -nltp | grep xrdp
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 13350/xrdp-sesman
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 13351/xrdp
2. VNC server 구축
# yum -y install tigervnc-server
# cp -arp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
# systemctl daemon-reload
# systemctl enable vncserver@:1.service
vnc server로 접속할 계정 생성
# useradd vnctest
# passwd vnctest
# su - vnctest
$ vncserver
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /home/vnctest/.Xauthority does not exist
xauth: (stdin):1: bad display name "hostname:1" in "add" command
New 'hostname.novalocal:1 (vnctest)' desktop is hostname.novalocal:1
Creating default startup script /home/vnctest/.vnc/xstartup
Creating default config /home/vnctest/.vnc/config
Starting applications specified in /home/vnctest/.vnc/xstartup
Log file is /home/vnctest/.vnc/hostname:1.log
$ netstat -nltp |grep vnc
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 29894/Xvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 29894/Xvnc
tcp6 0 0 :::5901 :::* LISTEN 29894/Xvnc
tcp6 0 0 :::6001 :::* LISTEN 29894/Xvnc
'LINUX > BASIC' 카테고리의 다른 글
Git 설치 및 설정 (0) | 2019.06.03 |
---|---|
nmon 설치 (0) | 2019.06.03 |
Ubuntu VNCserver 구축 (0) | 2019.06.01 |
Openssl 소스설치 (0) | 2019.06.01 |
Curl 소스설치 (0) | 2019.06.01 |