Install tmux with no root and Internet
No Internet access in 2020?? Well, if you’re working in this industry then you will not suprise about this. There is no way we can access to the Internet from the login server, and also not root at all. However we still can install some of our beloved tools without asking IT team.
What do we need first
You should download these source files below to your local laptop and then copy them to your home dir in the linux server.
libevent and ncurses are two libraries that required for tmux. Your linux env might has these 2 libraries already, but there is high possibility that those libs are too old and incompatible.
Then we install them locally
First create your local directory
Secondly install libevent
The --prefix=$HOME/local
is commonly used when installing a tool without root. Basically it will guide the compiling step to store any data to the $HOME/local
. So remember this for later use.
Then install ncurses
Finally install tmux
Create a bash script, then copy this code below to that bash script (not tcsh or csh script), for example compiletmux.sh
Then run this new script compiletmux.sh
, you’ll see a tmux
binary file in current directory. Finally, copy this tmux to $HOME/local/bin
and enjoy your new life with tmux.
[Tags
linux_env
cli_app
]