Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Tmux error when started. (Read 4003 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: Tmux error when started.

Reply #15
Hey Chris,

so I have added the line to the file and logged in and was able to run xinit without an issue. then I could also run tmux.

But when I add

exec xinit
 
to my bash_profile. and then run tmux I get an error that there is already an xorg session  

Re: Tmux error when started.

Reply #16
Sorry my bad I just needed to add to the `bash_profile` the lines


if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  exec startx
fi

then everything worked

Re: Tmux error when started.

Reply #17
Good to see you figured it out (and reporting the solution). Please, mark this thread as [SOLVED] by editing the first message.

Re: Tmux error when started.

Reply #18
I found tmux issue that can't hold session for non-root user,root can hold tmux session when exit login shell  only.

Re: Tmux error when started.

Reply #19
I found tmux issue that can't hold session for non-root user,root can hold tmux session when exit login shell  only.
(e)logind can close tmux sessions on user logout. You should set "KillUserProcesses=no" in [Login] section of /etc/elogind/logind.conf
ARMtix