all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* LXDE desktop in config.scm
@ 2018-09-18 16:58 znavko
  2018-09-18 21:48 ` Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: znavko @ 2018-09-18 16:58 UTC (permalink / raw)
  To: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2983 bytes --]

Hello! GuixSD is nice for offers to users to have own software sets in one machine. I work with Guix and need more examples on how to write system config.
Please, help me to  write config.scm to use LXDE desktop with Xfce.
Here are presented only xfce-desktop-service, gnome-desktop-service, mate-desktop-service, but no lxde.
So here https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/lxde.scm only mentioned packages, but no services.
I could only add (use-modules (gnu packages lxde)) but lxde did not appeared in login screen. Pressing F1 gives nothing.
Here I could not understand https://www.gnu.org/software/guix/manual/en/html_node/System-Configuration.html#System-Configuration
Please, how to set up lxde with xfce and make lxde default? Where can I read about this?

#cat /etc/config.scm
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce where the
;; root partition is encrypted with LUKS.

(use-modules (gnu)
             (gnu system nss)
             (gnu packages lxde)
             (gnu packages gnuzilla)
)
(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system
  (host-name "antelope")
  (timezone "Europe/Moscow")
  (locale "en_US.utf8")

  ;; Use the UEFI variant of GRUB with the EFI System
  ;; Partition mounted on /boot/efi.
  (bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (target "/dev/sda")))

  ;; Specify a mapped device for the encrypted root partition.
  ;; The UUID is that returned by 'cryptsetup luksUUID'.
  ;(mapped-devices
  ; (list (mapped-device
  ;        (source (uuid "12345678-1234-1234-1234-hash888abc"))
  ;        (target "my-root")
  ;        (type luks-device-mapping))))

  (file-systems (cons (file-system
                        (device "/dev/sda1")
                        (mount-point "/")
                        (type "ext4")
                        )
                      %base-file-systems))
  (swap-devices '("/dev/sda2"))

  (users (cons (user-account
                (name "bob")
                (comment "bob is good too")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/bob"))
               %base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   gvfs              ;for user mounts
                   gedit
                   icecat
                   %base-packages))

  ;; Add GNOME and/or Xfce---we can choose at the log-in
  ;; screen with F1.  Use the "desktop" services, which
  ;; include the X11 log-in service, networking with
  ;; NetworkManager, and more.
  (services (cons* (xfce-desktop-service)
                   %desktop-services))

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

[-- Attachment #2: Type: text/html, Size: 5695 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LXDE desktop in config.scm
  2018-09-18 16:58 LXDE desktop in config.scm znavko
@ 2018-09-18 21:48 ` Leo Famulari
  2018-09-19  8:06   ` Nils Gillmann
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Leo Famulari @ 2018-09-18 21:48 UTC (permalink / raw)
  To: znavko; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

On Tue, Sep 18, 2018 at 04:58:52PM +0000, znavko wrote:
> Here are presented only xfce-desktop-service, gnome-desktop-service, mate-desktop-service, but no lxde.

These services, which provide desktop using XFCE, GNOME, and MATE, are
defined in the file 'gnu/services/desktop.scm':

https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm

Currently, we don't have a desktop service for LXDE.

Maybe a service is not required? It's possible to use i3 without a
desktop service. One just adds 'i3-wm' to the 'packages' field of their
config.scm and it will be available at the login screen.

>   ;; This is where we specify system-wide packages.
>   (packages (cons* nss-certs         ;for HTTPS access
>                    gvfs              ;for user mounts
>                    gedit
>                    icecat
>                    %base-packages))

You could try adding lxde to that list...

> 
>   ;; Add GNOME and/or Xfce---we can choose at the log-in
>   ;; screen with F1.  Use the "desktop" services, which
>   ;; include the X11 log-in service, networking with
>   ;; NetworkManager, and more.
>   (services (cons* (xfce-desktop-service)
>                    %desktop-services))

... and, unless you want to use XFCE, change that to (services
%desktop-services)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LXDE desktop in config.scm
  2018-09-18 21:48 ` Leo Famulari
@ 2018-09-19  8:06   ` Nils Gillmann
  2018-09-19  8:37   ` Nils Gillmann
  2018-09-19 20:54   ` znavko
  2 siblings, 0 replies; 6+ messages in thread
From: Nils Gillmann @ 2018-09-19  8:06 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix@gnu.org

Leo Famulari transcribed 2.3K bytes:
> On Tue, Sep 18, 2018 at 04:58:52PM +0000, znavko wrote:
> > Here are presented only xfce-desktop-service, gnome-desktop-service, mate-desktop-service, but no lxde.
> 
> These services, which provide desktop using XFCE, GNOME, and MATE, are
> defined in the file 'gnu/services/desktop.scm':
> 
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm
> 
> Currently, we don't have a desktop service for LXDE.
> 
> Maybe a service is not required? It's possible to use i3 without a
> desktop service. One just adds 'i3-wm' to the 'packages' field of their
> config.scm and it will be available at the login screen.
> 
> >   ;; This is where we specify system-wide packages.
> >   (packages (cons* nss-certs         ;for HTTPS access
> >                    gvfs              ;for user mounts
> >                    gedit
> >                    icecat
> >                    %base-packages))
> 
> You could try adding lxde to that list...

As far as I know we don't even have a functional LXDE stack?
I've been working slowly on lxde + lxqt, none of them in a
state where you can log into it.

> > 
> >   ;; Add GNOME and/or Xfce---we can choose at the log-in
> >   ;; screen with F1.  Use the "desktop" services, which
> >   ;; include the X11 log-in service, networking with
> >   ;; NetworkManager, and more.
> >   (services (cons* (xfce-desktop-service)
> >                    %desktop-services))
> 
> ... and, unless you want to use XFCE, change that to (services
> %desktop-services)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LXDE desktop in config.scm
  2018-09-18 21:48 ` Leo Famulari
  2018-09-19  8:06   ` Nils Gillmann
@ 2018-09-19  8:37   ` Nils Gillmann
  2018-09-19 20:54   ` znavko
  2 siblings, 0 replies; 6+ messages in thread
From: Nils Gillmann @ 2018-09-19  8:37 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix@gnu.org

Nevermind my last email, I got a bit mixed up between lxqt and lxde.
(Oops, I even added 'lxde' myself)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LXDE desktop in config.scm
  2018-09-18 21:48 ` Leo Famulari
  2018-09-19  8:06   ` Nils Gillmann
  2018-09-19  8:37   ` Nils Gillmann
@ 2018-09-19 20:54   ` znavko
  2018-09-23 16:26     ` Nils Gillmann
  2 siblings, 1 reply; 6+ messages in thread
From: znavko @ 2018-09-19 20:54 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix@gnu.org

Thank you very much, Leo Famulari! Yes, only 2 changes in config make my system offers LXDE on login screen.  These:
adding to (use-modules (gnu packages lxde))
and adding to (packages (cons* lxde))
But I have 4 troubles now.
First is that I have all DEs installed now, but I want only Xfce and LXDE.
I have 5 elements on login screen now:
- Xfce, as it was
- KDE,
- LXDE, as I wanted to add
- Gnome
- Openbox
Sorry, why? I do not need KDE, Gnome. I thought this config only adds LXDE. Please, what is wrong in my config? I only added lxde, gedit, icecat to (packages) list and (gnu packages lxde), (gnu packages gnuzilla) to (use-modules) list.

# cat /etc/config.scm
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce where the
;; root partition is encrypted with LUKS.

(use-modules (gnu)
             (gnu system nss)
             (gnu packages lxde)
             (gnu packages gnuzilla)
)
(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system
  (host-name "antelope")
  (timezone "Europe/Moscow")
  (locale "en_US.utf8")

  ;; Use the UEFI variant of GRUB with the EFI System
  ;; Partition mounted on /boot/efi.
  (bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (target "/dev/sda")))

  ;; Specify a mapped device for the encrypted root partition.
  ;; The UUID is that returned by 'cryptsetup luksUUID'.
  ;(mapped-devices
  ; (list (mapped-device
  ;        (source (uuid "12345678-1234-1234-1234-hash888abc"))
  ;        (target "my-root")
  ;        (type luks-device-mapping))))

  (file-systems (cons (file-system
                        (device "/dev/sda1")
                        (mount-point "/")
                        (type "ext4")
                        )
                      %base-file-systems))

  (swap-devices '("/dev/sda2"))

  (users (cons (user-account
                (name "bob")
                (comment "bob is good too")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/bob"))
               %base-user-accounts))


  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   gvfs              ;for user mounts
                   gedit
                   icecat
                   lxde
                   %base-packages))

  ;; Add GNOME and/or Xfce---we can choose at the log-in
  ;; screen with F1.  Use the "desktop" services, which
  ;; include the X11 log-in service, networking with
  ;; NetworkManager, and more.
  (services (cons* (xfce-desktop-service)
                   %desktop-services))

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


The second problem is that in LXDE I cannot switch keyboard to another language. I added applet 'Keyboard handler', configured it not to use system configurations, added russian (and turkish to try), checked Left-Win and also Alt-Shift for switch, but no keyboard keys, no mouse clicks to flag nothing giving effect. I have only US keyboard. How to figure? May be, I need to add other packages to config.scm like lxde-common, lxpannel, lxinput?

The third problem, when I add applet Volume control it does not appears. I need something else to add to config? In Xfce I had nice pavucontrol applet on a panel.

Th fourth is that on Xfce and LXDE I have no menu icons in video players, also in xfce-terminal: http://0x0.st/sxlH.png http://0x0.st/sxkQ.png  What to do?

I ask this cause last `guix system reconfigure /etc/config.scm` worked too long on my Lenovo G50-30 and I need exact instructions that were never described specially for me.




‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
среда, сентябрь 19, 2018 12:48 ночи, Leo Famulari <leo@famulari.name> пишет:

> On Tue, Sep 18, 2018 at 04:58:52PM +0000, znavko wrote:
>
> > Here are presented only xfce-desktop-service, gnome-desktop-service, mate-desktop-service, but no lxde.
>
> These services, which provide desktop using XFCE, GNOME, and MATE, are
> defined in the file 'gnu/services/desktop.scm':
>
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm
>
> Currently, we don't have a desktop service for LXDE.
>
> Maybe a service is not required? It's possible to use i3 without a
> desktop service. One just adds 'i3-wm' to the 'packages' field of their
> config.scm and it will be available at the login screen.
>
> > ;; This is where we specify system-wide packages.
> > (packages (cons* nss-certs ;for HTTPS access
> > gvfs ;for user mounts
> > gedit
> > icecat
> > %base-packages))
>
> You could try adding lxde to that list...
>
> > ;; Add GNOME and/or Xfce---we can choose at the log-in
> > ;; screen with F1. Use the "desktop" services, which
> > ;; include the X11 log-in service, networking with
> > ;; NetworkManager, and more.
> > (services (cons* (xfce-desktop-service)
> > %desktop-services))
>
> ... and, unless you want to use XFCE, change that to (services
> %desktop-services)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LXDE desktop in config.scm
  2018-09-19 20:54   ` znavko
@ 2018-09-23 16:26     ` Nils Gillmann
  0 siblings, 0 replies; 6+ messages in thread
From: Nils Gillmann @ 2018-09-23 16:26 UTC (permalink / raw)
  To: znavko; +Cc: help-guix@gnu.org

znavko transcribed 5.3K bytes:
> Thank you very much, Leo Famulari! Yes, only 2 changes in config make my system offers LXDE on login screen.  These:
> adding to (use-modules (gnu packages lxde))
> and adding to (packages (cons* lxde))
> But I have 4 troubles now.
> First is that I have all DEs installed now, but I want only Xfce and LXDE.
> I have 5 elements on login screen now:
> - Xfce, as it was
> - KDE,
> - LXDE, as I wanted to add
> - Gnome
> - Openbox
> Sorry, why? I do not need KDE, Gnome. I thought this config only adds LXDE. Please, what is wrong in my config? I only added lxde, gedit, icecat to (packages) list and (gnu packages lxde), (gnu packages gnuzilla) to (use-modules) list.

I think KDE and GNOME appear (but you won't be able to use them iirc
since you don't have them) because LXDE in theory can be used with
other DMs. I never tested this capability in GuixSD and doubt that it
will work since I only cared about LXDE alone when I packaged
this. Just regard it as a sideeffect which should eventually get
fixed. If it bothers you too much, report a bug about it.

If you want to know why this happens: SLIM (or whatever login manager
you use) detects any .desktop file in a certain location. LXDE
provides these .desktop files.

> 
> # cat /etc/config.scm
> ;; This is an operating system configuration template
> ;; for a "desktop" setup with GNOME and Xfce where the
> ;; root partition is encrypted with LUKS.
> 
> (use-modules (gnu)
>              (gnu system nss)
>              (gnu packages lxde)
>              (gnu packages gnuzilla)
> )
> (use-service-modules desktop)
> (use-package-modules certs gnome)
> 
> (operating-system
>   (host-name "antelope")
>   (timezone "Europe/Moscow")
>   (locale "en_US.utf8")
> 
>   ;; Use the UEFI variant of GRUB with the EFI System
>   ;; Partition mounted on /boot/efi.
>   (bootloader (bootloader-configuration
>                 (bootloader grub-bootloader)
>                 (target "/dev/sda")))
> 
>   ;; Specify a mapped device for the encrypted root partition.
>   ;; The UUID is that returned by 'cryptsetup luksUUID'.
>   ;(mapped-devices
>   ; (list (mapped-device
>   ;        (source (uuid "12345678-1234-1234-1234-hash888abc"))
>   ;        (target "my-root")
>   ;        (type luks-device-mapping))))
> 
>   (file-systems (cons (file-system
>                         (device "/dev/sda1")
>                         (mount-point "/")
>                         (type "ext4")
>                         )
>                       %base-file-systems))
> 
>   (swap-devices '("/dev/sda2"))
> 
>   (users (cons (user-account
>                 (name "bob")
>                 (comment "bob is good too")
>                 (group "users")
>                 (supplementary-groups '("wheel" "netdev"
>                                         "audio" "video"))
>                 (home-directory "/home/bob"))
>                %base-user-accounts))
> 
> 
>   ;; This is where we specify system-wide packages.
>   (packages (cons* nss-certs         ;for HTTPS access
>                    gvfs              ;for user mounts
>                    gedit
>                    icecat
>                    lxde
>                    %base-packages))
> 
>   ;; Add GNOME and/or Xfce---we can choose at the log-in
>   ;; screen with F1.  Use the "desktop" services, which
>   ;; include the X11 log-in service, networking with
>   ;; NetworkManager, and more.
>   (services (cons* (xfce-desktop-service)
>                    %desktop-services))
> 
>   ;; Allow resolution of '.local' host names with mDNS.
>   (name-service-switch %mdns-host-lookup-nss))
> 
> 
> The second problem is that in LXDE I cannot switch keyboard to another language. I added applet 'Keyboard handler', configured it not to use system configurations, added russian (and turkish to try), checked Left-Win and also Alt-Shift for switch, but no keyboard keys, no mouse clicks to flag nothing giving effect. I have only US keyboard. How to figure? May be, I need to add other packages to config.scm like lxde-common, lxpannel, lxinput?
> 
> The third problem, when I add applet Volume control it does not appears. I need something else to add to config? In Xfce I had nice pavucontrol applet on a panel.
> 
> Th fourth is that on Xfce and LXDE I have no menu icons in video players, also in xfce-terminal: http://0x0.st/sxlH.png http://0x0.st/sxkQ.png  What to do?
> 
> I ask this cause last `guix system reconfigure /etc/config.scm` worked too long on my Lenovo G50-30 and I need exact instructions that were never described specially for me.
> 
> 
> 
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> среда, сентябрь 19, 2018 12:48 ночи, Leo Famulari <leo@famulari.name> пишет:
> 
> > On Tue, Sep 18, 2018 at 04:58:52PM +0000, znavko wrote:
> >
> > > Here are presented only xfce-desktop-service, gnome-desktop-service, mate-desktop-service, but no lxde.
> >
> > These services, which provide desktop using XFCE, GNOME, and MATE, are
> > defined in the file 'gnu/services/desktop.scm':
> >
> > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm
> >
> > Currently, we don't have a desktop service for LXDE.
> >
> > Maybe a service is not required? It's possible to use i3 without a
> > desktop service. One just adds 'i3-wm' to the 'packages' field of their
> > config.scm and it will be available at the login screen.
> >
> > > ;; This is where we specify system-wide packages.
> > > (packages (cons* nss-certs ;for HTTPS access
> > > gvfs ;for user mounts
> > > gedit
> > > icecat
> > > %base-packages))
> >
> > You could try adding lxde to that list...
> >
> > > ;; Add GNOME and/or Xfce---we can choose at the log-in
> > > ;; screen with F1. Use the "desktop" services, which
> > > ;; include the X11 log-in service, networking with
> > > ;; NetworkManager, and more.
> > > (services (cons* (xfce-desktop-service)
> > > %desktop-services))
> >
> > ... and, unless you want to use XFCE, change that to (services
> > %desktop-services)
> 
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-23 16:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-18 16:58 LXDE desktop in config.scm znavko
2018-09-18 21:48 ` Leo Famulari
2018-09-19  8:06   ` Nils Gillmann
2018-09-19  8:37   ` Nils Gillmann
2018-09-19 20:54   ` znavko
2018-09-23 16:26     ` Nils Gillmann

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.