基于Redhat8.4安装VNC服务器

原创
01/17 16:22
阅读数 80
# adduser casa

# rm /etc/systemd/system/vncserver@.service

# yum install tigervnc-server

# echo ":3=casa" >> /etc/tigervnc/vncserver.users

# echo "alwaysshared" >> /etc/tigervnc/vncserver-config-defaults

# firewall-cmd --permanent --add-service=vnc-server

# firewall-cmd --reload

$ vncpasswd

$ restorecon -RFv ~/.vnc

# systemctl enable --now vncserver@:3

# systemctl status --now vncserver@:3
● vncserver@:3.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
   Active: inactive (dead)

Jan 17 02:30:49 dracarys.localdomain systemd[1]: vncserver@:3.service: Succeeded.
Jan 17 02:35:57 dracarys.localdomain systemd[1]: Starting Remote desktop service (VNC)...
Jan 17 02:35:57 dracarys.localdomain systemd[1]: Started Remote desktop service (VNC).
Jan 17 02:35:57 dracarys.localdomain systemd[1]: vncserver@:3.service: Succeeded.
Jan 17 02:51:46 dracarys.localdomain systemd[1]: Starting Remote desktop service (VNC)...
Jan 17 02:51:46 dracarys.localdomain systemd[1]: Started Remote desktop service (VNC).
Jan 17 02:51:46 dracarys.localdomain systemd[1]: vncserver@:3.service: Succeeded.
Jan 17 02:55:54 dracarys.localdomain systemd[1]: Starting Remote desktop service (VNC)...
Jan 17 02:55:54 dracarys.localdomain systemd[1]: Started Remote desktop service (VNC).
Jan 17 02:55:54 dracarys.localdomain systemd[1]: vncserver@:3.service: Succeeded.

# 临时方法可禁用SELinux: setenforce 0
# journalctl -xef
Jan 17 02:55:55 dracarys.localdomain dbus-daemon[1674]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd'
Jan 17 02:55:55 dracarys.localdomain setroubleshoot[8885]: AnalyzeThread.run(): Cancel pending alarm
Jan 17 02:55:55 dracarys.localdomain setroubleshoot[8885]: failed to retrieve rpm info for /home/casa
Jan 17 02:55:55 dracarys.localdomain dbus-daemon[1674]: [system] Activating service name='org.fedoraproject.SetroubleshootPrivileged' requested by ':1.1235' (uid=991 pid=8885 comm="/usr/libexec/platform-python -Es /usr/sbin/setroub" label="system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023") (using servicehelper)
Jan 17 02:55:55 dracarys.localdomain dbus-daemon[8931]: [system] Failed to reset fd limit before activating service: org.freedesktop.DBus.Error.AccessDenied: Failed to restore old fd limit: Operation not permitted
Jan 17 02:55:56 dracarys.localdomain dbus-daemon[1674]: [system] Successfully activated service 'org.fedoraproject.SetroubleshootPrivileged'
Jan 17 02:55:59 dracarys.localdomain setroubleshoot[8885]: SELinux is preventing /usr/sbin/vncsession from search access on the directory /home/casa. For complete SELinux messages run: sealert -l 728d0857-7029-48ce-acbf-b8d292d15a79
Jan 17 02:55:59 dracarys.localdomain setroubleshoot[8885]: SELinux is preventing /usr/sbin/vncsession from search access on the directory /home/casa.

                                                           *****  Plugin restorecon (68.9 confidence) suggests   ************************

                                                           If you want to fix the label.
                                                           /home/casa default label should be user_home_dir_t.
                                                           Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
                                                           Do
                                                           # /sbin/restorecon -v /home/casa

                                                           *****  Plugin file (21.0 confidence) suggests   ******************************

                                                           If you think this is caused by a badly mislabeled machine.
                                                           Then you need to fully relabel.
                                                           Do
                                                           touch /.autorelabel; reboot

                                                           *****  Plugin file (21.0 confidence) suggests   ******************************

                                                           If you think this is caused by a badly mislabeled machine.
                                                           Then you need to fully relabel.
                                                           Do
                                                           touch /.autorelabel; reboot

                                                           *****  Plugin catchall_labels (3.92 confidence) suggests   *******************

                                                           If you want to allow vncsession to have search access on the casa directory
                                                           Then you need to change the label on /home/casa
                                                           Do
                                                           # semanage fcontext -a -t FILE_TYPE '/home/casa'
                                                           where FILE_TYPE is one of the following: NetworkManager_etc_rw_t, NetworkManager_etc_t, NetworkManager_log_t, NetworkManager_var_run_t, abrt_etc_t, abrt_var_log_t, abrt_var_run_t, acct_data_t, admin_home_t, afs_config_t, afs_logfile_t, aiccu_etc_t, aiccu_var_run_t, aide_log_t, ajaxterm_var_run_t, alsa_etc_rw_t, alsa_var_run_t, amanda_log_t, antivirus_conf_t, antivirus_log_t, antivirus_var_run_t, apcupsd_log_t, apcupsd_var_run_t, apmd_log_t, apmd_var_run_t, arpwatch_var_run_t, asterisk_etc_t, asterisk_log_t, asterisk_var_run_t, audisp_var_run_t, auditd_var_run_t, auth_cache_t, auth_home_t, autofs_t, automount_var_run_t, avahi_var_run_t, bacula_log_t, bacula_var_run_t, bcfg2_var_run_t, bin_t, bitlbee_conf_t, bitlbee_log_t, bitlbee_var_run_t, blkmapd_var_run_t, blktap_var_run_t, blueman_var_run_t, bluetooth_conf_t, bluetooth_var_run_t, boinc_log_t, boltd_var_run_t, boot_t, bootloader_etc_t, bootloader_var_run_t, brltty_log_t, brltty_var_run_t, bumblebee_var_run_t, cachefilesd_var_run_t, calamaris_log_t, callweaver_log_t, callweaver_var_run_t, canna_log_t, canna_var_run_t, cardmgr_var_run_t, ccs_var_lib_t, ccs_var_log_t, ccs_var_run_t, cert_t, certmaster_var_log_t, certmaster_var_run_t, certmonger_var_run_t, cfengine_log_t, cgconfig_etc_t, cgdcbxd_var_run_t, cgred_log_t, cgred_var_run_t, cgroup_t, cgrules_etc_t, checkpc_log_t, chronyd_var_log_t, chronyd_var_run_t, cinder_log_t, cinder_var_run_t, clogd_var_run_t, cloud_log_t, cluster_conf_t, cluster_var_lib_t, cluster_var_log_t, cluster_var_run_t, clvmd_var_run_t, cmirrord_var_run_t, cobbler_etc_t, cobbler_var_log_t, cockpit_var_run_t, collectd_log_t, collectd_var_run_t, comsat_var_run_t, condor_conf_t, condor_log_t, condor_var_run_t, conman_log_t, conman_var_run_t, conntrackd_conf_t, conntrackd_log_t, conntrackd_var_run_t, consolekit_log_t, consolekit_var_run_t, container_config_t, container_file_t, container_kvm_var_run_t, container_log_t, container_plugin_var_run_t, container_var_run_t, couchdb_conf_t, couchdb_log_t, couchdb_var_run_t, courier_etc_t, courier_var_run_t, cpu_online_t, cpucontrol_conf_t, cpuplug_var_run_t, cpuspeed_var_run_t, cron_log_t, cron_var_run_t, crond_var_run_t, ctdbd_log_t, ctdbd_var_run_t, cupsd_config_var_run_t, cupsd_etc_t, cupsd_log_t, cupsd_lpd_var_run_t, cupsd_rw_etc_t, cupsd_var_run_t, cvs_var_run_t, cyphesis_log_t, cyphesis_var_run_t, cyrus_var_run_t, dbskkd_var_run_t, dbusd_etc_t, dcc_var_run_t, dccd_var_run_t, dccifd_var_run_t, dccm_var_run_t, dcerpcd_var_run_t, ddclient_etc_t, ddclient_log_t, ddclient_var_run_t, default_context_t, default_t, deltacloudd_log_t, deltacloudd_var_run_t, denyhosts_var_log_t, device_t, devicekit_var_log_t, devicekit_var_run_t, devpts_t, dhcp_etc_t, dhcpc_var_run_t, dhcpd_var_run_t, dictd_etc_t, dictd_var_run_t, dirsrv_snmp_var_log_t, dirsrv_snmp_var_run_t, dirsrv_var_log_t, dirsrv_var_run_t, dkim_milter_data_t, dlm_controld_var_log_t, dlm_controld_var_run_t, dnsmasq_etc_t, dnsmasq_var_log_t, dnsmasq_var_run_t, dnssec_trigger_var_run_t, dovecot_etc_t, dovecot_var_log_t, dovecot_var_run_t, drbd_var_run_t, dspam_log_t, dspam_var_run_t, ecryptfs_t, entropyd_var_run_t, etc_mail_t, etc_runtime_t, etc_t, eventlogd_var_run_t, evtchnd_var_log_t, evtchnd_var_run_t, exim_log_t, exim_var_run_t, exports_t, fail2ban_log_t, fail2ban_var_lib_t, fail2ban_var_run_t, faillog_t, fcoemon_var_run_t, fenced_var_log_t, fenced_var_run_t, fetchmail_etc_t, fetchmail_log_t, fetchmail_var_run_t, file_context_t, fingerd_etc_t, fingerd_log_t, fingerd_var_run_t, firewalld_etc_rw_t, firewalld_var_log_t, firewalld_var_run_t, firstboot_etc_t, foghorn_var_log_t, foghorn_var_run_t, fonts_cache_t, fonts_t, freeipmi_bmc_watchdog_var_run_t, freeipmi_ipmidetectd_var_run_t, freeipmi_ipmiseld_var_run_t, fsadm_log_t, fsadm_var_run_t, fsdaemon_var_run_t, ftpd_etc_t, ftpd_var_run_t, games_srv_var_run_t, gconf_etc_t, gdomap_conf_t, gdomap_var_run_t, getty_etc_t, getty_log_t, getty_var_run_t, gfs_controld_var_log_t, gfs_controld_var_run_t, glance_log_t, glance_var_run_t, glusterd_log_t, glusterd_var_run_t, gpm_conf_t, gpm_var_run_t, gpsd_var_run_t, greylist_milter_data_t, groupd_var_log_t, groupd_var_run_t, gssproxy_var_run_t, haproxy_var_log_t, haproxy_var_run_t, hddtemp_etc_t, home_root_t, hostapd_var_run_t, hostname_etc_t, httpd_config_t, httpd_log_t, httpd_sys_content_t, httpd_var_run_t, hwloc_var_run_t, ibacm_conf_t, ibacm_log_t, ibacm_var_run_t, icecast_log_t, icecast_var_run_t, ifconfig_var_run_t, inetd_child_var_run_t, inetd_log_t, inetd_var_run_t, init_var_run_t, initrc_var_log_t, initrc_var_run_t, innd_etc_t, innd_log_t, innd_var_run_t, ipmievd_var_run_t, ipsec_log_t, ipsec_mgmt_var_run_t, ipsec_var_run_t, iptables_var_lib_t, iptables_var_run_t, irc_conf_t, irqbalance_var_run_t, irssi_etc_t, iscsi_log_t, iscsi_var_run_t, isnsd_var_run_t, iwhd_log_t, iwhd_var_run_t, jetty_log_t, jetty_var_run_t, jockey_var_log_t, kadmind_log_t, kadmind_var_run_t, kdbusfs_t, kdump_etc_t, keepalived_var_run_t, keystone_log_t, keystone_var_run_t, kismet_log_t, kismet_var_run_t, klogd_var_run_t, kmod_var_run_t, kmscon_conf_t, krb5_conf_t, krb5_host_rcache_t, krb5_keytab_t, krb5kdc_conf_t, krb5kdc_log_t, krb5kdc_var_run_t, ksmtuned_log_t, ksmtuned_var_run_t, ktalkd_log_t, l2tp_conf_t, l2tpd_var_run_t, lastlog_t, lib_t, likewise_etc_t, likewise_var_lib_t, lircd_etc_t, lircd_var_run_t, lldpad_var_run_t, local_login_home_t, locale_t, locate_var_run_t, logwatch_var_run_t, lost_found_t, lpd_var_run_t, lsassd_var_run_t, lsmd_var_run_t, lttng_sessiond_var_run_t, lvm_etc_t, lvm_var_run_t, lwiod_var_run_t, lwregd_var_run_t, lwsmd_var_run_t, machineid_t, mailman_log_t, mailman_var_run_t, man_cache_t, man_t, mandb_cache_t, mcelog_etc_t, mcelog_log_t, mcelog_var_run_t, mdadm_conf_t, mdadm_log_t, mdadm_var_run_t, memcached_var_run_t, minidlna_conf_t, minidlna_log_t, minidlna_var_run_t, minissdpd_conf_t, minissdpd_var_run_t, mirrormanager_log_t, mirrormanager_var_run_t, mnt_t, mock_etc_t, mock_var_run_t, modules_conf_t, mon_statd_var_run_t, mongod_log_t, mongod_var_run_t, motion_log_t, motion_var_run_t, mount_var_run_t, mozilla_conf_t, mpd_etc_t, mpd_log_t, mpd_var_run_t, mplayer_etc_t, mrtg_etc_t, mrtg_log_t, mrtg_var_run_t, mscan_etc_t, mscan_var_run_t, munin_etc_t, munin_log_t, munin_var_run_t, mysqld_etc_t, mysqld_log_t, mysqld_var_run_t, mysqlmanagerd_var_run_t, mythtv_var_log_t, naemon_log_t, naemon_var_run_t, nagios_etc_t, nagios_log_t, nagios_var_run_t, named_conf_t, named_log_t, named_var_run_t, net_conf_t, netlogond_var_run_t, neutron_log_t, neutron_var_run_t, ninfod_run_t, nmbd_var_run_t, nova_log_t, nova_var_run_t, nrpe_etc_t, nrpe_var_run_t, nscd_log_t, nscd_var_run_t, nsd_log_t, nsd_var_run_t, nslcd_conf_t, nslcd_var_run_t, ntop_etc_t, ntop_var_run_t, ntp_conf_t, ntpd_log_t, ntpd_var_run_t, numad_var_log_t, numad_var_run_t, nut_conf_t, nut_var_run_t, nx_server_var_run_t, oddjob_var_run_t, opafm_var_run_t, openct_var_run_t, opendnssec_conf_t, opendnssec_var_run_t, openhpid_log_t, openhpid_var_run_t, openshift_log_t, openshift_var_run_t, opensm_log_t, openvpn_etc_rw_t, openvpn_etc_t, openvpn_status_t, openvpn_var_log_t, openvpn_var_run_t, openvswitch_log_t, openvswitch_rw_t, openvswitch_var_run_t, openwsman_log_t, openwsman_run_t, oracleasm_conf_t, osad_log_t, osad_var_run_t, pads_config_t, pads_var_run_t, pam_var_console_t, pam_var_run_t, passenger_log_t, passenger_var_run_t, pcp_log_t, pcp_var_run_t, pcscd_var_run_t, pdns_conf_t, pdns_var_run_t, pegasus_conf_t, pegasus_openlmi_storage_var_run_t, pegasus_var_run_t, pesign_var_run_t, pingd_etc_t, piranha_etc_rw_t, piranha_fos_var_run_t, piranha_log_t, piranha_lvs_var_run_t, piranha_pulse_var_run_t, piranha_web_conf_t, piranha_web_var_run_t, pkcs11_modules_conf_t, pkcs11proxyd_var_run_t, pkcs_slotd_log_t, pkcs_slotd_var_run_t, pki_log_t, pki_ra_log_t, pki_ra_var_run_t, pki_tomcat_log_t, pki_tomcat_var_run_t, pki_tps_log_t, pki_tps_var_run_t, plymouthd_var_log_t, plymouthd_var_run_t, policykit_var_run_t, polipo_etc_t, polipo_log_t, polipo_pid_t, portmap_var_run_t, portreserve_etc_t, portreserve_var_run_t, postfix_etc_t, postfix_postdrop_t, postfix_var_run_t, postgresql_etc_t, postgresql_log_t, postgresql_var_run_t, postgrey_etc_t, postgrey_var_run_t, pppd_etc_t, pppd_log_t, pppd_var_run_t, pptp_log_t, pptp_var_run_t, prelink_log_t, prelude_audisp_var_run_t, prelude_correlator_config_t, prelude_lml_var_run_t, prelude_log_t, prelude_var_run_t, printconf_t, privoxy_log_t, privoxy_var_run_t, proc_t, procmail_log_t, prosody_log_t, prosody_var_run_t, psad_etc_t, psad_var_log_t, psad_var_run_t, ptal_etc_t, ptal_var_run_t, pulseaudio_var_run_t, puppet_etc_t, puppet_log_t, puppet_var_run_t, pwauth_var_run_t, pyicqt_log_t, pyicqt_var_run_t, qdiskd_var_log_t, qdiskd_var_run_t, qemu_var_run_t, qmail_etc_t, qpidd_var_run_t, quota_nld_var_run_t, rabbitmq_var_log_t, rabbitmq_var_run_t, radiusd_etc_t, radiusd_log_t, radiusd_var_run_t, radvd_etc_t, radvd_var_run_t, readahead_var_run_t, redis_conf_t, redis_log_t, redis_var_run_t, regex_milter_data_t, restorecond_var_run_t, rhev_agentd_log_t, rhev_agentd_var_run_t, rhnsd_conf_t, rhnsd_var_run_t, rhsmcertd_config_t, rhsmcertd_log_t, rhsmcertd_var_run_t, ricci_modcluster_var_log_t, ricci_modcluster_var_run_t, ricci_var_log_t, ricci_var_run_t, rkhunter_var_lib_t, rlogind_var_run_t, rngd_var_run_t, root_t, roundup_var_run_t, rpcbind_var_run_t, rpcd_var_run_t, rpm_log_t, rpm_script_tmp_t, rpm_var_run_t, rrdcached_var_run_t, rsync_etc_t, rsync_log_t, rsync_var_run_t, rtas_errd_log_t, rtas_errd_var_run_t, samba_etc_t, samba_log_t, samba_var_t, sanlock_conf_t, sanlock_log_t, sanlock_var_run_t, saslauthd_var_run_t, sbd_var_run_t, sblim_var_run_t, screen_var_run_t, sectool_var_log_t, security_t, selinux_config_t, selinux_login_config_t, sendmail_log_t, sendmail_var_run_t, sensord_log_t, sensord_var_run_t, setrans_var_run_t, setroubleshoot_var_log_t, setroubleshoot_var_run_t, shell_exec_t, shorewall_etc_t, shorewall_log_t, slapd_etc_t, slapd_log_t, slapd_var_run_t, slpd_log_t, slpd_var_run_t, smbd_var_run_t, smokeping_var_run_t, smsd_log_t, smsd_var_run_t, snapperd_conf_t, snapperd_log_t, snmpd_log_t, snmpd_var_run_t, snort_etc_t, snort_log_t, snort_var_run_t, sosreport_tmp_t, sosreport_var_run_t, soundd_etc_t, soundd_var_run_t, spamass_milter_data_t, spamd_etc_t, spamd_log_t, spamd_var_run_t, spc_var_run_t, speech_dispatcher_log_t, squid_conf_t, squid_log_t, squid_var_run_t, src_t, srvsvcd_var_run_t, ssh_home_t, sshd_var_run_t, sslh_config_t, sslh_var_run_t, sssd_conf_t, sssd_public_t, sssd_var_lib_t, sssd_var_log_t, sssd_var_run_t, stapserver_log_t, stapserver_var_run_t, stratisd_var_run_t, stunnel_etc_t, stunnel_log_t, stunnel_var_run_t, sudo_log_t, svc_conf_t, svnserve_log_t, svnserve_var_run_t, swat_var_run_t, swift_var_run_t, sysctl_t, sysfs_t, syslog_conf_t, syslogd_var_run_t, sysstat_log_t, system_conf_t, system_cronjob_var_run_t, system_db_t, system_dbusd_var_lib_t, system_dbusd_var_run_t, systemd_bootchart_var_run_t, systemd_hwdb_etc_t, systemd_importd_var_run_t, systemd_logind_inhibit_var_run_t, systemd_logind_sessions_t, systemd_logind_var_run_t, systemd_machined_var_run_t, systemd_networkd_var_run_t, systemd_passwd_var_run_t, systemd_resolved_var_run_t, systemd_timedated_var_run_t, tangd_cache_t, telnetd_var_run_t, textrel_shlib_t, tftpd_etc_t, tftpd_var_run_t, tgtd_var_run_t, thin_aeolus_configserver_log_t, thin_aeolus_configserver_var_run_t, thin_log_t, thin_var_run_t, timemaster_var_run_t, tlp_var_run_t, tmp_t, tmpfs_t, tomcat_log_t, tomcat_var_run_t, tor_etc_t, tor_var_log_t, tor_var_run_t, tuned_etc_t, tuned_log_t, tuned_rw_etc_t, tuned_var_run_t, udev_etc_t, udev_var_run_t, ulogd_etc_t, ulogd_var_log_t, uml_switch_var_run_t, usbmuxd_var_run_t, user_home_dir_t, user_tmp_t, useradd_var_run_t, userhelper_conf_t, usr_t, uucpd_log_t, uucpd_var_run_t, uuidd_var_run_t, var_auth_t, var_lib_t, var_lock_t, var_log_t, var_run_t, var_spool_t, var_t, varnishd_etc_t, varnishd_var_run_t, varnishlog_log_t, varnishlog_var_run_t, vdagent_log_t, vdagent_var_run_t, vhostmd_var_run_t, virt_common_var_run_t, virt_etc_t, virt_log_t, virt_lxc_var_run_t, virt_qemu_ga_log_t, virt_qemu_ga_var_run_t, virt_var_lib_t, virt_var_run_t, virtlogd_etc_t, virtlogd_var_run_t, vmware_host_pid_t, vmware_log_t, vmware_pid_t, vmware_sys_conf_t, vnc_session_var_run_t, vnstatd_var_run_t, vpnc_var_run_t, watchdog_log_t, watchdog_var_run_t, wdmd_var_run_t, webalizer_etc_t, winbind_log_t, winbind_var_run_t, wtmp_t, xdm_etc_t, xdm_home_t, xdm_log_t, xdm_rw_etc_t, xdm_var_run_t, xenconsoled_var_run_t, xend_var_log_t, xend_var_run_t, xenstored_var_log_t, xenstored_var_run_t, xferlog_t, xserver_etc_t, xserver_log_t, xserver_var_run_t, ypbind_var_run_t, yppasswdd_var_run_t, ypserv_conf_t, ypserv_var_run_t, ypxfr_var_run_t, zabbix_log_t, zabbix_var_run_t, zarafa_deliver_log_t, zarafa_deliver_var_run_t, zarafa_etc_t, zarafa_gateway_log_t, zarafa_gateway_var_run_t, zarafa_ical_log_t, zarafa_ical_var_run_t, zarafa_indexer_log_t, zarafa_indexer_var_run_t, zarafa_monitor_log_t, zarafa_monitor_var_run_t, zarafa_server_log_t, zarafa_server_var_run_t, zarafa_spooler_log_t, zarafa_spooler_var_run_t, zebra_conf_t, zebra_log_t, zebra_var_run_t, zoneminder_log_t, zoneminder_var_run_t.
                                                           Then execute:
                                                           restorecon -v '/home/casa'


                                                           *****  Plugin catchall (1.18 confidence) suggests   **************************

                                                           If you believe that vncsession should be allowed search access on the casa directory by default.
                                                           Then you should report this as a bug.
                                                           You can generate a local policy module to allow this access.
                                                           Do
                                                           allow this access for now by executing:
                                                           # ausearch -c 'vncsession' --raw | audit2allow -M my-vncsession
                                                           # semodule -X 300 -i my-vncsession.pp

# FILE_TYEP="NetworkManager_etc_rw_t, NetworkManager_etc_t, NetworkManager_log_t, NetworkManager_var_run_t, abrt_etc_t, abrt_var_log_t, abrt_var_run_t, acct_data_t, admin_home_t, afs_config_t, afs_logfile_t, aiccu_etc_t, aiccu_var_run_t, aide_log_t, ajaxterm_var_run_t, alsa_etc_rw_t, alsa_var_run_t, amanda_log_t, antivirus_conf_t, antivirus_log_t, antivirus_var_run_t, apcupsd_log_t, apcupsd_var_run_t, apmd_log_t, apmd_var_run_t, arpwatch_var_run_t, asterisk_etc_t, asterisk_log_t, asterisk_var_run_t, audisp_var_run_t, auditd_var_run_t, auth_cache_t, auth_home_t, autofs_t, automount_var_run_t, avahi_var_run_t, bacula_log_t, bacula_var_run_t, bcfg2_var_run_t, bin_t, bitlbee_conf_t, bitlbee_log_t, bitlbee_var_run_t, blkmapd_var_run_t, blktap_var_run_t, blueman_var_run_t, bluetooth_conf_t, bluetooth_var_run_t, boinc_log_t, boltd_var_run_t, boot_t, bootloader_etc_t, bootloader_var_run_t, brltty_log_t, brltty_var_run_t, bumblebee_var_run_t, cachefilesd_var_run_t, calamaris_log_t, callweaver_log_t, callweaver_var_run_t, canna_log_t, canna_var_run_t, cardmgr_var_run_t, ccs_var_lib_t, ccs_var_log_t, ccs_var_run_t, cert_t, certmaster_var_log_t, certmaster_var_run_t, certmonger_var_run_t, cfengine_log_t, cgconfig_etc_t, cgdcbxd_var_run_t, cgred_log_t, cgred_var_run_t, cgroup_t, cgrules_etc_t, checkpc_log_t, chronyd_var_log_t, chronyd_var_run_t, cinder_log_t, cinder_var_run_t, clogd_var_run_t, cloud_log_t, cluster_conf_t, cluster_var_lib_t, cluster_var_log_t, cluster_var_run_t, clvmd_var_run_t, cmirrord_var_run_t, cobbler_etc_t, cobbler_var_log_t, cockpit_var_run_t, collectd_log_t, collectd_var_run_t, comsat_var_run_t, condor_conf_t, condor_log_t, condor_var_run_t, conman_log_t, conman_var_run_t, conntrackd_conf_t, conntrackd_log_t, conntrackd_var_run_t, consolekit_log_t, consolekit_var_run_t, container_config_t, container_file_t, container_kvm_var_run_t, container_log_t, container_plugin_var_run_t, container_var_run_t, couchdb_conf_t, couchdb_log_t, couchdb_var_run_t, courier_etc_t, courier_var_run_t, cpu_online_t, cpucontrol_conf_t, cpuplug_var_run_t, cpuspeed_var_run_t, cron_log_t, cron_var_run_t, crond_var_run_t, ctdbd_log_t, ctdbd_var_run_t, cupsd_config_var_run_t, cupsd_etc_t, cupsd_log_t, cupsd_lpd_var_run_t, cupsd_rw_etc_t, cupsd_var_run_t, cvs_var_run_t, cyphesis_log_t, cyphesis_var_run_t, cyrus_var_run_t, dbskkd_var_run_t, dbusd_etc_t, dcc_var_run_t, dccd_var_run_t, dccifd_var_run_t, dccm_var_run_t, dcerpcd_var_run_t, ddclient_etc_t, ddclient_log_t, ddclient_var_run_t, default_context_t, default_t, deltacloudd_log_t, deltacloudd_var_run_t, denyhosts_var_log_t, device_t, devicekit_var_log_t, devicekit_var_run_t, devpts_t, dhcp_etc_t, dhcpc_var_run_t, dhcpd_var_run_t, dictd_etc_t, dictd_var_run_t, dirsrv_snmp_var_log_t, dirsrv_snmp_var_run_t, dirsrv_var_log_t, dirsrv_var_run_t, dkim_milter_data_t, dlm_controld_var_log_t, dlm_controld_var_run_t, dnsmasq_etc_t, dnsmasq_var_log_t, dnsmasq_var_run_t, dnssec_trigger_var_run_t, dovecot_etc_t, dovecot_var_log_t, dovecot_var_run_t, drbd_var_run_t, dspam_log_t, dspam_var_run_t, ecryptfs_t, entropyd_var_run_t, etc_mail_t, etc_runtime_t, etc_t, eventlogd_var_run_t, evtchnd_var_log_t, evtchnd_var_run_t, exim_log_t, exim_var_run_t, exports_t, fail2ban_log_t, fail2ban_var_lib_t, fail2ban_var_run_t, faillog_t, fcoemon_var_run_t, fenced_var_log_t, fenced_var_run_t, fetchmail_etc_t, fetchmail_log_t, fetchmail_var_run_t, file_context_t, fingerd_etc_t, fingerd_log_t, fingerd_var_run_t, firewalld_etc_rw_t, firewalld_var_log_t, firewalld_var_run_t, firstboot_etc_t, foghorn_var_log_t, foghorn_var_run_t, fonts_cache_t, fonts_t, freeipmi_bmc_watchdog_var_run_t, freeipmi_ipmidetectd_var_run_t, freeipmi_ipmiseld_var_run_t, fsadm_log_t, fsadm_var_run_t, fsdaemon_var_run_t, ftpd_etc_t, ftpd_var_run_t, games_srv_var_run_t, gconf_etc_t, gdomap_conf_t, gdomap_var_run_t, getty_etc_t, getty_log_t, getty_var_run_t, gfs_controld_var_log_t, gfs_controld_var_run_t, glance_log_t, glance_var_run_t, glusterd_log_t, glusterd_var_run_t, gpm_conf_t, gpm_var_run_t, gpsd_var_run_t, greylist_milter_data_t, groupd_var_log_t, groupd_var_run_t, gssproxy_var_run_t, haproxy_var_log_t, haproxy_var_run_t, hddtemp_etc_t, home_root_t, hostapd_var_run_t, hostname_etc_t, httpd_config_t, httpd_log_t, httpd_sys_content_t, httpd_var_run_t, hwloc_var_run_t, ibacm_conf_t, ibacm_log_t, ibacm_var_run_t, icecast_log_t, icecast_var_run_t, ifconfig_var_run_t, inetd_child_var_run_t, inetd_log_t, inetd_var_run_t, init_var_run_t, initrc_var_log_t, initrc_var_run_t, innd_etc_t, innd_log_t, innd_var_run_t, ipmievd_var_run_t, ipsec_log_t, ipsec_mgmt_var_run_t, ipsec_var_run_t, iptables_var_lib_t, iptables_var_run_t, irc_conf_t, irqbalance_var_run_t, irssi_etc_t, iscsi_log_t, iscsi_var_run_t, isnsd_var_run_t, iwhd_log_t, iwhd_var_run_t, jetty_log_t, jetty_var_run_t, jockey_var_log_t, kadmind_log_t, kadmind_var_run_t, kdbusfs_t, kdump_etc_t, keepalived_var_run_t, keystone_log_t, keystone_var_run_t, kismet_log_t, kismet_var_run_t, klogd_var_run_t, kmod_var_run_t, kmscon_conf_t, krb5_conf_t, krb5_host_rcache_t, krb5_keytab_t, krb5kdc_conf_t, krb5kdc_log_t, krb5kdc_var_run_t, ksmtuned_log_t, ksmtuned_var_run_t, ktalkd_log_t, l2tp_conf_t, l2tpd_var_run_t, lastlog_t, lib_t, likewise_etc_t, likewise_var_lib_t, lircd_etc_t, lircd_var_run_t, lldpad_var_run_t, local_login_home_t, locale_t, locate_var_run_t, logwatch_var_run_t, lost_found_t, lpd_var_run_t, lsassd_var_run_t, lsmd_var_run_t, lttng_sessiond_var_run_t, lvm_etc_t, lvm_var_run_t, lwiod_var_run_t, lwregd_var_run_t, lwsmd_var_run_t, machineid_t, mailman_log_t, mailman_var_run_t, man_cache_t, man_t, mandb_cache_t, mcelog_etc_t, mcelog_log_t, mcelog_var_run_t, mdadm_conf_t, mdadm_log_t, mdadm_var_run_t, memcached_var_run_t, minidlna_conf_t, minidlna_log_t, minidlna_var_run_t, minissdpd_conf_t, minissdpd_var_run_t, mirrormanager_log_t, mirrormanager_var_run_t, mnt_t, mock_etc_t, mock_var_run_t, modules_conf_t, mon_statd_var_run_t, mongod_log_t, mongod_var_run_t, motion_log_t, motion_var_run_t, mount_var_run_t, mozilla_conf_t, mpd_etc_t, mpd_log_t, mpd_var_run_t, mplayer_etc_t, mrtg_etc_t, mrtg_log_t, mrtg_var_run_t, mscan_etc_t, mscan_var_run_t, munin_etc_t, munin_log_t, munin_var_run_t, mysqld_etc_t, mysqld_log_t, mysqld_var_run_t, mysqlmanagerd_var_run_t, mythtv_var_log_t, naemon_log_t, naemon_var_run_t, nagios_etc_t, nagios_log_t, nagios_var_run_t, named_conf_t, named_log_t, named_var_run_t, net_conf_t, netlogond_var_run_t, neutron_log_t, neutron_var_run_t, ninfod_run_t, nmbd_var_run_t, nova_log_t, nova_var_run_t, nrpe_etc_t, nrpe_var_run_t, nscd_log_t, nscd_var_run_t, nsd_log_t, nsd_var_run_t, nslcd_conf_t, nslcd_var_run_t, ntop_etc_t, ntop_var_run_t, ntp_conf_t, ntpd_log_t, ntpd_var_run_t, numad_var_log_t, numad_var_run_t, nut_conf_t, nut_var_run_t, nx_server_var_run_t, oddjob_var_run_t, opafm_var_run_t, openct_var_run_t, opendnssec_conf_t, opendnssec_var_run_t, openhpid_log_t, openhpid_var_run_t, openshift_log_t, openshift_var_run_t, opensm_log_t, openvpn_etc_rw_t, openvpn_etc_t, openvpn_status_t, openvpn_var_log_t, openvpn_var_run_t, openvswitch_log_t, openvswitch_rw_t, openvswitch_var_run_t, openwsman_log_t, openwsman_run_t, oracleasm_conf_t, osad_log_t, osad_var_run_t, pads_config_t, pads_var_run_t, pam_var_console_t, pam_var_run_t, passenger_log_t, passenger_var_run_t, pcp_log_t, pcp_var_run_t, pcscd_var_run_t, pdns_conf_t, pdns_var_run_t, pegasus_conf_t, pegasus_openlmi_storage_var_run_t, pegasus_var_run_t, pesign_var_run_t, pingd_etc_t, piranha_etc_rw_t, piranha_fos_var_run_t, piranha_log_t, piranha_lvs_var_run_t, piranha_pulse_var_run_t, piranha_web_conf_t, piranha_web_var_run_t, pkcs11_modules_conf_t, pkcs11proxyd_var_run_t, pkcs_slotd_log_t, pkcs_slotd_var_run_t, pki_log_t, pki_ra_log_t, pki_ra_var_run_t, pki_tomcat_log_t, pki_tomcat_var_run_t, pki_tps_log_t, pki_tps_var_run_t, plymouthd_var_log_t, plymouthd_var_run_t, policykit_var_run_t, polipo_etc_t, polipo_log_t, polipo_pid_t, portmap_var_run_t, portreserve_etc_t, portreserve_var_run_t, postfix_etc_t, postfix_postdrop_t, postfix_var_run_t, postgresql_etc_t, postgresql_log_t, postgresql_var_run_t, postgrey_etc_t, postgrey_var_run_t, pppd_etc_t, pppd_log_t, pppd_var_run_t, pptp_log_t, pptp_var_run_t, prelink_log_t, prelude_audisp_var_run_t, prelude_correlator_config_t, prelude_lml_var_run_t, prelude_log_t, prelude_var_run_t, printconf_t, privoxy_log_t, privoxy_var_run_t, proc_t, procmail_log_t, prosody_log_t, prosody_var_run_t, psad_etc_t, psad_var_log_t, psad_var_run_t, ptal_etc_t, ptal_var_run_t, pulseaudio_var_run_t, puppet_etc_t, puppet_log_t, puppet_var_run_t, pwauth_var_run_t, pyicqt_log_t, pyicqt_var_run_t, qdiskd_var_log_t, qdiskd_var_run_t, qemu_var_run_t, qmail_etc_t, qpidd_var_run_t, quota_nld_var_run_t, rabbitmq_var_log_t, rabbitmq_var_run_t, radiusd_etc_t, radiusd_log_t, radiusd_var_run_t, radvd_etc_t, radvd_var_run_t, readahead_var_run_t, redis_conf_t, redis_log_t, redis_var_run_t, regex_milter_data_t, restorecond_var_run_t, rhev_agentd_log_t, rhev_agentd_var_run_t, rhnsd_conf_t, rhnsd_var_run_t, rhsmcertd_config_t, rhsmcertd_log_t, rhsmcertd_var_run_t, ricci_modcluster_var_log_t, ricci_modcluster_var_run_t, ricci_var_log_t, ricci_var_run_t, rkhunter_var_lib_t, rlogind_var_run_t, rngd_var_run_t, root_t, roundup_var_run_t, rpcbind_var_run_t, rpcd_var_run_t, rpm_log_t, rpm_script_tmp_t, rpm_var_run_t, rrdcached_var_run_t, rsync_etc_t, rsync_log_t, rsync_var_run_t, rtas_errd_log_t, rtas_errd_var_run_t, samba_etc_t, samba_log_t, samba_var_t, sanlock_conf_t, sanlock_log_t, sanlock_var_run_t, saslauthd_var_run_t, sbd_var_run_t, sblim_var_run_t, screen_var_run_t, sectool_var_log_t, security_t, selinux_config_t, selinux_login_config_t, sendmail_log_t, sendmail_var_run_t, sensord_log_t, sensord_var_run_t, setrans_var_run_t, setroubleshoot_var_log_t, setroubleshoot_var_run_t, shell_exec_t, shorewall_etc_t, shorewall_log_t, slapd_etc_t, slapd_log_t, slapd_var_run_t, slpd_log_t, slpd_var_run_t, smbd_var_run_t, smokeping_var_run_t, smsd_log_t, smsd_var_run_t, snapperd_conf_t, snapperd_log_t, snmpd_log_t, snmpd_var_run_t, snort_etc_t, snort_log_t, snort_var_run_t, sosreport_tmp_t, sosreport_var_run_t, soundd_etc_t, soundd_var_run_t, spamass_milter_data_t, spamd_etc_t, spamd_log_t, spamd_var_run_t, spc_var_run_t, speech_dispatcher_log_t, squid_conf_t, squid_log_t, squid_var_run_t, src_t, srvsvcd_var_run_t, ssh_home_t, sshd_var_run_t, sslh_config_t, sslh_var_run_t, sssd_conf_t, sssd_public_t, sssd_var_lib_t, sssd_var_log_t, sssd_var_run_t, stapserver_log_t, stapserver_var_run_t, stratisd_var_run_t, stunnel_etc_t, stunnel_log_t, stunnel_var_run_t, sudo_log_t, svc_conf_t, svnserve_log_t, svnserve_var_run_t, swat_var_run_t, swift_var_run_t, sysctl_t, sysfs_t, syslog_conf_t, syslogd_var_run_t, sysstat_log_t, system_conf_t, system_cronjob_var_run_t, system_db_t, system_dbusd_var_lib_t, system_dbusd_var_run_t, systemd_bootchart_var_run_t, systemd_hwdb_etc_t, systemd_importd_var_run_t, systemd_logind_inhibit_var_run_t, systemd_logind_sessions_t, systemd_logind_var_run_t, systemd_machined_var_run_t, systemd_networkd_var_run_t, systemd_passwd_var_run_t, systemd_resolved_var_run_t, systemd_timedated_var_run_t, tangd_cache_t, telnetd_var_run_t, textrel_shlib_t, tftpd_etc_t, tftpd_var_run_t, tgtd_var_run_t, thin_aeolus_configserver_log_t, thin_aeolus_configserver_var_run_t, thin_log_t, thin_var_run_t, timemaster_var_run_t, tlp_var_run_t, tmp_t, tmpfs_t, tomcat_log_t, tomcat_var_run_t, tor_etc_t, tor_var_log_t, tor_var_run_t, tuned_etc_t, tuned_log_t, tuned_rw_etc_t, tuned_var_run_t, udev_etc_t, udev_var_run_t, ulogd_etc_t, ulogd_var_log_t, uml_switch_var_run_t, usbmuxd_var_run_t, user_home_dir_t, user_tmp_t, useradd_var_run_t, userhelper_conf_t, usr_t, uucpd_log_t, uucpd_var_run_t, uuidd_var_run_t, var_auth_t, var_lib_t, var_lock_t, var_log_t, var_run_t, var_spool_t, var_t, varnishd_etc_t, varnishd_var_run_t, varnishlog_log_t, varnishlog_var_run_t, vdagent_log_t, vdagent_var_run_t, vhostmd_var_run_t, virt_common_var_run_t, virt_etc_t, virt_log_t, virt_lxc_var_run_t, virt_qemu_ga_log_t, virt_qemu_ga_var_run_t, virt_var_lib_t, virt_var_run_t, virtlogd_etc_t, virtlogd_var_run_t, vmware_host_pid_t, vmware_log_t, vmware_pid_t, vmware_sys_conf_t, vnc_session_var_run_t, vnstatd_var_run_t, vpnc_var_run_t, watchdog_log_t, watchdog_var_run_t, wdmd_var_run_t, webalizer_etc_t, winbind_log_t, winbind_var_run_t, wtmp_t, xdm_etc_t, xdm_home_t, xdm_log_t, xdm_rw_etc_t, xdm_var_run_t, xenconsoled_var_run_t, xend_var_log_t, xend_var_run_t, xenstored_var_log_t, xenstored_var_run_t, xferlog_t, xserver_etc_t, xserver_log_t, xserver_var_run_t, ypbind_var_run_t, yppasswdd_var_run_t, ypserv_conf_t, ypserv_var_run_t, ypxfr_var_run_t, zabbix_log_t, zabbix_var_run_t, zarafa_deliver_log_t, zarafa_deliver_var_run_t, zarafa_etc_t, zarafa_gateway_log_t, zarafa_gateway_var_run_t, zarafa_ical_log_t, zarafa_ical_var_run_t, zarafa_indexer_log_t, zarafa_indexer_var_run_t, zarafa_monitor_log_t, zarafa_monitor_var_run_t, zarafa_server_log_t, zarafa_server_var_run_t, zarafa_spooler_log_t, zarafa_spooler_var_run_t, zebra_conf_t, zebra_log_t, zebra_var_run_t, zoneminder_log_t, zoneminder_var_run_t"

# semanage fcontext -a -t $FILE_TYPE '/home/casa'

# restorecon -v '/home/casa'

# reboot

# systemctl status vncserver@:3
● vncserver@:3.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2022-01-17 03:15:35 EST; 11s ago
 Main PID: 3474 (vncsession)
    Tasks: 0 (limit: 1648122)
   Memory: 1.1M
   CGroup: /system.slice/system-vncserver.slice/vncserver@:3.service
           ‣ 3474 /usr/sbin/vncsession casa :3

Jan 17 03:15:35 dracarys.localdomain systemd[1]: Starting Remote desktop service (VNC)...
Jan 17 03:15:35 dracarys.localdomain systemd[1]: Started Remote desktop service (VNC).
展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部
返回顶部
顶部