Hardware Reference
In-Depth Information
FIGURE 9-10 Jukebox LCD in action displaying MP3 metadata
USING THE JUKEBOX WITHOUT A
MONITOR
If you want the Jukebox program to run whenever your Raspberry Pi is turned
on, without needing it to be plugged into a keyboard, mouse or monitor, you
will need to modify the /etc/rc.local ile. The /etc/rc.local script runs
when your Raspberry Pi is starting up, at the end of the boot process. Adding
the command to run the jukebox Python program to this script means the
program will run whenever the Raspberry Pi starts up, so that you do not have
to give the command to run it.
To set up the jukebox to run after booting, type the following line into the
LXTerminal:
sudo nano /etc/rc.local
Next, scroll down through the code and add the following line before exit 0
(see Figure 9-11):
python3 /home/pi/Documents/jukebox3.py /home/pi/music &
Save and exit the nano txt editor using Ctrl + X, accept the changes to the ile
by pressing Y, and press Enter.
Search WWH ::




Custom Search