LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-01-2007, 08:19 AM   #1
JohnyK
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
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,150

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
ssh to your box.
Make sure vncserver is installed, if not, install it.
In your ~/.vnc/xstartup you'll need something like this:
Code:
#!/bin/sh
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
or
vncviewer LAN.IP.OF.SUSEBOX:1

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

Code:
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:
http://faq.gotomyvnc.com/cgi-bin/fom?_recurse=1&file=65
/Edit

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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