[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple config with just startx not working for me

From: 宋文武
Subject: Re: simple config with just startx not working for me
Date: Sun, 22 Aug 2021 13:55:15 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Andreas Reuleaux <> writes:

> [...]
> I want to start X on my system with startx - i.e. log into my system
> just from a tty, and then start X by hand (and i3 will be my window
> manager, I just have an .xsession file in my $HOME, where I start i3)

Hello, you can use 'xorg-server-service-type' (not documented, patch
welcome!)  with 'sx' (recommended) or 'xinit':

1. Add 'xorg-server-service-type' to the system config, and reconfigure.
   After this you'll have 'X' and 'Xorg' in '/run/current-system/profile/bin'.

2. Install 'sx' or 'xinit', config them:
   - For 'sx', create the ~/.config/sx/sxrc script, which likely ends
   with 'exec dbus-run-session -- i3' .
   - For 'xinit', create the ~/.xinitrc script and a ~/.xserverrc with:
--8<---------------cut here---------------start------------->8---
   X vt${tty}
--8<---------------cut here---------------end--------------->8---
     This xserverrc is needed for rootless X to start with the current tty.

3. Run 'sx' or 'xinit' from tty.  I think you also need to to be in the
   'video' and 'input' group for this to work.

Hope it helps!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]