Moode Audio Player for Raspberry Pi

Hi,

Below is new procedure for STEPS 1,2. If someone can verify I'll upload new version of Build Recipe :)

-Tim

Code:
////////////////////////////////////////////////////////
//
// STEP 1 - Enable SSH and remove Auto-Resize task
//
// Use one of the two options below depending on what
// type of host computer you are going to be using.
//
////////////////////////////////////////////////////////

////////////////////////////////////////////////////////
// OPTION 1: Using Raspbian Linux (Raspberry Pi)
////////////////////////////////////////////////////////

1. Download Raspbian Stretch Lite 2017-09-07
wget [url]http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-09-08/2017-09-07-raspbian-stretch-lite.zip[/url]
sudo unzip 2017-09-07-raspbian-stretch-lite.zip 
sudo rm 2017-09-08/2017-09-07-raspbian-stretch-lite.zip

2. Mount the boot and root partitions
LOOPDEV=$(sudo losetup -f)
sudo losetup -P $LOOPDEV 2017-09-07-raspbian-stretch-lite.img
sudo mkdir /mnt/p1
sudo mkdir /mnt/p2
sudo mount -t vfat "$LOOPDEV"p1 /mnt/p1
sudo mount -t ext4 "$LOOPDEV"p2 /mnt/p2

3. Enable SSH
sudo touch /mnt/p1/ssh

4. Remove Auto-Resize task
sudo sed -i "s/init=.*//" /mnt/p1/cmdline.txt
sudo sed -i "s/quiet.*//" /mnt/p1/cmdline.txt
sudo sed -i "s/^/net.ifnames=0 /" /mnt/p1/cmdline.txt

5. Cleanup
sudo losetup -D
sudo umount /mnt/p1
sudo umount /mnt/p2
sudo rmdir /mnt/p1
sudo rmdir /mnt/p2

6. Reboot

////////////////////////////////////////////////////////
// OPTION 2: Using Windows or Mac computer
////////////////////////////////////////////////////////

1. Download Raspbian Stretch Lite 2017-09-07
[url]http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-09-08/2017-09-07-raspbian-stretch-lite.zip[/url]

2. Unzip and install the .img file to an SD Card
[url=https://www.raspberrypi.org/documentation/installation/installing-images/]Installing operating system images - Raspberry Pi Documentation[/url]

3. Eject the SD Card and then re-insert it
4. Open File Manager (Windows) or Finder (Mac)
5. Click the device named "boot" to show its contents
6. Write/create an empty file named "ssh" in the boot directory
7. Edit the file named cmdline.txt

# Remove the text below 
quiet init=/usr/lib/raspi-config/init_resize.sh

# Add this text to beginning of the line. Ensure there is a space between this text and the remaining text.
net.ifnames=0

8. Eject the SD Card

////////////////////////////////////////////////////////
//
// STEP 3 - Expand the root partition to 3GB
//
////////////////////////////////////////////////////////

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

.
.
.
 
Hi Gents,

Recently, a few days ago, I've been getting some (not many) pauses and bumps while listening to music. 1 TB hard drive connected to the Pi3, with an external 5A power supply, so, no issues there (I think). All Flac, 44.1, 16 bit, nothing out of the ordinary.

I increased the buffer to 16K and fill up to 30%, and still, occasionally, the music skips.

Any clue where to look at the logs and see what's going on?

Cheers in advance,

Albert

Which version of Moode? Which kernel?

I started having that problem with the Moode 4 betas based on Stretch when using the Real Time kernel.

Very noticable when playing FLACs from my NAS, which worked perfectly with earlier builds of Moode.

Cheers,

Phil
 
Last edited:
Is there any easy way to get from Beta 5 to 6/7 without rebuilding the whole darned think from scratch?

Phil

Hi Phil,

Not at this time, however I am investigating a highly automated method for satisfying the GPL administrative tasks for an image distribution. This could open the door for being able to provide pre-made images again.

-Tim
 
Hi,

Below is new procedure for STEPS 1,2. If someone can verify I'll upload new version of Build Recipe :)

-Tim

Code:
////////////////////////////////////////////////////////
//
// STEP 1 - Enable SSH and remove Auto-Resize task
//
// Use one of the two options below depending on what
// type of host computer you are going to be using.
//
////////////////////////////////////////////////////////

////////////////////////////////////////////////////////
// OPTION 1: Using Raspbian Linux (Raspberry Pi)
////////////////////////////////////////////////////////

1. Download Raspbian Stretch Lite 2017-09-07
wget [url]http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-09-08/2017-09-07-raspbian-stretch-lite.zip[/url]
sudo unzip 2017-09-07-raspbian-stretch-lite.zip 
sudo rm 2017-09-08/2017-09-07-raspbian-stretch-lite.zip

2. Mount the boot and root partitions
LOOPDEV=$(sudo losetup -f)
sudo losetup -P $LOOPDEV 2017-09-07-raspbian-stretch-lite.img
sudo mkdir /mnt/p1
sudo mkdir /mnt/p2
sudo mount -t vfat "$LOOPDEV"p1 /mnt/p1
sudo mount -t ext4 "$LOOPDEV"p2 /mnt/p2

3. Enable SSH
sudo touch /mnt/p1/ssh

4. Remove Auto-Resize task
sudo sed -i "s/init=.*//" /mnt/p1/cmdline.txt
sudo sed -i "s/quiet.*//" /mnt/p1/cmdline.txt
sudo sed -i "s/^/net.ifnames=0 /" /mnt/p1/cmdline.txt

5. Cleanup
sudo losetup -D
sudo umount /mnt/p1
sudo umount /mnt/p2
sudo rmdir /mnt/p1
sudo rmdir /mnt/p2

6. Reboot

////////////////////////////////////////////////////////
// OPTION 2: Using Windows or Mac computer
////////////////////////////////////////////////////////

1. Download Raspbian Stretch Lite 2017-09-07
[url]http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-09-08/2017-09-07-raspbian-stretch-lite.zip[/url]

2. Unzip and install the .img file to an SD Card
[url=https://www.raspberrypi.org/documentation/installation/installing-images/]Installing operating system images - Raspberry Pi Documentation[/url]

3. Eject the SD Card and then re-insert it
4. Open File Manager (Windows) or Finder (Mac)
5. Click the device named "boot" to show its contents
6. Write/create an empty file named "ssh" in the boot directory
7. Edit the file named cmdline.txt

# Remove the text below 
quiet init=/usr/lib/raspi-config/init_resize.sh

# Add this text to beginning of the line. Ensure there is a space between this text and the remaining text.
net.ifnames=0

8. Eject the SD Card

////////////////////////////////////////////////////////
//
// STEP 3 - Expand the root partition to 3GB
//
////////////////////////////////////////////////////////

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

.
.
.

Add to OPTION 1, number 4.

sudo rm /mnt/p2/etc/init.d/resize2fs_once

And replace OPTION 1, number 6 with:

6. Install the modified 2017-09-07-raspbian-stretch-lite.img to an SD Card

7. sudo poweroff

-Tim
 
Last edited:
@Man in a van

The root resizing to 3Gbyte happens on Setep 3.5 so no need to do it seperatly.

The steps for me on win10 were:
1. download the stretch-lite-image
2. burn it to the SDcard
3. write the empty "ssh" file on the boot directory
4. edit the cmdline.txt (Remove the following text: init=/usr/lib/raspi-config/init_resize.sh)
5. Follow Step 3.2 in the recipe

@aBrianH
what ip-adress has been assigned to the rpi? how do you know it to login via ssh?
PS: you have pm (i hpoe this helps :) )


-tonno

tonno

Replied to your excellent PM.
My route admin shows devices connected with their Name and IP Address.

I had to use the IP address in the early stages. Just wouldn't do ssh pi@moode.

Great relief to have got the build made and working. Thanks those who have suggested ways forward. Van Man etc
 
wifi ssid issue

Hi,
I just installed Moode. Nice interface and everythings seems to work.
But I can't activate wifi because Moode doesn't find any wifi network. I'm sure I have because the rasppi3 is router aside. Now I'm eth connected. I tried to insert SSID manually but it doesn't work. Any ideas? Press 'SCAN' button doesn't work too.


regards
Enrico
 
Hi,
I just installed Moode. Nice interface and everythings seems to work.
But I can't activate wifi because Moode doesn't find any wifi network. I'm sure I have because the rasppi3 is router aside. Now I'm eth connected. I tried to insert SSID manually but it doesn't work. Any ideas? Press 'SCAN' button doesn't work too.


regards
Enrico

Hi Enrico,

Post output from either

cat /var/log/moode.log

-- or --

System info

-Tim
 
@medioevo
maybe try this.

pop the card back into a reader and add the file to the boot partition



Once you've burnt the latest stretch image to an SD card (I use Etcher on Manjaro) you need to use the trick of copying an empty ssh file and wpa_supplicant.conf to the boot partition
This is the contents of my wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="BTHub-blahblah"
psk="keyblahblah"
}

Good luck:wave:
 
Hi,

Below is new procedure for STEPS 1,2. If someone can verify I'll upload new version of Build Recipe :)

-Tim

Code:
////////////////////////////////////////////////////////
//
// STEP 1 - Enable SSH and remove Auto-Resize task
//
// Use one of the two options below depending on what
// type of host computer you are going to be using.
//
////////////////////////////////////////////////////////

////////////////////////////////////////////////////////
// OPTION 1: Using Raspbian Linux (Raspberry Pi)
////////////////////////////////////////////////////////

1. Download Raspbian Stretch Lite 2017-09-07
wget [URL]http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-09-08/2017-09-07-raspbian-stretch-lite.zip[/URL]
sudo unzip 2017-09-07-raspbian-stretch-lite.zip 
sudo rm 2017-09-08/2017-09-07-raspbian-stretch-lite.zip

2. Mount the boot and root partitions
LOOPDEV=$(sudo losetup -f)
sudo losetup -P $LOOPDEV 2017-09-07-raspbian-stretch-lite.img
sudo mkdir /mnt/p1
sudo mkdir /mnt/p2
sudo mount -t vfat "$LOOPDEV"p1 /mnt/p1
sudo mount -t ext4 "$LOOPDEV"p2 /mnt/p2

3. Enable SSH
sudo touch /mnt/p1/ssh

4. Remove Auto-Resize task
sudo sed -i "s/init=.*//" /mnt/p1/cmdline.txt
sudo sed -i "s/quiet.*//" /mnt/p1/cmdline.txt
sudo sed -i "s/^/net.ifnames=0 /" /mnt/p1/cmdline.txt

5. Cleanup
sudo losetup -D
sudo umount /mnt/p1
sudo umount /mnt/p2
sudo rmdir /mnt/p1
sudo rmdir /mnt/p2

6. Reboot

////////////////////////////////////////////////////////
// OPTION 2: Using Windows or Mac computer
////////////////////////////////////////////////////////

1. Download Raspbian Stretch Lite 2017-09-07
[URL]http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-09-08/2017-09-07-raspbian-stretch-lite.zip[/URL]

2. Unzip and install the .img file to an SD Card
[URL="https://www.raspberrypi.org/documentation/installation/installing-images/"]Installing operating system images - Raspberry Pi Documentation[/URL]

3. Eject the SD Card and then re-insert it
4. Open File Manager (Windows) or Finder (Mac)
5. Click the device named "boot" to show its contents
6. Write/create an empty file named "ssh" in the boot directory
7. Edit the file named cmdline.txt

# Remove the text below 
quiet init=/usr/lib/raspi-config/init_resize.sh

# Add this text to beginning of the line. Ensure there is a space between this text and the remaining text.
net.ifnames=0

8. Eject the SD Card

////////////////////////////////////////////////////////
//
// STEP 3 - Expand the root partition to 3GB
//
////////////////////////////////////////////////////////

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

.
.
.

@Tim
OPTION 1 (Linux version) is working perfect.
I think the P2 mount is not nessecary but if someone likes to change something in there it makes sense.

Section 6 shoud not be a "reboot".
Better is something like
Code:
6. Install the .img file to an SD Card
[URL="https://www.raspberrypi.org/documentation/installation/installing-images/"]Installing operating system images - Raspberry Pi Documentation[/URL]
 
I forgot to mention that I also noticed that the scan function for wireless networks does not seem to respond. I had to manually configure the wifi in order to connect.

Hi,

When you say "does not seem to respond" do you mean that the screen hangs or errors are displayed, or do you mean that it appears to run but does not return any additional SSID's in the list?

-Tim
 
@Tim
OPTION 1 (Linux version) is working perfect.
I think the P2 mount is not nessecary but if someone likes to change something in there it makes sense.

Section 6 shoud not be a "reboot".
Better is something like
Code:
6. Install the .img file to an SD Card
[URL="https://www.raspberrypi.org/documentation/installation/installing-images/"]Installing operating system images - Raspberry Pi Documentation[/URL]

Hi tonno,

Excellent.

I edited my original post to add the part for p2 and also number 6. Just go back and re-read it. Let me know if other changes, and THANKS!

-Tim
 
Quite enjoyed the 4.7 beta build on my RPi3, took about 2.5 hours with breaks. Used the recipe on Windows 10 and ssh to RPi3 All works well excepting the bluetooth, which won't initialise. Not really something I would make a lot of use of, but will try reinstalling later this evening.
Appreciate all your good work Tim, hope the automated build method works out as I can see most users might be put off with the recipe method.

Ian
 
Quite enjoyed the 4.7 beta build on my RPi3, took about 2.5 hours with breaks. Used the recipe on Windows 10 and ssh to RPi3 All works well excepting the bluetooth, which won't initialise. Not really something I would make a lot of use of, but will try reinstalling later this evening.
Appreciate all your good work Tim, hope the automated build method works out as I can see most users might be put off with the recipe method.

Ian

Hi Ian,

I'm investigating a fully automated method for satisfying the GPL administrative tasks. Depending on how well it works and how much time it actually takes, pre-made images may become available again :)

-Tim
 
Hi,

When you say "does not seem to respond" do you mean that the screen hangs or errors are displayed, or do you mean that it appears to run but does not return any additional SSID's in the list?

-Tim

When you click on scan it appears to run but does not return any SSIDs. No list appears. This was even before I set the access details manually.

Thanks
Marnus
 
Last edited:
Hi Ian,

I'm investigating a fully automated method for satisfying the GPL administrative tasks. Depending on how well it works and how much time it actually takes, pre-made images may become available again :)

-Tim

:D:D:D

the crazy thing is, that i started with Linux in 1994 at the end of my study and than later i was working many years making Unix administration. Now after all those years, when i saw the "recipe" for moOde, i was thinking, that i am back in 1994, when i was compiling for days and nights my Linux distribution on my 66MHz 486. Kernel compiling for two hours etc ...