Skip to content

Commit

Permalink
use bash as syntax highlighting in code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaculum authored May 26, 2021
1 parent 6ee69b0 commit 6eff640
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Since we are using the lite version of raspbian, some extra packages need to be

1. Install updates

```
```bash
sudo apt update
sudo apt upgrade
```
2. Install Required Packages.

Installation for python3-pip, raspotify, python3-tk, openbox
```sh
```bash

sudo apt install python-setuptools python3-setuptools

Expand All @@ -41,19 +41,19 @@ sudo apt install git

3. Install Dependencies

```sh
```bash
git clone https://github.com/dupontgu/retro-ipod-spotify-client.git
pip3 install -r retro-ipod-spotify-client/frontend/requirements.txt
```

4. Install pi-btaudio
```
```bash
git clone https://github.com/bablokb/pi-btaudio.git
cd pi-btaudio
sudo tools/install
```
5. Install PiGPIO
```
```bash
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
Expand All @@ -74,7 +74,7 @@ https://accounts.spotify.com/authorize?client_id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&r
7. raspi-config

Run
```
```bash
sudo raspi-config
```

Expand All @@ -89,7 +89,7 @@ _Display Option -> Screen Blanking -> No_ if you want to avoid the screen turnin

In *.bash_profile* added the following (if the file is not htere, you must create it)

```
```bash
#!/bin/bash

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
Expand All @@ -107,7 +107,7 @@ xset s noblank


Inside, make sure the following is there:
```
```bash
#!/bin/sh

# /etc/X11/xinit/xinitrc
Expand All @@ -127,7 +127,7 @@ exec openbox-session #-> This is the one that launches Openbox ;)

and add the following command to launch spotifypod.py:

```
```bash
cd /home/pi/retro-ipod-spotify-client/frontend/

sudo -H -u pi python3 spotifypod.py &
Expand All @@ -139,7 +139,7 @@ _Make sure that the paths are ok with your setup!!_

in ` sudo nano /etc/xdg/openbox/environment` all the variables needed to run spotifypod.py are set( SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET,SPOTIPY_REDIRECT_URI)

```
```bash
export SPOTIPY_CLIENT_ID='your_SPOTIPY_CLIENT_ID'

export SPOTIPY_CLIENT_SECRET='your_SPOTIPY_CLIENT_SECRET'
Expand Down Expand Up @@ -170,7 +170,7 @@ Uncomment and fill the following line:

And maybe you want also to consider the following:

```
```bash
# The displayed device type in Spotify clients.

# Can be "unknown", "computer", "tablet", "smartphone", "speaker", "tv",
Expand Down

0 comments on commit 6eff640

Please sign in to comment.