Linux

Linux - CentOS Stream 9 - VNC Server 설정 (원격데스크톱)

Ryan's Tech Note 2023. 2. 21. 19:22

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