$ sudo apt-get install vim
$ sudo sqlite3 “/var/local/www/db/moode-sqlite3.db” “DROP TRIGGER IF EXISTS ro_columns”
$ sudo sqlite3 “/var/local/www/db/moode-sqlite3.db” “UPDATE cfg_hash SET ACTION = ‘warning’ WHERE PARAM = ‘/etc/nginx/nginx.conf'”
$ sudo sqlite3 “/var/local/www/db/moode-sqlite3.db” “CREATE TRIGGER ro_columns BEFORE UPDATE OF param, value, [action] ON cfg_hash FOR EACH ROW BEGIN SELECT RAISE(ABORT, ‘read only’); END;”
$ sudo vim /var/www/inc/playerlib.php
Comment lines 217, 218, 219, 220
Code:
//if ($row[‘id’] ../../sda2
lrwxrwxrwx 1 root root 10 May 1 03:03 b64c0d28-6e63-f24d-a406-281a63af722c -> ../../sda1
$ sudo mkdir /media/b64c0d28-6e63-f24d-a406-281a63af722c
$ sudo mount /dev/sda1 /media/b64c0d28-6e63-f24d-a406-281a63af722c
$ cd /media/b8b5e21c-94e4-4e5b-96c2-ecf922a95c6f/etc
$ sudo vim fstab
#PARTUUID=738a4d67-02 / ext4 defaults,noatime 0 1
PARTUUID=b64c0d28-6e63-f24d-a406-281a63af722c / ext4 defaults,noatime 0 1
PARTUUID=a4f2f1ad-835d-264a-b0f7-03399e812ce0 /home2 xfs defaults,nofail 0 0
$ sudo vim /boot/cmdline.txt
net.ifnames=0 console=serial0,115200 console=tty1 root=PARTUUID=b64c0d28-6e63-f24d-a406-281a63af722c rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
$ sudo reboot
$ sudo blkid -o list
$ sudo umount /dev/mmcblk0p2
$ sudo mkfs.ext4 /dev/mmcblk0p2
$ sudo reboot
$ sudo systemctl stop dphys-swapfile
$ sudo vim /etc/dphys-swapfile
CONF_SWAPFILE=/var/swap
CONF_SWAPSIZE=10240
$ sudo systemctl start dphys-swapfile
$ sudo systemctl enable dphys-swapfile
$ sudo reboot
$ sudo apt-get update
$ sudo apt full-upgrade
$ sudo reboot
$ sudo vim /boot/config.txt
dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
arm_64bit=1
$ sudo reboot
$ uname -a
Linux moode 4.19.115-v8+ #1305 SMP PREEMPT Fri Apr 17 12:06:34 BST 2020 aarch64 GNU/Linux
Go moodeaudio Configure -> open Network, change to static IP,
$ reboot
$ cd /mnt/SDCARD
$ sudo rm -rf ‘Stereo Test’/
$ sudo ln -s /home2/Music Music
open moode.local on web browser. Configure -> Library -> RE-GEN MPD database.
$ sudo apt-get install tightvncserver
$ sudo apt-get install –no-install-recommends xserver-xorg
$ sudo apt-get install –no-install-recommends xinit
$ sudo apt-get install –no-install-recommends raspberrypi-ui-mods lxsession
$ sudo apt-get install fonts-noto
$ sudo apt-get install openjdk-11-jre-headless
$ sudo reboot
$ sudo apt-get install fonts-ipaexfont
$ cd /usr/lib/jvm/java-11-openjdk-armhf/lib/
$ sudo mkdir fonts
$ sudo mkdir fonts/fallback
$ cd /usr/lib/jvm/java-11-openjdk-armhf/lib/fonts/fallback
$ ls
$ sudo ln -s /usr/share/fonts/opentype/ipaexfont-gothic/* ./
$ sudo vim /etc/nginx/nginx.conf
server {
listen 8080;
location / {
root /home2/t;
autoindex on;
}
}
$ sudo apt-get update
$ sudo apt-get install vsftpd ftp
$ sudo vim /etc/vsftpd.conf
Uncomment this to enable any form of FTP write command.
write_enable=YES
$ sudo systemctl enable vsftpd
$ sudo systemctl start vsftpd
$ sudo apt install transmission-daemon
$ sudo systemctl stop transmission-daemon
$ sudo systemctl disable transmission-daemon
$ cd ~/.config/
$ cp -r /home2/backup/pi/.config/transmission-daemon .
$ sudo reboot
$ sudo raspi-config
Then, select the【Interfacing Options】
Select 【P5 I2C】 and confirm with “YES”.
$ gcc -o fan fan.c -lwiringPi
$ gcc -o temp_control_with_rgb temp_control_with_rgb.c ssd1306_i2c.c -lwiringPi
$ ./install.sh