From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Castillo Subject: ssh-daemon service fails to auto start Date: Sat, 27 Jan 2018 23:08:23 +0100 Message-ID: <9565fcd0-48eb-aac8-3c30-b3477f3d7f55@uni-bremen.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------8CE656E43E0365D578BEE2A0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efYeK-0006tp-Uu for help-guix@gnu.org; Sat, 27 Jan 2018 17:08:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efYeG-0007nB-M5 for help-guix@gnu.org; Sat, 27 Jan 2018 17:08:36 -0500 Received: from gabriel-vm-2.zfn.uni-bremen.de ([134.102.50.10]:42184 helo=smtp.uni-bremen.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1efYeG-0007gd-55 for help-guix@gnu.org; Sat, 27 Jan 2018 17:08:32 -0500 Received: from [192.168.178.5] (ip4d152409.dynamic.kabel-deutschland.de [77.21.36.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.uni-bremen.de (Postfix) with ESMTPSA id BD8B820358 for ; Sat, 27 Jan 2018 23:08:23 +0100 (CET) Content-Language: en-US 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 This is a multi-part message in MIME format. --------------8CE656E43E0365D578BEE2A0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit hey guix, i have a problem with the ssh-service. I want it to autostart on system boot. my configuration is (similar to) desk,nossh.scm. sshd does start on system boot with the no-desk,ssh-works.scm and no-desk,ssh-semi.scm configuration, but is not reachable from outside the vm with the latter configuration. now, one difference between the latter two is the dhcp-client-service. For some reason, I can not use that service with xfce-service. But I don't know, how related that is. Can someone with more insight tell me, why sshd won't autostart? shepherd tells me only 'ssh-daemon could not be started'. Thank you shepherd, very helpful! Martin -- GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC --------------8CE656E43E0365D578BEE2A0 Content-Type: text/x-scheme; name="no-desk,ssh-works.scm" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="no-desk,ssh-works.scm" ;; Running in Qemu. ;; This config has no gui. ssh-daemon starts and is reachable from outside (use-modules (gnu) (gnu system nss)) (use-service-modules ssh) (use-service-modules networking) (use-service-modules base desktop) (use-service-modules xorg) (use-package-modules wm certs linux) (define cyborg-quirk "Section \"InputClass\" Identifier \"Saitek Cyborg R.A.T.5 Mouse\" MatchIsPointer \"on\" MatchProduct \"Saitek Cyborg R.A.T.5 Mouse\" MatchVendor \"Saitek|SAITEK\" MatchDevicePath \"/dev/input/event*\" Option \"ButtonMapping\" \"1 2 3 4 5 6 7 2 9 4 5 12 0 0 0\" Option \"ZAxisMapping\" \"10 11\" # Option \"AutoReleaseButtons\" \"12 13 14 15\" EndSection") (define %my-xorg-conf (xorg-configuration-file #:extra-config (list cyborg-quirk))) (define %my-startx (xorg-start-command #:configuration-file %my-xorg-conf)) (define %my-services ;; My very own list of services. (modify-services %base-services (guix-service-type config => (guix-configuration (inherit config) (substitute-urls (cons "https://berlin.guixsd.org" (guix-configuration-substitute-urls config))))) (slim-service-type config => (slim-configuration (inherit config) (startx %my-startx) (default-user "mcd"))))) (operating-system (host-name "komputilo") (timezone "Europe/Berlin") (locale "de_DE.UTF-8") ;; Assuming /dev/sdX is the target hard disk, and "my-root" is ;; the label of the target root file system. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda") ;(menu-entries '((menu-entry ; (label "Grub Nixos") ; (multiboot "(hd0)") ; still unsupported ; ))) )) (file-systems (cons (file-system (device "muh-guix") (title 'label) (mount-point "/") (type "ext4")) %base-file-systems)) ;; This is where user accounts are specified. The "root" ;; account is implicit, and is initially created with the ;; empty password. (users (cons (user-account (name "mcd") (comment "Martin Castillo") (group "users") ;; Adding the account to the "wheel" group ;; makes it a sudoer. Adding it to "audio" ;; and "video" allows the user to play sound ;; and access the webcam. (supplementary-groups '("wheel" "audio" "video" "netdev")) (home-directory "/home/mcd")) %base-user-accounts)) ;; Globally-installed packages. ;(packages (cons tcpdump %base-packages)) ;; Add a bunch of window managers; we can choose one at ;; the log-in screen with F1. (packages (cons* ;dmenu ;window managers nss-certs ;for HTTPS access kbd-neo %base-packages)) ;; Add services to the baseline: a DHCP client and ;; an SSH server. (services (cons* (dhcp-client-service) (console-keymap-service (file-append kbd-neo "/share/keymaps/neo.map"));; (service openssh-service-type (openssh-configuration (port-number 2222))) (simple-service 'store-my-config etc-service-type `(("config.scm" ,(local-file (assoc-ref (current-source-location) 'filename))))) ; (xfce-desktop-service) %my-services)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with Wicd, and more. ;(services %desktop-services) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) --------------8CE656E43E0365D578BEE2A0 Content-Type: text/x-scheme; name="no-desk,ssh-semi.scm" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="no-desk,ssh-semi.scm" ;; Running in Qemu. ;; This config has no gui. ssh-daemon starts, but is not reachable from outside (use-modules (gnu) (gnu system nss)) (use-service-modules ssh) (use-service-modules networking) (use-service-modules base desktop) (use-service-modules xorg) (use-package-modules wm certs linux) (define cyborg-quirk "Section \"InputClass\" Identifier \"Saitek Cyborg R.A.T.5 Mouse\" MatchIsPointer \"on\" MatchProduct \"Saitek Cyborg R.A.T.5 Mouse\" MatchVendor \"Saitek|SAITEK\" MatchDevicePath \"/dev/input/event*\" Option \"ButtonMapping\" \"1 2 3 4 5 6 7 2 9 4 5 12 0 0 0\" Option \"ZAxisMapping\" \"10 11\" # Option \"AutoReleaseButtons\" \"12 13 14 15\" EndSection") (define %my-xorg-conf (xorg-configuration-file #:extra-config (list cyborg-quirk))) (define %my-startx (xorg-start-command #:configuration-file %my-xorg-conf)) (define %my-services ;; My very own list of services. (modify-services %base-services (guix-service-type config => (guix-configuration (inherit config) (substitute-urls (cons "https://berlin.guixsd.org" (guix-configuration-substitute-urls config))))) (slim-service-type config => (slim-configuration (inherit config) (startx %my-startx) (default-user "mcd"))))) (operating-system (host-name "komputilo") (timezone "Europe/Berlin") (locale "de_DE.UTF-8") ;; Assuming /dev/sdX is the target hard disk, and "my-root" is ;; the label of the target root file system. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda") ;(menu-entries '((menu-entry ; (label "Grub Nixos") ; (multiboot "(hd0)") ; still unsupported ; ))) )) (file-systems (cons (file-system (device "muh-guix") (title 'label) (mount-point "/") (type "ext4")) %base-file-systems)) ;; This is where user accounts are specified. The "root" ;; account is implicit, and is initially created with the ;; empty password. (users (cons (user-account (name "mcd") (comment "Martin Castillo") (group "users") ;; Adding the account to the "wheel" group ;; makes it a sudoer. Adding it to "audio" ;; and "video" allows the user to play sound ;; and access the webcam. (supplementary-groups '("wheel" "audio" "video" "netdev")) (home-directory "/home/mcd")) %base-user-accounts)) ;; Globally-installed packages. ;(packages (cons tcpdump %base-packages)) ;; Add a bunch of window managers; we can choose one at ;; the log-in screen with F1. (packages (cons* dmenu ;window managers nss-certs ;for HTTPS access kbd-neo %base-packages)) ;; Add services to the baseline: a DHCP client and ;; an SSH server. (services (cons* ;(dhcp-client-service) (console-keymap-service (file-append kbd-neo "/share/keymaps/neo.map"));; (service openssh-service-type (openssh-configuration (port-number 2222))) (simple-service 'store-my-config etc-service-type `(("config.scm" ,(local-file (assoc-ref (current-source-location) 'filename))))) ; (xfce-desktop-service) %my-services)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with Wicd, and more. ;(services %desktop-services) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) --------------8CE656E43E0365D578BEE2A0 Content-Type: text/x-scheme; name="desk,nossh.scm" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="desk,nossh.scm" ;; Running in Qemu. ;; This config has gui. ssh-daemon fails to start on system boot, but starts ;; with # herd start ssh-daemon (use-modules (gnu) (gnu system nss)) (use-service-modules ssh) (use-service-modules networking) (use-service-modules base desktop) (use-service-modules xorg) (use-package-modules wm certs linux) (define cyborg-quirk "Section \"InputClass\" Identifier \"Saitek Cyborg R.A.T.5 Mouse\" MatchIsPointer \"on\" MatchProduct \"Saitek Cyborg R.A.T.5 Mouse\" MatchVendor \"Saitek|SAITEK\" MatchDevicePath \"/dev/input/event*\" Option \"ButtonMapping\" \"1 2 3 4 5 6 7 2 9 4 5 12 0 0 0\" Option \"ZAxisMapping\" \"10 11\" # Option \"AutoReleaseButtons\" \"12 13 14 15\" EndSection") (define %my-xorg-conf (xorg-configuration-file #:extra-config (list cyborg-quirk))) (define %my-startx (xorg-start-command #:configuration-file %my-xorg-conf)) (define %my-services ;; My very own list of services. ; (modify-services %base-services (modify-services %desktop-services (guix-service-type config => (guix-configuration (inherit config) (substitute-urls (cons "https://berlin.guixsd.org" (guix-configuration-substitute-urls config))))) (slim-service-type config => (slim-configuration (inherit config) (startx %my-startx) (default-user "mcd"))))) (operating-system (host-name "komputilo") (timezone "Europe/Berlin") (locale "de_DE.UTF-8") ;; Assuming /dev/sdX is the target hard disk, and "my-root" is ;; the label of the target root file system. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda") ;(menu-entries '((menu-entry ; (label "Grub Nixos") ; (multiboot "(hd0)") ; still unsupported ; ))) )) (file-systems (cons (file-system (device "muh-guix") (title 'label) (mount-point "/") (type "ext4")) %base-file-systems)) ;; This is where user accounts are specified. The "root" ;; account is implicit, and is initially created with the ;; empty password. (users (cons (user-account (name "mcd") (comment "Martin Castillo") (group "users") ;; Adding the account to the "wheel" group ;; makes it a sudoer. Adding it to "audio" ;; and "video" allows the user to play sound ;; and access the webcam. (supplementary-groups '("wheel" "audio" "video" "netdev")) (home-directory "/home/mcd")) %base-user-accounts)) ;; Globally-installed packages. ;(packages (cons tcpdump %base-packages)) ;; Add a bunch of window managers; we can choose one at ;; the log-in screen with F1. (packages (cons* ;dmenu ;window managers nss-certs ;for HTTPS access kbd-neo %base-packages)) ;; Add services to the baseline: a DHCP client and ;; an SSH server. (services (cons* ;(dhcp-client-service) (console-keymap-service (file-append kbd-neo "/share/keymaps/neo.map"));; (service openssh-service-type (openssh-configuration (port-number 2222))) (simple-service 'store-my-config etc-service-type `(("config.scm" ,(local-file (assoc-ref (current-source-location) 'filename))))) (xfce-desktop-service) %my-services)) ; '())) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with Wicd, and more. ;(services %desktop-services) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) --------------8CE656E43E0365D578BEE2A0--