How Do I Edit the .ini File?

Just got a MiSTer and need some help? Join the forum and post your questions here!
kupoRGB
Posts: 10
Joined: Fri Jul 29, 2022 1:55 pm
Has thanked: 1 time

How Do I Edit the .ini File?

Unread post 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!
bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: How Do I Edit the .ini File?

Unread post 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...
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: How Do I Edit the .ini File?

Unread post 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.
Malor
Top Contributor
Posts: 860
Joined: Wed Feb 09, 2022 11:50 pm
Has thanked: 64 times
Been thanked: 194 times

Re: How Do I Edit the .ini File?

Unread post 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.
Post Reply