Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Starting VNC through Putty SSH

Posted on 2011-10-09
3
Medium Priority
?
486 Views
Last Modified: 2012-05-12
When I start a VNC Session after creating an SSH Tunnel using Putty, I am not getting the GUI as expected but rather an X-Window with a command prompt.

My procedure:
- Launch Putty and login as root.  Then type vncserver.  Returns the hostname:1.  Then I close Putty.
- Launch Putty with SSH Tunnels Port set ot 5901 and Destination set to localhost:5901
- Finally I launch VNC with hostname:1. When I log in with root and password, I receive the command prompt instead of the GUI

0
Comment
Question by:orther
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
pritamdutt earned 2000 total points
ID: 36940368
I don't know which OS you are running specifically but I would request you to the following steps:

1. Login using SSH
2. Check for ~username/.vnc folder
3. In the .vnc folder you should have a file named xstartup -> This file carries configuration for your GUI Display
4. You might find a commented line similar to  following

# unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc

5. Uncomment these lines and restart vncserver

You should see a normal desktop now.

If you still face any issues, please post the contents of .vnc folder/xstartup file

Hope this helps!
0
 

Author Closing Comment

by:orther
ID: 36940405
If you are using webmin this file is located in /root/.vnc.  From there you can edit per the instructions above.

Thanks for your help.
0
 
LVL 9

Expert Comment

by:pritamdutt
ID: 36940424
It is important to note that Webmin also allows you to login using different users, so the path would be depend you the logged on user and its mapping in Webmin.

Cheer!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question