[Top][All Lists]

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

Re: Starting ssh service

From: Dick Middleton
Subject: Re: Starting ssh service
Date: Mon, 11 Apr 2016 10:48:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0

On 04/08/16 16:16, 宋文武 wrote:
> Dick Middleton <address@hidden> writes:

>> Just started playing with Guix and am trying to get ssh to start as a
>> service.

> wicd-service is provide the 'networking'.

> You can use '%desktop-services' (or add 'wicd-service' or others. see the
> Networking Services section of the manual).

Placing lsh-service in %desktop-services allows guix to complete reconfigure
but it doesn't start the service.

If instead I order assigning %base-services and %desktop-services so
%base-services comes first (that was perhaps my mistake) then the build
proceeds.  However now lshd starts at boot time but the desktop GUI doesn't.

How should I configure a server with a GUI?


;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.

(use-modules (gnu) (gnu system nss))
(use-service-modules desktop ssh)
(use-package-modules certs)

  (host-name "antelope")
  (timezone "Europe/London")
  (locale "en_US.UTF-8")

  ;; Assuming /dev/sdX is the target hard disk, and "my-root"
  ;; is the label of the target root file system.
  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
                        (device "GUIX")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))

  (users (cons (user-account
                (name "dick")
                (comment "Alice's brother")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/dick"))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access

  (services (cons* (lsh-service #:port-number 22
                                #:daemonic? #t
                                #:root-login? #t)

  ;; 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 Wicd,
  ;; and more.
  (services (cons*
;;           (gnome-desktop-service)
  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

reply via email to

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