You are not logged in.

#1 2015-04-02 14:38:11

hatuey
Member
Registered: 2013-07-07
Posts: 6

startx from tmux

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

#2 2015-04-02 14:42:51

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: startx from tmux

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

#3 2015-04-02 14:45:36

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: startx from tmux

hatuey wrote:

startx as root with sudo.

Don't do that!
yikes

Offline

#4 2015-04-02 15:13:19

hatuey
Member
Registered: 2013-07-07
Posts: 6

Re: startx from tmux

loafer wrote:

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

#5 2015-04-02 15:15:01

hatuey
Member
Registered: 2013-07-07
Posts: 6

Re: startx from tmux

Head_on_a_Stick wrote:
hatuey wrote:

startx as root with sudo.

Don't do that!
yikes

Of course I don't. I just did it once to try and figure out what the problem is.

Offline

#6 2015-04-02 16:07:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: startx from tmux

I start X on some ttys and have tmux running on others.

Offline

Board footer

Powered by FluxBB