V-600
April 30th, 2008, 10:33 PM
I have just installed ubuntu 8.04 on an old computer running as a basic file server. I would like to be able to do more than just this though but the computer is headless (and soon to be stuffed somewhere out of the way).
It starts and auto logs into a gnome desktop. I can ssh to it either from my laptop with ubuntu 8.04 or from a win XP machine using putty. I have set up (via ssh) the computer to run the folding@home client as a service when the computer starts but programs I run myself stop after I log off.
An ugly way round this is to set up any programs before hand, create an init script, let it run, then remove the script when done and reboot/restart init.
What I think I need to do is run a program as another user but I am not sure how to go about it. Hopefully the following will make it clear.
The computer has a user called "storage". When it boots, gdm logs storage in on tty7. I can then ssh to the computer and log in again by going "storage@whatever.the.IP.is". Using this ssh session I want to be able to run programs as the user logged in on tty7.
Would this leave the programs running after I end the ssh session and if so how do I go about this?
Many thanks
It starts and auto logs into a gnome desktop. I can ssh to it either from my laptop with ubuntu 8.04 or from a win XP machine using putty. I have set up (via ssh) the computer to run the folding@home client as a service when the computer starts but programs I run myself stop after I log off.
An ugly way round this is to set up any programs before hand, create an init script, let it run, then remove the script when done and reboot/restart init.
What I think I need to do is run a program as another user but I am not sure how to go about it. Hopefully the following will make it clear.
The computer has a user called "storage". When it boots, gdm logs storage in on tty7. I can then ssh to the computer and log in again by going "storage@whatever.the.IP.is". Using this ssh session I want to be able to run programs as the user logged in on tty7.
Would this leave the programs running after I end the ssh session and if so how do I go about this?
Many thanks