Re: LXDE desktop in config.scm

2018-09-19 Thread znavko
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  пишет:

> On Tue, Sep 18, 2018 at 04:58:52PM +, 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 

Re: LXDE desktop in config.scm

2018-09-19 Thread Nils Gillmann
Leo Famulari transcribed 2.3K bytes:
> On Tue, Sep 18, 2018 at 04:58:52PM +, 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)





Re: LXDE desktop in config.scm

2018-09-19 Thread Nils Gillmann
Nevermind my last email, I got a bit mixed up between lxqt and lxde.
(Oops, I even added 'lxde' myself)



Re: LXDE desktop in config.scm

2018-09-18 Thread Leo Famulari
On Tue, Sep 18, 2018 at 04:58:52PM +, 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)


signature.asc
Description: PGP signature


LXDE desktop in config.scm

2018-09-18 Thread znavko
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))