LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-14-2005, 07:03 PM   #1
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Rep: Reputation: 30
VNC question


Hey guys, first off, I love the vnc feature in suse - definitly conencting via web browser on port 5801 - cool stuff. My only question is, can I connect to a session already in progress like when using rdc on windows? I would like to administrate my machine, then close my vnc session without actually closing out what I was doing on the server. Any ideas? btw - I am using tightvnc as my client.
 
Old 12-14-2005, 08:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,627
Blog Entries: 10

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
There's several ways to achieve that ... I have installed x11vnc that
I then start from within my .xinitrc file before I run my WM.

If you search here on LQ you'll find ways of doing that with tight
or real VNC as well, but by default those two come up with the "bleak"
naked X with a console.


Cheers,
Tink
 
Old 12-14-2005, 09:22 PM   #3
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
Hm, well the thing is I get full kdm/kde and all that jazz (not X+xterm), I just need to connect to an open display.
For example, right now the machine is logged in as a user in kde, running azureus, most likely display 0. If I wanted to gain control of THAT session - display 0, what would be the way to snatch control from something already in use? As it is, my vnc client just hits up the next display, display 1. If I then opened something via vnc on that display, it is lost when I disconnect. I'm really just trying to achieve what rdc already does, snatch control away from the local machine and hand it to the remote client, then hand the session back to local control when the remote admin disconncets. Any ideas?
 
Old 12-14-2005, 09:52 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,627
Blog Entries: 10

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Similar to my method ...

Just make sure that the xsession on the machine allows
connections from localhost; then you ssh into the box
as the user whose session you want to grab, fire up
x11vnc and off you go ... :)


Cheers,
Tink
 
Old 12-16-2005, 11:14 AM   #5
jess1975
Member
 
Registered: Jul 2004
Location: Germany
Distribution: Suse 11.1
Posts: 87

Rep: Reputation: 15
Try giving the display free using VNC. That will serve your needs. This can be configured using sax2 (or by Yast Display). You can also password-protect it.
 
Old 12-17-2005, 12:04 AM   #6
crazibri
Member
 
Registered: Mar 2004
Location: Orange County, CA
Distribution: OS X, SuSE, RH, Debian, XP
Posts: 377

Rep: Reputation: 30
Secure VNC connection - SSH tunnel

Make sure if you're using it, its on a firewalled internal network. Any VNC variation is not very secure unless behind a different firewall.

A secure idea would be to setup SSH on your remote machine on a random port that only you know, setup VNC the remote machine to only use a local port, from your machine login through SSH something like "ssh -l username <IP> -L 5900:127.0.0.1:5900" This will log in to your remote machine and forward your remote machine's local port 5900 (VNC local port) to your machine. Now with SSH logged in doing nothing, use a remote desktop program that works with VNC and connect to 127.0.0.1 port5900 and you're in to the remote machine over a secure SSH tunnel.
 
Old 12-17-2005, 12:21 AM   #7
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
Sounds good - thanx for the info!

-Bill
 
Old 12-23-2005, 09:01 PM   #8
nymusicman
Member
 
Registered: Jun 2004
Location: Aurora, IL
Distribution: Slackware Current
Posts: 162

Rep: Reputation: 30
You can also just use these instructions. Very simple what you are trying to do, that is connect to Display :0. http://www.realvnc.com/products/free/4.1/x0.html
 
Old 12-23-2005, 10:02 PM   #9
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
Thanks to everyone, I figured it out. What I did was enable vnc in yast2 (I did that prior to this thread) then enable connect to this display in sax2. You can also set up a password in there for a little security.

Here's my setup now
To connect to the active display, use port 5900 - 5800 for java
To connect to a new display use 5901 - 5801 for java

On windows I use realvnc to connect, I found it to be a great app. In linux krdc is the most refined program I found, and it does rdp too!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another vnc question section31 Fedora 2 09-22-2005 01:26 AM
VNC Question eggman95 Linux - Networking 3 08-09-2005 10:17 PM
vnc question m2azer Linux - Newbie 2 09-18-2004 08:22 PM
VNC Question sujte Linux - Software 0 05-03-2004 03:28 PM
VNC question cizzi Linux - Software 4 01-12-2004 03:57 PM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration