unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: 宋文武 <iyzsong@outlook.com>
To: Andreas Reuleaux <rx@a-rx.info>
Cc: Vagrant Cascadian <vagrant@debian.org>,
	help-guix Users <help-guix@gnu.org>
Subject: Re: simple config with just startx not working for me
Date: Sun, 22 Aug 2021 13:55:15 +0800	[thread overview]
Message-ID: <OSZP286MB0664AF6A2157E08DF55E7A15A3C39@OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <87ilzypev3.fsf@softland> (Andreas Reuleaux's message of "Sun, 22 Aug 2021 00:17:20 +0100")

Andreas Reuleaux <rx@a-rx.info> 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---
   tty=$(tty)
   tty=${tty#/dev/tty}
   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	other threads:[~2021-08-22  6:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21 21:15 simple config with just startx not working for me Andreas Reuleaux
2021-08-21 22:17 ` Vagrant Cascadian
2021-08-21 23:17   ` Andreas Reuleaux
2021-08-22  5:55     ` 宋文武 [this message]
2021-08-22 12:57       ` Andreas Reuleaux
2021-08-22 14:01       ` Andreas Reuleaux
2021-08-24  8:14 ` Boris A. Dekshteyn
2021-08-24  8:33   ` Boris A. Dekshteyn
2021-08-24 11:27     ` Andreas Reuleaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OSZP286MB0664AF6A2157E08DF55E7A15A3C39@OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM \
    --to=iyzsong@outlook.com \
    --cc=help-guix@gnu.org \
    --cc=rx@a-rx.info \
    --cc=vagrant@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).