#...
#(original part)
#...
#all extensions to setup environment and
# load petalinux environment
source /tools/Xilinx/PetaLinux/2020.2/tool/settings.sh
# additional TE environment variables to change timeout and used jobs
export TE_TIMEOUT=200
export TE_RUNNING_JOBS=6
# finish
function x_run () {
#XServer Display
export DISPLAY=192xxx.168xxx.150xxx.138xxx:0.0
# replace xxx.xxx.xxx.xxx with your win 10 host IP
export LIBGL_ALWAYS_INDIRECT=1
sudo /etc/init.d/dbus start
sudo /etc/init.d/xrdp start
sudo ip link set dev bond0 address 18:C0:4D:A5:7E:DE
}
# x-server Setup only needed in case wsl is rebooted
echo "Refresh XSetup? y/N"
read xsetup
if [ "${xsetup}" == "y" ]; then x_run; fi
|