wadaru / docker-config

GNU General Public License v3.0
0 stars 0 forks source link

Docker for tiryoh/ros-desktop-vnc:noetic(x86_64) cannot work well on Apple silicon #1

Open wadaru opened 2 months ago

wadaru commented 2 months ago

Using this Docker image, lxpanel cannot startup well. So, x11vnc cannot work. The reason we use x86_64 on the apple silicon, there are the packages of clips and clipsmm not for arm but for i386 and x86_64. So, we setup for clips and clipsmm on the arm's docker image.

wadaru commented 2 months ago

I used old version of tiryoh/ros-desktop-vnc

FROM --platform=linux/x86_64 tiryoh/ros-desktop-vnc:noetic-amd64-20230115T0253

Unfortunaely, lxpanel cannot work well too. So, I focus on the version of the Docker desktop.

wadaru commented 2 months ago

4.25.0 2023-10-26 I used the old version of Docker desktop.

2024-06-16 09:53:20,265 INFO spawned: 'lxpanel' with pid 95 2024-06-16 09:53:21,511 INFO success: lxpanel entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

I think the version of Rosetta for MacOS is not good for lxpanel.

wadaru commented 2 months ago

So, we setup for clips and clipsmm on the arm's docker image.

I try this.

wadaru commented 2 months ago

とりあえず一時しのぎとして, btr2024を起動して,sshでログインして,tightvncserver とicewmをインストールして, .vnc/xstartup の/etc/X11/Xsession をicewm & に書き換えて, vncserver を動かすことで,なんとかvncでの接続が可能になりました. なお,ポートは5902になります. vncserver -kill :2 では,ちゃんとファイルが削除できず,/tmp/.X2-lock と,/tmp/.X11-lock/X2 が残るので手作業で除去する必要があります. xterm を起動するとvncが落ちます(←たぶん,今回のissue に関係しているのは,ここのような気がします). そこで,sshでログインして,export DISPLAY=:2 をした上で,gnome-terminal & を実行することで,なんとかターミナルが手に入ります.

wadaru commented 2 months ago

gazebo を立ち上げたら、落ちた….

wadaru commented 2 months ago

ベースとなっている tiryoh/ros-desktop-vnc:noetic が更新されていたみたいで,ubuntu mate になった模様. 起動スクリプトも,/startup.sh から /entrypoint.sh に変わっていました. そこを修正することで,arm64 版は動くようになりました. x86_64 版も動くのかなぁ.

wadaru commented 2 months ago

https://github.com/docker/for-mac/issues/7220 だめそうですねぇ….