From: Marius Bakke <mbakke@fastmail.com>
To: Divan Santana <divan@santanas.co.za>, help-guix <help-guix@gnu.org>
Subject: Re: guixsd install questions
Date: Fri, 27 Jan 2017 20:24:42 +0100 [thread overview]
Message-ID: <87r33o1f2d.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87tw8kkisf.fsf@santanas.co.za>
[-- Attachment #1: Type: text/plain, Size: 1725 bytes --]
Divan Santana <divan@santanas.co.za> writes:
> Hi All,
>
> Few newbie questions regarding install.
>
> * How to get sshd running on install image for easier remote install.
>
> Useful for a VM:
>
> I'm doing this nasty hack for now.
>
> Get ssh working on boot image:
> #+BEGIN_EXAMPLE
> guix package -i shadow openssh
> export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin${PATH:+}$PATH"
> zile /etc/passwd # add sshd account
> zile /etc/shadow # add sshd account
> mkdir /etc/ssh
> echo "PermitRootLogin yes" > /etc/ssh/sshd_config
> ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key
> `which sshd`
> passwd root
> #+END_EXAMPLE
>
> Sure there's a better way then the above hack?
Hi Divan,
That is a nasty hack indeed. Yet it's about the best approach right now.
I think it could be useful to ship a SSH server in the install image.
You can generate a disk image containing a service for "lsh" by adding
something like this to the file "gnu/system/install.scm", under
"%installation-services".
(lsh-service #:port-number 22
#:root-login? #t
#:password-authentication? #f
;; The root account is passwordless, so
;; make sure a password is required.
#:allow-empty-passwords? #f)
Then generate a new disk image with
`guix system disk-image --image-size=1G gnu/system/install.scm`.
Can you try that? If it works, feel free to submit it as a patch to the
"guix-devel" mailing list and we can consider adding it to the next
release.
Thanks for the report! Unfortunately I don't know the answer to the
other questions.
> Greetings from South Africa :)
Welcomings from Norway! :)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-01-27 19:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-27 8:29 guixsd install questions Divan Santana
2017-01-27 19:24 ` Marius Bakke [this message]
2017-01-27 19:29 ` Marius Bakke
2017-02-05 7:14 ` Divan Santana
2017-01-28 23:20 ` Ludovic Courtès
2017-02-05 7:25 ` Divan Santana
2017-02-07 14:48 ` Ludovic Courtès
2017-06-30 20:49 ` Divan Santana
2017-07-01 14:05 ` Ludovic Courtès
2017-07-02 4:53 ` Divan Santana
2017-07-02 14:25 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r33o1f2d.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=divan@santanas.co.za \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).