第46頁,共48頁 第一第一 ... 364445464748 最後最後
顯示結果從 451 到 460 共計 477 條
  1. #451
    註冊日期
    2014-08-02
    文章
    331
    Thanks
    0
    Thanked 799 Times in 280 Posts

  2. The Following User Says Thank You to seeteeyou For This Useful Post:


  3. #452
    註冊日期
    2015-03-17
    文章
    579
    Thanks
    392
    Thanked 1,497 Times in 506 Posts

    預設

    自動掛載 USB磁碟

    應樂友需求,小弟也覺得是不錯的方案:音樂檔在USB磁碟/隨身碟上,接上USB磁碟時,就可以直接取用,不用再下mount 指令。
    安裝方式:先 su
    代碼:
    curl -sL https://raw.githubusercontent.com/sam0402/ArchQ/main/pkg/usb-storage-mount.sh >/usr/bin/usb-storage-mount.sh
    curl -sL https://raw.githubusercontent.com/sam0402/ArchQ/main/pkg/90-usb-storage-automount.rules >/etc/udev/rules.d/90-usb-storage-automount.rules
    chmod +x /usr/bin/usb-storage-mount.sh 
    systemctl daemon-reload
    udevadm trigger
    update_scpt.sh
    usb_storage.jpg

    使用方式:
    1. 預先用 config -> "Partition mount" -> "USB storage auto mount" 點選 Yes。
    2. 之後接上隨身碟或USB磁碟,直接讀取 "/mnt/名稱" 就可。
    3. 取下隨身碟或USB磁碟前,記得仍要 sudo umount /mnt/名稱,或直接關機。
    4. 可以直接用"Partition mount" 設定在 /mnt/music/usb,這樣播放軟體就可以直接取用。

    註:今天之後重新安裝ArchQ,就會有此功能,不用再做此項安裝。
    此篇文章於 2024-05-09 08:03 AM 被 sam0402 編輯。

  4. The Following 2 Users Say Thank You to sam0402 For This Useful Post:


  5. #453
    註冊日期
    2014-08-02
    文章
    331
    Thanks
    0
    Thanked 799 Times in 280 Posts

    預設

    Inateck KU1222 該是成為絕響了,Amazon 和其他網店也沒有存貨:

    https://www.amazon.co.jp/Inateck-Gbp.../dp/B09FL3MJZF
    https://www.amazon.co.uk/Inateck-Red.../dp/B09CPCMLBK
    https://www.amazon.com/Inateck-Bandw.../dp/B09BN184L7

    官網亦只有其他型號的擴充卡:

    https://www.inateck.com/collections/.../usb-3-2-gen-2

    原有的傳送門也消失了:

    https://www.inateck.com/products/ku1222
    https://web.archive.org/web/20231128...roducts/ku1222



    USB4 AIC + TB motherboards header requirement
    https://www.reddit.com/r/UsbCHardwar...r_requirement/

    因此只好選擇那些能夠支援 ASM4242 擴充卡的主機板,可惜選擇非常有限:

    https://dancharblog.wordpress.com/20...asm4242-boards

  6. The Following User Says Thank You to seeteeyou For This Useful Post:


  7. #454
    註冊日期
    2015-03-17
    文章
    579
    Thanks
    392
    Thanked 1,497 Times in 506 Posts

    預設

    USB 3.2 卡應該還是有很多選擇,這個或許也是不錯的,可以獨立供電。
    https://www.amazon.co.uk/RaidSonic-I.../dp/B08HDL5LR6

  8. The Following User Says Thank You to sam0402 For This Useful Post:


  9. #455
    註冊日期
    2015-03-17
    文章
    579
    Thanks
    392
    Thanked 1,497 Times in 506 Posts

    預設

    拯救爛檔 hcp指令

    這是由psycho 教授那邊偷來的技術!哈哈,好用。

    若以前rip的檔案聲音不佳時,在wipe 過的硬碟反覆copy 一百次,就可以救回來,這是真的。所以就做了一個簡單操作的指令hcp,方便完成一百次的這個動作。

    安裝方式:完成後要重新登入
    代碼:
    cat >>~/.bashrc <<EOF
    alias hcp='function _f() { echo "\$1 >> \$2"; for i in {1..50}; do [ -z \$2 ] && break; cp -a "\$1" "\$2";echo -n .\$((\$i*2));cp -a "\$2"/"\$1" .;done; }; _f'
    EOF
    重灌ArchQ就會有,若要root下也有這功能,也請執行一次。

    使用方式: hcp "音樂專輯名稱.dir" /mnt/wipe1

    玩法一:
    在/music 下,直接選一個專輯目錄名稱,用雙引號括好,下hcp 指令後,就會自動 copy 專輯至/mnt/wipe1,再自動由/mnt/wipe1下 copy 回原專輯,這樣共copy 一百次。時間可能約5-10分鐘。

    玩法二:
    1. 製作兩個wipe 好的 partition,一個是暫存 /mnt/wipe1,另一個是要聽的mount 在 /music/wipe2。
    2. 先 cp -a "音樂專輯名稱.dir" /mnt/wipe1。 (或用 mc 指令,有文字視窗介面,功能請自行google: mc command )
    3. cd /mnt/wipe1 底下執行 hcp "音樂專輯名稱.dir" /music/wipe2

    聲音比較 二 > 一,就看樂友要如何玩了! ArchQ 變成奇怪的播放系統,內建一堆不可理喻的功能。

    補充:
    1. 若要一次hcp 多個專輯,可以先建一個資料夾(albums),再 mv "音樂專輯名稱.dir" /music/albums,將要hcp 的專輯集中移至albums。之後再 hcp albums /mnt/wipe1,完成後處理好的專輯搬回原位就可。
    2. 在同一個partition下,用mv 指令並不影響原wipe的效果,因為檔案的磁區並未移動。亦可用mc 指令來操作。
    此篇文章於 2024-05-01 01:54 PM 被 sam0402 編輯。

  10. The Following 7 Users Say Thank You to sam0402 For This Useful Post:


  11. #456
    註冊日期
    2011-07-11
    文章
    8
    Thanks
    0
    Thanked 10 Times in 6 Posts

    預設

    是不是查一下,Linux 中使用 cp 指令在同一個目錄下執行一百次,真的有重寫 data blocks 一百次嗎?

  12. The Following 2 Users Say Thank You to mybruce For This Useful Post:


  13. #457
    註冊日期
    2015-03-17
    文章
    579
    Thanks
    392
    Thanked 1,497 Times in 506 Posts

    預設

    因為是用聽的方式,小弟比過 100次 > 50次,也有請樂友驗證有效。
    所以cp是用如何跑的小弟就沒管它了。
    當然了,若找到更好用更正確的指令,就會直接跳槽。

  14. The Following 3 Users Say Thank You to sam0402 For This Useful Post:


  15. #458
    註冊日期
    2015-03-17
    文章
    579
    Thanks
    392
    Thanked 1,497 Times in 506 Posts

    預設

    無 Cache copy

    複製聲音檔,不經過 Cache時效率會比較好;另外記得教授以前有提過,聲音也會比較好(希望沒記錯)。
    這次就補上一個程式 nocache,後面接者 cp 或rsync 指令就可以略過Cache。如:nocache cp -a /mnt/music /mnt/backup

    安裝方式:
    1.
    代碼:
    wget -P /tmp https://raw.githubusercontent.com/sam0402/ArchQ/main/pkg/nocache-1.2-1-x86_64.pkg.tar.zst
    sudo pacman -U --noconfirm /tmp/nocache-1.2-1-x86_64.pkg.tar.zst
    2. 修補 hcp,增加nocache。如果之前有安裝,用nano ~/.bashrc,先刪除最後一行舊的。
    代碼:
    cat >>~/.bashrc <<EOF
    alias hcp='function _f() { echo "\$1 >> \$2"; for i in {1..50}; do [ -z \$2 ] && break; nocache cp -a "\$1" "\$2";echo -n .\$((\$i*2)); nocache cp -a "\$2"/"\$1" .;done; }; _f'
    EOF
    3. 更新 "Sync backup" 功能:config -> update

  16. The Following 5 Users Say Thank You to sam0402 For This Useful Post:


  17. #459
    註冊日期
    2014-08-02
    文章
    331
    Thanks
    0
    Thanked 799 Times in 280 Posts

    預設





    Music Assistant 2.0: Your Music, Your Players
    https://www.home-assistant.io/blog/2...c-assistant-2/
    https://community.home-assistant.io/...players/727626
    https://www.reddit.com/r/homeassista...ur_music_your/
    OK. MPD isn’t a player provider so not sure what you used there but Sonos should work. I tested with Airplay and it seemed to work ok. You can open an issue on GH about this as we haven’t done much testing with linking nor seen many reports or feedback.
    Music Providers
    https://music-assistant.io/music-providers/

    Player Providers
    https://music-assistant.io/player-support/

    music-assistant-desktop
    https://aur.archlinux.org/packages/m...istant-desktop

    music-assistant-desktop-bin
    https://aur.archlinux.org/packages/m...nt-desktop-bin

    MPD player in Music Assistant Beta version and then next stable versions #1170
    https://github.com/orgs/music-assist...omment-8147641
    Hm, I did not find a package, to install picoreplayer, only a complete image. So I installed squeezelite on my raspi. Worked out ouf the box, without any configuration. I also installed the squeezelite add-on from https://github.com/pssc/ha-addon-squeezelite on my home assistant yellow. Worked out of the box, too. For both systems, music assistant found the players as Slimproto players immediately after installing. Would be nice to find this in any documentation more easy.
    看來 2.1 版本應該可以支援 Apple Music 的說,另外它已經支援 Squeezelite 的 SLIMProto,基本上可以扔掉 LMS,但是 LMS 跟 MA 並不可以共存:

    https://github.com/music-assistant/s...ders/slimproto
    https://music-assistant.io/player-support/slimproto/
    Music Assistant (partly) emulates a Logitech Media Server and has a full implementation of the Slim protocol (aka slimproto). This means you can use squeezebox players directly with Music Assistant. This applies to the original Logitech branded Squeezebox hardware players like the Radio and the Duet and any software variants of it like squeezelite which runs on almost any hardware, including your own desktop OS and even ESP32 boards.
    AIOSlimProto 如下:

    https://github.com/home-assistant-libs/aioslimproto
    SLIMProto implementation in async python allows you to control squeezebox players (and compatibles).

    Requires Python 3.11+ and uses asyncio.


    MPD 方面的支援則只需基本的 Home Assistant:

    https://www.home-assistant.io/integrations/mpd/
    https://community.home-assistant.io/...n-addon/320446
    https://github.com/Poeschl/Hassio-Addons/tree/main/mpd

  18. The Following User Says Thank You to seeteeyou For This Useful Post:


  19. #460
    註冊日期
    2015-03-17
    文章
    579
    Thanks
    392
    Thanked 1,497 Times in 506 Posts

    預設

    感謝Seeteeyou兄提供資訊。
    看了一下Music Assistant的內容,有點像LMS,可以配合 Squeezelite 播放,不過也支援不少的Client Player。
    再配合 Home Assistant 比較好玩,當成智慧家庭的一部份,我猜想這應該是MA位定訴求。

    我比較有興趣的是 MPD上的SlimProto plugin,小弟的功力不夠,目前看來沒什麼機會。

發文規則

  • 不可以發表新主題
  • 不可以發表回覆
  • 不可以上傳附件
  • 不可以編輯自己的文章
  •