CS Forward

Category: macOS

Multiple Bluetooth Audio Output through Audio MIDI Setup on macOS

I tried to connect multiple bluetooth speakers and get audio from all of them on Raspberry Pi, but no success. This is very simple with Audio MIDI Setup software on macOS.

Steps for Stereo Configuration (Basic Setup):

1. Connect all bluetooth speakers to your Mac.

2. Open the ‘Audio MIDI Setup’ software.

3. Create a ‘Multi-Output Device’ by clicking the + sign on the bottom left corner.

4. Set it as default sound output by clicking the volume icon on on the top bar.

5. Have fun!

Steps for Surround Sound (Advanced Setup):

1. Follow the steps 1 & 2 above.

2. Create a ‘Aggregate Device’ by clicking the + sign on the bottom left corner.

3. Configure your speakers.

  • I connected 3 bluetooth speakers in Hexagonal setting.
  • Each speaker has two channels. I named my speakers’ channels as follows:
    • Speaker 1 channels as a, b
    • Speaker 2 channels as c, d
    • Speaker 3 channels as e, f
  • In my configuration I did the following:
    • Set my channel c as my Left
    • Set my channel e as my Right
    • Set my channel d as my Left surround
    • Set my channel f as my Right surround
    • Set my channel a as Center
    • Set my channel b as Center

3. Double finger click on it and select “Use This Device For Sound Output”.

4. Have fun!

 

Credits:

https://support.apple.com/guide/audio-midi-setup/play-audio-through-multiple-devices-at-once-ams7c093f372/mac

https://support.apple.com/en-us/HT202000

How to Backup/Restore Your Raspberry Pi SD Card on macOS

Steps for Backup

1. Mount your Raspberry Pi SD card to your Mac.

2. Find your SD card’s name:

diskutil list

3. and backup your diskX as myPiBackup.dmg:

sudo dd if=/dev/diskX of=~/myPiBackup.dmg

4. Enter your password when prompted.

5. Backup will take some time. If you want to see the process:

Control+T

6. Eject your SD card:

sudo diskutil eject /dev/rdiskX

 

Steps for Restoring

1. Mount your empty SD card to your Mac.

2. Find your SD card’s name:

diskutil list

3. Write your myPiBackup.dmg into your diskX.

diskutil unmountDisk /dev/diskX
sudo dd if=myPiBackup.dmg of=/dev/diskX

4. Enter your password when prompted.

5. Restoring will take some time. (31914983424 bytes transferred in 15260.841046 secs (2091299 bytes/sec)). If you want to see the process:

Control+T

6. Eject your SD card:

sudo diskutil eject /dev/rdiskX

 

Credits

https://howchoo.com/pi/create-a-backup-image-of-your-raspberry-pi-sd-card-in-mac-osx

Screen Mirroring

Steps

0. You will possibly get an error about LIBPLIST in the upcoming steps, so first run:

sudo apt install libplist-dev

 

1. Then install git:

sudo apt install git

 

2. Then use these commands:

git clone https://github.com/FD-/RPiPlay.git

cd RPiPlay

 

3. For building on a fresh Raspbian install, these steps should be run:

sudo apt-get install cmake

sudo apt-get install libavahi-compat-libdnssd-dev

sudo apt-get install libssl-dev

mkdir build

cd build

cmake ..

make

 

4. At some point, if you get an error about GStreamer, run:

sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

 

5. To Start mirroring:

cd RPiPlay

cd build

./rpiplay

 

6. To Stop it (this should bring up the login prompt):

Alt + PrtScr + k

 

7. And go to console:

Ctrl + Alt + F1

 

8. Raspberry Pi shut down:

sudo shutdown -h now

 

Credits

https://github.com/FD-/RPiPlay

https://github.com/FD-/RPiPlay/issues/145

https://stackoverflow.com/questions/37678324/compiling-opencv-with-gstreamer-cmake-not-finding-gstreamer

Raspbian (Lite) Installation to an SD Card on macOS

1. Go to the following link and download the latest version:

https://downloads.raspberrypi.org/raspbian_lite_latest

 

2. List the disk names:

diskutil list

 

3. The disk must be unmounted before copying the image:

diskutil unmountDisk /dev/diskN

 

4. Copy the image:

sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskN; sync

 

5. Check the progress by pressing:

Ctrl+T

 

6. After the dd command finishes, eject the card:

sudo diskutil eject /dev/rdiskN

 

7. Boot the Raspberry Pi from the new SD card

 

8. Do not forget to change the default password:

Username: pi

Password: raspberry

 

9. Do not forget to change the keyboard and timezone settings:

sudo raspi-config

 

10. To add the network details to the Raspberry Pi:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

And add the following:

network={

ssid=”Wif-FiName”

psk=”Wi-FiPassword”

}

 

11. Wait for network (optional):

sudo raspi-config

– Find and select Boot Options.

– Find and select Wait for Network at Boot.

– Select Yes

– Exit

 

12. Boot/Autologin:

– Console Autologin

 

13. Ensure everything is up-to-date:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

 

Credits

https://www.raspberrypi.org/documentation/installation/installing-images/mac.md

https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

Powered by WordPress & Theme by Anders Norén