kali parallel desktop tools

本小妞迷上赌 提交于 2019-12-07 14:40:33
if [[ ! -d "/media/$(whoami)/Parallels Tools" ]]; then
    echo "Please mount parallels tools disk before install"
    exit
fi
echo "Copy install files to /tmp/parallels_fixed"
cp -rf "/media/$(whoami)/Parallels Tools" /tmp/parallels_fixed
chmod -R 755 /tmp/parallels_fixed
cd /tmp/parallels_fixed/kmods
echo "Unpack prl_mod.tar.gz"
tar -xzf prl_mod.tar.gz
rm prl_mod.tar.gz
echo "Patch prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c"
sed '1i\#include <uapi/linux/mount.h>' -i prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c
echo "Repack prl_mod.tar.gz"
tar -zcvf prl_mod.tar.gz . dkms.conf Makefile.kmods > /dev/null
cd /tmp/parallels_fixed
echo "Start install"
sudo ./install
echo "Remove /tmp/parallels_fixed"
rm -rf /tmp/parallels_fixed

  

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!