Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please type this in a terminal: gksudo gedit /usr/share/applications/gnome-termninal.desktop
(Or however you get to root in open solaris)
Scroll all the way to the bottom.
Look for the line: Exec=gnome-terminal
And replace it with: Exec=gnome-terminal --geometry 77x48
Save, close, and then open any gnome-terminal. It will have the new geometry.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
gksudo isn't implemented under Solaris as sudo isn't part of it.
You are right changing that Exec entry in the /usr/share/applications/gnome-terminal.desktop file will affect terminals launched from the menu. That won't change those open from the desktop though.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Not sure about what you suggest with right clicking.
I was referring to the terminal window launched by right clicking on the desktop and choosing the "Open Terminal" (or "Open in Terminal") menu entry. That one ignores the /usr/share/applications/gnome-terminal.desktop setting.
Have you tried that change of profile and then making that profile your new default profile?
Shold work, as looking though gconf settings for your account for gnome-terminal also should work. There is a graphical and a terminal tool for changing those.
Precisely. I was asking about that setting that I doesn't find. Please clarify.
I understand you want to customize the geometry of the gnome-terminal window you get when you right click on the desktop and choose "Open terminal" or on a nautilus (non Side Pane) folder and choose "Open in terminal".
Regards "Open in terminal" only, the facility is provided by the open-in-terminal package and, AFAIK, there is no way to get it to do what you want.
You can do what you want (and a lot more) using the nautilus-actions package. First exploration of nautilus-actions suggests it is a very flexible tool, easily allowing a superset of open-in-terminal's facilities and thus obsoleting open-in-terminal except for very basic functionality or restricted environments.
Here's how to use nautilus-actions to set up a "Open root terminal here" in the same place as "Open in terminal" (I find Microsoft's wording more comprehensible than Gnome's; you don't open the directory in the terminal, you start the terminal in the directory). "Open terminal here" would be similar, without "-x su -" in the parameters.
Label: Open root terminal here
Tooltip: <empty>
Icon: <your choice; not required if icons not displayed>
Path: /usr/bin/gnome-terminal
Parameters: --geometry=1028x768+0+0 --working-directory=%d -x su -
Conditions
Only folders: selected
The new menu item was not visible until logging off and back on (restarting nautilus). Same for configuration adjustments.
Anybody know if nautilus-actions can add context menu items to nautilus' Side Pane tree view folders -- and, if so, how?
Best
Charles
Last edited by catkin; 07-01-2009 at 02:08 AM.
Reason: Better English and removed terminal profile
I have a very trivial question to ask,pls dont mind
I wanted to change the terminal size to 77*48 by default
How do i do it?
I looked around in the "profiles" tab under the edit section of terminal, but couldnt change it as default.
I am using snv_89
Thanks
I know this thread has been all over the place but.... the easiest way to do this is edit /usr/share/vte/termcap/xterm and look for
:co#115:it#8:li#36:\
( well dont pay attention to the numbers I put those there) - put 77 after "co#" and put 48 after "li#" - every terminal you open anywhere will default to this size
Sorry if I did not understand or missed something in the thread...but this has always worked best for me -
Edit: O wow this is an old thread...sorry for resurrecting it
I know this thread has been all over the place but.... the easiest way to do this is edit /usr/share/vte/termcap/xterm and look for
:co#115:it#8:li#36:\
( well dont pay attention to the numbers I put those there) - put 77 after "co#" and put 48 after "li#" - every terminal you open anywhere will default to this size
Sorry if I did not understand or missed something in the thread...but this has always worked best for me -
Edit: O wow this is an old thread...sorry for resurrecting it
Thanks for the info. Just tried it but didn't work for xterm or gnome-terminal. Some re-initialisation required? Which system does it work on for you?
Hello ADxD_7 Thanks for the info. Just tried it but didn't work for xterm or gnome-terminal. Some re-initialisation required? Which system does it work on for you?
Best
Charles
Well the only thing you should have to do is exit all gnome-terminal processes - and it should change it - I forgot that it only works for gnome-terminal not for xterm...sorry - easiest way to make it so xterm opens that size is put
alias xterm='xterm -geometry 77x48'
into your .bashrc or .cshrc or wherever is applicable for you
Well the only thing you should have to do is exit all gnome-terminal processes - and it should change it - I forgot that it only works for gnome-terminal not for xterm...sorry - easiest way to make it so xterm opens that size is put
alias xterm='xterm -geometry 77x48'
into your .bashrc or .cshrc or wherever is applicable for you
Thanks. It worked, not after exiting all terminals but after rebooting (might have worked after logoff/on but was rebooting anyway). This may be the only way of changing the terminal provided by the open-in-terminal package.
Kind of weird that a file called xterm should affect gnome-terminal -- and not xterm!!! Nobody ever said Linux was consistent
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.