Last active
January 8, 2024 12:33
-
-
Save jin3110/dafd6c78b9734627b6fb to your computer and use it in GitHub Desktop.
How to install tmux in CoreOS toolbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage | |
# ===== | |
# ~~~ | |
# /opt/bin/tmux.sh [tmux args...] | |
# ~~~ | |
# | |
# How to install tmux in CoreOS toolbox | |
# ===================================== | |
# * `toolbox yum -y install tmux` | |
# * `sudo -s -H` | |
# * `mkdir -p /opt/bin` | |
# * `vi /opt/bin/tmux.sh` | |
# * `chmod 755 /opt/bin/tmux.sh` | |
# * To access `fleetctl` just add `--bind-ro=/usr/bin/fleetctl` to the list of bind-mounts in this script. | |
exec toolbox --bind=/run/docker.sock --bind-ro=/usr/bin/docker --bind-ro=/var/log/journal --bind-ro=/etc/machine-id tmux $* |
I had to also install glibc-langpack-en to fix locale errors from tmux.
Hmm, couldn't figure out how to detach though so went with this instead: https://groups.google.com/forum/#!topic/coreos-dev/JAeABXnQzuE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
have you solved the problem where if someone is using
tmux.sh
then another user is logged in and attempts to use tmux or attach to a running tmux, toolbox won't let second user in?