Skip to content

Commit

Permalink
4.3 production
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Sep 30, 2018
1 parent 238b251 commit d29d748
Show file tree
Hide file tree
Showing 265 changed files with 5,327 additions and 1,713 deletions.
20 changes: 17 additions & 3 deletions etc/nginx/fastcgi_params
@@ -1,5 +1,7 @@
#
# 2017-MM-DD TC moOde 4.0
# 2018-MM-DD TC moOde 4.3
# - revised fastcgi_params
#

fastcgi_param QUERY_STRING $query_string;
Expand Down Expand Up @@ -28,9 +30,21 @@ fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;

# TC for performance bump
# TC moOde 4.3 testing
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 600000;
fastcgi_buffer_size 4k;
fastcgi_buffers 4 32k;
fastcgi_busy_buffers_size 96k;

# TC moOde 4.0 original
#fastcgi_buffers 4 32k;
#fastcgi_buffer_size 4k;
#fastcgi_read_timeout 600000;
#fastcgi_busy_buffers_size 96k;

# TC article suggested
#fastcgi_buffers 8 16k;
#fastcgi_buffer_size 32k;
#fastcgi_connect_timeout 300;
#fastcgi_send_timeout 300;
#fastcgi_read_timeout 300;
6 changes: 6 additions & 0 deletions mpd/RADIO/Amys FM (320K).pls
@@ -0,0 +1,6 @@
[playlist]
numberofentries=1
File1=http://94.23.222.12:8024/amysfm
Title1=Amys FM (320K)
Length1=-1
Version=2
6 changes: 6 additions & 0 deletions mpd/RADIO/Amys FM Spirit of Soul (320K).pls
@@ -0,0 +1,6 @@
[playlist]
numberofentries=1
File1=http://91.121.59.45:10073/amysfmspiritofsoul
Title1=Amys FM Spirit of Soul (320K)
Length1=-1
Version=2
2 changes: 1 addition & 1 deletion mpd/mpd.conf.default
Expand Up @@ -29,7 +29,7 @@ buffer_before_play "10%"
max_output_buffer_size "81920"
id3v1_encoding "UTF-8"
filesystem_charset "UTF-8"
max_connections "20"
max_connections "128"

decoder {
plugin "ffmpeg"
Expand Down
Empty file added mpd/playlists/Favorites.m3u
Empty file.
@@ -1,8 +1,8 @@
################################################################
#
# Build Recipe v2.5, 2018-07-11
# Build Recipe v2.6, 2018-09-27
#
# moOde 4.2
# moOde 4.3
#
# These instructions are written for Linux Enthusiasts
# and System Integrators and provide a recipe for making
Expand All @@ -15,6 +15,15 @@
#
# Changes:
#
# v2.6: Move timezone setting to after ssh login in STEP 2
# Replace Browse tab w/Music tab in STEP 12 1b.
# Correct STEP 1 Option 2 to use 2018-06-27 Stretch Lite
# Update root symlink
# Bump to kernel 4.14.72 in STEP 11
# Add libaudiofile for wav to mpd compile in STEP 6
# Add php7.0-gd in STEP 3
# Add COMPONENT 4B - Librespot
# Add 6. Patch for upmpdcli gmusic plugin to COMPONENT 6.
# v2.5: Add -DGPIO cflag to new Squeezelite compile in COMPONENT 5.
# Use BlueZ-master-4e926f8.zip in STEP 4
# Use bluez-alsa-master-88aefee.zip in STEP 4
Expand Down Expand Up @@ -151,8 +160,8 @@ sudo poweroff
// OPTION 2: Using Windows or Mac computer
////////////////////////////////////////////////////////////////

1. Download Raspbian Stretch Lite 2017-11-29
http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-12-01/2017-11-29-raspbian-stretch-lite.zip
1. Download Raspbian Stretch Lite 2018-06-27
http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-06-29/2018-06-27-raspbian-stretch-lite.zip

2. Unzip and install the .img file to an SD Card
https://www.raspberrypi.org/documentation/installation/installing-images/
Expand Down Expand Up @@ -194,16 +203,18 @@ net.ifnames=0

1. Insert the SD Card into a Raspberry Pi and POWER UP.

2. sudo timedatectl set-timezone "America/Detroit"

3. Change the current password (raspberry) to moodeaudio and the host name to moode.
2. Change the current password (raspberry) to moodeaudio and the host name to moode.

ssh pi@raspberrypi (pwd=raspberry)

echo "pi:moodeaudio" | sudo chpasswd
sudo sed -i "s/raspberrypi/moode/" /etc/hostname
sudo sed -i "s/raspberrypi/moode/" /etc/hosts

3. Change timezone to local time zone

sudo timedatectl set-timezone "America/Detroit"

4. Download moOde application sources and configs.

//
Expand All @@ -213,8 +224,8 @@ sudo sed -i "s/raspberrypi/moode/" /etc/hosts
//

cd ~
wget http://moodeaudio.org/downloads/prod/rel-stretch-r42.zip
sudo unzip ./rel-stretch-r42.zip
wget http://moodeaudio.org/downloads/prod/rel-stretch-r43.zip
sudo unzip ./rel-stretch-r43.zip

5. Expand the root partition to 3GB.

Expand Down Expand Up @@ -257,7 +268,7 @@ sudo reboot

sudo apt-get update

sudo apt-get -y install rpi-update php-fpm nginx sqlite3 php-sqlite3 memcached php-memcache mpc \
sudo apt-get -y install rpi-update php-fpm nginx sqlite3 php-sqlite3 memcached php-memcache php7.0-gd mpc \
bs2b-ladspa libbs2b0 libasound2-plugin-equal telnet automake sysstat squashfs-tools tcpdump shellinabox \
samba smbclient udisks-glue ntfs-3g exfat-fuse git inotify-tools libav-tools avahi-utils

Expand Down Expand Up @@ -383,7 +394,7 @@ sudo chmod 0666 /etc/mpd.conf
2. Install MPD dev libs.

sudo apt-get -y install libmad0-dev libmpg123-dev libid3tag0-dev \
libflac-dev libvorbis-dev libfaad-dev \
libflac-dev libvorbis-dev libaudiofile-dev libfaad-dev \
libwavpack-dev \
libavcodec-dev libavformat-dev \
libmp3lame-dev \
Expand Down Expand Up @@ -423,7 +434,7 @@ sudo ./configure --enable-database --enable-libmpdclient --enable-alsa \
--disable-wildmidi --disable-sqlite --disable-jack --disable-ao --disable-oss \
--disable-ipv6 --disable-pulse --disable-nfs --disable-smbclient \
--disable-upnp --disable-expat --disable-lsr \
--disable-sndfile --disable-audiofile --disable-sidplay
--disable-sndfile --disable-sidplay

5. Compile and install.

Expand Down Expand Up @@ -472,7 +483,7 @@ sudo mkdir /mnt/SDCARD
sudo ln -s /mnt/NAS /var/lib/mpd/music/NAS
sudo ln -s /mnt/SDCARD /var/lib/mpd/music/SDCARD
sudo ln -s /media /var/lib/mpd/music/USB
sudo ln -s /var/lib/mpd/music /var/www/vlmm03846271
sudo ln -s /var/lib/mpd/music /var/www/95187460
# Logs
sudo touch /var/log/moode.log
sudo chmod 0666 /var/log/moode.log
Expand Down Expand Up @@ -624,8 +635,8 @@ sudo reboot

// STEP 11 - Optionally install updated Linux Kernel

# kernel ver 4.14.54
echo "y" | sudo PRUNE_MODULES=1 rpi-update ec9d84e1d2ba701fd28897809269d8116b31dbf5
# kernel ver 4.14.72
echo "y" | sudo PRUNE_MODULES=1 rpi-update 0abe903f4a137e2738fe3be5f14a2a34afc9762b

sudo rm -rf /lib/modules.bak
sudo rm -rf /boot.bak
Expand All @@ -643,7 +654,7 @@ sudo reboot
1. Initial configuration

a. http://moode
b. Browse Tab, Default Playlist, Add
b. Music Tab, Browse button, Default Playlist, Add
c. Menu, Configure, Sources, UPDATE mpd database
d. Menu, Audio, Mpd options, EDIT SETTINGS, APPLY
e. Menu, System, Set timezone
Expand Down Expand Up @@ -746,14 +757,14 @@ sudo git clone https://github.com/hrkfdn/mpdas
cd mpdas
sudo make
sudo cp ./mpdas /usr/local/bin
cd ~/
cd ~
sudo rm -rf ./mpdas
sudo cp ./rel-stretch/usr/local/etc/mpdasrc.default /usr/local/etc/mpdasrc
sudo chmod 0755 /usr/local/etc/mpdasrc

////////////////////////////////////////////////////////////////
//
// COMPONENT 4 - Shairport-sync
// COMPONENT 4A - Shairport-sync
//
////////////////////////////////////////////////////////////////

Expand All @@ -772,6 +783,28 @@ cd ~
sudo rm -rf ./shairport-sync
sudo cp ./rel-stretch/usr/local/etc/shairport-sync.conf /usr/local/etc

////////////////////////////////////////////////////////////////
//
// COMPONENT 4B - Librespot
//
////////////////////////////////////////////////////////////////

sudo apt-get -y install portaudio19-dev

cd ~
git clone https://github.com/librespot-org/librespot
curl https://sh.rustup.rs -sSf | sh
# choose 1

sudo reboot

cd librespot/
cargo build --release --features alsa-backend

sudo cp target/release/librespot /usr/local/bin
cd ~
sudo rm -rf librespot

////////////////////////////////////////////////////////////////
//
// COMPONENT 5 - Squeezelite
Expand Down Expand Up @@ -860,6 +893,9 @@ sudo make install
cd ~
sudo rm -rf ./libupnppsamples-code

6. Patch for upmpdcli gmusic plugin
sudo cp ./rel-stretch/other/upmpdcli/session.py /usr/share/upmpdcli/cdplugins/gmusic

////////////////////////////////////////////////////////////////
//
// COMPONENT 7 - Optionally install gmusicapi
Expand Down
Binary file added other/librespot/librespot-a4e0f58
Binary file not shown.
Binary file added other/librespot/librespot-master-a4e0f58.zip
Binary file not shown.
Binary file modified other/mpd/mpd-0.20.20
Binary file not shown.
Binary file removed other/shairport-sync/shairport-sync-3.1.7
Binary file not shown.
Binary file removed other/shairport-sync/shairport-sync-3.1.7.zip
Binary file not shown.
Binary file added other/shairport-sync/shairport-sync-3.2.1
Binary file not shown.
Binary file added other/shairport-sync/shairport-sync-3.2.1.zip
Binary file not shown.

0 comments on commit d29d748

Please sign in to comment.