TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

From Linux to NetBSD, with SSH Only

221 pointsby jaypatelani10 months ago

11 comments

naguam10 months ago
Hi, author of the article here.<p>After reading all the comments, I believe I must precise, that I am aware of most of the mentioned alternative techniques.<p>Most of these only work as long as remote screen&#x2F;keyboard control access is possible throughout a cloud panel (VNC).<p>My goal with this article was to avoid any third party control and making it to works even on a remote linux desktop pc used as a server.<p>Thanks for all the feedbacks, I appreciate it.
评论 #41082232 未加载
DocChi7710 months ago
Similarly, I&#x27;ve used a project called nixos-infect(1) to install NixOS on cloud providers that don&#x27;t natively offer it. It&#x27;s worked well on the handful of boxes I&#x27;ve ran it on.<p>(1): <a href="https:&#x2F;&#x2F;github.com&#x2F;elitak&#x2F;nixos-infect">https:&#x2F;&#x2F;github.com&#x2F;elitak&#x2F;nixos-infect</a>
johnklos10 months ago
This will come in very handy, since many providers don&#x27;t natively provide NetBSD.<p>I&#x27;ve played similar tricks mounting a ramdisk, copying things in to it, starting daemons from it, then force-remounting rootfs read-only, then doing things you can&#x27;t normally do. This takes things quite a bit further, and I like it.<p>I&#x27;ve never quite understood the details of Linux boot methods. This article is wonderful because it doesn&#x27;t just say what to do, but explains what&#x27;s going on, and in detail. Can&#x27;t wait to try!
评论 #41082063 未加载
indigodaddy10 months ago
I’d like to note that there are a lot of cheap, reliable providers that support BSD, either with KVM templates already, installation with an available ISO, or many have custom ISO where you can upload or give the URI to any iso you wish to use. Obviously this will usually be KVM virtualization.<p>Some providers off the top of my head:<p>prgmr.com (now tornado vps apparently) - long-standing provider - they used to have netbsd dom0’s but now it’s all Linux based it looks like so appears you have to netinstall netbsd in your vm now)<p>buyvm.net - reasonable pricing and have bsd available to install (can’t remember if template or iso ready to mount&#x2F;install)<p><a href="https:&#x2F;&#x2F;www.netcup.eu&#x2F;vserver&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.netcup.eu&#x2F;vserver&#x2F;</a> - excellent value &#x2F; been around forever (they offer custom iso)<p>I will add more here as I think of them..
评论 #41084386 未加载
评论 #41083155 未加载
评论 #41082314 未加载
doubled11210 months ago
I&#x27;ve installed Debian (on ZFS with debootstrap and chroot) from inside a CentOS install over SSH before, but this is different.
Tepix10 months ago
Cute and scary. Reminds me of a time where i manually converted a remote Linux box to full disk encryption via SSH about 15 years ago. It worked, despite bugs in the debian start scripts. But it was, once again, very scary.
darkhelmet10 months ago
One of the things I&#x27;ve done in the past that is quick and easy is to use grub to chainload another bootable volume. Scp an iso or other disk image over, chainload to that, run the installer inside it as though it had just been pxebooted or booted from a flash drive. If you can netinstall from there, then you&#x27;re good to go with the OS of your choice.<p>There&#x27;s lots of ways if you have access to common cloud primatives (replacement root volume, etc) and have some creativity.<p>I did appreciate this post though because it&#x27;s for a way I haven&#x27;t used before.
xolox10 months ago
Compliments to the author for clearly explaining all of the steps involved. I&#x27;ve never gone this deep, although I have previously converted remote headless Linux servers to full disk encryption using similar techniques. Thanks for sharing!
gslin10 months ago
This reminds me some other interesting things (but from Linux to FreeBSD) around 15-20 years ago:<p>* <a href="https:&#x2F;&#x2F;www.daemonology.net&#x2F;depenguinator&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.daemonology.net&#x2F;depenguinator&#x2F;</a>
lagniappe10 months ago
Im watching the asciinema and wondering whats that first `ls` move? is that expanding files with `ls` somehow?
评论 #41048262 未加载
j_not_j10 months ago
Offtopic:<p>OpenBSD has an installation ramdisk. Just boot that.<p>See <a href="https:&#x2F;&#x2F;raby.sh&#x2F;installing-openbsd-on-ovhs-vps-2016-kvm-machines.html" rel="nofollow">https:&#x2F;&#x2F;raby.sh&#x2F;installing-openbsd-on-ovhs-vps-2016-kvm-mach...</a><p>I&#x27;ve also seen &quot;dd if=path&#x2F;to&#x2F;install&#x2F;ramdisk &#x2F;dev&#x2F;sd0&quot; and reboot; depends on being classic BIOS not uefi. Can&#x27;t find the link tho.
评论 #41063330 未加载