[How to do instruction] Easy installation / setup / configuration guide for absolute beginners - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] Easy installation / setup / configuration guide for absolute beginners (/showthread.php?tid=146) |
Easy installation / setup / configuration guide for absolute beginners - deztiny - 05-01-2018 Moderator note added 2018-11-23: This post contains valuable information for beginners and even for more experienced computerists unfamiliar with the Raspberry Pi ecosystem. At the time of its writing, it described the only method available to obtain moOde---using the moOde OS Builder to build up moOde from its constituent parts. Beginning with the release of moOde 4.3 in September, a second method is available---one can directly download a ready-to-use ISO image. See the homepage http://moodeaudio.org Either method works. Many will choose the second for convenience. Even so, it is worthwhile reading this post with the awareness that some of steps 0-2 and all of steps 3-6 concern only the moOde OS Builder method. The first method remains available for advanced users and experimenters who have their own reasons for building or who wish simply to understand the build process. end of note This article is also existing in a german translation here. Diesen Artikel gibt es auch in einer deutschen Übersetzung hier. Future updates will cover further basic functions bluetooth connections, backup/restore of playlist and radio stations and quite some more to get the basics going on this awesome music player app :-) There are two ways how to install moOde on a Raspberry Pi which are described here. MoOde not offer a "ready to use" image like other distributions. Instead it is using an image of the operating system (Raspbian) as basis and then a script for automatic installation. This is out of legal reasons (which come together with an own image) that would consume a lot of time (see here and here). For BOTH alternatives you will need:
"Local" alternative uses hardware directly attached to the Pi
"Remote" alternative uses a remote terminal session from your PC
Usually the installation script should work without problems - all you have to do is to wait (see chapter 6 for how long you have to wait on the different Pi models). Here are some advices for the most common errors:
0. Preparation For a clean start I recommend to format/repartition the microSD card with one click. Often Rasperry Pi images create multiple partitions on the SD card. With this Windows tool it is very easy to do a "factory reset". Download the official SD Card Formatter. Current version is 5 on official download page. This one does not work well for me (program window does not show at all or close on insert of microSD card with Linux partition). Therefore I went back and recommend last version 4 which is for example available here. Hope they will fix this with next version. Insert the microSD card, select the drive letter (in case of multiple partitions select one of them, doesn't matter which one) and hit "Format" button (default "Quick Format" setting is enough). 1. Download image writer and image In case you do not have a tool for writing images to SD cards yet, then get one and install it. "Etcher" is easiest to use (decompression of image files not needed) and available for Windows, Mac and Linux, get it here. "Win32 Disk Image Writer" is a smaller alternative for Windows, download here. It has typical windows user interfac, is smaller but requires images to be extracted from download files. MoOde uses Raspbian Stretch Lite image as operating system. To make sure that moOde installation works correctly it is IMPORTANT that you are using the version of the operating system which fits the moOde version. So on moOde homepage at support section currently it tells you in the first line "Raspbian Stretch Lite release 2018-03-13" for moOde version 4.1 . Also watch out that there are TWO Raspbian Stretch versions available, we want "Lite" version NOT "with desktop" . Official download page for Raspbian is here but this is only offering the newest version. (Like right at the moment) It can happen that there is a newer version ("2018-04-18") than the one we want. In case an older version is needed go here where all older releases like for example 2018-03-13 for moOde 4.1 are available. 2. Write image After the download we want to write the image file
3. ONLY Local alternative: connect your hardware You just have to connect the USB keyboard, ethernet cable and power cable into your Pi. When Display (external via HDMI or official 7" Touch Display) shows Code: raspberrypi login: 3. ONLY Remote alternative: establish SSH connection For establishing a SSH connection
Install/extract the application and start it. It will only display a small window with tons of setting, but you only have to fill out ONE field "Host Name (or IP address)" with the network address of your Raspberry Pi and hit the "Open" button. 4. Login & download installation script WARNING for local alternative: local USB keyboard settings are on english keyboard layout! So if you are using a keyboard layout of a differnt country you have to find out the correct keys! Therefore the following commands are also listed for german keyboard layout (feel free to let me know other layouts and I will add them). INFO for remote alternative: when using Putty on Windows you may just copy the command from the browser and paste them into putty by using right mouse button. Login by typing pi as user and raspberry as password (german keyboard layout type raspberrz !) If Pi is showing Code: pi@raspberrypi:~$ Now enter the following commands. There is NO feedback if the command was done right, the next promp will simply popup. See here how it should look like. First command is for changing the directory Code: cd /home/pi The following command downloads the script file from moOde Server. WARNING! This means for this step you have to be connected to the internet! If you are offline there is no error message, the file will be created anyway but will have no content! INFO: the O is the o letter, it is NOT a 0 (zero) Code: sudo wget -q http://moodeaudio.org/downloads/mos/mosbuild.sh -O /home/pi/mosbuild.sh The following command changes the file attributes of the script file so that the file can be executed in the next step Code: sudo chmod +x /home/pi/mosbuild.sh The following command executes the script. If you have not been connected to the internet two commands earlier, than simply NOTHING will happen here. If you had been online the installation wizard will be started. Code: sudo ./mosbuild.sh 5. Installation wizard Now a wizard will help you to do some setup. Here is a screenshot of the full process.
6. Installation & progress status Plug in power cable and wait. The Pi is downloading and compiling, so how long you have to wait is mostly depending on the CPU speed of your Pi. My results for moOde 4.1: Pi-Zero W 512MB v1.1 takes about 2h 45m, Pi-1B 512MB nearly 4 hours, Pi-2B 1GB v1.1 nearly 1,5 hours, Pi-3B 1GB v1.2 1 hour, Pi-3B+ 1GB v1.3 55 minutes Building progress is NOT displayed on local display. Remote Alternative: So if you are interested in the progress or if you are running into problems it can be followed using a SSH connection (as described in chapter "3. Remote alternative: establish SSH connection"): In the builder guide of moOde it is explained that a log file is maintained during the build which will let you know that the process is running. IMPORTANT: this time you have to use a different password for login! User is still pi but password is moodeaudio For printing each line in real-time enter Code: moslog SSH connection should only be terminated when automated reboot took place which is announced in the last stated line "** Reboot X" where X is 1 to 9. If the process is finished successful the moslog will look like this and show "installation time" and "final reboot". 7. Setup & Configuration Directly connected Pi Touch Display will show terminal with "moode login:", not "raspberrypi login:" anymore. HDMI will show blank black screen, hitting Alt+F2 and then Alt+F1 will show the terminal and login as well. (e.g. you can shutdown Pi after login via pi/moodeaudio by typing "shutdown now") Try to open the moOde userinterface by opening the following URL in your browser Code: http://moode.local Run a network scanner program/app which shows you all IP adresses in your network. On Windows download Advanced IP Scanner (Screenshot) here and start it (it offers "run" without installation). On iOS/Android smartphone/tablet use Fing (Screenshot) from Google App Store or Apple App Store. For Android there is an open source alternative called Port Authority (Screenshot) on F-Droid or Google Play Store. Of course you need the IP address for "Raspberry Pi" device (red markup on the screenshots). The moOde user interface will be displayed. System menu is accessed on the upper right corner by clicking on moOde logo. Shutdown and reboot can be both found under "Restart" entry. Set Timezone and Keyboard layout at "Configure" and "System" WIFI activation
Activation of an official 7" touch display In the system menu choose "Configure" than "System". There you have to activate "Local UI display", "Touch screen", and "Rotate screen" by 180 degrees. I am also decreasing brightness from 255 to 128. Push the "Set" button after every single setting. Activation of a DAC board (like HIFIBerry called HATs) Go to "Configure" and "Audio" and select the exact correct (!) one in the first dropdown box next to "I2S audio device", hit "Set" button and reboot. Adding Music from USB drive Go to "Configure", "Sources" and hit "Update" button in section "USB and SD Card Sources". On the bottom line "Updating" will be displayed instead of "Browse" as long as scan takes place. Selecting music There are two ways of adding tracks to the playlist.
Feedback for corrections and enhancements are welcome Update 2018-06-28: Minor updates based on review for german translation of this post Update 2018-06-14: Times for installer on different Pi models, and Shelly SSH app for iOS Update 2018-06-09: Complete revision, some screenshots, expanded chapter 7 Update 2018-05-07: Building process in chapter 5, complete text review Update 2018-05-06: Extended description using SSH instead of USB keyboard, Attachments removed RE: Easy installation guide for absolute beginners - Koda59 - 05-01-2018 Very nice guide, maybe you could add a small sentence if people want to use ssh (no keyboard) and link to the how-to ssh guide below in this section. RE: Easy installation guide for absolute beginners - rikardo1979 - 05-01-2018 Nicely done. Thank you for this Any chance you upload your screenshots to some picture host service instead of adding it here as attachments? Also I have edited your post as you used 'Quote' tags instead of 'Code' RE: Easy installation / setup / configuration guide for absolute beginners - Martin-Andersen - 06-25-2018 Thanks great guide, everything works. I just forgot to add the ssh file in the root before starting the moode installation. Can I get access to the terminal again? After boot I get a blank screen as you wrote. Can I hold down some keys to stop that behavior? Thanks RE: Easy installation / setup / configuration guide for absolute beginners - Tim Curtis - 06-25-2018 Hi, You will have to add the ssh file to the /boot directory, then ssh will be enabled after next reboot. -Tim RE: Easy installation / setup / configuration guide for absolute beginners - Martin-Andersen - 06-25-2018 (06-25-2018, 08:24 PM)Tim Curtis Wrote: Hi, Thanks I know, but I can't access the terminal. The screen goes blank/black after reboot, forgot to add the shh file before running the moOde bash file RE: Easy installation / setup / configuration guide for absolute beginners - Tim Curtis - 06-25-2018 Plug the SD Card into your PC or Mac. The /boot directory is a VFAT formatted partition and so will be accessible in File Manager or Finder as "boot". RE: Easy installation / setup / configuration guide for absolute beginners - deztiny - 06-28-2018 (06-25-2018, 03:34 PM)Martin-Andersen Wrote: Thanks great guide, everything works. Thank you for your feedback. I updated the howto for those who forgot the SSH file in the first place. Regarding the question why HDMI output is black after moOde installation i did a post in support section, see here. Hope to get some answer from a Linux/Raspbian Pro Tim found a workaround using Alt+F2 keys ! RE: Easy installation / setup / configuration guide for absolute beginners - nmstewart - 08-05-2018 Ran into a slight hiccup.. After going through the wizard and rebooting I was unable to SSH into my pi. I added the "ssh" file to /boot and /root and rebooted. Still could not SSH to the pi. logged in directly and ran the "moslog" command and it showed a download failure and said to reboot. I did and had the same results. I ran "ifconfig" and did not have an IP address for my wireless. ran "sudo nano /etc/wpa_supplicant/wpa_supplicant.conf" and noticed the "psk" line had truncated at the "$" in my password. Corrected and it worked flawlessly. was psk="L3" changed to psk="L3$*****" Thanks for the excellent guide RE: Easy installation / setup / configuration guide for absolute beginners - DRONE7 - 08-27-2018 Yes, reconnect and it will restart by rebooting and then will build MoOde player. The build may take a while depending on model of Pi , network etc.... (I've often wondered why the replug,restart,reboot is not mentioned in the guide ....??) |