• VMware

    Learn about VMware virtualization for its products like vsphere, 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.

  • A successful man is one who can lay a firm foundation with the bricks others have thrown at him!!!

    Thursday, December 13, 2012

    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.

    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  ]


    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?

    1 comments: