singularity deepin
v3.9.7
위챗 이미지 다운로드
sudo wget https://github.com/brighill/singularity-deepin/releases/download/stable/wechat.sif -O /opt/wechat.sif
특이점 설치(세부정보)
젠투:
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
센토스:
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
우분투:
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
위챗 실행
singularity exec -B /run /opt/wechat.sif /opt/apps/com.qq.weixin.deepin/files/run.sh
debootstrap 및 singularity 설치
젠투:
echo " app-containers/apptainer suid " | sudo tee /etc/portage/package.use/apptainer
sudo emerge dev-util/debootstrap app-containers/apptainer
센토스:
sudo yum install epel-release -y
sudo yum install debootstrap apptainer-suid -y
우분투:
sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt update
sudo apt install debootstrap apptainer-suid -y
이미지 빌드
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/
위챗 실행
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
호스트는 xdg-open-server를 실행하며 위챗 채팅 파일과 링크는 호스트 소프트웨어를 호출하여 직접 열 수 있습니다.
# 编译
gcc -lX11 -lpthread main.c -o xdg-open-server
# 运行
./xdg-open-server
세부 정보 https://github.com/kitsunyan/xdg-open-server