As we all know, there were only cloud Netease launched a Linux client, in a not very nice at the basis Listen, Netease cloud is almost the only choice to use Ubuntu.
However, Netease cloud has long been caught in copyright disputes, many of the songs are not in the NetEase cloud heard, but can still be retrieved, but grayed out.
This is where you can use, since it can be retrieved, so you can use a proxy way, the gray songs resolved to other music source, then return to the NetEase cloud client can be.
1. Install node.js
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_13.x | bash - apt-get install -y nodejs
Note: Be sure to install it as described above, a prompt start installing Ubuntu using nodejs-legacy apt-get install does not operate properly.
https://github.com/nodesource/distributions/blob/master/README.md#deb
2. Download the project
https://github.com/nondanee/UnblockNeteaseMusic.git clone git # cloning project repository cd UnblockNeteaseMusic # into the project root directory
Note: root directory may be different, to analyze specific issues.
3. Set Acting
3.1 Netease cloud server to find IP
ping music.163.com
Get a similar IP 59.111.181.60
3.2 add records to the hosts file
127.0.0.1 music.163.com
127.0.0.1 interface.music.163.com
3.3 Setting parameters start
sudo node app.js -p 80 -f 59.111.181.60
Note: If the error Error in linux / macOS: listen EACCES 0.0.0.0:80 please add sudo
Server running @ http://0.0.0.0:80 events.js:187 throw er; // Unhandled 'error' event ^ Error: listen EACCES: permission denied 0.0.0.0:80 at Server.setupListenHandle [as _listen2] (net.js:1284:19) at listenInCluster (net.js:1349:12) at Server.listen (net.js:1437:7) at /home/hans/UnblockNeteaseMusic/app.js:83:15 at processTicksAndRejections (internal/process/task_queues.js:93:5) Emitted 'error' event on Server instance at: at emitErrorNT (net.js:1328:8) at processTicksAndRejections (internal/process/task_queues.js:80:21) { code: 'EACCES', errno: -13, syscall: 'listen', address: '0.0.0.0', port: 80 }
Success status displays only the beginning:
HTTP Server running @ http://0.0.0.0:80