You are not logged in.
Pages: 1
Hello!
I'd like to start a tmux session on every login, so I put what the wiki suggests in my .zshrc and it works as aspected.
But everytime I try to startx as normal user from there, Xorg fails with this output:
Fatal server error:
(EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
My X starts normally from outside of tmux (even I simply detach the session and keep the server running in the background) and also from the inside if I startx as root with sudo.
Thanks in advance.
Offline
What did you actually put in your .zshrc? You will need to post it.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
startx as root with sudo.
Don't do that!
Offline
What did you actually put in your .zshrc? You will need to post it.
[[ $- != *i* ]] && return
[[ -z "$TMUX" ]] && exec tmux attach
But I don't think it really matters, since if I remove it and start tmux manually (and even if I remove .tmux.conf) it behaves just the same.
Offline
hatuey wrote:startx as root with sudo.
Don't do that!
Of course I don't. I just did it once to try and figure out what the problem is.
Offline
I start X on some ttys and have tmux running on others.
Offline
Pages: 1