docker-steam-headless icon indicating copy to clipboard operation
docker-steam-headless copied to clipboard

Quality of Life improvement for user in Mainland China.

Open OrvilleQ opened this issue 1 year ago • 4 comments

Is your feature request related to a problem?

Due to the existence of GFW and the complexity of Chinese characters, users in mainland China cannot get a good out-of-the-box experience with this amazing project.

I listed some content below that will greatly improve the experience for users in mainland China and Chinese language users.

What is your feature request?

  • [ ] Flatpak only has a maximum download speed of 50kb/s in Mainland China, so when detects is running on a Chinese IP address, make flatpak automatically use a mirror from China.
  • [ ] Lack of CJK fonts.
  • [ ] Lack of input method like fcitx or ibus to input CJK characters.

Are there any workarounds?

I'll open some pull request in the next few weeks and implement all features I requested.

Additional Context

No response

OrvilleQ avatar Mar 22 '24 15:03 OrvilleQ

  1. http_proxy和https_proxy能对环境变量内的应用生效
  2. font在init.d下新建一个font.sh
#!/bin/sh
apt update
apt install fonts-noto-cjk -y

image 输入法没琢磨,但是应该也可以通过init.d实现

仅做记录,方便其他人参考

copurxia avatar Jan 15 '25 12:01 copurxia

I would love to help add this into the project. Would it be possible to collaborate on Discord to get these quality of life improvements integrated into the image?

Josh5 avatar Jan 15 '25 20:01 Josh5

Use this docker file


FROM josh5/steam-headless

RUN su default -c bash 'flatpak --user remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub'
RUN echo 'Types: deb\nURIs: https://mirrors.tuna.tsinghua.edu.cn/debian\nSuites: bookworm bookworm-updates bookworm-backports\nComponents: main contrib non-free non-free-firmware\nSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg\n\nTypes: deb\nURIs: https://ftp.sjtu.edu.cn/debian-security/\nSuites: bookworm-security\nComponents: main contrib non-free non-free-firmware\nSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg' > /etc/apt/sources.list.d/debian.sources
RUN apt-get update && apt-get install fonts-noto-cjk -y
RUN apt-get clean all

Then build the images with the cmd

docker build . -t josh5/steam-headless:cn

Use this cn image with docker-compose, then the repo mirros and CKJ font display will go well in mainland China.

niehao100 avatar Feb 18 '25 05:02 niehao100