This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# windows 主机ip设置 | |
export HOSTIP=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }') | |
# xserver 设置 | |
export DISPLAY=$HOSTIP:0 | |
export LIBGL_ALWAYS_INDIRECT=1 | |
#自动挂载cgroup | |
if [ ! -d /sys/fs/cgroup/systemd ]; then | |
sudo mkdir /sys/fs/cgroup/systemd | |
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd |