Public Repository

Last pushed: 4 months ago
Short Description
Run Eclipse on local X Desktop or on remote X server, input chinese characters (zh_CN.UTF-8, IBus)
Full Description

Run Eclipse on local X Desktop or on any remote X server.
The GUI is still in English, but you can input chinese characters.
The localization for the X server is zh_CN.UTF-8, and the input method must be IBus.

If the Docker server and the X server are located on the same machine :

1. # docker run --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix   --entrypoint "eclipse" mjc77/eclipse-zh

If the Docker server and the X server are located on different machines:

1. on Docker server:
    # docker run -d -p 50002:22 mjc77/eclipse-zh
2. on remote X server ( zh_CN.UTF-8, IBus ):
    $ ssh -X root@your.docker.server -p 50002 "source /root/.bashrc; eclipse"
    (password : uestc)

The content of Dockerfile :

FROM debian:8.8

RUN apt-get update; \
apt-get -y install ssh xauth locales fonts-wqy-zenhei eclipse; \
echo "146 462\n3\n" | dpkg-reconfigure locales; \
mkdir /var/run/sshd; \
sed "s/\(PermitRootLogin\) without-password/\1 yes/g" /etc/ssh/sshd_config > /tmp/aa; \
cat /tmp/aa > /etc/ssh/sshd_config; \
echo "uestc\nuestc\n" | passwd root; \
echo "export GTK_IM_MODULE=ibus XMODIFIERS=@im=ibus QT_IM_MODULE=ibus LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8" >> /root/.bashrc; \
echo "export GTK_IM_MODULE=ibus XMODIFIERS=@im=ibus QT_IM_MODULE=ibus LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8" >> /root/.profile

ENV GTK_IM_MODULE=ibus XMODIFIERS=@im=ibus QT_IM_MODULE=ibus \
LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8

EXPOSE 22

ENTRYPOINT [ "/usr/sbin/sshd", "-D" ]

Docker Pull Command
Owner
mjc77

Comments (0)