Raspberry Pi + Rune Audio ::: Một trải nghiệm nghe nhạc mới

Thanhvo31

Well-Known Member
@mtminh

Em theo rồi mà chưa rõ chỗ này lắm
CvknwkVCKPZ3IUk3NdgwhNaWHfyPavH-Oyq4JL_opWiCcS3EjdsnVBSI_-g5wwseBEf8fimnFXFaogaNGjkolUeGeRNnC1buCN_frTB0bnMsvQ8Sf_qSOxgN_HP9pbzunlo1Amkfxg_GNRtOC9TpbsG67LwWoZigs3VP5vZ4J0ajMJrWM78KHa4jxhJSgnStHVIF4nfbY5IRFLh8wpmbDb62x8pZT9I5oKdxDDuWaWeH3gGRUlIjJYyptrY3LwEJxkzNvF4rafZpc41e0V5FblQ8J5YeLTn7ENqmb-zlZQdsi3Miclz2G4y5Lq5uLpGSzMaRwnQwLspd9wzCJleNBs1EtekjF0bPlUq-YmltgMoYOrlGTsMMzw9xRj2K-zJVmhBRz9tkTNvi8rNqRmuF4wGABWuNOqY2h8n6OQNeise-cBwGeTFucylWMd62ur8luwA6tM-_HfKrvkfdK2T7qhN0gm6DWStEzkaCZjyaBQzPLXyWptnBAaNEkHyuXjT0OoxL7mRs4rIo2SIifvNz1FFXaOf7fUELELK7v0V1A7Tl22ApLAjyETWieJR8Kfy5_G7j9Lu2vI44zSCvX-ToPP25tu3U_Z2zTroL8vjUG8xtIirEWsctmyhJc6B-sgsPuPLJlTEZYTeeDW7GTWVSFGaT7dwqiS7x692cxvbJJmsqlyVqRHKpASlWgrqzltMgGeiBiu1G-6oMtqFO2PY=w1906-h1658-no

Em hiểu là tạo ra TM MPD dạng symlink phải không?

## Mount NAS

Nguyên dòng lệnh thế này?

"/mnt/02CA703ECA70305: /dev/sda1 | ntfs | Not mounted" -> enter (02CA703ECA70305 = Số nàycó thể khác)

Phần Drive Manager nó có
Add network > Samba >
Please enter the fileservers IP address
│ - eg: 192.168.0.2
(enter IP 192.xxx.xxx.xxx) or /mnt/02CA703ECA70305?
Please enter the fileservers shared folder name
??? /dev/sda1 ???
Please enter the fileservers username : xxx
Please enter the fileservers password : yyyy
Please enter a unique folder name for the mount location (eg: samba). This will be placed in /mnt/ ?


Bác làm rõ hơn giúp em

Em không khoái thằng ampache này lắm nhưng phải quyết tìm cho ra vụ catalog của nó.

Cảm ơn bác


## Đổi tên thư mục mount
Mount: Mount the drive to /mnt/02CA703ECA703051-> enter

## Mount NAS vào thư mục MPD
/mnt/02CA703ECA703051 -> /mnt/MPD -> enter
 

zeze

Well-Known Member
Hì chào các bác, sau 3 năm không đụng đến Audio. Giờ quay lại thì nhìn cái thùng Rpi3 em mod, không hiểu chi chi cả. Kết nối web Runeaudio gì đấy không biết cách mount music gì đó :( .
 

Đính kèm

  • Rpi.png
    Rpi.png
    498.7 KB · Xem: 11

linh0983

Well-Known Member
Add catalog Dietpi/Ampache

root@DietPi:~# dietpi-launcher -> enter

## Nhận diện ổ NAS
DietPi-Drive_Manager -> enter

## Mount NAS
/mnt/02CA703ECA70305: /dev/sda1 | ntfs | Not mounted -> enter (02CA703ECA70305 = Số nàycó thể khác)

## Đổi tên thư mục mount
Mount: Mount the drive to /mnt/02CA703ECA703051 -> enter

## Mount NAS vào thư mục MPD
/mnt/02CA703ECA703051 -> /mnt/MPD -> enter

## Exit theo thứ tự để dietpi enable lại.
back -> exit -> ok -> exit ->ok

root@DietPi:~# chmod 775 /mnt/MPD
root@DietPi:~# chmod 775 /mnt/MPD/*
-----------
## Đăng nhập vào ampache: admin/dietpi
Góc trái trên:
Chọn Admin -> Add a catalog:
Catalog Name: Tùy thích
Catalog Type: Local
path: /mnt/MPD
Khai báo xong click: Add Catalog (Màu vàng)
--
Chọn Home (hình headphone) - > Song Titles.
Mỗi lần refresh (f5) trang web ampache, sẽ thấy số lượng bài tăng lên do ampache đang scan.


Dietpi mình add nas như vầy xong qua ampache add catalog như max2play là được bác . o_O
VVV.jpg


http://www.hdvietnam.com/threads/ra...m-nghe-nhac-moi.1174389/page-553#post-9938780
 
Chỉnh sửa lần cuối:

mtminh

Well-Known Member
@mtminh

Em theo rồi mà chưa rõ chỗ này lắm

TM MPD là dạng symlink + Quyền truy cập (permisssions), cấp quyền cho xuyên qua, tiếp cận data của NAS.
NAS và Ampache có quyền này. Đóng 1 cửa thôi, từ cửa đó trở xuống end user bó tay.

Dùng NAS của A @linh0983: Mount vào thư mục /mnt/samba dietpi đã add sẵn.

honddpy.ddns.net or 42.113.142.142 ( IP NAS hôm nay) đều được hết
share/MUSIC
----
## Mặc định dietpi chưa có samba.
Install: file server: samba.
reboot
--- Add network driver:
## Chọn nghi thức chia sẻ: (Samba , NFS)
Please select a mount location to use: Samba Setup a connection for a Samba/
## Chọn honddpy.ddns.net hoặc 42.113.142.142
Please enter the fileservers IP address: honddpy.ddns.net
##
Please enter the fileservers shared folder name: share/MUSIC
##
Please enter the fileservers username: guest
Please enter the fileservers password: guest
##
Please enter a unique folder name for the mount location (eg: samba).
This will be placed in /mnt/: samba
Kết quả:
Dietpi.jpg

## Cấp quyền truy cập trong file "fstab". Nếu "đóng cửa", ampache không đi xuyên, đọc data ổ NAS được:
Sửa: file_mode=0770,dir_mode=0770 = file_mode=0775,dir_mode=0775
Dòng lệnh mount trong fstab sẽ như dưới:

root@DietPi:~# nano /etc/fstab
//honddpy.ddns.net/share/MUSIC /mnt/samba cifs username=guest,password=guest,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0775,dir_mode=0775,vers=1.0,_netdev,nofail 0 0

Save fstab & reboot.
--------------
## Login Ampache
-- Không vào Add a catalogs, dietpi đã add /mnt/samba trước.
Admin -> Show Catalogs
-- Chọn dòng:
Samba Client /mnt/samba -> Actions=Update -> GO
--
Chọn Home (hình headphone) - > Song Titles.
Mỗi lần refresh (f5) trang web ampache, sẽ thấy số lượng bài tăng lên do ampache đang scan.
 
Chỉnh sửa lần cuối:

tml3nr

Moderator
Volumio 2.526

2019-01-15_183801.png


CHANGELOG:

FIXES
Fix TIDAL playback when an undefined track is found
Fix regression of volume control
Fix bad visualization of TIDAL and QOBUZ albums

NEW ADDITIONS
Add direct DSD Support to many USB DACs
Improved Russian and Chinese translations
Mpd 0.20.18 version
 

zeze

Well-Known Member
Làm được tới đây rồi, nhưng phần chỉnh sửa Putty ở trên không biết làm. Và cũng không biết cách mount ổ nhạc trong laptop để khiển Rpi3 nó đọc và play file nhạc này.
Rune2.png
 

tml3nr

Moderator
Làm được tới đây rồi, nhưng phần chỉnh sửa Putty ở trên không biết làm. Và cũng không biết cách mount ổ nhạc trong laptop để khiển Rpi3 nó đọc và play file nhạc này.
View attachment 333661
- Anh download putty về:

https://the.earth.li/~sgtatham/putty/0.70/w64/putty.exe

- Chạy putty trên PC theo hướng dẫn này để kết nối vơi pi:

http://mlab.vn/44100-raspberry-pi-ket-noi-voi-raspberry-pi.html

- Chạy các lệnh này trên putty:

fdisk /dev/mmcblk0

Press "p" to show the current partitions and note down the details of the main one that RuneOS is on.

Delete it, pressing "d" and choosing the relevant partition number.

Press "n" to make a new partition, and "p" to select a primary partition. Enter the same start block that you wrote down above, and allow it to use the default end block (the last block available on the device).

Press "t" and enter the value "83" to mark it as a Linux partition.

Press "w" to write changes and exit. You may have to reboot after this for changes to be registered. This has resized the partition, but not yet the filesystem.

reboot

resize2fs /dev/mmcblk0p2

- Trên PC tạo user pi password pi

- Tắt firewall PC, set IP tĩnh cho PC

- Share folder nhạc cho user pi

- Từ pi add folder share vào theo đường dẫn của PC. Thí dụ như:

//192.168.1.10/music
 

zeze

Well-Known Member
Làm tới hình dưới rồi (user: root , pass: rune - Chứ không phải pi/pi). Tiếp theo làm gì nữa? Vì nhấn phím p nó gõ 1 tràng chữ p :) .
- Trên PC tạo user pi password pi <--- Làm như thế nào?
- Tắt firewall PC, set IP tĩnh cho PC <--- set IP tĩnh, có phải vô setup Internet Protocol Version 4 (TCP/lPv4) Property không?
- Share folder nhạc cho user pi <-- làm như thế nào?
Rune3.png
 

Mlab

Active Member
Làm tới hình dưới rồi (user: root , pass: rune - Chứ không phải pi/pi). Tiếp theo làm gì nữa? Vì nhấn phím p nó gõ 1 tràng chữ p :) .
- Trên PC tạo user pi password pi <--- Làm như thế nào?
- Tắt firewall PC, set IP tĩnh cho PC <--- set IP tĩnh, có phải vô setup Internet Protocol Version 4 (TCP/lPv4) Property không?
- Share folder nhạc cho user pi <-- làm như thế nào?
View attachment 333683
RuneAudio trước e hay dùng nhưng gần đây chuyển hẳn sang Volumio.
Về Rune thì trước e dùng bình thường.
1. Phần mở rộng phần vùng thẻ nhớ cho Pi chỉ một số trường hợp cần e ms làm. Không bình thường e vẫn để nguyên ạ.
2. Về phần Share folder nhạc trên máy tính, em chưa có làm trên Rune . Các bác làm được cho em cách làm ạ.
 
Bên trên