LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 07-27-2009, 01:34 PM   #1
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
How to set default size for gnome-terminal


A new la entry has been added:

How to set default size for gnome-terminal

Quote:
If you try to do it by editing your profile in gnome-terminal you'll see that there actually isn't an option for it and if you just use your mouse to resize it while you do your work in the gnome-terminal you'll see that if you close it and then start it again the size will be default,as before.
I have done some searching and reading and this is what I've found;

You need to look for a file,which in my example,because this was done on Ubuntu is in /usr/share/vte/termcap/xterm and it looks like this:

[code]# This is a cut-down version of the termcap file from my box with some entries
# r
 
Old 05-17-2010, 08:23 PM   #2
bg3075
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15
Location of xterm in Fedora

In Fedora Core 12, file is located at usr/share/vte/termcap/xterm
 
Old 06-03-2010, 02:19 AM   #3
iqbal.shirol
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 1
Smile Ubuntu 8.04 - change the default size for gnome-terminal

In Ubuntu 8.04 also the same path:

/usr/share/vte/termcap/xterm

The default size is always 80 columns and 24 lines.
/usr/share/vte/termcap/xterm (part of the file is shown below)
You edit the default size by changing the line (displayed in bold below)

-----------
/usr/share/vte/termcap/xterm
-----------
# This is a cut-down version of the termcap file from my box with some entries
# removed (add them back in to override the terminal's behavior):
# kI (Insert, Delete is handled programmatically)
# kP/kN (Page Up, Page Down)
# ku/kd/kl/kr (Up, Down, Left, Right)
# k1/kd2/k3/k4/k5/k6/k7/k8/k9/k; (F1-F10)
# K1/K2/K3/K4/K5 (KP Up, Down, Left, Right, Begin)
xterm-xfree86|xterm-new|xterm terminal emulator (XFree86):\
:am:km:mi:ms:xn:\
:co#80:it#8:li#24:\ #change this line for your own default size
:AL=\E[%dLC=\E[%dPL=\E[%dMO=\E[%dB:IC=\E[%d@:\
:LE=\E[%dD:\
:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:bt=\E[Z:\
:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ec=\E[%dX:\
:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[!p\E[?3;4l\E[4l\E>:\
:kD=\177:\
 
Old 06-03-2010, 07:02 AM   #4
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
In the terminal window Edit->Profile Preferences. Under the General tab, you can set the Default size of columns and rows. These take effect the next time Terminal is launched.

Cheers, Lou
 
Old 06-03-2010, 11:34 PM   #5
iqbal.shirol
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 1
Re: To Lou, change the default size for gnome-terminal

Hey Lou,

They thing you are explaining is only available for newer versions of Linux.. For old versions you have to edit the file which I had mentioned earlier..

Cheers,
Iqbal S.
 
Old 06-04-2010, 01:00 PM   #6
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
Thanks Iqbal S, I hadn't realized how old the first post was.

Cheers, Lou
 
Old 06-04-2010, 11:43 PM   #7
iqbal.shirol
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 1
Re: To Lou, change the default size for gnome-terminal

Hey Lou,

Post is new one but the version which I have mentioned (Ubuntu 8.04) in that post is older one.. And for old versions you have to edit the file which I had mentioned earlier..

Cheers,
Iqbal S.
 
Old 05-12-2011, 01:28 PM   #8
lorikaufman
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Changing default size of terminal window

Quote:
Originally Posted by iqbal.shirol View Post
Hey Lou,

They thing you are explaining is only available for newer versions of Linux.. For old versions you have to edit the file which I had mentioned earlier..

Cheers,
Iqbal S.
What's the newest version of Ubuntu in which you can use Edit->Profile Preferences to change the default size of the terminal window rather than changing it manually?

Thanks,
Lori

 
Old 05-14-2011, 02:06 AM   #9
cameronl
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by lorikaufman View Post
What's the newest version of Ubuntu in which you can use Edit->Profile Preferences to change the default size of the terminal window rather than changing it manually?

Thanks,
Lori
According to this:
https://bugzilla.gnome.org/show_bug.cgi?id=155147#c55
It no longer works in gnome-terminal >= 2.30.x

And according to this:
http://ubuntuforums.org/archive/inde...t-1581201.html
Ubuntu 10.04 shipped with gnome-terminal < 2.30.x but updates will update it to the new gnome-terminal.
 
Old 06-24-2011, 04:04 AM   #10
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
I have Gnome Slackware 13.1, this works well. File is located /usr/share/vte/termcap/xterm
 
Old 01-14-2012, 09:35 PM   #11
smilingfrog
LQ Newbie
 
Registered: Apr 2011
Distribution: debian 8, Mint 17
Posts: 9
Blog Entries: 1

Rep: Reputation: 1
Since this post came up first on a google search, I thought I would add this link that shows how to adjust the property on the launcher tab in gnome to achieve the same effect.

Right click on the launcher icon. Select Properties and change the command: box to
Code:
gnome-terminal --geometry=123x42+0+0
where 123 is the width of the terminal, 42 is the height, and the +0+0 will give offsets from the upper left of the screen, replacing 0 with numbers.

A bit more flexible maybe.
 
Old 03-21-2013, 03:04 AM   #12
Gurutechnet
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Rep: Reputation: Disabled
gnome-terminal --geometry=86x19+0+0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does logrotate set size to 1048576 bytes by default if no size is specified? finebanana Red Hat 0 01-22-2009 12:10 AM
How to set the default size of the frame of terminal in Ubuntu 8.04? cricketlong Linux - General 3 12-15-2008 09:02 AM
set standard/default size of swing JPanel kpachopoulos Programming 4 03-11-2006 08:08 AM
how to set gnome-terminal to open in full screen by default ankur_linuxfan Linux - Software 0 01-18-2005 05:45 AM
how to set mozilla default font size mfeat Linux - Software 2 05-28-2004 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration