~abcdw/rde-discuss

3 3

Newcomer: How to start the ssh daemon in the live image?

Details
Message ID
<CAGxMbPb8JGgRUvdHCvFR2o+NhXD-U9Lkdb0kdrt738E5cUPa2w@mail.gmail.com>
DKIM signature
pass
Download raw message
Table of Contents
_________________

1. The problem
2. The workaround

1 The problem
=============

  Whenever I'm trying out a new operating system I start a SSH daemon so
  that I can execute commands and I get the output in my main system
  where I have a more proper workflow for editing text, reporting issues
  and sending emails. I'm wondering how I can start the ssh daemon in
  the RDE live image. I've tried the following commands with no avail.

  I tried

  ,----
  | sudo herd start ssh
  `----

  ,----
  | herd: service 'ssh' could not be found
  | zsh: exit 1     sudo herd start ssh
  `----

  I also tried

  ,----
  | sudo herd start sshd
  `----

  ,----
  | herd: service 'sshd' could not be found
  | zsh: exit 1     sudo herd start sshd
  `----

  I also tried

  ,----
  | sudo herd start ssh-daemon
  `----

  ,----
  | herd: service 'ssh-daemon' could not be found
  | zsh: exit 1     sudo herd start ssh-daemon
  `----

  In my other system, where I have Guix installed I can start it by
  executing any of the following commands

  ,----
  | sudo herd start ssh && echo $?
  `----

  ,----
  | 0
  `----

  ,----
  | sudo herd start sshd && echo $?
  `----

  ,----
  | 0
  `----

  ,----
  | sudo herd start ssh-daemon && echo $?
  `----

  ,----
  | 0
  `----


2 The workaround
================

  In order to get the output of some commands, what I do is to install
  rsync in the system running the RDE live image and save the output to
  a file which I then transfer to my main system using `rsync'. However,
  it would be more convenient if I could connect to the system running
  the RDE live image using ssh. My question is: Why isn't it as simple
  as running `sudo herd start sshd' as I am able to do it in the Guix
  live image?
Details
Message ID
<86y1lka9yr.fsf@mianmoreno.com>
In-Reply-To
<CAGxMbPb8JGgRUvdHCvFR2o+NhXD-U9Lkdb0kdrt738E5cUPa2w@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
Hi,

Personally, I've never done this, as I always install RDE on top of Guix
System, but you can try building the RDE live image yourself
<https://guix.gnu.org/manual/en/html_node/Building-the-Installation-Image.html>
and add the openssh-service-type in
<https://git.sr.ht/~abcdw/rde/tree/master/examples/src/abcdw/hosts/live.scm#L34>. You'll
then want to invoke `make examples/target/rde-live.iso`.

-- 
Best regards,
Miguel Ángel Moreno
Details
Message ID
<CAGxMbPYd+gGVRa=Wo3p=hVfitYAQDGYFe5dt65xFo8VPLNmdDg@mail.gmail.com>
In-Reply-To
<86y1lka9yr.fsf@mianmoreno.com> (view parent)
DKIM signature
pass
Download raw message
Thanks for the information. I'll try to install rde on a foreign distro
then. I guess it will be easy to install it as a full system
installation once I get used to the basics of rde.

I still wonder what could be the different benefits between using rde in
a foreign distro and using the live image.

On Fri, 19 May 2023 at 10:31, Miguel Ángel Moreno <me@mianmoreno.com> wrote:
>
> Hi,
>
> Personally, I've never done this, as I always install RDE on top of Guix
> System, but you can try building the RDE live image yourself
> <https://guix.gnu.org/manual/en/html_node/Building-the-Installation-Image.html>
> and add the openssh-service-type in
> <https://git.sr.ht/~abcdw/rde/tree/master/examples/src/abcdw/hosts/live.scm#L34>. You'll
> then want to invoke `make examples/target/rde-live.iso`.
>
> --
> Best regards,
> Miguel Ángel Moreno
Details
Message ID
<87353rz80r.fsf@trop.in>
In-Reply-To
<CAGxMbPb8JGgRUvdHCvFR2o+NhXD-U9Lkdb0kdrt738E5cUPa2w@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
On 2023-05-19 03:58, Rodrigo Morales wrote:

> Table of Contents
> _________________
>
> 1. The problem
> 2. The workaround
>
> 1 The problem
> =============
>
>   Whenever I'm trying out a new operating system I start a SSH daemon so
>   that I can execute commands and I get the output in my main system
>   where I have a more proper workflow for editing text, reporting issues
>   and sending emails. I'm wondering how I can start the ssh daemon in
>   the RDE live image. I've tried the following commands with no avail.
>
>   I tried
>
>   ,----
>   | sudo herd start ssh
>   `----
>
>   ,----
>   | herd: service 'ssh' could not be found
>   | zsh: exit 1     sudo herd start ssh
>   `----
>
>   I also tried
>
>   ,----
>   | sudo herd start sshd
>   `----
>
>   ,----
>   | herd: service 'sshd' could not be found
>   | zsh: exit 1     sudo herd start sshd
>   `----
>
>   I also tried
>
>   ,----
>   | sudo herd start ssh-daemon
>   `----
>
>   ,----
>   | herd: service 'ssh-daemon' could not be found
>   | zsh: exit 1     sudo herd start ssh-daemon
>   `----
>
>   In my other system, where I have Guix installed I can start it by
>   executing any of the following commands
>
>   ,----
>   | sudo herd start ssh && echo $?
>   `----
>
>   ,----
>   | 0
>   `----
>
>   ,----
>   | sudo herd start sshd && echo $?
>   `----
>
>   ,----
>   | 0
>   `----
>
>   ,----
>   | sudo herd start ssh-daemon && echo $?
>   `----
>
>   ,----
>   | 0
>   `----
>
>
> 2 The workaround
> ================
>
>   In order to get the output of some commands, what I do is to install
>   rsync in the system running the RDE live image and save the output to
>   a file which I then transfer to my main system using `rsync'. However,
>   it would be more convenient if I could connect to the system running
>   the RDE live image using ssh. My question is: Why isn't it as simple
>   as running `sudo herd start sshd' as I am able to do it in the Guix
>   live image?

It was not the use case we are expected, but including ssh daemon to
live image make sense, it's not included right now, but maybe we will
add it in the next release.

-- 
Best regards,
Andrew Tropin
Reply to thread Export thread (mbox)