Page 1 of 1

How Do I Edit the .ini File?

Posted: Mon Aug 01, 2022 4:25 pm
by kupoRGB
I am trying to edit the tty2oled .ini file to use this alternate version.

https://github.com/neil-morrison44/MiST ... ree/v1.0.0

I simply cannot understand how to access and modify the .ini files. Any help is appreciated!

Re: How Do I Edit the .ini File?

Posted: Mon Aug 01, 2022 5:36 pm
by bbond007
Probably the easiest way is to use WinSCP on your Windows desktop.

You'll connect to the IP address in the OSD, so you'll need to have networking going obviously.

The (default) login and passwd are root & 1

Without networking, you can press F9 (obviously you'll need a keyboard), login, and use your favorite unix editor.
I prefer joe (ctrl-k then h for help).

Code: Select all

#cd /media/fat/linux <-- or wherever that file resides (I don't use tty2oled)
#joe tty2oled.ini
Finally, another option is to remove the SD-micro and edit the file using your desktop PC with SD-card reader.
Be aware, you must use an editor such as Notepad++ that is Unix aware and won't convert the EOL encoding to CR/LF.
I would not use this method to edit (or transfer) files on a regular basis to as the SD-card socket can potentially break or wear out.

Hope that helps...

Re: How Do I Edit the .ini File?

Posted: Mon Aug 01, 2022 6:03 pm
by jca
If you use WinSCP it has a built-in editor but you can also use an external editor and as noted by bbond007 Notepad++ is the way to go. Do not use the Windows Notepad.

Re: How Do I Edit the .ini File?

Posted: Tue Aug 02, 2022 4:21 am
by Malor
Another nice easy command-line editor, included on the mister, is "nano".

You can drop to the Linux command line with F9 at the main menu. Log in as root, cd to the directory that contains the ini, and type:

Code: Select all

nano tty2oled.ini
Like the example with joe (which is a little harder to use, IMO), this won't mess up the text file with DOS-mode carriage-return/linefeeds, it will be pure Unix-style linefeed-only.