• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Disable VNC Server from Xinetd in CentOS/RHEL 7

by admin

Question: How do I stop the xinetd daemon from starting VNC Server processes?

1. Go to xinetd configuration file /etc/xinetd.d/vnc-server. Modify the file and look for the line disable = no and set the value to yes.

# vi /etc/xinetd.d/vnc-server
service vnc-server-1
{
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1440x900 -depth 24 -once -securitytypes=none
}

2. Restart the xinetd service to take effect the changes.

# systemctl restart xinetd.service

Filed Under: CentOS/RHEL, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. atop: command not found
  2. vim: command not found
  3. Understanding The sysfs File System (/sys) in Linux
  4. CentOS / RHEL 7 : Unable To Start The Samba Service
  5. CentOS / RHEL 6 : How to limit memory resources for a specific user using cgroups
  6. mkfs.fat Command Examples in Linux
  7. grub-script-check Command Examples in Linux
  8. How to Count lines in a file in UNIX/Linux
  9. How to extract RAR files in CentOS/RHEL 7 and 8
  10. boltctl: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright