Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Raspberry Pi

You're reading from   Learning Raspberry Pi Unlock your creative programming potential by creating web technologies, image processing, electronics- and robotics-based projects using the Raspberry Pi

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781783982820
Length 258 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Serge Schneider Serge Schneider
Author Profile Icon Serge Schneider
Serge Schneider
Samarth Shah Samarth Shah
Author Profile Icon Samarth Shah
Samarth Shah
Arrow right icon
View More author details
Toc

Tips and tricks


The previous section has the solution to most of the challenges that you might face while using this book. You should not limit your Raspberry Pi learning to what has been covered in this book. This section covers some interesting tips and tricks that will be useful to you.

Play MP3 files

The Raspbian OS contains the standard distribution to play .wav files. However, if you want to play MP3 files, install the mpg321 library by executing the following command in the terminal:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mpg321

You can play MP3 files with the following command:

mpg321 "my file.mp3"

Remove boot messages

Go to the Raspberry Pi terminal and enter the following command:

cd /boot/
sudo nano cmdline.txt

At the end of the file, add this:

loglevel=0 

The preceding line would suppress every log from the kernel. Reboot the Raspberry Pi, still you will see some messages. To remove these messages, use the following code:

cd /boot/
sudo nano cmdline.txt

Change console...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image