JDHayes
(Jeff)
February 11, 2024, 7:00pm
1
I’m pretty sure I put some bad HTTP information into my config.yaml. Then when I updated the OS, of course I could no longer reach the front end.
I’m just rebuilding from scratch and I haven’t even gotten the samba server in so I can’t directly edit the file from my PC.
Does anyone have a cut trick for getting into that file and editing it without just doing another clean install?
tom_l
February 11, 2024, 11:01pm
2
Connect a monitor and a keyboard to the system and edit the file via the command line interface.
JDHayes
(Jeff)
February 11, 2024, 11:12pm
3
Thanks Tom:
I was afraid of that. At least for me, when I run HA that way the CR/LF combos get all messed up and I’m dreading trying to use VI like that. But maybe just to delete a line or two I can manage.
tom_l
February 11, 2024, 11:16pm
4
Linux files do not use CR+LF only LF. If you edit a file via the CLI this should be ok as you are editing on a Linux system. It’s only an issue if you edit the files on a Windows PC and save in Windows format.
armedad
February 12, 2024, 4:11am
5
did you happen to have the samba add-on installed? I did something similar before, but was able to connect via smb and fix the config file…
if you didn’t have it installed, once you rebuild, be sure to do so!!
WallyR
(Wally)
February 12, 2024, 4:15am
6
And when you edit files on Windows, then use a proper text editor, like UltraEdit (payware) or Notepad++ (freeware).
1 Like
tom_l
February 12, 2024, 5:37am
8
WallyR:
UltraEdit
That’s name I have not heard in a long time.
WallyR
(Wally)
February 12, 2024, 11:39am
9
Notepad++ is great, but UltraEdit still have a few features that makes it superior, like hex and binary view among others.