Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tmux]

tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

0
votes
1answer
23 views

Can I re-read my edited tmux.conf from within a tmux session?

Trying to avoid having to close the tmux session just to change the key bindings.
0
votes
1answer
39 views

Create system unit for tmux

My goal is to be able to create a system unit on Ubuntu, so that commands are run when my server reboots. However, I don't know how to do it when it comes to tmux. I am not able to run commands after ...
0
votes
0answers
30 views

Keep vps process always!

I bought a VPS, and I want to run a java instance. I want to keep this process always(after closing putty, after closing my PC) I tried “tmux”. With tmux, the java program still running after closing ...
1
vote
1answer
28 views

htop isn't displaying consistent information

I'm running a computationally intense serial python script, and htop is giving me an inconsistent information. It shows that a thread is almost 100% in use, but that python isn't using any CPU power. ...
0
votes
0answers
249 views

18.04 - how to create PID file in systemd unit?

I am trying to properly setup my minecraft server with systemd so that it correctly determines the main PID for the process. I have the following systemd service unit: [Unit] Description=Minecraft ...
0
votes
0answers
52 views

Tmux terminal only supports 8 colors, but default terminal supports 256

I am using gnome-terminal. I have installed Tmux and I am trying to make it look like this: However, my tmux looks like this: I added the following lines into my .tmux.conf: # set default terminal ...
3
votes
1answer
122 views

What is the best way to run a server application on ubuntu?

This is my first attempt at running a Linux server. I have a server application which I want to run on a server to which I have ssh access. If this were a Windows server, I'd just open a remote ...
0
votes
0answers
19 views

Tmux help - keeping the session open after script completion

I want to run one command to start tmux AND run a command, but I want the tmux session to stay open after the command finishes in tmux. The command I'm currently using is:tmux new-session -d -s ...
1
vote
1answer
63 views

How to configure conky in a tmux session?

I want to have a custom footer in my tmux session with conky, my conky config as per conky official recommendation for screen: conky.config = { out_to_x = false, out_to_console = true, ...
1
vote
0answers
28 views

byobu-tmux seems to have a memory leak, how can I find it?

As you can see this instance has been running for 5+weeks and is now using nearly 1GB of memory. $ ps auxww | grep tmux jrwren 9839 6.0 11.7 969508 943140 ? Ss Jun27 3201:33 tmux -u -2 -f ...
1
vote
0answers
28 views

Preserve X between Ssh -X sessions

I have a powerful Ubuntu workstation with EDA tools installed, and several Windows-10 laptops on my network. Laptop Windows users have MobaXterm installed, as an X-server, ssh and sftp clients. They ...
1
vote
0answers
245 views

Errors In tmux in ubuntu 18.04

while running tmux the following errors are shown in ubuntu 18.04 : X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 140 (RANDR) Minor ...
0
votes
0answers
86 views

Change tmux qhortcuts so it to behave like iTerm2

I'm switching from MacOS to Ubuntu. I start pimping everything. Regarding the terminal, I stick with the default one, but I'm using Tilda on top of it (wonderful!) and now tmux in order to be able to ...
0
votes
0answers
28 views

How to close all java process within a Tmux session when I exit the Tmux Session?

I've some of my java process running inside a tmux session and some outside of it. now I want to close all my java process that were runnning inside the tmux session without disturbing the ones ...
3
votes
1answer
69 views

How to write in bash to ssh to different machine and create tmux session then run some command in it

Basically I want to write some script like #!/bin/bash for idx in 1 2 3 4 5 6 do ssh machine$idx tmux new-session -d -s "myTempSession$idx" python run.py done which can do the thing ...
3
votes
1answer
179 views

Terminal rows are misaligned when using TMUX over SSH

I updated Ubuntu from 16.04 to 18.04 last month, and have noticed some odd behaviour when using TMUX over SSH ever since. (This issue does not occur on the console directly.) To access this shell I'm ...
0
votes
0answers
78 views

The cursor appears before the line number after pressing down arrow in vim Insert mode with tmux

I use tmux2.1, vim8.1 in ubuntu16.04.4. And xshell-5 to connect to my server. This only happened when I use .vimrc and inside tmux. And real position of cursor is correct , only show error. After ...
0
votes
1answer
124 views

Claymore miner not work with screen or tmux

I have 10 GPU attached to one system and want to mine with all, as ubuntu GUI not allow to run 10 GPU at a time, So will go with the command line and able to mine there. Now I want to run my miner on ...
1
vote
0answers
347 views

Terminal in Tmux is 256 color but Vim isn't

I'm new to Ubuntu. Recently I installed tmux on my Ubuntu 16.04. The terminal screen in tmux shows 256 color correctly. However, when I opened vim in tmux, the color was different from what normally ...
0
votes
1answer
234 views

Startup application not working after login

I have created one myscript.sh file as following #!/bin/bash source ~/.profile cd $GOPATH/src revel run test/streetcom I need to run this file at startup after login. I tried using startup ...
0
votes
1answer
100 views

Tmux doesn't render some symbols properly

I'm using powerline-go to generate the bash prompt. It works fine in the tilda (also Konsole), like so: Which is fine. However, the moment I open tmux it becomes messed up: Basically, the segment ...
0
votes
0answers
134 views

Ending tmux server

How do I end tmux with a command. I do know that Ctrl-d detaches a session and "exit" in a window ends the window, obviously. But the server process does not end until the last bit is closed. Suppose ...
3
votes
2answers
1k views

tmux: error while loading shared libraries: libevent-2.0.so.5

After upgrade ubuntu 16 to 18, I got this error when executing tmux: tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory and here'...
2
votes
0answers
251 views

Configure xfce4-terminal to recognize ANSI OSC 52 escape sequences to control the clipboard

tmux can put text into the system clipboard using ANSI OSC (Operating System Control) 52 escape sequences, but the terminal emulator needs to recognize them. xfce4-terminal, out-of-the-box doesn't ...
0
votes
0answers
220 views

Change Shell PS1 in tmux using a local version of .bashrc

I'm not sure if this is standard procedure but I load my tmux config locally inside the project so when I press yarn start form a new computer. I can get back to my environment. I was wondering if ...
2
votes
0answers
72 views

Strange behaviour on last line in terminal using Tmux in SSH session

I am connecting to an Ubuntu 16.4 server over SSH. On the remote computer, I am using Tmux. On the local machine, I am on Windows 10. This behaviour is the same no matter if I am using Cygwin or ...
0
votes
1answer
67 views

Tmux: jumping over words in the terminal

In a regular terminal (i.e. no multiplexer) I can use the combination of Ctrl-Left/Right arrows to jump over several words. However, in tmux I am not able to do that. PS: I am still reading Tmux by ...
0
votes
0answers
61 views

tmux strange characters unable to return back

I was running a tmux session, and when I was trying to detach the session by ctrl+b d, I don't know if I occasionally typed some keys that brings the screen of can someone help?
1
vote
1answer
443 views

Open GUI App On Command Line

How can we open Gtk and other gui apps via the command line with Wayland? When I try to open a basic PyGTK script or Gedit I get this error: chris@fluffie:~/workspace/wiki-web$ gedit No protocol ...
0
votes
1answer
707 views

How do I split a terminal into two “views” (or two parts) so I don't have to scroll up / down?

Nginx log is being generated real time with watch -n 1 "tail -n 1000 nginx.log" I want it to appear on the right side of the terminal. How can I make 2 or 3 screens? I have a very wide screen (...
1
vote
0answers
244 views

Is there a way to create a detached BYOBU session on system boot?

First off - Thank you Dustin for creating such an amazing wrapper to TMUX. I have used TMUX for years, but this really brings things to the next level. OK, I am using BYOBU in order to monitor and ...
0
votes
1answer
541 views

Do tmux sessions automatically close after a while?

I initiated 10 tmux sessions with the following command (the value is from 2007 to 2017): tmux new-session -d -s my2017 "python myscript.py 2017" After initiating all these sessions, I first exited ...
0
votes
1answer
842 views

tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

Recently upgraded from 16.04 to 17.10 and when I tried to run tmux it throwing this error. tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file ...
4
votes
1answer
609 views

Remap Caps Lock to Ctrl-b

How can xkb or some other tool be used to permanently bind Caps Lock to ctrl+b while in terminal? (This is to make Caps Lock the default prefix key for tmux. It could also be mapped to a specific key ...
1
vote
1answer
262 views

**tmux** in gnome terminal with sliding cursors in each pane

I find tmux great and I use it all the time. However I am missing the sliding cursors when a cmd output is long enough that it wraps over the full pane height. Are scroll bars in each pane possible ...
1
vote
1answer
2k views

My Ubuntu server shows tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 when I try to run tmux. How can I fix it?

My VPS is NAT. It shows tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 when I try to run tmux command. How can I fix it?
0
votes
0answers
52 views

tmux-aware terminal programs

iTerm on OSX features tmux support for opening windows and tabs. I haven't found anything similar on ubuntu: Is this the case? In its absence, what's the workflow for having multiple persistent ...
1
vote
1answer
2k views

`watch`, `tail`, `grep` combination in `byobu`'s `windows.tmux`

I am (re)writing my windows.tmux for my frequently used byobu sessions. Below is my precise requirement: I would like to have a tab (or window?) with a root prompt. (On start, it waits for the sudo ...
5
votes
1answer
2k views

Tmux Colors Not Working

I have a bit of an odd issue as far as I can tell. When I use tmux I don't get color within the terminal (all text is white, even for things like ls), but my colors work perfectly for vim and other ...
2
votes
0answers
351 views

Ctrl arrow keys not working in tmux inside VirtualBox

I am running a Ubuntu Server 16.10 inside a Virtualbox 5.1.20. In tmux, I am unable to resize the panes using the prefix Ctrl-Up, Ctrl-Down, Ctrl-Left and Ctrl-Right commands. I know the Ctrl key ...
3
votes
0answers
551 views

Shared tmux session as different users

We have been trying to create numerous shared Tmux sessions for various games on our server. A quick google showed up with solutions such as: tmux -S /tmp/game new -s game chgrp game /tmp/game # then ...
1
vote
1answer
255 views

vim combine with tmux

I want to ask about vim+ tmux. I open two file with vim in two tmux pane. How can I copy code from vim in first pane to second pane. I used mode copy of tmux, but It had a number line and created a ...
0
votes
0answers
632 views

Tmux can't focus with mouse and mouse scrolling behaviour changed

I recently upgraded to Ubuntu 16.04 (XUbuntu) and I noticed that the behaviour of tmux has been altered. I was previous on 14.04 where I was able to focus individual panes by clicking on them with ...
0
votes
1answer
245 views

vim `set nocompatible` not work in tmux

i install vim and tmux and config both of them, when i open vim directly everything is fine and works very well , but when i run tmux and inside tmux open vim , vim act like vi!. i don't know what is ...
0
votes
1answer
190 views

tmux broken graphics

I am using ubuntu 16.04. On gnome-terminal I am using tmux. for tmux, I am seeing some weird behavior. In case of colored arrow joining the bar there is a glitch. Is there any way to solve this issue? ...
4
votes
3answers
4k views

How to kill a byobu session?

byobu allows users to create multiple sessions. Once there are multiple sessions, how to kill an entire session? If there is a session foo with 3 windows and bar with 4 windows, to kill session foo, ...
0
votes
0answers
143 views

Troubles with wrong characters in neovim+tmux

I have a problem with extra charaters displayed in my nvim. It works ok until I open a tmux or guake terminal. This looks like next picture(I just wrote :q, but got that strange symbols) strange ...
63
votes
3answers
83k views

How to kill all tmux sessions (or at least multiple sessions) from the CLI?

How to kill all tmux sessions (or at least multiple sessions) from the (Ubuntu) CLI? When I do ps aux | grep tmux I see 3 processes: UU 2970 0.0 0.0 19556 1228 pts/0 S+ 02:48 0:00 ...
7
votes
2answers
8k views

Ctrl-b + c, %, n, w, etc not working in tmux console

I installed tmux using sudo apt-get install tmux on my Ubuntu 16.04 system. I tried running tmux by simply typing tmux in terminal.That went on fine. But none of the functions like "creating new ...
1
vote
0answers
96 views

How to force 16.04 servers to close the connection?

Since I upgraded some of my servers from 14.04 to 16.04, I encounter one problem. Suddenly SSH sessions initiated to those 16.04 servers from within a running Tmux session will no longer disconnect ...