LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   NAS on Bootup (https://www.linuxquestions.org/questions/slackware-14/nas-on-bootup-326373/)

Kenji Miyamoto 05-23-2005 06:54 PM

NAS on Bootup
 
Once NAS is installed by packages, will it start on bootup?

EDIT: Also, why doesn't the configure script of Qt detect that I have NAS installed?

keefaz 05-23-2005 07:04 PM

Try to read the docs on how to properly start it and add
the command in /etc/rc.d/rc.local

Do no hesitate to post here your impressions if
the Network Audio System sounds really good ;)

Kenji Miyamoto 05-23-2005 07:10 PM

I can't find anything in the README or FAQ about the startup.

keefaz 05-23-2005 07:26 PM

Start it with
Code:

nasd -aa & # -aa allows any host access
Then set an environment variable for your user :
export AUDIOSERVER="`hostname`:0"
http://radscan.com/nas/nas-README.txt

Kenji Miyamoto 05-23-2005 07:37 PM

Exporting a variable keeps it even after reboot, right?

keefaz 05-23-2005 07:44 PM

no, a variable is a reference to a memory storage, the memory is cleared
when the computer shutdown or reboot

To keep the variable I would do something like :
Code:

echo -e "export AUDIOSERVER=\"`hostname`:0\"" > /etc/profile.d/nas.sh
chmod +x  /etc/profile.d/nas.sh


Kenji Miyamoto 05-23-2005 08:07 PM

Okay, I'm still a little confused. Where would I do all of this; in the console or in the rc.local file?

keefaz 05-23-2005 08:11 PM

in the console, I use commands echo and chmod from the console

for rc.local, you can add a line like this from the console :
Code:

echo "nasd -aa & # -aa allows any host access" >> /etc/rc.d/rc.local


All times are GMT -5. The time now is 07:23 PM.