Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems installing OSK? Do this instead! [no clickbait] #115

Open
secureshadow opened this issue Nov 20, 2023 · 0 comments
Open

Problems installing OSK? Do this instead! [no clickbait] #115

secureshadow opened this issue Nov 20, 2023 · 0 comments

Comments

@secureshadow
Copy link

secureshadow commented Nov 20, 2023

Hello,

You probably are in the same situation as me: ruby Launcher = fatal error. Here is the solution. I will use the help of the following repo: OSK on docker and also mentioned on issue #103

Here are the commands and the errors I got using Linux Mint as my main OS:

git clone https://github.com/kestr31/Docker-OpenSatKit

cd Docker-OpenSatKit/

DOCKER_BUILDKIT=1 docker build --no-cache --build-arg BASEIMAGE=ubuntu --build-arg BASETAG=18.04 --build-arg OSK_VERSION=v2.5 -t kestr3l/opensatkit:18.04-v2.5-original -f Dockerfile . ERROR: BuildKit is enabled but the buildx component is missing or broken. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/

docker buildx version

Got this error:
docker: 'buildx' is not a docker command. See 'docker --help'

Solved it with:
mkdir -p ~/.docker/cli-plugins wget -O ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.10.2/buildx-v0.10.2.linux-amd64

Continue with:
mkdir -p ~/.docker/cli-plugins wget -O ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.10.2/buildx-v0.10.2.linux-amd64

docker buildx version

docker buildx create --use goofy_perlman

DOCKER_BUILDKIT=1 docker build --no-cache --build-arg BASEIMAGE=ubuntu --build-arg BASETAG=18.04 --build-arg OSK_VERSION=v2.5 -t kestr3l/opensatkit:18.04-v2.5-original -f Dockerfile .

xhost +

docker run -it --rm -e DISPLAY=$DISPLAY -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY -e QT_NO_MITSHM=1 -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR -v /tmp/.X11-unix:/tmp/.X11-unix --device /dev/ttyUSB0 --net host --ipc host --gpus all --privileged --name OpenSatKit kestr3l/opensatkit:18.04-v2.5-original

Got this error:
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

Solved it with:
docker run -it --rm -e DISPLAY=$DISPLAY -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY -e QT_NO_MITSHM=1 -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR -v /tmp/.X11-unix:/tmp/.X11-unix --device /dev/ttyUSB0 --net host --ipc host --privileged --name OpenSatKit kestr3l/opensatkit:18.04-v2.5-original

Try also for mincom:
docker exec -it OpenSatKit minicom -s

Now, I recommend you use an alias to run the OSK:
nano ~/.bashrc
alias launchosk='docker run -it --rm -e DISPLAY=$DISPLAY -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY -e QT_NO_MITSHM=1 -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR -v /tmp/.X11-unix:/tmp/.X11-unix --device /dev/ttyUSB0 --net host --ipc host --privileged --name OpenSatKit kestr3l/opensatkit:18.04-v2.5-original'
source ~/.bashrc
launchosk

Probably better in the future to use a premade virtual box image or a docker container for OSK.
Hope this helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant