VNC에 접속하려면 GNOME이 설치되어 있어야 한다.
이것을 먼저 한다.
# yum group list
# yum groupinstall "Server with GUI"
# systemctl set-default graphical
# reboot
참조 : https://wiki.crowncloud.net/?How_to_install_GNOME_GUI_on_CentOS_Stream_9
-----------------
다음 tigervnc-server를 설치한다.
# dnf -y install tigervnc-server
# vncserver
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
/usr/bin/xauth: file /home/linuxize/.Xauthority does not exist
New 'server2.linuxize.com:1 (linuxize)' desktop at :1 on machine server2.linuxize.com
Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/linuxize/.vnc/server2.linuxize.com:1.log
:n 숫자를 기억해 두었다가 VNC에서 아래와 같은 포트로 접속한다.
:1 (5901), :2 (5902), :3 (5903)
$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
[cent@dlp ~]$ vi ~/.vnc/config
# create new
# session=(display manager you use)
# securitytypes=(security options)
# geometry=(screen resolution)
session=gnome
securitytypes=vncauth,tlsvnc
geometry=800x600
# vi /etc/tigervnc/vncserver.users
# add to the end
# specify [:(display number)=(username] as comments
# display number 1 listens port 5901
# display number n + 5900 = listening port
#
# This file assigns users to specific VNC display numbers.
# The syntax is <display>=<username>. E.g.:
#
# :2=andrew
# :3=lisa
:1=userid
참조 : https://www.server-world.info/en/note?os=CentOS_Stream_9&p=desktop&f=2
https://saju.choeum.com/pos/front/sjuF0101.do?ref=s_BwgZAV1CS2tVJUAFBwEHCjMAAAAAbUJXUg
처음 사주 - 인생 7포인트
2026년 성공하는 시기·성향·연애운·금전운·10년 운까지 한눈에
saju.choeum.com
'Linux' 카테고리의 다른 글
| Linux CentOS - 유용한 명령어 모음 (2) | 2023.02.26 |
|---|---|
| Linux Centos Stream 9 - Samba - 윈도우 파일공유 (0) | 2023.02.24 |
| Jenkins - Git 연동하기 (Public Key 공개키 인증) (0) | 2023.02.18 |
| Linux CentOS Stream 9 - Git Install 설치 (0) | 2023.02.18 |
| Linux CentOS Stream 9 - phpmyadmin 다른 포트로 변경하기 (apache 2.4) (0) | 2023.02.17 |