Installing Home Assistant Supervised using Debian 12

after installing debian is there a way to mount external usb drive as /media so that everything is saved in there?

Thanks for the help. It turns out that it just wasnā€™t working to try and get the script run over a wifi connection with a password. Every time the script would run, Network Manager would overwrite the configuration that I had set up, and then it would fail (since it now had no internet). I finally just hauled everything over to the router with a monitor and keyboard and got it to run correctly.

1 Like

Iā€™ve used the information here to temporarily mount a USB drive at the OS level so I could transfer an SSH key:

https://www.pragmaticlinux.com/2020/07/how-to-format-and-mount-a-usb-drive-in-the-linux-terminal/

Iā€™m not sure the method can work within HA at all, but another method might be possible using BusyBox commands at the HA CLI (https://community.home-assistant.io/t/local-dns/178108/48?u=pocket). What could potentially work would be to mount the USB and then create a link (the ā€˜lnā€™ command) to the /media mount point. Whether it would break the intent of ADR-0014 is another matter.

Could somebody help me with this issue? Iā€™m still stuck.

You do not need to downgrade Docker now as the latest update 2020.12.7 fixed it.

image

FYI, I am using RaspiOs 64bit and I show as supported :grinning:

Hi,

Actually working to setup a test HA.

The ā€œsupervised-installerā€ script fails because ā€œapparmorā€ is missing but it is installed ( version 2.13.2-10) as per the result of ā€œapt-get install apparmor-utilsā€ or the result of the command ā€œapt list -a apparmorā€

Screenshot attached.

Please any advice ?
Thank youCapture apparmor

What about

sudo apt-get install apparmor-utils

Thanks a lot @BertrumUK for the solution of the ā€œsudoā€ issue.

In fact ā€œsudoā€ was not installed during the Debian 10 install !
After its installation , it works .

I realized also that i did not take attention when ā€œsudo-iā€ failed and I was able to continue ā€¦ probably because i did earlier an ā€œsu passwordā€ to fix another problem at that time.

HA is ready now and is reached by http:// ip:8123

Yeah if you set a root password when you install Debian it doesnā€™t install sudo.

1 Like

Good Morning All,

I just installed Debian 10 on an old laptop I use for testing purposes. I want to migrate my current Home Assistant setup from Ubuntu to this method. I have a couple of questions:

When I am prompted for a root password should I ignore this and leave it blank?

Is there a way to SSH into Debian remotely after it has been initially installed without installing OpenSSH? I tried using the SSH command from a windows command prompt but the connection was refused. Being able to execute all the commands to install Home Assistant remotely would be a benefit. Will installing OpenSSH as per the opening post create any issues with the installation being unsupported further down the line.

I just want to get everything down before I do this for real on my actual HA machine.

Thanks in advance

Richard

Just checking in to say thanks again!

I had this installed with lots of helpā€¦ And then for xmas I got a new hard drive. Since I never got started DOING anything with HA - I just swapped hard drives and reinstalled thisā€¦ And it worked perfectly and flawlessly this time - no hitches.

Yes I would

When prompted for packages to install, select the ssh one there as part of the initial installation. I did change the ssh port too. When I installed the HA ssh addon I also changed the port for that (ssh and web terminal addon) so I can ssh to the host but also to HA.

Thanks David,

I did not see the option of installing SSH on the initial installation of Debian

Itā€™s one of the last of the install screens where it asks what additional packages you want to install.

From everything I read best practice is to NOT set a root password although everyone seems to do it. I never have and never had any problems. Note that you will want to add your normal user to sudoers otherwise every time you try to sudo it will ask for the passwordā€¦

On the installation that I have done so far I did set a root password and did not encounter any issues.

I just googled how to add a user (usermod -aG sudo username) which is part of the instructions.

I will wipe my drive and try again looking for the ssh package

I just re installed Debian again this time with no root password,

I did not get any option to install additional packages, there was a screen where the package manager was installed then the bootloader was installed and then the final screen saying installation was complete and I need to re boot.

Am I missing something not being able to install any additional packages? I can install Openssh after the install manually but I take it we are talking about the default SSH server in Debian

Itā€™s possible the install has changed since I did it but I doubt there was no optionā€¦ Maybe it asked if you wanted to install other packagesā€¦ I donā€™t rememberā€¦ itā€™s been a while.
The default ssh server in Debian is openssh so just install that package. Iā€™m sure it would have given the option when you installed though. I might run up a new VM and install debian to check what it does later.

Thanks David,
I watched a quick YT video on installing, everything was the same except it showed the packages screen you talk about. I am definitely not seeing that, I just re downloaded the ISO and burned it with balenaEtcher this time and I am trying again

Iā€™m just downloading the latest non-free image from here https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current/amd64/iso-dvd/ and will run up a VM with that image and see what happensā€¦ as I said itā€™s been a whileā€¦ but you should be fine to just install the ssh package anywayā€¦

I am curious to see if you see the same,

I downloaded the ISO from the link in the opening post. Still not getting an option to install additional packages. I can just install OpenSSH after the install has finished. I was just worried it may affect the supported installation of HA