更换root镜像

This commit is contained in:
gfdgd_xi 2023-01-14 22:27:29 +08:00
commit 41e1a9b350
30 changed files with 31 additions and 0 deletions

7
install.sh Normal file
View File

@ -0,0 +1,7 @@
#/bin/bash
find . -name '*.deb' | xargs sudo dpkg -i
sudo apt-mark hold lxc lxc-templates liblxc1 liblxc-common lxc-utils
sudo apt install -f -y
sudo apt install libdframeworkdbus2 screen -y
echo "请重启并换成5.17内核然后运行launch_uengine.sh即可启动"

7
launch_uengine.sh Normal file
View File

@ -0,0 +1,7 @@
#/bin/bash
echo "首先要启动容器守护,所以会出现一个失败的启动界面,关闭即可"
echo "打开守护之后,按Ctrl+Alt+D后即可安全关闭此窗口开始安装/卸载/启动安卓应用"
sleep 3
uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
screen -s ./run_daemon.sh

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
lxcfs_3.0.3-2_amd64.deb Normal file

Binary file not shown.

17
run_daemon.sh Executable file
View File

@ -0,0 +1,17 @@
#/bin/bash
# 使 UEngine 能在 Wayland 下运行
export XDG_SESSION_TYPE=x11
export QT_QPA_PLATFORM=xcb
unset WAYLAND_DISPLAYCOPY
# 判断是否是开机后第一次运行
if [[ ! -f /tmp/uengine-loading-ubuntu ]]; then
# 需等待一段时间等系统全部加载完成
notify-send -i /opt/apps/com.gitee.uengine.runner.spark/files/icon.png "UEngine 服务正在加载" -a uengine-runner
sleep 10
touch /tmp/uengine-loading-ubuntu
fi
# 修复程序显示问题
XDG_CURRENT_DESKTOP="Deepin"
export LD_LIBRARY_PATH=/usr/share/uengine/lib64/
notify-send -i /opt/apps/com.gitee.uengine.runner.spark/files/icon.png "UEngine 服务启动完成" -a uengine-runner
uengine session-manager -platformtheme=deepin

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.