• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • Solve "You'll have to kill the Xvnc process manually"

    This is a common error related to vncserver. Once you are trying to start your vncserver you might get this error. This generally occurs if you have not followed proper configuration step before starting the service. So this leaves you with very few option to solve. Either you can manually kill the process or you can follow proper configuration steps and use a different login session no. for vncserver.

    # service vncserver restart
    Shutting down VNC server: 2:root [FAILED]
    Starting VNC server: 2:root A VNC server is already running as :2 [FAILED]

    # vncserver -kill :2
    Can't find file /root/.vnc/server.example.com:2.pid
    You'll have to kill the Xvnc process manually


    I manually tried to kill the session but did not work. So finally I had assign a different session no. for root.

    # vi /etc/sysconfig/vncservers

    # service vncserver restart
    Shutting down VNC server: 3:root                          
    Starting VNC server: 3:root
    New 'server.example.com:3 (root)' desktop is server.example.com:3

    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/server.example.com:3.log            [  OK  ]

    Follow the below links for more tutorials:

    How does a DNS query works when you type a URL on your browser?
    Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
    How to configure Samba 4 Secondary Domain Controller
    How to secure Apache web server in Linux using password (.htaccess)
    How to register Red Hat Linux with RHN (Red Hat Network )
    Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
    15 tips to enhance security of your Linux machine
    Why is Linux more secure than windows and any other OS
    What is the difference between "su" and "su -" in Linux?
    What is swappiness and how do we change its value?
    How to log iptables messages in different log file
    What are the s and k scripts in the etc rcx.d directories
    How to check all the currently running services in Linux
    How to auto start service after reboot in Linux
    What is virtual memory, paging and swap space?

    Deepak Prasad

    is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?

    Become an author and be a part of our GoLinuxHub Team, Click here for more information
    Solve "You'll have to kill the Xvnc process manually" Solve "You'll have to kill the Xvnc process manually" Reviewed by Deepak Prasad on Thursday, December 13, 2012 Rating: 5


    1. Find PID (process id )number of this session by using
      ps -ef | grep vnc

      e.g. john is your username
      john 712 1 0 00:01 ?

      Here 712 is the pid

      You can kill this pid directly by using
      kill :712

    2. @good spirit :
      command is
      kill 712
      kill :712

    3. What are the proper configuration steps to start the VNC server?


    Powered by Blogger.