Tag Info

New answers tagged

0

Add the following lines to your tmux.conf (~/.tmux.conf) set -g c0-change-trigger 150 set -g c0-change-interval 100 More info can be found at http://blog.fraggod.net/2014/09/23/tmux-rate-limiting-magic-against-terminal-spamflood-lock-ups.html


0

I had the same issue on my CentOS 7 VPS, and I solved it now. I had install tmux before by: yum install tmux Then I remove it and install it by source code. So I have the same issue problem as you. I realized that I just installed many libraries, so maybe I should reboot the server. So I restart the server, the issue just gone away!!!


0

As @fiximan suggested , I tried to test if tmux session exists or not and then execute some code and finally, with a little tweak I am successful in getting the layout I wanted. Here is what I added to my .bashrc : test -z "$TMUX" && (tmux new-session -d && tmux split-window -h && tmux split-window -v && tmux -2 ...


0

You can use tmux -2 to solve this issue.


1

I'v found a solution. It appears that ttygif allows You to use a starting command with flag -e So it's enough to do ttyrec file_name -e "tmux a" Or in my case record-session -e "tmux a -t my_session"


1

There are more than one solutions here: Use tmux-logging plugin. Use a .bash_profile to log the output to a script. If you want to use record-session you can always use tmuxinator to setup the ENV and run the commands. There are probably more ways to do it, but best way IMHO would be to use the plugin.


0

A useful setting for this is setw -g aggressive-resize on added to ~/.tmux.conf. It causes tmux to resize a window based on the smallest client actually viewing it, not on the smallest one attached to the entire session. Taken from https://wiki.archlinux.org/index.php/Tmux


0

After adding the line below into .tmux.conf set -g default-terminal "screen-256color" You still need to add the line below into .vimrc set term=screen-256color Finally, the alias need to be added to .bashrc alias tmux='tmux -2'


2

The answer is to set the destroy-unattached option for extra grouped sessions. From my ~/.bashrc: # Connect/create tmux grouped session automatically. ...


0

It is a bad idea to install "unofficial" software, specially on "enterprise" distributions or any sort of machine with critical jobs. You are taking over the full responsibility of security (and other) fixes, and keeping it in synch with the rest of the system's software (libraries, configuration, security configuration, ...). Look for alternatives, check ...


1

You did not specify the distribution you are using. I guess it is rhel/centos 5 or 6: if so, you just need to add the proper EPEL repository to your YUM configuration and then yum update yum install tmux No need to download/compile it manually.


0

To add repo: Adding, Enabling, and Disabling a Yum Repository For tmux: wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz tar xzvf libevent-2.0.21-stable.tar.gz cd libevent-2.0.21-stable ./configure && make sudo make install then: git clone git://git.code.sf.net/p/tmux/tmux-code tmux cd tmux sh autogen.sh ...


0

Now byobu is based on tmux, the easiest way is to directly use tmux. in my case I use the following syntax: tmux new -d -s session-name /path/to/my/Script.sh and connect to it I use: tmux session has -t-name in your crontab you will have to enter: @reboot tmux new -d -s session-name /path/to/my/Script.sh



Top 50 recent answers are included