From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dick Middleton Subject: Re: Starting ssh service Date: Mon, 11 Apr 2016 10:48:26 +0100 Message-ID: <570B72EA.40109@fouter.net> References: <570786C5.8080206@fouter.net> <87shywcerr.fsf@member.fsf.org> Reply-To: dick@fouter.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apYST-0004qP-UD for help-guix@gnu.org; Mon, 11 Apr 2016 05:48:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apYSO-00059Y-RB for help-guix@gnu.org; Mon, 11 Apr 2016 05:48:37 -0400 Received: from mail.fouter.net ([91.135.5.234]:34138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apYSO-00059C-KH for help-guix@gnu.org; Mon, 11 Apr 2016 05:48:32 -0400 Received: from mail.fouter.net (localhost [127.0.0.1]) by mail.fouter.net (Postfix at FouterNet) with ESMTP id 5BDE240D1CE0 for ; Mon, 11 Apr 2016 10:48:27 +0100 (BST) Received: from [192.168.46.100] (penguin.lingbrae [192.168.46.100]) by mail.fouter.net (Postfix at FouterNet) with ESMTPSA id 48BD4402805E for ; Mon, 11 Apr 2016 10:48:27 +0100 (BST) In-Reply-To: <87shywcerr.fsf@member.fsf.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org On 04/08/16 16:16, =E5=AE=8B=E6=96=87=E6=AD=A6 wrote: > Dick Middleton writes: >>=20 >> Just started playing with Guix and am trying to get ssh to start as a >> service. > wicd-service is provide the 'networking'. >>=20 > You can use '%desktop-services' (or add 'wicd-service' or others. see t= he > 7.2.7.2 Networking Services section of the manual). Placing lsh-service in %desktop-services allows guix to complete reconfig= ure 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? Dick ;; 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) (operating-system (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")) %base-file-systems)) (users (cons (user-account (name "dick") (comment "Alice's brother") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/dick")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access %base-packages)) (services (cons* (lsh-service #:port-number 22 #:daemonic? #t #:root-login? #t) %base-services)) ;; 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* (xfce-desktop-service) ;; (gnome-desktop-service) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss))