Hey guys, I would like to install Debian on my raspberry pi 4 model B 2gb, but I dont have a micro HDMI. I would like to install it headless. I watched a video where the guy created some files in the boot partition on the SD card to enable SSH, and I was wondering if I can do something similar with a Debian SD so I dont need to go out and buy a cable.

I couldn’t find too many tutorials for Debian on the pi, and none to install it headless.

Thanks in advance!

Edit 1: I ended up going with raspbian lite because of some other issues that came up.

  • AdminWorker@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 years ago

    There should be a couple tutorials about how to establish a ssh connection to your pi. From there you can have root access and be able to do anything you want.

    Edit: I reread your post.

    Raspbian and debian are sufficiently similar, I would think the boot process and file structure is the same (I have only worked with Raspbian)

    In Raspbian, I think ssh is disabled by default due to some security concerns with the default user “pi” password “raspberry”. So changing the default value in the config text file and then connecting to ssh by finding the ip4v of the pi on your local network then connecting over the command line with “pi” then “raspberry” then changing the password before it is exposed to the internet is how you would do it.

    Source: I had a pi 3b+ but it developed a short during the pi shortage and I haven’t gotten around to fixing it.

    • promitheas@iusearchlinux.fyiOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      Im sure theres a way to do it on debian and it might even be the same as on raspbian, but I just dont know what user I would use or exactly how to set everything up. An option is to boot into the SD card from my laptop and set everything up there before plugging it into the Pi.