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

tmux command not found #34

Open
HosinLau opened this issue Aug 7, 2019 · 5 comments
Open

tmux command not found #34

HosinLau opened this issue Aug 7, 2019 · 5 comments

Comments

@HosinLau
Copy link

HosinLau commented Aug 7, 2019

Hi, I ran into trouble when running the command ". scripts/local_run_exp.sh", where the cygwin terminal gives "-bash: tmux: command not found". Seems like nobody have ran into this problem before, I hope someone can give a help. Thanks in advance!

@EmanueleLM
Copy link

I had the same problem, on an apt based system (like Ubuntu) an "sudo apt-get install tmux" solves the problem.

@HosinLau
Copy link
Author

Emanuel, thanks for replying. I am on Windows so the sudo apt-get does not work for me. Is there an equivalent here?

@EmanueleLM
Copy link

I'm sure there is a workaround for tmux, but then I think you may face other issues like installing redis, tensorflow and making it all work on Windows. I tried myself to run this code on Windows10, then I ended up installing a virtual machine with vanilla Ubuntu (works like a piece of cacke and in 30 minutes you have a working instance, but you loose a lot in terms of performances), and finally installed Ubuntu 19 on bare metal. In the last two cases it's enough an apt-get install so my strong advice is to install at least Ubuntu.

Another solution is to rent a machine on gcp, ibm cloud or aws I'm currently working with an instance with 90 vcores on gcp and Ubuntu 18.04

Emanuele

@HosinLau
Copy link
Author

Thanks, Emanuele. I am tired of the lagging of VMs. I will try out other solutions.

@EmanueleLM
Copy link

Of course you can see which commands tmux raises in order to spawn the various 'screens' and do it by yourself without tmux. I make you an example with redis spawn that refers to 'local_redis_run.sh'':

#!/bin/sh
tmux new -s redis -d
tmux send-keys -t redis 'redis-server redis_config/redis_master.conf' C-m
tmux split-window -t redis
tmux send-keys -t redis 'redis-server redis_config/redis_local_mirror.conf' C-m
tmux a -t redis

You can replace this config file with two distinct commands (possibly on two different consoles):

redis-server redis_config/redis_master.conf
redis-server redis_config/redis_local_mirror.conf

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

2 participants