unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Gary Johnson <lambdatronic@disroot.org>
To: Bone Baboon <bone.baboon@disroot.org>
Cc: help-guix@gnu.org
Subject: Re: Start Xorg server using xinit manually
Date: Sun, 28 Mar 2021 13:30:21 -0400	[thread overview]
Message-ID: <87eefzfaoi.fsf@disroot.org> (raw)
In-Reply-To: <87czvltzpe.fsf@disroot.org>

Bone Baboon <bone.baboon@disroot.org> writes:

> Here is my operating-system declaration:
>
> <snip>

I don't see anything out of the ordinary here. I don't use the nomodeset
kernel-arguments setting though. Perhaps that's just needed with your
hardware?

> .Xauthority is an empty file.
>
> .Xdefaults has the contents:
> ```
> XTerm*utf8: always
> XTerm*metaSendsEscape: true
>
> ```
> .exwm that contains my EXWM configuration.

Those all sound right to me. My .Xauthority contains a binary magic
cookie. You could delete the file and let X generate it next time it
starts up. Check your file permissions on all those files to make sure
you have read access to them.

> I do not know if the graphics card is supported by Guix?

To me, it sounds like this is still the most likely culprit. Perhaps
your graphics card just doesn't have corresponding drivers in the
linux-libre kernel.

For reference, here's my config.scm. It boots up directly into a
graphical login prompt, and upon logging in, it runs emacs-exwm as my
window manager. My exwm settings are in ~/.exwm, and my general emacs
settings are in ~/.emacs.d/init.el. My ~/.xsession file is a symlink to
my ~/.xinitrc file and ends with a call to exwm.

```
(use-modules ((guix gexp)               #:select (plain-file file-append))
             ((gnu system)              #:select (operating-system %base-packages local-host-aliases))
             ((gnu system nss)          #:select (%mdns-host-lookup-nss))
             ((gnu system shadow)       #:select (user-account %base-user-accounts))
             ((gnu system file-systems) #:select (file-system file-system-label %base-file-systems))
             ((gnu bootloader)          #:select (bootloader-configuration))
             ((gnu bootloader grub)     #:select (grub-bootloader))
             ((gnu services)            #:select (extra-special-file service))
             ((gnu services databases)  #:select (postgresql-service-type postgresql-configuration postgresql-config-file))
             ((gnu services desktop)    #:select (%desktop-services))
             ((gnu packages base)       #:select (coreutils))
             ((gnu packages certs)      #:select (nss-certs))
             ((gnu packages databases)  #:select (postgresql))
             ((gnu packages geo)        #:select (postgis)))

(operating-system
 (host-name "euclid")
 (timezone "America/New_York")
 (locale "en_US.utf8")

 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (target "/dev/sda")))

 (file-systems (cons* (file-system
                       (device (file-system-label "my-root"))
                       (mount-point "/")
                       (type "ext4"))
                      %base-file-systems))

 (swap-devices '("/swapfile"))

 (users (cons* (user-account
                (name "gjohnson")
                (comment "Just Another Lisp Hacker")
                (group "users")
                (supplementary-groups '("wheel" "netdev" "audio" "video" "lp"))
                (home-directory "/home/gjohnson"))
               %base-user-accounts))

 (packages (cons* nss-certs          ; HTTPS access
                  postgresql postgis ; psql, raster2pgsql, shp2pgsql, etc.
                  %base-packages))

 ;; Use the "desktop" services, which include the X11
 ;; log-in service, networking with NetworkManager, and more.
 (services (cons* (extra-special-file "/usr/bin/env" (file-append coreutils "/bin/env"))
                  (service postgresql-service-type (postgresql-configuration
                                                    (postgresql postgresql)
                                                    (extension-packages (list postgis))
                                                    (config-file (postgresql-config-file
                                                                  (hba-file (plain-file "pg_hba.conf" "CONTENTS ELIDED"))
                                                                  (extra-config '(("max_worker_processes" "12")
                                                                                  ("max_parallel_workers" "40")
                                                                                  ("max_parallel_maintenance_workers" "8")
                                                                                  ("max_parallel_workers_per_gather" "4")
                                                                                  ("parallel_leader_participation" "on")))))))
                  %desktop-services))

 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss)

 (hosts-file (plain-file "hosts"
                         (string-append (local-host-aliases host-name)
                                        "CONTENTS ELIDED")))

 (sudoers-file (plain-file "sudoers" "CONTENTS ELIDED")))
```

I actually have emacs and emacs-exwm in my package-manifest.scm file,
which I use for installing all my user profile packages. However, adding
these to config.scm's packages list should be perfectly fine if you want
to keep everything in one place.

Best of luck,
  Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


  reply	other threads:[~2021-03-28 17:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-21 22:05 Start Xorg server using xinit manually Bone Baboon
2021-03-21 23:05 ` jbranso
2021-03-21 23:21   ` nylxs
2021-03-22 17:14     ` Leo Famulari
     [not found]       ` <a03873e7-122d-fa50-21df-295112a5ede5@optonline.net>
2021-03-23  2:39         ` Leo Famulari
2021-03-21 23:58   ` Bone Baboon
2021-03-22  2:55     ` Joshua Branson
2021-03-22 16:49       ` Gary Johnson
2021-03-22 18:34         ` Vincent Legoll
2021-03-22 18:42           ` Leo Famulari
2021-03-23  3:22         ` Bone Baboon
2021-03-23  8:02           ` Sergiu Ivanov
2021-03-24 21:42             ` Bone Baboon
2021-03-23 18:37           ` Gary Johnson
2021-03-26 20:41             ` Bone Baboon
2021-03-28 17:30               ` Gary Johnson [this message]
2021-03-24 21:48       ` Bone Baboon
2021-03-22  3:29 ` Vladimir Sedach
2021-03-24 22:18   ` Bone Baboon
2021-03-25 15:20     ` Gary Johnson

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=87eefzfaoi.fsf@disroot.org \
    --to=lambdatronic@disroot.org \
    --cc=bone.baboon@disroot.org \
    --cc=help-guix@gnu.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).