How do i open a specific file on startup?
Hi i have a raspberry pi running debian. I have it connected to an old radio so that i can listen to my favourite web radio station automatically on it. However when i reboot the pi i have to use putty to access a remote terminal and type in the following commands to get it working again:
1) screen 2) vlc /home/pi/listen.pls disown this gets the radio station playing. I tried to create a bash startup script to get this vl;c playlist to work on startup, i was able to get vlc to open but not to play the playlist. It is driving me mad does anyone know how i can get this automated so if the pi goes down it automatically starts playing on reboot. Thanks. |
Please post the script you have using [code] blocks.
However a suggestion is that you create a script in /etc/init.d and create symbolic links to it in /etc/rc#.d. Do you understand that convention for starters? Which is how to create a startup script? The script itself may be as simple as the following: Code:
#!/bin/sh Code:
/usr/bin/screen Code:
#!/bin/sh And here is a suggestion to quickly get the script running at startup:
|
for the system to do it automatically, i would put it in /etc/rc.local.
for the user to do it once logged in you can put it in ~/.bash_profile. some newer distros support a @reboot directive in the users crontab. |
All times are GMT -5. The time now is 10:08 AM. |