Pages

VNC : Unable to connect to host: Connection refused (111) (CentOS)

Seems like vnc session is not running on the other machine.
  1. Open terminal
  2. Login as root
  3. Key in vncserver
    You will require a password to access your desktop
    Password: your_password

    New 'localhost.localdomain:1 (your_account)' desktop is localhost.localdomain:1

    Creating default startup script /home/your_account/.vnc/xstartup
    Starting applications specified in /home/your_account/.vnc/xstartup
    Log file is /home/your_account/.vnc/localhost.localdomain:1.log
  4. Edit vi /home/your_account/.vnc/xstartup
  5. Uncomment
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
  6. To access the desktop from vnc, key in hostname:1 @ ip_address:1

3 comments:

  1. Hi is it possible to explain with screenshots.................!!

    ReplyDelete
    Replies
    1. If possible, after you follow step by step to solve this problem.
      Hopefully that you can sharing the screenshot so that I can update this article.

      Delete
  2. Dude,

    What's this: New 'localhost.localdomain:1 (your_account)' desktop is localhost.localdomain:1

    Do I need to create a file? where?

    ReplyDelete

You might also like:

Popular Posts