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

Thanhvo31

Well-Known Member
@linh0983 : theo bác vụ ampache, cài trên Pi3+/dietpi ngon rồi, mount NAS vào mnt/samba rồi mà cho quét catalog vẫn chưa được gì?

Edit: chắc vụ phân quyền - mount samba = root, ampache quyền user = không đọc được
 
Chỉnh sửa lần cuối:

linh0983

Well-Known Member
@linh0983 : theo bác vụ ampache, cài trên Pi3+/dietpi ngon rồi, mount NAS vào mnt/samba rồi mà cho quét catalog vẫn chưa được gì?
Bác show cái hình chỗ mount Nas của dietpi mình xem với a .
Nếu được bác xuất ampache ra ngoài (pm) mình check thử bác nhé . Có bạn đồng hành là vui rồi a . :rolleyes:
 
Chỉnh sửa lần cuối:

Thanhvo31

Well-Known Member
Bác show cái hình chỗ mount Nas của dietpi mình xem với a .
Nếu được bác xuất ampache ra ngoài (pm) mình check thử bác nhé . Có đồng minh là vui rồi a . :rolleyes:

Edit: chắc vụ phân quyền - mount samba = root, ampache quyền user = không đọc được

Của bác mount nas như thế nào?
 

mtminh

Well-Known Member
@linh0983 : theo bác vụ ampache, cài trên Pi3+/dietpi ngon rồi, mount NAS vào mnt/samba rồi mà cho quét catalog vẫn chưa được gì?

Edit: chắc vụ phân quyền - mount samba = root, ampache quyền user = không đọc được

Anh cấp phép 775 hoặc 777 cho thư mục mnt/* trên dietpi
 
Chỉnh sửa lần cuối:

linh0983

Well-Known Member
Mình ko biết là bác mount Nas dietpi được chưa ? Nếu được rồi mình vào ampache chọn local khai tiếp a .

X456322.jpg


Nhập đúng đường dẫn là mount được ngay a .
http://www.hdvietnam.com/threads/ra...m-nghe-nhac-moi.1174389/page-544#post-9909155
 
Chỉnh sửa lần cuối:

Thanhvo31

Well-Known Member
Mình ko biết là bác mount Nas dietpi được chưa ? Nếu được rồi mình vào ampache chọn local khai tiếp a .

X456322.jpg


Nhập đúng đường dẫn là mount được ngay a .
http://www.hdvietnam.com/threads/ra...m-nghe-nhac-moi.1174389/page-544#post-9909155

Nản quá chưa được bác ạ
NAS mount trong dietpi ngon lành rồi = user root
cấp thêm 1 user = admin, sudo, mount cho admin, cd vào NAS mount ngon
cấp thêm 1 user = dietpi, sudo, mount cho dietpi, cd vào NAS mount ngon

Vào ampache khai nó vẫn báo lỗi "Error: /mnt/samba/T1/*.* is not readable or does not exist"
không biết owner của ampache trong dietpi là gì? root. admin, dietpi hay jav?

Thử qua max2play xem sao. Hôm trước còn code 1 tháng, giò đâu mất tiêu.
 
Chỉnh sửa lần cuối:

Thanhvo31

Well-Known Member
Đã bị giống vậy với dietpi. Nếu không change permissions từ 755 -> 775, 777. ampache không thấy, không phải tại phân quyền :D


Em lần theo thằng này mà không được
Permissions
Ampache must have Read access to all the files in the catalog, and Read+Execute to all the directories. If you run into issues where Ampache is saying it is unable to read a file or directory please double check the file permissions. The below two commands will set the correct file permissions for your files and directories. It is very important that you cd to the base of your MP3s first as these commands start at your current directory and recursively change permissions. Please note that these below commands cannot be ran in a Windows environment.
chmod -R u+rwX,go+rX /path/to/your/catalog/*

For mount points you should make sure that the user / group that your webserver is running as has read access to the mount, and that the mount is using the correct character set. Something like

mount -t smbfs //[computername or IP]/share /media/Storage -o uid=username,gid=users -o iocharset=utf

Edit; vừa thử qua max2play em thấy ớn cái giao diện rắc rối của nó quá
 

mtminh

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.
 
Chỉnh sửa lần cuối:

do_long_khach

Well-Known Member
các bác đang xài Moode bản mới nhất (4.4) cho hỏi Moode nó ko chơi với BubbleUpnp hay sao? Đã enable UpnP trong Moode mà mở Bubble trên điện thoại ko thấy Moode trong phần Renderer...
 

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
 
Bên trên