You are not logged in.
My main WM is xmonad and I've got that starting with lxdm on bootup. So now I've been trying to load different desktop sessions using command:
startx /usr/bin/lxsession -- :1 It shows up as it should on tty7 but there is no sound and there's other problems, for example in firefox when I whatch youtube videos they just keep reloading every 3 seconds and then crash.
When I start the command using sudo, everything works but then my firefox, urxvt and other settings aren't loaded and it feels wrong using sudo for this command.
I've also tried running /usr/bin/mate-session and it's the same thing.
What could be the issue? Is it wrong using sudo?
Last edited by mr0no (2014-04-01 01:19:41)
Offline
Do not run X as root (i.e. with sudo).
There is no sound as there isn't an active logind session.
The simplest thing to do would be to switch to the tty you want to use, login, then startx from that tty:
startx /usr/bin/lxsession -- :1 vt$XDG_VTNR"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Do not run X as root (i.e. with sudo).
There is no sound as there isn't an active logind session.
The simplest thing to do would be to switch to the tty you want to use, login, then startx from that tty:
startx /usr/bin/lxsession -- :1 vt$XDG_VTNR
Brilliant! Everything is working as it should be now.
I was actually trying something similair but probably forgot one of the options so it didn't work.
How login works with X and everything else is apparently a blind spot for me, so I will look into that.
Actually one thing... Why isn't .xinitrc in my home directory being executed in the new session?
Offline
Why isn't .xinitrc in my home directory being executed in the new session?
Because you are passing the parameter to startx, so startx runs that instead. If you want to use your xinitrc, don't specify lxsession - or just use xinit.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thank you Trilby, you've been most helpful.
Offline