I don’t have spare peripherals like a monitor and a keyboard. How do you suggest I do a bare-metal install of Debian on a computer (meant to be a server)?

@TCB13@lemmy.world
link
fedilink
English
73M

https://github.com/philpagel/debian-headless

It is possible but I wouldn’t do it. Too much effort for too little result.

Just plug your main monitor / keyboard into the server, run the setup and don’t install a DE. Afterwards login, enable SSH, unplug the monitor and do whatever you need over SSH.

Let’s face it, you’ll have to do this procedure once every xyz years, there’s no point in complicating this stuff. Also depending on your motherboard you may or may not be able to boot into the installer without a screen / keyboard attached. Another option is to install the OS in another computer and the move the hard drive to the target server - this is all fine until you run into UEFI security or another detail and it doesn’t boot your OS.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
13M

All I have is a laptop. I’m getting these machines for free from a friend

@hydrogen@lemmy.ml
link
fedilink
English
13M

Take out the hard drive out of your laptop and put the drive for the server in it, install Debian using the built in monitor and keyboard of your laptop.

@TCB13@lemmy.world
link
fedilink
English
0
edit-2
3M

Well I see your problem, but you’re going to have a bad time without a screen. Maybe you can get something second hand / cheap or even ask a friend to borrow one for a few days?

@rtxn@lemmy.world
link
fedilink
English
3
edit-2
3M

If you really, really, really don’t want to buy a keyboard and monitor, you can buy a USB KVM console, but it’ll likely cost more. Something like this: https://www.startech.com/en-us/server-management/notecons01

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
13M

Wow that’s expensive. But thanks something to keep in mind. I’m planning to build my own $25 KVM with Chinese parts off of Aliexpress and PiKVM (if that’s possible)

A Debian preseed I guess

@Deckweiss@lemmy.world
link
fedilink
English
1
edit-2
3M

Not sure about debian, but the archlinux iso has ssh on per default, so if you have no other bootable drives in your server other than the usb with the iso, just fire it up and try to connect to it via ssh.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
23M

Arch linux install wouldn’t be a problem really because the way the install is done. Pretty sure I could it all over SSH. Unfortunately, Debian isn’t exactly that…

Usually I want to see the BIOS settings at least once. So that’s enough reason to carry a keyboard + monitor there.

Otherwise that network boot option with a TFTP server comes to my mind. But I have never tried it on a new, empty machine.

@changeableface@lemmy.world
link
fedilink
English
1
edit-2
3M

I use a KVM over IP.

I made my own tiny pilot device for less than £100 and it has worked flawlessly for a few years.

This assumes your server has a hdmi output, if not you will need a VGA to hdmi or similar converter, danger of it becoming a bit of a hodge-podge of adapters, but hey, if it works, it works!

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
13M

I’m planning to use a Raxda Zero 3W/Banana Pi Zero for this. Do you think this will suffice? I don’t need speed or power, it just needs to be usable.

I’ve no experience with either of those devices. So long as they’re comparable in terms of USBC features (otg) to emulate the keyboard and mouse then you should be good as the overhead of running the software seems to be minimal from my usage.

Without that, you’ll get video without keyboard and mouse support.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
13M

Thanks, I’ll take a look!

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 31 users / day
  • 84 users / week
  • 216 users / month
  • 846 users / 6 months
  • 1 subscriber
  • 1.42K Posts
  • 8.09K Comments
  • Modlog