hi, i have made an installation using pd and am migrating it to a planetccrma box from a windows machine - i need the patch to open automaticaly when the system boots up - in windows i just put a shortcut to my .bat file in the startup folder which worked fine. how do i do this in Linux? also i have stupidly locked myself out my root account by: chsh -s /sbin/nologin i thought this would bypass the login procedure - whoops! how can i get my root account back? this is my real problem at the moment thanks, rob www.robcanning.utvinternet.com
hi,
to autostart on linux
put a symlink in your rc3.d (or with whatever runlevel you boot by default, this is set in /etc/inittab)
called S19pd_start (any number, but be sure, all other important processes are started before/lower numbers...) to a script named pd_start
linux then calls this script with the argument "start" when booting. the script "pd_start" looks like:
################################# beginning of script #############################
#! /bin/sh
# Check for missing binaries (stale symlinks should not happen) PD_BIN=/usr/local/pd/bin/pd test -x $PD_BIN || exit 5
case "$1" in
start)
echo -n "Starting PD"
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
/usr/local/pd/bin/pd -nogui -noadc -audiobuf 20 -r 22050
-lib /usr/local/lib/pd/pdp/pdp
-lib /usr/local/lib/pd/externs/zexy
-path /home/marius
-path /usr/local/lib/pd/pdp
-path /usr/local/lib/pd/externs/zexy
/home/marius/application.pd &
;;
## mind the &!!!
stop)
echo -n "Shutting down FOO "
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.
kill 'cat /var/run/pd.pid'
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
################################## end of script #######################
marius.
----- Original Message ----- From: "rob canning" rscanning@eircom.net To: pd-list@iem.at Sent: Wednesday, January 28, 2004 1:15 PM Subject: [PD] auto login + auto run pd on linux
hi, i have made an installation using pd and am migrating it to a planetccrma
box from a windows machine - i need the patch to open automaticaly when the system boots up - in windows i just put a shortcut to my .bat file in the startup folder which worked fine. how do i do this in Linux?
also i have stupidly locked myself out my root account by: chsh -s /sbin/nologin i thought this would bypass the login procedure - whoops! how can i get my root account back? this is my real problem at the moment thanks, rob www.robcanning.utvinternet.com
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
ons 2004-01-28 klockan 14.59 skrev marius schebella:
also i have stupidly locked myself out my root account by: chsh -s /sbin/nologin i thought this would bypass the login procedure - whoops! how can i get my root account back? this is my real problem at the moment thanks, rob
I guess you could login as an ordinary user and then use su - this is probably the easy and best way,
if you feel like doing something harder and more complicated you could probably boot as singleuser and fixup the root accound - also if you want security in your installation unprotected singleuser possiblility may be something you want to prevent. But it's probaly overkill.
Hallo, Zachris Trolin hat gesagt: // Zachris Trolin wrote:
ons 2004-01-28 klockan 14.59 skrev marius schebella:
also i have stupidly locked myself out my root account by: chsh -s /sbin/nologin i thought this would bypass the login procedure - whoops! how can i get my root account back? this is my real problem at the moment thanks, rob
I guess you could login as an ordinary user and then use su - this is probably the easy and best way,
Maybe this will help:
$ su -c "chsh -s /bin/bash/"
Frank Barknecht _ ______footils.org__
i have the some problem on one pc, but if i do: su -c "chsh -s /bin/bash/"
i get : Password : No shell
rebooting does not help
A.Z.
On Thu, 29 Jan 2004, Frank Barknecht wrote:
Hallo, Zachris Trolin hat gesagt: // Zachris Trolin wrote:
ons 2004-01-28 klockan 14.59 skrev marius schebella:
also i have stupidly locked myself out my root account by: chsh -s /sbin/nologin i thought this would bypass the login procedure - whoops! how can i get my root account back? this is my real problem at the moment thanks, rob
I guess you could login as an ordinary user and then use su - this is probably the easy and best way,
Maybe this will help:
$ su -c "chsh -s /bin/bash/"
ciao
++++++++++++++++++++++++
++++++++++++++++++++++++
I read:
rebooting does not help
it does at the boot prompt say sth. like:
boot: linux root=/dev/hdaN init=/bin/bash
and fix it from there
HTH
x
On Thu, 29 Jan 2004, CK wrote:
boot: linux root=/dev/hdaN init=/bin/bash
this is what i did, and : mount -o remount,rw /
(i could update passw here or something, how to fix "No shell" ???)
mount -o remount,ro / reboot
and fix it from there
???
++++++++++++++++++++++++
++++++++++++++++++++++++
I read:
boot: linux root=/dev/hdaN init=/bin/bash
this is what i did, and : mount -o remount,rw /
(i could update passw here or something, how to fix "No shell" ???)
vi /etc/passwd ?
regards
x
On Thu, 29 Jan 2004, CK wrote:
vi /etc/passwd ?
looks completely ok to me ;) ... root:x:0:0:root:/bin/bash ...
++++++++++++++++++++++++
++++++++++++++++++++++++
well, this looks weird to me, i changed root:x:0:0:root:/bin/bash to root:x:0:0:root:/bin/sh and it works.
Any idea how to sort out this : i need to start pd as root (because of parapin) automatically on boot, but then there is a patch with some controlls for normal user that i want to run as user. To start another Pd is not a good way.
++++++++++++++++++++++++
++++++++++++++++++++++++
hi,
I read:
Any idea how to sort out this : i need to start pd as root (because of parapin) automatically on boot,
I'm not familiar with parapin but if it's /dev/lp* based a simple chmod should do the trick. Is this an external you are using ? which one ?
but then there is a patch with some controlls for normal user that i want to run as user. To start another Pd is not a good way.
hmmm .... I guess if you insist on having one pd, started as a user you will have to install it suid and patch the source to allow realtime scheduling _and_ parport access.
probably the above is all rubbish though
regards,
x
On Thu, Jan 29, 2004 at 05:48:51PM +0100, CK wrote:
Any idea how to sort out this : i need to start pd as root (because of parapin) automatically on boot,
I'm not familiar with parapin but if it's /dev/lp* based a simple chmod should do the trick. Is this an external you are using ? which one ?
I programmed the parapin external, which is based on the parapin library; here's an excerpt of its documentation: Programs using Parapin must be running as root when they are initialized. Initialization of the library will fail if the process is owned by any user other than the super-user because Parapin has to request the right to write directly to hardware I/O registers using the ioperm function. The security-conscious programmer is encouraged to drop root privileges using setuid after a successful call to pin_init_user.
I did not program the external securely. Running as root is mandatory (sudo works for this purpose), and chmoding the device would not give root permissions to parapin.
but then there is a patch with some controlls for normal user that i want to run as user. To start another Pd is not a good way.
hmmm .... I guess if you insist on having one pd, started as a user you will have to install it suid and patch the source to allow realtime scheduling _and_ parport access.
I suggess to start your PD application using sudo, with the -nogui option, and program some sort of fullscreen GUI with anything that can communicate with PD. You can use a flash frontend with mozilla in kiosk mode under the ratpoison window manager. The kdm session manager allows to start X automatically at startup. Ming is good to create dynamic flash interfaces.
http://www.akustische-kunst.org/puredata/flash/ http://kiosk.mozdev.org/ http://ratpoison.sf.net/ http://docs.kde.org/en/3.1/kdebase/kdm/ http://www.opaque.net/ming/
I hope this helps
Marc
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do:
my pd startup script looks like this:
#! /bin/sh
# chkconfig 2345 98 98
# description: starts pd
echo -n "starting pd..."
/usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd &
I save this as pd_start in /etc/init.d/
then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3
after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded
no mention of zexy being loaded though
thanks, Sukandar
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do:
my pd startup script looks like this: #! /bin/sh # chkconfig 2345 98 98 # description: starts pd echo -n "starting pd..." /usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd &I save this as pd_start in /etc/init.d/
then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3
after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded
no mention of zexy being loaded though
thanks, Sukandar
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
thanks for the reply I'll try your suggestion, however I doubt that's the problem. If I understand correctly your command would tell pd to turn on DSP processing. However, as I mentioned, pd doesn't even show up in the process list (ps command) and besides I'm loadbanging [pd dsp 1] within pd.
Sukandar
On 13. Oct 2004, at 23:34 Uhr, Pall Thayer wrote:
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do: my pd startup script looks like this: #! /bin/sh # chkconfig 2345 98 98 # description: starts pd echo -n "starting pd..." /usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd & I save this as pd_start in /etc/init.d/ then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3 after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded no mention of zexy being loaded though thanks, Sukandar _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
Ah... true. But the file you're opening should be prepended with -open. I don't see that in your script. Should be: -open /home/glui/proj/pd/GPlayerStereo.pd
Pall
Sukandar Kartadinata wrote:
thanks for the reply I'll try your suggestion, however I doubt that's the problem. If I understand correctly your command would tell pd to turn on DSP processing. However, as I mentioned, pd doesn't even show up in the process list (ps command) and besides I'm loadbanging [pd dsp 1] within pd.
Sukandar
On 13. Oct 2004, at 23:34 Uhr, Pall Thayer wrote:
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do: my pd startup script looks like this: #! /bin/sh # chkconfig 2345 98 98 # description: starts pd echo -n "starting pd..." /usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd & I save this as pd_start in /etc/init.d/ then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3 after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded no mention of zexy being loaded though thanks, Sukandar _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
thanks again just tried that - no difference except that now not even the OSC line shows up
Sukandar
On 13. Oct 2004, at 23:46 Uhr, Pall Thayer wrote:
Ah... true. But the file you're opening should be prepended with -open. I don't see that in your script. Should be: -open /home/glui/proj/pd/GPlayerStereo.pd
Pall
Sukandar Kartadinata wrote:
thanks for the reply I'll try your suggestion, however I doubt that's the problem. If I understand correctly your command would tell pd to turn on DSP processing. However, as I mentioned, pd doesn't even show up in the process list (ps command) and besides I'm loadbanging [pd dsp 1] within pd. Sukandar On 13. Oct 2004, at 23:34 Uhr, Pall Thayer wrote:
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do: my pd startup script looks like this: #! /bin/sh # chkconfig 2345 98 98 # description: starts pd echo -n "starting pd..." /usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd & I save this as pd_start in /etc/init.d/ then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3 after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded no mention of zexy being loaded though thanks, Sukandar _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
Maybe it's trying to run PD before it's initialized some required stuff. How about trying putting you're script in /etc/rc.d/rclocal instead of /etc/init.d ? That way, it won't be run untill after all the normal boot stuff has been initialized.
Pall
Sukandar Kartadinata wrote:
thanks again just tried that - no difference except that now not even the OSC line shows up
Sukandar
On 13. Oct 2004, at 23:46 Uhr, Pall Thayer wrote:
Ah... true. But the file you're opening should be prepended with -open. I don't see that in your script. Should be: -open /home/glui/proj/pd/GPlayerStereo.pd
Pall
Sukandar Kartadinata wrote:
thanks for the reply I'll try your suggestion, however I doubt that's the problem. If I understand correctly your command would tell pd to turn on DSP processing. However, as I mentioned, pd doesn't even show up in the process list (ps command) and besides I'm loadbanging [pd dsp 1] within pd. Sukandar On 13. Oct 2004, at 23:34 Uhr, Pall Thayer wrote:
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do: my pd startup script looks like this: #! /bin/sh # chkconfig 2345 98 98 # description: starts pd echo -n "starting pd..." /usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd & I save this as pd_start in /etc/init.d/ then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3 after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded no mention of zexy being loaded though thanks, Sukandar _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
oh, sorry, that's /etc/rc.d/rc.local and it's a file not a directory so you want to append your script to whatever's already in there.
Pall
Pall Thayer wrote:
Maybe it's trying to run PD before it's initialized some required stuff. How about trying putting you're script in /etc/rc.d/rclocal instead of /etc/init.d ? That way, it won't be run untill after all the normal boot stuff has been initialized.
Pall
Sukandar Kartadinata wrote:
thanks again just tried that - no difference except that now not even the OSC line shows up
Sukandar
On 13. Oct 2004, at 23:46 Uhr, Pall Thayer wrote:
Ah... true. But the file you're opening should be prepended with -open. I don't see that in your script. Should be: -open /home/glui/proj/pd/GPlayerStereo.pd
Pall
Sukandar Kartadinata wrote:
thanks for the reply I'll try your suggestion, however I doubt that's the problem. If I understand correctly your command would tell pd to turn on DSP processing. However, as I mentioned, pd doesn't even show up in the process list (ps command) and besides I'm loadbanging [pd dsp 1] within pd. Sukandar On 13. Oct 2004, at 23:34 Uhr, Pall Thayer wrote:
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do: my pd startup script looks like this: #! /bin/sh # chkconfig 2345 98 98 # description: starts pd echo -n "starting pd..." /usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd & I save this as pd_start in /etc/init.d/ then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3 after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded no mention of zexy being loaded though thanks, Sukandar _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
OK, that sounds interesting I had added a ps command in the startup script just before and after calling pd (to see what's going on) and then I got lots of sound-related error messages interweaved with the process list so what you suggest seems to be a step in the right direction
however, now that I tried rc.local the system hangs at
<snip> Starting anacron: [OK] Starting atd: [OK] Starting system message bus: [OK] starting pd...Sample width set to 2 bytes _
and then I can't even get to the login prompt....
On 14. Oct 2004, at 0:08 Uhr, Pall Thayer wrote:
Maybe it's trying to run PD before it's initialized some required stuff. How about trying putting you're script in /etc/rc.d/rclocal instead of /etc/init.d ? That way, it won't be run untill after all the normal boot stuff has been initialized.
Pall
Sukandar Kartadinata wrote:
thanks again just tried that - no difference except that now not even the OSC line shows up Sukandar On 13. Oct 2004, at 23:46 Uhr, Pall Thayer wrote:
Ah... true. But the file you're opening should be prepended with -open. I don't see that in your script. Should be: -open /home/glui/proj/pd/GPlayerStereo.pd
Pall
Sukandar Kartadinata wrote:
thanks for the reply I'll try your suggestion, however I doubt that's the problem. If I understand correctly your command would tell pd to turn on DSP processing. However, as I mentioned, pd doesn't even show up in the process list (ps command) and besides I'm loadbanging [pd dsp 1] within pd. Sukandar On 13. Oct 2004, at 23:34 Uhr, Pall Thayer wrote:
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
Hi, I'm trying to make a Linux system autoboot a pd patch. Being still relatively new to Linux I can't quite figure out what I'm doing wrong. Maybe you can help. Here's what I do: my pd startup script looks like this: #! /bin/sh # chkconfig 2345 98 98 # description: starts pd echo -n "starting pd..." /usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/pd/GPlayerStereo.pd & I save this as pd_start in /etc/init.d/ then: chkconfig --add pd_start checking with chkconfig --list shows that it's enabled at run level 3 after reboot no sound nor an an entry in the process list however /var/etc/messages shows: Oct 13 22:05:59 digimatrix pd_start: starting pd... Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 by Matt Wright . pd: jdl Win32 raf. Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded no mention of zexy being loaded though thanks, Sukandar _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
Ah... sounds painfull. In rc.local, you should only need this:
/usr/bin/pd -nogui -nomidi -lib /usr/lib/pd/extra/OSC -lib /usr/lib/pd/extra/zexy -open /home/glui/proj/pd/GPlayerStereo.pd &
and did you remember to chkconfig --del pd_start ?
Pall
Sukandar Kartadinata wrote:
OK, that sounds interesting I had added a ps command in the startup script just before and after calling pd (to see what's going on) and then I got lots of sound-related error messages interweaved with the process list so what you suggest seems to be a step in the right direction
however, now that I tried rc.local the system hangs at
<snip> Starting anacron: [OK] Starting atd: [OK] Starting system message bus: [OK] starting pd...Sample width set to 2 bytes _
and then I can't even get to the login prompt....
On 14. Oct 2004, at 0:08 Uhr, Pall Thayer wrote:
Maybe it's trying to run PD before it's initialized some required stuff. How about trying putting you're script in /etc/rc.d/rclocal instead of /etc/init.d ? That way, it won't be run untill after all the normal boot stuff has been initialized.
Pall
Sukandar Kartadinata wrote:
thanks again just tried that - no difference except that now not even the OSC line shows up Sukandar On 13. Oct 2004, at 23:46 Uhr, Pall Thayer wrote:
Ah... true. But the file you're opening should be prepended with -open. I don't see that in your script. Should be: -open /home/glui/proj/pd/GPlayerStereo.pd
Pall
Sukandar Kartadinata wrote:
thanks for the reply I'll try your suggestion, however I doubt that's the problem. If I understand correctly your command would tell pd to turn on DSP processing. However, as I mentioned, pd doesn't even show up in the process list (ps command) and besides I'm loadbanging [pd dsp 1] within pd. Sukandar On 13. Oct 2004, at 23:34 Uhr, Pall Thayer wrote:
try adding -send "pd dsp 1"
Pall
Sukandar Kartadinata wrote:
> Hi, > I'm trying to make a Linux system autoboot a pd patch. Being > still relatively new to Linux I can't quite figure out what I'm > doing wrong. Maybe you can help. Here's what I do: > my pd startup script looks like this: > #! /bin/sh > # chkconfig 2345 98 98 > # description: starts pd > echo -n "starting pd..." > /usr/bin/pd -nogui -nomidi
> -lib /usr/lib/pd/extra/OSC
> -lib /usr/lib/pd/extra/zexy
> /home/glui/proj/pd/GPlayerStereo.pd & > I save this as pd_start in /etc/init.d/ > then: chkconfig --add pd_start > checking with chkconfig --list shows that it's enabled at run > level 3 > after reboot no sound nor an an entry in the process list > however /var/etc/messages shows: > Oct 13 22:05:59 digimatrix pd_start: starting pd... > Oct 13 22:05:59 digimatrix pd_start: OSCroute object version 1.05 > by Matt Wright > . pd: jdl Win32 raf. > Oct 13 22:05:59 digimatrix rc: Starting pd_start: succeeded > no mention of zexy being loaded though > thanks, > Sukandar > _______________________________________________ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://iem.at/cgi-bin/mailman/listinfo/pd-list-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
/usr/bin/pd -nogui -nomidi -lib /usr/lib/pd/extra/OSC -lib /usr/lib/pd/extra/zexy -open /home/glui/proj/pd/GPlayerStereo.pd &
yes, that's what I do
and did you remember to chkconfig --del pd_start ?
well, I did: chkconfig --level 3 pd_start off that should keep it from starting twice too, right ?
thanks, Sukandar
Hi Pall and CK, looks like I had to combine both of your suggestions - there's still a few quirks but basically pd is starting up now.
thanks much !! Sukandar
Great, would you mind telling us exactly what you did? One should always explain the solution if one is found for the benefit of others who may be dealing with the same problem. Also, tell us what distro this is on.
Pall
Sukandar Kartadinata wrote:
Hi Pall and CK, looks like I had to combine both of your suggestions - there's still a few quirks but basically pd is starting up now.
thanks much !! Sukandar
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
you're right will do that tomorrow after I've cleaned up things a bit but first I gotta get some sleep now :)
thanks again, Sukandar
On 14. Oct 2004, at 1:49 Uhr, Pall Thayer wrote:
Great, would you mind telling us exactly what you did? One should always explain the solution if one is found for the benefit of others who may be dealing with the same problem. Also, tell us what distro this is on.
Pall
Sukandar Kartadinata wrote:
Hi Pall and CK, looks like I had to combine both of your suggestions - there's still a few quirks but basically pd is starting up now. thanks much !! Sukandar _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- _______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panse _______________________________
Great, would you mind telling us exactly what you did? One should always explain the solution if one is found for the benefit of others who may be dealing with the same problem. Also, tell us what distro this is on.
OK, here's my report on what I had to do to get autoboot working. Hope it'll help other linux newbies at some point....
System: Asus Digimatrix Fedora Core 1 with PlanetCCRMA mods
I started with a script to start pd with all required libraries and my
main patch:
-- pd_start:
#! /bin/sh
# chkconfig: 2345 98 98
# description: starts pd
echo -n "starting pd..."
/usr/bin/pd -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/LIDARmacher/pd/GPlayerStereo.pd &
--
I put that into /etc/init.d/ and ran chkconfig to add it to the list of things to start: chkconfig --add pd_start
however, this didn't work - pd just didn't show up in the process list (ps -A) I had thought that by starting pd_start as the last script (by giving it the highest number - 98 in the second line of the script) things would behave the same way as if I had run the script right after login. Looking at /var/log/messages proved that pd had been started as the last item.
Then I tried to debug things a bit by adding the 'ps -A' command to the script. Instead of getting a clean list of all processes I got it interweaved with all sorts of audio related error messages. So apparently pd was getting started to early, but I had no idea how to delay it.
Here's where Pall Thayer's suggestion was promising - by adding
pd_start's commands to /etc/rc.d/rc.local these should be executed
after everything else.
-- rc.local:
#!/bin/sh
echo -n "starting pd..."
/usr/bin/pd -verbose -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy
/home/glui/proj/LIDARmacher/pd/GPlayerStereo.pd &
--
(then chkconfig --del pd_start to avoid starting things twice)
This still didn't get it working though - the system would hang right after echoing "starting pd..."
So then I tried CK's suggestion to put the actual pd call into another script inside /usr/local/bin/ along with the proper environment, calling it from a /etc/init.d script (check his email) However, this only worked after I called this from rc.local (so that's what I meant when I said that a combination of the two suggestions did it)
Here's the final scripts:
-- /etc/rc.d/rc.local: #!/bin/sh echo -n "starting pd..." PATH=/sbin:/bin:/usr/sbin:/usr/bin /usr/local/bin/pd_start --
-- /usr/local/bin/pd_start:
#! /bin/sh
echo -n "starting pd..."
PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
cd /home/glui
pd -verbose -nogui -nomidi
-lib /usr/lib/pd/extra/OSC
-lib /usr/lib/pd/extra/zexy \
hope that explains the process - let me know if there's still things unclear
I read:
thanks again just tried that - no difference except that now not even the OSC line shows up
I think this has to do with the environment I did it like this:
-- /etc/init.d/pdinit: #! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin /usr/local/bin/pdstart --
-- /usr/local/bin/pdstart #!/bin/bash
PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
cd /home/x pd -verbose -nomidi -nogui -lib pd/readanysf~/pd_linux/readanysf~ patch_0.01.pd > /dev/null &
--
HTH
x
hmmm, the only change is that I get an additional line telling me that pd is reading the .pdrc file but still no pd showing up in the process list :(
thanks anyway, Sukandar
On 14. Oct 2004, at 0:37 Uhr, CK wrote:
I read:
thanks again just tried that - no difference except that now not even the OSC line shows up
I think this has to do with the environment I did it like this:
-- /etc/init.d/pdinit: #! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin /usr/local/bin/pdstart --
-- /usr/local/bin/pdstart #!/bin/bash
PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
cd /home/x pd -verbose -nomidi -nogui -lib pd/readanysf~/pd_linux/readanysf~ patch_0.01.pd > /dev/null &
--
HTH
x
-- chris@lo-res.org Postmodernism is german romanticism with better http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
hi,
of course you have problems since all the commands suggested require that you log in first ( but you can't ! ).
the only way is to boot on a minimal linux on floppy ( for instance : http://boot.everywhere.dk/ ), mount the root partition and modify the /etc/passwd file.
suerte, sevy
Ales Zemene wrote:
i have the some problem on one pc, but if i do: su -c "chsh -s /bin/bash/"
i get : Password : No shell
rebooting does not help
A.Z.
On Thu, 29 Jan 2004, Frank Barknecht wrote:
Hallo, Zachris Trolin hat gesagt: // Zachris Trolin wrote:
ons 2004-01-28 klockan 14.59 skrev marius schebella:
also i have stupidly locked myself out my root account by: chsh -s /sbin/nologin i thought this would bypass the login procedure - whoops! how can i get my root account back? this is my real problem at the moment thanks, rob
I guess you could login as an ordinary user and then use su - this is probably the easy and best way,
Maybe this will help:
$ su -c "chsh -s /bin/bash/"
ciao
++++++++++++++++++++++++
- Ales Zemene +
- http://ales.mur.at +
- GSM +436769573397 +
- ICQ 215971050 +
++++++++++++++++++++++++
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list