Hey Linux gurus...
I'm doing an installation this weekend where I'd really like to set up my Linux box and use ssh from my laptop to get a pd patch running, then unhook the laptop, leaving the patch running, go home and come back later to make adjustments or shut it down for the night.
Thing is, I can't figure out how to disconnect without killing the applications I'm running. Is this possible? Does anybody have suggestions?
Thanks
cheers dafydd
Not quite clear on your question, but I'll take a stab. If you run a program in a terminal, it generally exits when the terminal exits because it's "attached" to the terminal. If, however, you run a command with an "&" suffixed, the process is detached from the terminal process, and thus won't exit when the terminal exits. So, for example, run something like this:
pd --no-gui --jack &
You'll notice then that once Pd has started running, you can get a prompt back by pressing enter.
HTH, Ian
On 7/6/06, dafydd hughes dafydd@sideshowmedia.ca wrote:
Hey Linux gurus...
I'm doing an installation this weekend where I'd really like to set up my Linux box and use ssh from my laptop to get a pd patch running, then unhook the laptop, leaving the patch running, go home and come back later to make adjustments or shut it down for the night.
Thing is, I can't figure out how to disconnect without killing the applications I'm running. Is this possible? Does anybody have suggestions?
Thanks
cheers dafydd
-- www.sideshowmedia.ca www.myspace.com/dafyddhughes www.myspace.com/thedeborahs
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
dafydd hughes wrote:
I'm doing an installation this weekend where I'd really like to set up my Linux box and use ssh from my laptop to get a pd patch running, then unhook the laptop, leaving the patch running, go home and come back later to make adjustments or shut it down for the night.
Thing is, I can't figure out how to disconnect without killing the applications I'm running. Is this possible? Does anybody have suggestions?
Check out GNU Screen (http://www.gnu.org/software/screen/) can't guarantee it'll work for PD but it's what I use when I want to leave a long job running on my server.
dafydd hughes wrote:
Hey Linux gurus...
I'm doing an installation this weekend where I'd really like to set up my Linux box and use ssh from my laptop to get a pd patch running, then unhook the laptop, leaving the patch running, go home and come back later to make adjustments or shut it down for the night.
Thing is, I can't figure out how to disconnect without killing the applications I'm running. Is this possible? Does anybody have suggestions?
Thanks
cheers dafydd
nohup: http://www.hmug.org/man/1/nohup.php screen: http://www.hmug.org/man/1/screen.php xmove: http://www.dreness.com/phpbb/viewtopic.php?p=187
Note: I've never tried any of these myself...
Hallo, Claude Heiland-Allen hat gesagt: // Claude Heiland-Allen wrote:
nohup: http://www.hmug.org/man/1/nohup.php screen: http://www.hmug.org/man/1/screen.php xmove: http://www.dreness.com/phpbb/viewtopic.php?p=187
Note: I've never tried any of these myself...
I did this with both nohup and screen to have Pd running without GUI on a remote web and streaming server. Nohup is installed everywhere. You just need to take care that you send the nohup command into the background as well like:
$ nohup /usr/bin/pd patch.pd & $ exit
Screen sometimes may be missing and you need to install it first. Still screen is way more comfortable in the long run, as you don't need to search for the Pd processes PID if you want to kill it etc. Screen is just a terminal that never dies.
Just start a screen with:
$ screen (screen)$ pd patch.pd <press "Ctrl-a d" now> $ exit
Pd will keep on running then. To reconnect just do:
$ screen -rd (screen)$ <pd is still running here> (screen)$ Ctrl-c pd: exiting
I use screen for everything else as well: there's a "screen" with 10 windows running of every machine I own. ;)
Frank Barknecht _ ______footils.org_ __goto10.org__
Hey everybody
Thanks for your responses. I've decided to try screen first, as it seems simplest, and it seems to do what I need.
I'm encountering some difficulties, though...
From an X11 on my laptop:
ssh -Y to the linux desktop
then: xterm screen qjackctl & pd &
ctl-a d disconnects fine - I can close the xterm window within the ssh session. However, pd stays active on the screen of my laptop. I can't log out from the session without first stopping pd, nor can I exit X11 on the mac laptop without killing the programs I've started.
Am I missing something important here?
cheers dafydd
On 7/6/06, Frank Barknecht fbar@footils.org wrote:
Hallo, Claude Heiland-Allen hat gesagt: // Claude Heiland-Allen wrote:
nohup: http://www.hmug.org/man/1/nohup.php screen: http://www.hmug.org/man/1/screen.php xmove: http://www.dreness.com/phpbb/viewtopic.php?p=187
Note: I've never tried any of these myself...
I did this with both nohup and screen to have Pd running without GUI on a remote web and streaming server. Nohup is installed everywhere. You just need to take care that you send the nohup command into the background as well like:
$ nohup /usr/bin/pd patch.pd & $ exit
Screen sometimes may be missing and you need to install it first. Still screen is way more comfortable in the long run, as you don't need to search for the Pd processes PID if you want to kill it etc. Screen is just a terminal that never dies.
Just start a screen with:
$ screen (screen)$ pd patch.pd <press "Ctrl-a d" now> $ exit
Pd will keep on running then. To reconnect just do:
$ screen -rd (screen)$ <pd is still running here> (screen)$ Ctrl-c pd: exiting
I use screen for everything else as well: there's a "screen" with 10 windows running of every machine I own. ;)
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, dafydd hughes hat gesagt: // dafydd hughes wrote:
Thanks for your responses. I've decided to try screen first, as it seems simplest, and it seems to do what I need.
I'm encountering some difficulties, though...
From an X11 on my laptop:
ssh -Y to the linux desktop
then: xterm screen qjackctl & pd &
ctl-a d disconnects fine - I can close the xterm window within the ssh session. However, pd stays active on the screen of my laptop. I can't log out from the session without first stopping pd, nor can I exit X11 on the mac laptop without killing the programs I've started.
Am I missing something important here?
Ah, okay, it seems I misunderstood slightly what you wanted to do. What happened is this: ssh automatically does "X-Forwarding", which means, that every *graphical* program you start on the remote machine will show up its GUI on the local machine. As soon as you close the local display (powering down the laptop etc.) you will loose access to the GUI. This will most likely lead to bad results.
In your case I would recommend to use VNC like Jamie did. It's like "screen" but for graphical programs. You need to start the server (vncserver) on the remote machine, then you can connect to this machine using the password you gave in the vncserver's configuration file. Probably there also are ways to do this with ssh encryption. I don't have any URLs at hand just google a bit.
Frank Barknecht _ ______footils.org_ __goto10.org__
Thanks Frank
Yes - it looks like vnc is the way to go.
Thanks everybody for the help!
cheers dafydd
On 7/6/06, Frank Barknecht fbar@footils.org wrote:
Hallo, dafydd hughes hat gesagt: // dafydd hughes wrote:
Thanks for your responses. I've decided to try screen first, as it seems simplest, and it seems to do what I need.
I'm encountering some difficulties, though...
From an X11 on my laptop:
ssh -Y to the linux desktop
then: xterm screen qjackctl & pd &
ctl-a d disconnects fine - I can close the xterm window within the ssh session. However, pd stays active on the screen of my laptop. I can't log out from the session without first stopping pd, nor can I exit X11 on the mac laptop without killing the programs I've started.
Am I missing something important here?
Ah, okay, it seems I misunderstood slightly what you wanted to do. What happened is this: ssh automatically does "X-Forwarding", which means, that every *graphical* program you start on the remote machine will show up its GUI on the local machine. As soon as you close the local display (powering down the laptop etc.) you will loose access to the GUI. This will most likely lead to bad results.
In your case I would recommend to use VNC like Jamie did. It's like "screen" but for graphical programs. You need to start the server (vncserver) on the remote machine, then you can connect to this machine using the password you gave in the vncserver's configuration file. Probably there also are ways to do this with ssh encryption. I don't have any URLs at hand just google a bit.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Dafydd,
Probably too late, but for resurfacing I did something like this:
Used the X server resolution hotkeys to change from the gemwin size to a bigger size, the xterm is then hidden on the smaller resolution, but visible on the higher one.
I also put a netreceive with a bunch of [route]s that acted as a simple cmd interpreter:
[netreceive 8000] | [route close] | [0, destroy< | [gemwin]
Then on the shell: (local or remote)
% telnet localhost 8000
close;
to send the 0,destroy message.
.b.
dafydd hughes wrote:
Thanks Frank
Yes - it looks like vnc is the way to go.
Thanks everybody for the help!
cheers dafydd
On 7/6/06, Frank Barknecht fbar@footils.org wrote:
Hallo, dafydd hughes hat gesagt: // dafydd hughes wrote:
Thanks for your responses. I've decided to try screen first, as it seems simplest, and it seems to do what I need.
I'm encountering some difficulties, though...
From an X11 on my laptop:
ssh -Y to the linux desktop
then: xterm screen qjackctl & pd &
ctl-a d disconnects fine - I can close the xterm window within the ssh session. However, pd stays active on the screen of my laptop. I can't log out from the session without first stopping pd, nor can I exit X11 on the mac laptop without killing the programs I've started.
Am I missing something important here?
Ah, okay, it seems I misunderstood slightly what you wanted to do. What happened is this: ssh automatically does "X-Forwarding", which means, that every *graphical* program you start on the remote machine will show up its GUI on the local machine. As soon as you close the local display (powering down the laptop etc.) you will loose access to the GUI. This will most likely lead to bad results.
In your case I would recommend to use VNC like Jamie did. It's like "screen" but for graphical programs. You need to start the server (vncserver) on the remote machine, then you can connect to this machine using the password you gave in the vncserver's configuration file. Probably there also are ways to do this with ssh encryption. I don't have any URLs at hand just google a bit.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Jul 6, 2006, at 9:24 AM, dafydd hughes wrote:
Hey Linux gurus...
I'm doing an installation this weekend where I'd really like to set up my Linux box and use ssh from my laptop to get a pd patch running, then unhook the laptop, leaving the patch running, go home and come back later to make adjustments or shut it down for the night.
Thing is, I can't figure out how to disconnect without killing the applications I'm running. Is this possible? Does anybody have suggestions?
...how about setting up a vnc server on the installation machine,
then using a vnc client to log into the computer? I do this all the
time on osx using "chicken of the vnc", but I'm sure there are
comparable linux apps...
james
On Jul 6, 2006, at 12:00 PM, james tittle wrote:
On Jul 6, 2006, at 9:24 AM, dafydd hughes wrote:
Hey Linux gurus...
I'm doing an installation this weekend where I'd really like to
set up my Linux box and use ssh from my laptop to get a pd patch running, then unhook the laptop, leaving the patch running, go home and come back later to make adjustments or shut it down for the night.Thing is, I can't figure out how to disconnect without killing the applications I'm running. Is this possible? Does anybody have suggestions?
...how about setting up a vnc server on the installation machine,
then using a vnc client to log into the computer? I do this all
the time on osx using "chicken of the vnc", but I'm sure there are
comparable linux apps...
Using this script you can run Pd as a daemon:
scripts/debian/init.d/pd
That means you can do this kind of stuff:
/etc/init.d/pd start /etc/init.d/pd stop /etc/init.d/pd restart
You'll most likely need to use it in -nogui mode, but it does that by
default. You can configure which user account pd runs as also. If
you have root access, you can run pd as any user, otherwise you'll
have to run it as yourself.
.hc
On Thu, 6 Jul 2006, dafydd hughes wrote:
Thing is, I can't figure out how to disconnect without killing the applications I'm running. Is this possible? Does anybody have suggestions?
maybe you want this:
nohup pd foo.pd &
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada