6

在容器中运行Linux版QQ

 3 years ago
source link: https://www.lujun9972.win/blog/2019/10/26/%E5%9C%A8%E5%AE%B9%E5%99%A8%E4%B8%AD%E8%BF%90%E8%A1%8Clinux%E7%89%88qq/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

在容器中运行Linux版QQ

今天花了点时间把QQ for Linux做到docker容器中去了。 比较麻烦的一点就是需要在容器中安装dbus和fcitx输入法(目前只安装了fcitx-sunpinyin)来提供输入法。

至于如何直接使用host上安装的输入法,我还没有找到,希望各位大佬指点迷津。

使用方法很简单,执行下面命令

xhost +local:
docker run -it --name qq --device /dev/dri -v /dev/shm:/dev/shm --device /dev/snd -v /tmp/.X11-unix/:/tmp/.X11-unix -e DISPLAY=${DISPLAY} -v /run/user/${UID}/pulse:/run/user/0/pulse -v /etc/machine-id:/etc/machine-id -v /usr/share/fonts/:/usr/share/fonts/ lujun9972/qq

运行界面如下:

screenshot-70.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK