linh0983
Well-Known Member
Hi ! Tạo thẻ Moode này mất thì giờ và dài dòng a . Mình dùng Pi3 đang nghe nhạc thay cho PC để SSH các bác nó gồm : Pi3 + USB stick .
USB stick định dạng theo hình . Copy file 2017-09-07-raspbian-stretch-lite .img vào a .
Vào PuTTy nhập IP a .
Open nó vào hình dưới a .
Nhập pi enter xong nhập moodeaudio sau đó nhập các dòng này vào như hướng dẫn a .
sudo fdisk -l -o Device,Start,Type | grep 0p
sudo mkdir /mnt/tmp
sudo mkdir /mnt/tmp1
sudo mount /dev/sda1 /mnt/tmp
sudo mount -v -o offset=4194304 -t vfat /mnt/tmp/2017-09-07-raspbian-stretch-lite.img /mnt/tmp1
sudo touch /mnt/tmp1/ssh
sudo sed -i "s/init=.*//" /mnt/tmp1/cmdline.txt
sudo sed -i "s/quiet.*//" /mnt/tmp1/cmdline.txt
sudo sed -i "s/^/net.ifnames=0 /" /mnt/tmp1/cmdline.txt
sudo umount /mnt/tmp1
sudo mount -v -o offset=48234496 -t ext4 /mnt/tmp/2017-09-07-raspbian-stretch-lite.img /mnt/tmp1
sudo rm /mnt/tmp1/etc/init.d/resize2fs_once
sudo umount /mnt/tmp1
sudo umount /mnt/tmp
sudo rm -rf /mnt/tmp*
sync
Nó ra y như hình dưới các bác .
Đến đây nhiệm vụ linux của Pi3 đã xong . Rút USB stick ra cho Windown copy file .img ra ngoài để tạo thẻ moode mới a . Dùng Win32DiskImager .
Khi tạo xong mình nhét vào Pi3 khi nó boot xong vào SSH lần nữa như hướng dẫn .
Ae ta tiếp tục từ đây .
Tiếp phần còn lại . ( ai thích tự làm ) .
Các bác download file " 2017-09-07-raspbian-stretch-lite.img " này về bỏ qua bước 1 và 2 . Sau khi tạo xong thẻ moode cho vào Pi mở nguồn . Vào PuTTY SSH vào Pi với user : pi và pass : raspberry .
nhập vào 3 lệnh dưới để đổi lại user và pass như cũ : pi và moodeaudio .
Kế là copy và paste về sau có ver mới tương tự a . ( từ bước 3 đi tiếp ) .
https://www.fshare.vn/file/HMDO2ZLM4EDE
echo "pi:moodeaudio" | sudo chpasswd
sudo sed -i "s/raspberrypi/moode/" /etc/hostname
sudo sed -i "s/raspberrypi/moode/" /etc/hosts
Có cái để vọc rồi a . Fix lỗi Wifi .
########################################################
#
# Build Recipe v1.3, 2017-11-05
#
# These instructions are written for Linux Enthusiasts
# and System Integrators and provide a recipe for making
# a custom OS for running moOde audio player.
#
# NOTE: This recipe is based on Stretch Lite 2017-09-07
#
# Unless otherwise noted or if a command requires user
# interaction, groups of commands can be run in batch.
#
# moOde 4.0.0
#
# Changes:
#
# v1.3: Added optional WiFi config in STEP 2
# v1.2: Simplified method for STEPS 1,2
# Bump to MPD 0.20.11
# v1.1: Use echo "pi:moodeaudio" | sudo chpasswd in STEP 3
# Set 0755 permissions on /var/local/www in STEP 8
# Remove templatesw# fatfinger dir in STEP 8
#
# (C) Tim Curtis 2017 http://moodeaudio.org
#
########################################################
Chỉnh sửa lần cuối: