• 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"

    In my last article I have shared step by step guide to configure VNC server in Linux.

    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.

    Error:
    # 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

    Solution:

    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
    VNCSERVERS="
    3:root"

    # service vncserver restart
    Shutting down VNC server: 3:root                          
    [FAILED]
    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  ]



    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?
    Join GoLinuxHub Team as an Author, 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

    4 comments:

    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




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

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

      ReplyDelete

    Powered by Blogger.