Ubuntu
I click in terminal: terminal->132x43 to change terminal size but after each reboot terminal size is set to default setting and I have to change it again. Help me set it permanently
Aufgabe und Verlauf liegen im englischen Original vor.
- Ergebnis
- Gelöst
- Punkte
- 1 / 1
- Schritte
- 7
- Dauer
- 4 min 10 s
Bewertungskriterien
- Checks that every expected line appears in the output as a line of its own, and that no forbidden line does.
Abschließende Antwort
Done! I set the GNOME Terminal default size to 132 columns x 43 rows permanently using gsettings on the default profile (b1dcc9dd-5262-4d8d-a863-c897e6d979b9). Verified by opening a new terminal window and running `stty size`, which outputs `43 132` — the setting will persist across reboots.
Verlauf
Schritt 10:01
The user wants to permanently set GNOME Terminal's default size to 132 columns x 43 rows. Per the KB FACTS, the correct approach is to use gsettings on the org.gnome.Terminal.Legacy.Profile schema at the path /org/gnome/terminal/legacy/profiles:/:<UUID>/ where <UUID> comes from `gsettings get org.gnome.Terminal.ProfilesList default`. I need to: (1) get the UUID, (2) set default-size-columns=132 and default-size-rows=43 at the correct path, (3) verify by opening a new terminal and running `stty size`.
- Plan erstellt
- Get the default GNOME Terminal profile UUID
- Set default-size-columns=132 and default-size-rows=43 at the correct profile path
- Verify by opening a new terminal window and running stty size
- Plan bestätigt3 Teilziele
- Plan erstellt
Schritt 20:10
The plan is committed. I need to start executing subgoal 1: get the default GNOME Terminal profile UUID. I'll use the shell tool to run gsettings get org.gnome.Terminal.ProfilesList default.
- Shell-Befehl
gsettings get org.gnome.Terminal.ProfilesList default
- Shell-Befehl
Schritt 30:21
Now I need to set default-size-columns=132 and default-size-rows=43 at the correct profile path /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/. I'll run both gsettings set commands.
- Shell-Befehl
gsettings set org.gnome.Terminal.Legacy.Profile default-size-columns 132 -t int --scope user /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ default-size-columns 132 && gsettings set org.gnome.Terminal.Legacy.Profile default-size-rows 43 -t int --scope user /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ default-size-rows 43fehlgeschlagen
- Shell-Befehl
Schritt 40:40
The correct gsettings syntax for relocatable schemas is: gsettings set 'org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:UUID/' KEY VALUE. I need to quote the schema:path combination properly. The path contains colons so I'll use single quotes.
- Shell-Befehl
gsettings set 'org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/' default-size-columns 132 && gsettings set 'org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/' default-size-rows 43 && echo 'SUCCESS'
- Shell-Befehl
Schritt 51:04
Both gsettings writes succeeded. Now I need to open a new GNOME Terminal window (Ctrl+Alt+T) and run 'stty size' to confirm it outputs '43 132'.
- Teilziel erreichtUUID b1dcc9dd-5262-4d8d-a863-c897e6d979b9 obtained.
- Teilziel erreichtgsettings set default-size-columns=132 and default-size-rows=43 at the correct profile path; both succeeded.
- Tastenkombination
ctrl+alt+t
Schritt 61:30
I need to click on the terminal and type 'stty size' to verify the dimensions. The terminal window is already open and focused.
- Klickthe terminal window prompt area
- Eingabe
stty size - Warten
Schritt 71:58
All three subgoals are complete: (1) UUID obtained, (2) gsettings set succeeded for both columns=132 and rows=43, (3) verification via stty size shows '43 132'. The task is done.
- Teilziel erreichtstty size in new terminal window outputs '43 132' confirming the permanent setting works.
- Als abgeschlossen gemeldet