linux:vnc:install-vnc-almalinux-9
Install VNC di Almalinux 9
Berikut ini adalah tutorial install tiger vnc remote desktop di almalinux 9.
dnf -y install tigervnc-server
Firewall
firewall-cmd --add-service=vnc-server firewall-cmd --runtime-to-permanent
kita menggunakan CSF maka cukup kita buka port misalnya 5900 s/d 5910
nano vncsession.te
isi dengan
module vncsession 1.0; require { type default_t; type xdm_home_t; type vnc_session_t; class dir { add_name create write }; class file { create open write }; } #============= vnc_session_t ============== allow vnc_session_t default_t:dir { add_name write }; allow vnc_session_t default_t:file { create open write }; allow vnc_session_t xdm_home_t:dir create;
jalankan
checkmodule -m -M -o vncsession.mod vncsession.te semodule_package --outfile vncsession.pp --module vncsession.mod semodule -i vncsession.pp
Setting vnc password
vncpasswd
akan keluar seperti ini
Password: Verify: Would you like to enter a view-only password (y/n)? n
edit config
nano ~/.vnc/config
isi dengan
# create new # session=(display manager you use) # securitytypes=(security options) # geometry=(screen resolution) session=gnome securitytypes=vncauth,tlsvnc geometry=800x600
Edit user
nano /etc/tigervnc/vncserver.users
isi dengan
# 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=alma :2=redhat
Menjalankan
systemctl enable --now vncserver@:1 vncserver@:2
anda bisa menjalankan salah satunya seperti ini
systemctl enable --now vncserver@:1
melihat status
service vncserver@:1 status
selesai, itulah tutorial remote desktop dengan Tiger VNC di almalinux 9
Referensi
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/vnc/install-vnc-almalinux-9.txt · Last modified: 2024/09/18 22:31 by kbadmin