From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20150625195757.GB2779@ananda.local> References: <20150625172536.GA1214@ananda.local> <2F9FCF30-9F90-4553-82D9-D43BEADF4CBE@gmail.com> <20150625195757.GB2779@ananda.local> From: Ryan Gonzalez Date: Thu, 25 Jun 2015 17:01:44 -0500 Message-ID: To: Nils M Holm Content-Type: multipart/alternative; boundary=089e0111da620939e605195ec68d Cc: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] ftpfs shows empty /n/ftp after login Topicbox-Message-UUID: 5b579b66-ead9-11e9-9d60-3106f5b1d025 --089e0111da620939e605195ec68d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jun 25, 2015 at 2:57 PM, Nils M Holm wrote: > > On 2015-06-25T13:09:00-0500, Ryan Gonzalez wrote: > > FYI, for what it's worth, I usually use SSH to sync files between > > my Linux laptop and my Plan 9 VM. > > Thanks for the suggestion! Care to give me a short introduction to > ssh on Plan 9? I normally avoid ssh like the plague, so I assume I > know nothing about it. > > I don't use FreeBSD, so this might be slightly wrong. :) Sources: https://www.freebsd.org/doc/handbook/openssh.html http://plan9.bell-labs.com/wiki/plan9/connecting_to_other_OSes/index.html You want to do this in FreeBSD: - Edit /etc/rc.conf and check if this line is present: sshd_enable=3D"YES" If it isn't, add it. - Edit /etc/ssh/sshd_config and add the following lines: Protocol 2,1 HostKey /etc/ssh/ssh_host_key AllowUsers username@plan9_machine_ip_address - Run: ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key chmod 644 /etc/ssh/ssh_host_key That's the setup. Now, whenever you want to access your machine's files from Plan 9, run this on FreeBSD: service sshd start And on Plan 9: ssh username@bsd_machine_ip_address Type 'yes' at any prompts that pop up. > > Also, last time I tried, VirtualBox was a bit faster in emulating > > Plan 9 than QEMU, especially without KVM. > > VirtualBox is much faster on my machine, but I don't manage to > set up any network connections at all. NIC is recognized, but > ip/ipconfig hangs and after configuring manually, not even ip/ping > works. So I'll stick to QEMU for now. > > -- > Nils M Holm < n m h @ t 3 x . o r g > www.t3x.org > --=20 Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something=E2=80=99s wrong. http://kirbyfan64.github.io/ --089e0111da620939e605195ec68d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, Jun 25, 2015 at 2:57 PM, Nils M Holm <nmh@t3x.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;pa= dding-left:1ex">
On 2015-06-25T13:09:00-0500, Ryan Gonzalez wrote:
> FYI, for what it's worth, I usually use SSH to sync files between<= br> > my Linux laptop and my Plan 9 VM.

Thanks for the suggestion! Care to give me a short introduction to ssh on Plan 9? I normally avoid ssh like the plague, so I assume I
know nothing about it.


I don't us= e FreeBSD, so this might be slightly wrong. :)

Sou= rces:


You want to do this i= n FreeBSD:

- Edit /etc/rc.conf and check if this l= ine is present:

=C2=A0 =C2=A0=C2=A0sshd_enable=3D&= quot;YES"

=C2=A0 If it isn't, add it.

- Edit /etc/ssh/sshd_config and add the following lin= es:

=C2=A0 =C2=A0 Protocol 2,1
=C2=A0 = =C2=A0 HostKey /etc/ssh/ssh_host_key
=C2=A0 =C2=A0=C2=A0AllowUser= s username@plan9_machine_ip_address

- Run:

=C2=A0 =C2=A0 ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key=
=C2=A0 =C2=A0 chmod 644 /etc/ssh/ssh_host_key


That's the setup. Now, whenever you want to acces= s your machine's files from Plan 9, run this on FreeBSD:

=
=C2=A0 =C2=A0 service sshd start

And on= Plan 9:

=C2=A0 =C2=A0 ssh username@bsd_machine_ip= _address

Type 'yes' at any prompts that po= p up.
=C2=A0
> Also, last time I tried, VirtualBox was a bit faster in emulating
> Plan 9 than QEMU, especially without KVM.

VirtualBox is much faster on my machine, but I don't manage to set up any network connections at all. NIC is recognized, but
ip/ipconfig hangs and after configuring manually, not even ip/ping
works. So I'll stick to QEMU for now.

--
Nils M Holm=C2=A0 < n m h @ t 3 x . o r g >=C2=A0 www.t3x.org



--
=
Ryan
[ERROR]: Your autot= ools build scripts are 200 lines longer than your program. Something=E2=80= =99s wrong.
--089e0111da620939e605195ec68d--