Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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]?
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.
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].
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.