How to uninstall openHABian from my debain server?

I don’t understand you comment.
By ‘adding’ you mean cloning from Git? This obviously does not change anything.
If you mean ‘adding’ is running the installation script then it surely did a lot of changes.
I did not even get to the point of using it since I’m locked out of my system.

Yes, if you start using it by running the unsttended setup, sytem changes get applied. And this is documented.
Did you make changes to the config file?
If so, one of those changes might have corrupted your installation.
I have just setup a new debian 12 VM, cloned openHABian, adopted the config file to my needs and run the unattendand setup.
Everything is working like s charm.
I can login as root, my default user and openhabian user. openHAB 4.2.2 and frontail have been installed and are up and running.

Strange … I checked this on Debian 10 ( Pi ) as well as on a Debian 12 ( x64 ) system.
Neither of them has pam_unix.so under /lib/security but under
/usr/lib/arm-linux-gnueabihf/security/pam_unix.so
resp.
/usr/lib/x86_64-linux-gnu/security/pam_unix.so

Do you have more information like

  • date
  • size
  • md5sum / sha1sum
  • output of ldd /lib/security/pam_unix.so
  • output of file /lib/security/pam_unix.so
    for the pam_unix.so that you found on the system ?

Is McAfee virus scanner installed? If yes, try to deactivate it.

Please read also this thread. Problem seems to be identical to yours:

Dear all, thank you so much for your support.

I did the unattended setup without changing the config file. Seems there have been some incompatibilities with my system. Virus scanners were not installed.

I have to correct my earlier statement about the pam_unix.so. Just like @Wolfgang_S said, it’s in /usr/lib/x86_64-linux-gnu/security/, not in /lib/security/.

The solution mentioned in the other thread seemed a bit shady to me.

Instead of poking in the dark, I decided for a fresh install like @apella12 suggested. Anyways I had to update my Debian.

Cheers

1 Like

The one thing you may want to keep in mind the openhabian install assumes you do not intend on altering the OS files manually after you have completed the openhabian install. This is also stated clearly in the install documentation for openhabian. as copied below

and on fairness

What you must not do, though, is to mess with the system, OS packages and config and expect anyone to help you with that. Let’s clearly state this as well: when you deliberately decide to make manual changes to the OS software packages and configuration (i.e. outside of openhabian-config), you will be on your own. Your setup is untested, and no-one but you knows about your changes. openHABian maintainers are really committed to providing you with a fine user experience, but this takes enormous efforts in testing and is only possible with a fixed set of hardware. You don’t get to see this as a user.

If you have plans to use this “server” for any other purpose beyond OpenHab you may consider just doing a standard linux apt based install of OpenHab application only (with of course the required Java version).

3 Likes

Second this comment; Besides the option mentioned, I have found docker handy to run multiple services. I just use a docker-compose file based on the documentation. Sorry for the unsolicited advice :wink:

1 Like