ubuntu22.04安装网易云音乐

附件:

https://download.csdn.net/download/weixin_44503976/88557248

wget https://d1.music.126.net/dmusic/netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb

ubuntu22.04安装网易云音乐_第1张图片

 wget -O patch.c   https://aur.archlinux.org/cgit/aur.git/plain/patch.c?h=netease-cloud-music

ubuntu22.04安装网易云音乐_第2张图片

sudo apt install gcc libvlccore-dev

ubuntu22.04安装网易云音乐_第3张图片
 

sudo dpkg -i netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb

ubuntu22.04安装网易云音乐_第4张图片

cc -O2 -fPIC -shared -I /usr/include/vlc/plugins/ -o libnetease-patch.so patch.c

ubuntu22.04安装网易云音乐_第5张图片

sudo apt-get install vlc libvlc-dev

ubuntu22.04安装网易云音乐_第6张图片

sudo install -D -m644 libnetease-patch.so /opt/netease/netease-cloud-music/libnetease-patch.so

sudo gedit /opt/netease/netease-cloud-music/netease-cloud-music.bash

用下面的内容覆盖

HERE="$(dirname "$(readlink -f "${0}")")" trap 'kill $(jobs -p)' SIGINT SIGTERM EXIT export LD_LIBRARY_PATH="${HERE}"/libs export QT_PLUGIN_PATH="${HERE}"/plugins export QT_QPA_PLATFORM_PLUGIN_PATH="${HERE}"/plugins/platforms export QT_QPA_PLATFORM=xcb # wayland 需要 export LD_PRELOAD="${HERE}"/libnetease-patch.so cd /usr/lib/x86_64-linux-gnu exec "${HERE}"/netease-cloud-music $@




转载链接:https://www.zhihu.com/question/581884243/answer/2873543468
 

你可能感兴趣的:(linux,运维,服务器)