Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-01-2007, 08:19 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Setting up VNC only using SSH

I have a linux box running on SuSE 9.3. The only way at this moment how i can access it, is using SSH but since i'm new at linux i thought i should start with some graphic interface. Then i read that majority is using VNC for that, but i have no idea how to set it up without having direct access to that box.
So can any1 help me? Or at least give a link to any tutorial - i've been searching the web for few hours without any success.
Old 12-01-2007, 08:55 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,142

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
ssh to your box.
Make sure vncserver is installed, if not, install it.
In your ~/.vnc/xstartup you'll need something like this:
startkde &
if you are using KDE

Then start it, and have it run in the background. eg
vnserver :1 1024x768 -depth 24 &

On your other box, connect to the vncserver that is running on display 1 on the suse box:
vncviewer name_of_suse_box:1
vncviewer LAN.IP.OF.SUSEBOX:1

One of my servers starts a vncserver for me at boot, with this line in /etc/rc.local

su - myusername -c "cd /home/myusername/ && vncserver :1 -geometry 1024x768 -depth 24" &
That means I can connect to it with vncviewer anytime I like.
vnc is neat, and surprisingly easy to set up!
Give it a go!
Edit Here's a simple tutorial /howto for you:

Last edited by tredegar; 12-01-2007 at 09:01 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC over ssh stfusonxxxx Linux - Newbie 3 10-12-2007 09:03 AM
setting up ssh tunnel for vnc jr0 Linux - Networking 3 10-22-2005 11:38 AM
ssh with vnc Dillius Linux - Security 1 03-11-2005 04:53 PM
ssh and VNC linuxnube Linux - Security 4 01-28-2004 10:12 PM
VNC and SSH jrmann1999 Linux - Networking 0 12-26-2001 09:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration