Compare commits

...

46 Commits

Author SHA1 Message Date
7741a64969 export LANGUAGE
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-09-24 09:11:01 +00:00
35d74b48ff update src/DEBIAN/control.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-09-21 11:42:36 +00:00
2c598f057a update src/DEBIAN/control.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-09-21 06:06:30 +00:00
7b44d6f4a3 update_link
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-09-09 16:32:07 +00:00
b0f0a99b62 gxde-fixer 2024-09-07 12:14:43 +08:00
524f3bc5e9 remove gxde fix
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-09-06 18:46:01 +00:00
777dcc1a38 Fix on GXDE OS initiate XDG_DATA_DIRS
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-09-06 18:32:53 +00:00
80eeb69d28 change download link
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-08-13 06:51:04 +00:00
751f1400ff adjust: now won't run bookworm run in container
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-07-20 10:30:18 +00:00
AAA Elysia 猫猫侠 ⁧~喵
dc1a0eebe3 !7 【轻量级 PR】:fix: Dependency problem in Debian 13
Merge pull request !7 from AAA Elysia 猫猫侠 ⁧~喵/N/A
2024-07-18 02:51:40 +00:00
c3a8895a16 update link
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-06-21 14:39:56 +00:00
d90e4cf529 fix-apparmor 2024-06-20 22:31:58 +08:00
a388a710a5 remove link
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-06-16 07:18:50 +00:00
55683bce1b add data
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-06-05 04:38:44 +00:00
5b1697035c Add data
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-06-05 04:38:13 +00:00
3704dcf30a localtime不再bind
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-06-02 04:28:44 +00:00
4a266bb6d8 remove gcc depend
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-05-14 10:39:16 +00:00
e681fc9a22 changepng 2024-05-09 15:49:02 +08:00
3265a8311a adjust-png 2024-05-09 15:34:08 +08:00
f2916fa2a0 support-uos 2024-05-09 15:15:13 +08:00
2f3177b600 support-uos 2024-05-09 15:10:59 +08:00
1dab109d77 Merge remote-tracking branch 'refs/remotes/origin/master' 2024-05-07 13:51:59 +08:00
80cc726897 apparmor 2024-05-07 13:51:50 +08:00
223b86a39f spk resolv
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-05-07 05:48:18 +00:00
c1f7b9ac3b fix-apparmor 2024-05-01 21:28:16 +08:00
0fd58e7134 fix mime https://bbs.deepin.org.cn/phone/zh/post/271667
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-30 04:42:15 +00:00
99db451307 删除文件 src/etc/apparmor.d 2024-04-30 04:27:48 +00:00
87bd885bb5 update src/DEBIAN/control.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-30 04:25:20 +00:00
d98e3f7819 update src/DEBIAN/postinst.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-30 04:25:06 +00:00
e89d270e7b update src/DEBIAN/postinst.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-29 14:28:05 +00:00
d6dbc62e72 重载配置 2024-04-29 22:19:28 +08:00
a298a17a4a apparmor policy 2024-04-29 22:09:22 +08:00
ebae7611df try-fix-23-push 2024-04-18 23:07:05 +08:00
cc5684234d change version 2024-04-18 23:06:02 +08:00
c61d30ff5f try-fix-v23-settings 2024-04-17 23:35:23 +08:00
401256fab9 update database 2024-04-10 17:29:02 +08:00
b8d1d8b958 feat: support open in host os by mimetype 2024-04-10 17:25:45 +08:00
54ad42f12c update README.zh.md.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-07 08:20:01 +00:00
8533c0478e update README.md.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-07 08:19:23 +00:00
04c4ed87e8 Change link
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-07 06:22:19 +00:00
c39b0d086a update src/DEBIAN/postinst.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-07 02:18:08 +00:00
274cd58361 update README.md.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-02 05:18:39 +00:00
572e8710d9 update README.zh.md.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-02 05:18:12 +00:00
1f2e934230 update README.zh.md.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-02 05:17:44 +00:00
6d3996fc84 remove chmod
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-01 12:59:31 +00:00
5bf78dd789 update src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bin/ace-init.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-04-01 12:58:21 +00:00
27 changed files with 127 additions and 36 deletions

View File

@@ -21,18 +21,18 @@ Please use `git clone --recurse-submodules` to obtain the env
### Quick Install (Need to install Spark Store first)
[spk://store/tools/cn.flamescion.bookworm-compatibility-mode/](https://spark-store-project.gitee.io/spk-resolv/?spk=spk://store/tools/cn.flamescion.bookworm-compatibility-mode/)
[spk://store/tools/cn.flamescion.bookworm-compatibility-mode/](https://spk-resolv.spark-app.store/?spk=spk://store/tools/cn.flamescion.bookworm-compatibility-mode/)
### Manual InstallDebian/Fedora/Arch)
https://share.shenmo.tech:23333/index.php?share/folder&user=1&sid=kr8z6Fqf
https://pan.huang1111.cn/s/jR1GdUy
(Dependencies are needed to upgrade for Ubuntu 18.04/deepin 15)
https://cdn.d.store.deepinos.org.cn/store/depends/bubblewrap_0.3.1-4_amd64.deb x86
### Amber-CE x86
https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm64.deb arm64
Use LAT to run a x86 bookworm container. Can install x86 debs and run x86 apps
https://pan.huang1111.cn/s/P63D6Cm
## Build Guide
@@ -43,14 +43,14 @@ Here are the details:
1. Install dependencies: sudo apt-get install arch-test debootstrap libnss-mymachines systemd-container
2. Enter the terminal at `src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files` and execute `./build-container.sh amd64`.[for amd,other arch please change]
3. Wait for the container to complete.
4.Get in to `bookworm-compatibility-mode` dir,run`fakeroot dpkg-deb -b src .`
4.Get in to `amber-ce-bookworm` dir,run`fakeroot dpkg-deb -b src .`
5.Wating for complete.
### Fedora
See https://gitee.com/amber-compatability-environment/ace-rpm
See https://gitee.com/amber-ce/ace-rpm
### Arch
`yay -S cn.flamescion.bookworm-compatibility-mode`
`yay -S amber-ce-bookworm`

View File

@@ -15,17 +15,19 @@
### 快捷安装 (需要安装星火应用商店)
[spk://store/tools/cn.flamescion.bookworm-compatibility-mode/](https://spark-store-project.gitee.io/spk-resolv/?spk=spk://store/tools/cn.flamescion.bookworm-compatibility-mode/)
[spk://store/tools/cn.flamescion.bookworm-compatibility-mode/](https://spk-resolv.spark-app.store/?spk=spk://store/tools/cn.flamescion.bookworm-compatibility-mode/)
### 手动安装Debian/Fedora/Arch)
https://share.shenmo.tech:23333/index.php?share/folder&user=1&sid=kr8z6Fqf
https://pan.huang1111.cn/s/jR1GdUy
(Ubuntu 18.04/deepin 15需要先安装依赖)
https://cdn.d.store.deepinos.org.cn/store/depends/bubblewrap_0.3.1-4_amd64.deb x86
### Amber-CE x86
利用 LAT 运行的x86容器可安装和运行x86的deb
https://pan.huang1111.cn/s/P63D6Cm
https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm64.deb arm64
## 构建指南
@@ -38,15 +40,15 @@ https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm
1. 安装依赖sudo apt-get install arch-test debootstrap libnss-mymachines systemd-container
2.`src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files`位置进入终端,执行`./build-container.sh amd64`[amd架构其他架构同理]`
3. 等待容器打包完成
4. 进入`bookworm-compatibility-mode`目录,执行`fakeroot dpkg-deb -b src .`
4. 进入`amber-ce-bookworm`目录,执行`fakeroot dpkg-deb -b src .`
5. 等待打包完成
### Fedora
请前往 https://gitee.com/amber-compatability-environment/ace-rpm
请前往 https://gitee.com/amber-ce/ace-rpm
### Arch
`yay -S cn.flamescion.bookworm-compatibility-mode`
`yay -S amber-ce-bookworm`
---

View File

@@ -1,8 +1,8 @@
Package: cn.flamescion.bookworm-compatibility-mode
Version: 12.4.11
Version: 12.4.13.1
Section: misc
Priority: optional
Depends: bubblewrap,flatpak,zenity,policykit-1,gcc,systemd
Depends: bubblewrap,flatpak,zenity,policykit-1 | pkexec | polkit-1 | polkit,systemd,procps
Maintainer: shenmo <shenmo@spark-app.store>
Architecture: arm64
Architecture: amd64
Description: bwrap wrapper for install and running debs inside a bookworm container

View File

@@ -17,4 +17,12 @@ if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
systemctl daemon-reload
systemctl enable ace-bookworm-auto-upgrade
systemctl start ace-bookworm-auto-upgrade
# enable kernel.unprivileged_userns_clone
# disable kernel.apparmor_restrict_unprivileged_unconfined and kernel.apparmor_restrict_unprivileged_userns
if [ -f /usr/lib/sysctl.d/amber-ce.conf ];then
sysctl -p /usr/lib/sysctl.d/amber-ce.conf
fi
fi
true

View File

@@ -12,6 +12,6 @@ fi
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
ACE_path="/opt/apps/amber-ce-bookworm/files/ace-env/flamescion-container-tools/data-dir/"
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${ACE_path}"
fi

View File

@@ -11,6 +11,6 @@ fi
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
ACE_path="/opt/apps/amber-ce-bookworm/files/ace-env/flamescion-container-tools/data-dir/"
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${ACE_path}"
fi

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Name=bookworm.ace-gxde-fixer
Name[zh_CN]=bookworm.ace-gxde-fixer
Comment=bookworm.ace-gxde-fixer
Type=Application
Exec=/opt/apps/amber-ce-bookworm/files/bin/bookworm.ace-gxde-fixer
Icon=amber-ce-bookworm
Categories=System
# Generated from the DesktopGenerater component of the z-Tools toolkit

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Name=ACE Bookworm Software Uninstaller
Name[zh_CN]=ACE Bookworm软件卸载器
Comment=用于卸载ACE容器的应用
Type=Application
Exec=/opt/apps/amber-ce-bookworm/files/bin/ace-bookworm-uninstall-helper-gui
Icon=ACE-bookworm-uninstaller
Categories=System
# Generated from the DesktopGenerater component of the z-Tools toolkit

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Categories=utils
Exec=bookworm-run %U
Icon=amber-ce-bookworm
Name=Amber CE Bookworm
Name[zh_CN]=ACE Bookworm兼容环境
Keywords=BCM,ACE,ace,mode
StartupNotify=true
Type=Application
Terminal=true
Categories=System

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@@ -61,8 +61,6 @@ bwrap --dev-bind $chrootEnvPath/ / \
echo "Update the flamescion container tools"
cp -r `dirname $chrootEnvPath`/flamescion-container-tools/ $chrootEnvPath
rm -rf $chrootEnvPath/usr/lib/`gcc -dumpmachine`/dri/dri
# 之前错误的多复制了一个,这里删掉
export container_user_gid="$(sudo -u $non_root_user id -rg)"
export container_user_home="/home/${non_root_user}"

View File

@@ -98,6 +98,7 @@ ENV_VARS=(
"PULSE_SERVER /run/user/\$uid/pulse/native"
"PATH /flamescion-container-tools/bin-override:\$PATH"
"IS_ACE_ENV 1"
"XDG_DATA_DIRS /flamescion-container-tools/additional-data-dir-in-container:\$XDG_DATA_DIRS"
)
BIND_DIRS=(
@@ -105,6 +106,7 @@ BIND_DIRS=(
"--dev-bind-try /media /media"
"--dev-bind-try /mnt /mnt"
"--dev-bind-try /tmp /tmp"
"--dev-bind-try /data /data"
"--dev /dev"
"--dev-bind-try /dev/dri /dev/dri"
"--proc /proc"
@@ -115,10 +117,8 @@ BIND_DIRS=(
"--ro-bind-try /usr/share/themes /usr/local/share/themes"
"--ro-bind-try /usr/share/icons /usr/local/share/icons"
"--ro-bind-try /usr/share/fonts /usr/local/share/fonts"
"--ro-bind-try $(realpath /etc/localtime) /etc/localtime"
"--dev-bind-try /etc/resolv.conf /etc/resolv.conf"
"--dev-bind-try /home /home"
)
EXTRA_ARGS=(
"--hostname Amber-CE-Bookworm"

View File

@@ -98,12 +98,14 @@ ENV_VARS=(
"PULSE_SERVER /run/user/\$uid/pulse/native"
"PATH /flamescion-container-tools/bin-override:\$PATH"
"IS_ACE_ENV 1"
"XDG_DATA_DIRS /flamescion-container-tools/additional-data-dir-in-container:\$XDG_DATA_DIRS"
)
BIND_DIRS=(
"--dev-bind $chrootEnvPath/ /"
"--dev-bind-try /media /media"
"--dev-bind-try /tmp /tmp"
"--dev-bind-try /data /data"
"--dev /dev"
"--dev-bind-try /dev/dri /dev/dri"
"--proc /proc"

View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ "$UID" != "0" ];then
pkexec $0
exit
fi
bookworm-run /opt/ace-host-integration/ace-host-integration

View File

@@ -1,5 +1,5 @@
Package: ace-host-integration
Version: 1.2.1
Version: 1.2.2
Section: misc
Priority: optional
Depends: bash

View File

@@ -1,5 +1,5 @@
#!/bin/bash
LANGUAGE=en_US
export LANGUAGE=en_US
@@ -93,6 +93,9 @@ fi
# The code above is modified from https://blog.csdn.net/yaxuan88521/article/details/120516298
if [ $(which aptss) ];then
APT_COMMAND=aptss
/usr/bin/apt update

View File

@@ -0,0 +1 @@
# File in this dir will be seen as one of XDG_DATA_DIRS in ACE container.

View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Exec=xdg-open %U
MimeType=inode/directory;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;application/msword;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/x-gzip;application/zip;application/rar;application/x-tar;application/pdf;application/rtf;image/gif;image/jpeg;image/jp2;image/png;image/tiff;image/bmp;image/svg+xml;image/webp;image/x-icon;application/kswps;application/kset;application/ksdps;application/x-photoshop;application/x-coreldraw;application/x-shockwave-flash;text/plain;application/x-javascript;text/javascript;text/css;text/html;application/xhtml+xml;text/xml;text/x-vcard;application/x-httpd-php;application/java-archive;application/vnd.android.package-archive;application/octet-stream;application/x-x509-user-cert;audio/mpeg;audio/midi;audio/x-wav;audio/x-mpegurl;audio/x-m4a;audio/ogg;audio/x-realaudio;video/mp4;video/mpeg;video/quicktime;video/x-m4v;video/x-ms-wmv;video/x-msvideo;video/webm;video/x-flv;application/xhtml_xml;
Name=ace-run-in-host-os
NoDisplay=true
Terminal=false
TryExec=
Type=Application
Version=1.0

View File

@@ -1,3 +1,4 @@
#!/bin/bash
### We do not want users to install ACE in ACE. Run inside this container instead
${@}
### We do not want users to install ACE in ACE.
echo "Running ACE in ACE is NOT Tested or recommended. Exit"
exit 1

View File

@@ -17,9 +17,7 @@ fi
printf "\"%s\" ALL = (root) NOPASSWD:ALL\n" "${container_user_name}" >> /etc/sudoers.d/sudoers
fi
chmod 440 /etc/sudo.conf
chmod 440 /etc/sudoers
chmod 440 /etc/sudoers.d
printf "ACE: Setting up groups...\n"
@@ -125,8 +123,10 @@ ln -sfv /flamescion-container-tools/bin-override/host-spawn-$(uname -m) /flamesc
apt install --reinstall /flamescion-container-tools/ace-host-integration.deb
cd /
mkdir -p /flamescion-container-tools/data-dir
cd /flamescion-container-tools/data-dir/
ln -sfv ../../usr/share/applications/ .
ln -sfv ../../usr/share/icons/ .
ln -svf ../../usr/share/mime .
update-desktop-database /usr/share/applications || true
update-mime-database /usr/share/mime || true

View File

@@ -0,0 +1 @@
# App in this dir will be integrated to host os. Will create symbol link when installing

View File

@@ -0,0 +1,6 @@
# ACE app runs in a container, need privileges within user namespace, so we need to set it
kernel.unprivileged_userns_clone=1
# Ubuntu 24.04 has more limitation on unprivileged user namespace,so we have to disable them.
# refer to https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
kernel.apparmor_restrict_unprivileged_unconfined=0
kernel.apparmor_restrict_unprivileged_userns=0

View File

@@ -12,6 +12,6 @@ fi
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
ACE_path="/opt/apps/amber-ce-bookworm/files/ace-env/flamescion-container-tools/data-dir/"
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${ACE_path}"
fi

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 93 KiB

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<vendor>bookworm.ace-gxde-fixer</vendor>
<icon_name>x-package-repository</icon_name>
<action id="bookworm.ace-gxde-fixer">
<description>运行bookworm.ace-gxde-fixer需要权限</description>
<message>要使用bookworm.ace-gxde-fixer需要权限</message>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/opt/apps/amber-ce-bookworm/files/bin/bookworm.ace-gxde-fixer</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>