singularity deepin
v3.9.7
Laden Sie das WeChat-Bild herunter
sudo wget https://github.com/brighill/singularity-deepin/releases/download/stable/wechat.sif -O /opt/wechat.sif
Singularität installieren (Details)
Gentoo:
echo " app-containers/apptainer suid " | sudo tee /etc/portage/package.use/apptainer
sudo emerge app-containers/apptainer
sudo sed -i ' s/# allow setuid-mount squashfs = iflimited/allow setuid-mount squashfs = yes/ ' /etc/apptainer/apptainer.conf
Centos:
sudo yum install epel-release -y
sudo yum install apptainer-suid -y
sudo sed -i ' s/# allow setuid-mount squashfs = iflimited/allow setuid-mount squashfs = yes/ ' /etc/apptainer/apptainer.conf
Ubuntu:
sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt update
sudo apt install apptainer-suid -y
sudo sed -i ' s/# allow setuid-mount squashfs = iflimited/allow setuid-mount squashfs = yes/ ' /etc/apptainer/apptainer.conf
Führen Sie WeChat aus
singularity exec -B /run /opt/wechat.sif /opt/apps/com.qq.weixin.deepin/files/run.sh
Installieren Sie Debootstrap und Singularity
Gentoo:
echo " app-containers/apptainer suid " | sudo tee /etc/portage/package.use/apptainer
sudo emerge dev-util/debootstrap app-containers/apptainer
Centos:
sudo yum install epel-release -y
sudo yum install debootstrap apptainer-suid -y
Ubuntu:
sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt update
sudo apt install debootstrap apptainer-suid -y
Bild erstellen
git clone https://github.com/brighill/singularity-deepin.git
cd singularity-deepin
sudo singularity build /opt/wechat.sif deepin-wechat.def
# 如果提示 > WARNING: 'nodev' mount option set on /tmp, it could be a source of failure during build process
# 则需要设置SINGULARITY_TMPDIR为其他目录:
# sudo mkdir /opt/tmp
# sudo SINGULARITY_TMPDIR=/opt/tmp singularity build /opt/wechat.sif deepin-wechat.def
# sudo rm -rf /opt/tmp
cp -r entries/ * /usr/share/
Führen Sie WeChat aus
singularity exec -B /run /opt/wechat.sif /opt/apps/com.qq.weixin.deepin/files/run.sh
# 运行微信
singularity exec -B /run /opt/wechat.sif /opt/apps/com.qq.weixin.deepin/files/run.sh
# 唤出已运行的WeChat窗口
singularity exec /opt/wechat.sif /opt/deepinwine/tools/sendkeys.sh w wechat 4
# 微信截图
singularity exec /opt/wechat.sif /opt/deepinwine/tools/sendkeys.sh a wechat 3
# 退出微信
singularity exec /opt/wechat.sif /opt/deepinwine/tools/kill.sh wechat
Der Host führt xdg-open-server aus und WeChat-Chatdateien und -Links können direkt durch Aufrufen der Host-Software geöffnet werden.
# 编译
gcc -lX11 -lpthread main.c -o xdg-open-server
# 运行
./xdg-open-server
Details https://github.com/kitsunyan/xdg-open-server