Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. How to set it permanently?

share|improve this question
up vote 16 down vote accepted

You should go to Edit->Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions.

share|improve this answer

Press Ctrl + Alt + t to open a terminal. Make sure the terminal is maximized (if it isn't already) by clicking on the right-most icon at the top of the window (the square in the circle). At the top of the window you should go to Edit -> Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions. If you would like unlimited scrolling, go to the Scrolling tab and put a check in the Unlimited box. Hope this helps!

share|improve this answer

In older versions you can find this setting in the /usr/share/vte/termcap/xterm file.

share|improve this answer

in the latest LTE 14.04 , do following: in Terminal (ctrl+alt+t) go to :Edit->Profile Preferences->Scrolling->scrollback check "ulimited"

share|improve this answer

Here's a little script to really permanently set a window size, regardless of gnome-terminal profile that you are currently using. This works on all windows belonging to gnome-terminal

To make it work, you need two things: 1) make sure you have wmctrl installed and 2) run this script as one of the Startup Applications.

Notice that line with wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650 sets size and position according to gravity,x-position,y-position,width,height format

#!/bin/bash
# Author: Serg Kolo
# date: Sat, Sept 19,2015
# Purpose: a script to permanently set
# terminal window, size
# Written for: http://askubuntu.com/q/64652/295286

APP_CLASS="gnome-terminal.Gnome-terminal"

while [ 1 ]; do
  WIN_ID=$(printf %x $(xdotool getactivewindow))
  WM_CLASS=$(wmctrl -lx | awk -v search=$WIN_ID '{ if($1~search) print $3 }')
  WMCTRL_ID=$( wmctrl -lx | awk -v search2=$WIN_ID '$0~search2 {print $1}' )
    if [ $WM_CLASS = $APP_CLASS ]; then
           wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650 
    fi
sleep 0.25
done
share|improve this answer
    
How is this working for OS X? – Oni1 Mar 31 at 10:04
    
@Oni , why are you asking about OSX on Ubuntu site ? They're different systems . – Serg Mar 31 at 19:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.