Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htop 3.2.2 can not save configuration... #22

Open
Baxxy13 opened this issue Sep 20, 2023 · 4 comments
Open

htop 3.2.2 can not save configuration... #22

Baxxy13 opened this issue Sep 20, 2023 · 4 comments

Comments

@Baxxy13
Copy link

Baxxy13 commented Sep 20, 2023

Seit hm-tools v.0.7.0 ist ja htop 3.2.2 integriert.
Damit bekomme ich beim Beenden mit q oder F10 immer folgende Fehlermeldung.
Can not save configuration to /root/.config/htop/htoprc: No such file or directory

Das ist soweit logisch da das /rootfs als ro gemountet ist.
Somit kann man leider auch seine eigene "htop-Konfiguration" nicht speichern.
Die wäre m.E. auch besser in /usr/local/etc/config aufgehoben damit sie Zentralen-Updates übersteht.

Kann man den Konfigurations-Speicherpfad irgendwie anpassen oder ist der in htop hardcoded?

@fhetty
Copy link
Owner

fhetty commented Sep 20, 2023

Hi,
ist mir noch gar nicht ausgefallen!
Schaue ich mir die Tage an!

@fhetty
Copy link
Owner

fhetty commented Sep 25, 2023

Hallo,
htop nutzt $HOME als Speicherort! (also /root)
Die einfachte Lösung ist "HOME" in einen rw Bereich zu exportieren.
Zwar nicht die feine englische Art, hat bei meinen Tests aber funktioniert.
ACHTUNG!!!
Auf jeden Fall vor dem experimentieren eine Sicherung des Systems machen!
z.B.
Im Raspi SSH Terminal folgendes eingeben:
export HOME=/usr/local/addons/hm-tools
mit "echo $HOME" kann vor und nach dem export der Pfad von "HOME" überprüft werden.
Die Änderung ist aber temorär. Nach einem Neustart ist alles wieder beim alten.

Wenn es durch die temporäre Änderung keine Probleme gibt, kann man den Export auch fest setzen.
Einfach in der "/usr/local/etc/profile.d/hm-tools-addons.sh" die export Zeile hinzufügen.
Dann wird der HOME Pfad bei jedem Neustart angepasst.
Bitte aber erst ein paar Tage temporär laufen lassen, damit bei Problemen nach einem Neustart alles wieder im original Zustand ist!

Es kann natürlich auch ein anderer rw Pfad verwendet werden.

Bitte mal ausprobieren, und bescheid geben, ob es funktioniert, oder zu Problemen geführt hat.

@Baxxy13
Copy link
Author

Baxxy13 commented Sep 25, 2023

Danke für's Feedback.
Ich probiere das mal auf einem Testsystem aus.

Die "manuelle" Version funktioniert schon mal.

Edit: Test mit der "Autostartversion" läuft nun auch.

Ich berichte dann nach ein paar Testtagen.

@fhetty
Copy link
Owner

fhetty commented Sep 25, 2023

OK!
Wie gesagt, das ganze System im Auge behalten!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants