LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2004, 06:53 AM   #1
Johny_B
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Vnc server session Slackware 9.1


Hi people, i'm new to the forum and i have a question for you [duhh]

I recently installed Slackware 9.1 on a server and it works perfectly. I use webmin to be able to handle it remotely [the server is in my basement ].

Samba ftp etc are all working perfectly, but I also want to run programms like dcgui [dc++]. The problem is that i start this program remotely [via Tightvnc] and the moment i exit my vnc program the session i started with it is closed ass wel.

What i want to acchieve is to be able to run dc++ on the server in the basement without having to have my own computer on all the time.

Is there a way to start the dcgui program remotely and keep it running after i, for instance, close the vnc client i used to start the program. Is there a way in wich you can avoid closing the session you started remotely? Is perhaps using vnc the wrong way to go?

Any tips on this subject are most welcome off course, maybe you think i'm taking the wrong approach?
 
Old 04-19-2004, 07:08 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I guess I'm not sure about tightVNC, but with the standard VNC, the server is independant from the client. As long as vncserver is running, the X session should be running, even when no client is using it.

Could you provide a few more details about how you are starting VNC on your Slackware box, how you are connecting and how you are disconnecting?



And welcome to LQ!
 
Old 04-19-2004, 07:17 AM   #3
Johny_B
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
thanks for the reply, here is some more info;

I log in via telnet/ssh and start a session. I am able to log into that session every-time and continue my work, except when i close the telnet dialogue [logout, or simple alt+f4] the session is terminated and i am no longer able to continue my work.
Is there a way to stay logged in without having to log in on the server itself [no keyboard/monitor]?
 
Old 04-19-2004, 08:15 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Is there a way to stay logged in without having to log in on the server itself [no keyboard/monitor]?
I'm a little confused about this statement. If you are running the ssh server (sshd) on your Slackware box, you should be able to start an ssh session from your remote machine (no keyboard or monitor needed on the Slack box). Once that is established and you've started vncserver (through ssh) your remote vnc client ought to be able to connect. Again, no need for a keyboard or terminal on the Slack box.

What am I missing?

Quote:
when i close the telnet dialogue [logout, or simple alt+f4] the session is terminated
Well, I think TightVNC requires a secure connection like ssh in order to function securely. If I remember correctly, TightVNC doesn't encrypt traffic by itself, it relies on an ssh tunnel. So if you close the tunnel, you close the secure connection, running programs and all.

So if you use ssh to connect the first time and start vncserver, every time you go back (using ssh and a vnc client) you should see the same vnc session.
 
Old 04-19-2004, 08:32 AM   #5
Johny_B
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
Well i dont actually start vncserver when i connect through telnet or ssh [root requires ssh to log in]. I only use telnet/ssh to log in a user and type startx . Remote desktop has been enabled for al users. I believe that is the same as enabling vncserver after logging in.

Regular users [not root] can log in via telnet, and after startx i can log in to their desktop and start the program but the same problem accurs when i close the telnet window.

Tightvnc does not encrypt the data, but only the username password [i believe i read something like that on their website] and i do not believe that it relies on a ssh connection for i can simply connect through ie6 with telnet://servername from everycomputer with an internetconnection. after that a vnc session is no problem [for as long as i dont log in as root].

Btw, here's what you are missing

If i log in on the server[not over a network], than it does 'remember' its session. So if i've logged in and started x, ican reconnect to that session. I believe it has something to do with the vncserver starting a new display for every new connection. So the display physically on the server is 0, whilst the vncserver starts display 1 for a new connection [actually the problem starts with telnet/ssh taking a new display prolly].

Last edited by Johny_B; 04-19-2004 at 08:33 AM.
 
Old 04-19-2004, 09:26 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I only use telnet/ssh to log in a user and type startx
Well there is the problem. You're not really using VNC, but maybe X11 forwarding in which case it is very much tied to the telnet/ssh session. Unfortunatley, I'm not very familiar with X11 forwarding, but there are a couple of alternative, as I see it:

1) Use vncserver on the server end. I know this will do what you want to do.
2) Try adding a & after you type startx (startx &). That may allow X to run after you've logged out.

Maybe someone more familiar with X11 forwarding would contribute an opinion or two.
 
  


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 into session 0 fraz Linux - Networking 5 11-21-2005 07:36 AM
vnc to slackware 9.1 kde session login aldrisow Slackware 10 07-06-2005 10:13 AM
VNC Session Handling azzurro Linux - Networking 16 09-21-2004 04:43 PM
see the vnc session on vnserver cabo Linux - General 5 09-13-2004 04:07 PM
Slackware VNC Server Install and Configure Procedures kendolin Slackware 2 05-30-2004 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03: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