Categories
macOS Technology

NETEASE CLOUD MUSIC TUI

Last month I found an interesting GitHub repo from Betta, which provides a TUI for the Netease Music app. It’s quite easy to install and set up your account.

netease-tui
TUI for Netease Music app.

Installation

For the Mac environment, you need to use Homebrew:

brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-rtsp-server gst-editing-services

For Linux/Debian, it can be installed with (not tested):

apt-get install libgstreamer-plugins-bad1.0-dev

Next, download the latest binary release here and put them into your local folder along with other binaries (This makes the binary can be found anywhere in a terminal because the binary folder is in system’s PATH).

# download the binary and unzip it
tar -xzvf netease-music-tui-macos.tar.gz

# move to binary directory
mv ncmt /usr/local/bin

Then, you need to make a configuration file at ~/.config/netease-music-tui/Settings.toml. Substitute username and password with your own account.

# create file
vim ~/.config/netease-music-tui/Settings.toml

# write credentials in settings
# Your account username (email/cellphone).
username = "username"
# Your account password.
password = "password"

Note that when the first time executes the ncmt binary, you need to run it manually not from the terminal in macOS Catalina.

  • Open finder
  • Use shortcut: command+shift+G
  • Type path: /usr/local/bin, press Enter
  • Find ncmt binary file, right click on it
  • Click open

After a warning message box, you should be able to run it from any terminal now. If not, you have to re-login to your system account or just source your profile:

# if you use zsh
source .zshrc

# or you use bash
source .bash_profile

Usages

Every time when you confuse with what to do, you can always use ? to show all the hints.

Some simple keystroke:

KeyFunction
?Help
+Increase volume
Decrease volume
/Enter Search
<Space>Pause/Resume playback
<Arrow keys>Navigation

For a full list of key binds, visit the author’s repo here.

By 533

♥️•🏊•💪🏻 •🐈•📷
•IG: @53333_ @xᴜɴxᴜɴ_ɢʀᴀᴄᴇ
•TW: @SimonNg533

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.