编译
autoscan && aclocal && autoconf && automake --add-missing 自动
#!/bin/sh
run ( )
{
echo "running: $* "
eval $*
if test $? != 0 ; then
echo "error: while running '$* '"
exit 1
fi
}
run aclocal
run autoheader
run automake -a
run autoconf
常见问题
autogen.sh: line 3: syntax error near unexpected token `$‘\r’’ sed -i ‘s/\r//’ setup.sh
export DISPLAY=1:0
sudo startxfce4
ccsm
sudo compiz
sudo vim ~/.zshrc
sudo /etc/init.d/dbus start &> /dev/null
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 # in WSL 2
export LIBGL_ALWAYS_INDIRECT=1
export WAYLAND_DISPLAY=$DISPLAY
export NO_AT_BRIDGE=1
sudo -u root startxfce4
#安装systemctl
git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
cd ubuntu-wsl2-systemd-script/
bash ubuntu-wsl2-systemd-script.sh
# 停止WSL服务
net stop LxssManager
# 启动WSL服务
net start LxssManager
###rdp client windows
sudo apt-get install -y kubuntu-desktop #桌面
sudo synaptic #桌面应用程序管理
sudo apt-get install xrdp #远程桌面连接
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
echo "gnome-session" > ~/.xsession #启动session,桌面登录输入密码之后会直接闪退
sudo systemctl restart xrdp
sudo systemctl status xrdp
sudo /etc/init.d/dbus start &> /dev/null
sudo /etc/init.d/xrdp start &> /dev/null
mstc localhost:3390
# 安装浏览器
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
export QTWEBENGINE_DISABLE_SANDBOX=1
google-chrome --no-sandbox
创作不易, 小小的支持一下吧!