Applications/LINUX
RHEL 8 tigervnc-server 설치
CRAY KOREA Blog
2022. 3. 8. 10:58
1. Network 설정
# nmcli con mod enp0s8 ipv4.address 192.168.56.10/24 # nmcli con mod enp0s8 ipv4.method manual # nmcli con mod enp0s8 connection.autoconnect yes # nmcli con up enp0s8 |
2. Yum local repo 구성
[AppStream] name=AppStream baseurl=file:///mnt/AppStream enabled=1 gpgcheck=0 [BaseOS] name=BaseOS baseurl=file:///mnt/BaseOS enabled=1 gpgcheck=0 |
3. HOSTNAME 설정
# hostnamectl set-hostname mgmt |
4. Packages 설치
# yum group install GNOME # yum install tigervnc-server # yum groupinstall "Server with GUI" # systemctl set-default graphical.target # systemctl isolate graphical.target |
5. 사용자 생성
# adduser sylee # passwd sylee |
6. /etc/gdm/custom.conf 파일 설정
# GDM configuration storage [daemon] # Uncoment the line below to force the login screen to use Xorg #WaylandEnable=false WaylandEnable=false [security] [xdmcp] [chooser] [debug] # Uncomment the line below to turn on debugging #Enable=true |
7. firewall 설정
(1) active zone 및 default zone 확인
[root@mgmt ~]# firewall-cmd --get-active-zone public [root@mgmt ~]# firewall-cmd --get-default-zone public |
(2) 설정 (5901-5999 까지 허용)
# firewall-cmd --permanent --zone=public --add-port 5901-5999/tcp # firewall-cmd --reload |
(3) 설정 확인
# firewall-cmd --list-all |
8. 계정 vncserver 설정
[sylee@mgmt ~]$ vncserver WARNING: vncserver has been replaced by a systemd unit and is about to be removed in future releases. Please read /usr/share/doc/tigervnc/HOWTO.md for more information. 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 New 'mgmt:1 (sylee)' desktop is mgmt:1 Creating default startup script /home/sylee/.vnc/xstartup Creating default config /home/sylee/.vnc/config Starting applications specified in /home/sylee/.vnc/xstartup Log file is /home/sylee/.vnc/mgmt:1.log [sylee@mgmt ~]$ vncserver -list WARNING: vncserver has been replaced by a systemd unit and is about to be removed in future releases. Please read /usr/share/doc/tigervnc/HOWTO.md for more information. TigerVNC server sessions: X DISPLAY # PROCESS ID :1 34882 [sylee@mgmt ~]$ |