Terminal profiles in Ubuntu...

AtlantaBob

Golden Member
Jun 16, 2004
1,034
0
0
Hi guys. I originally posted this in Ubuntu Forums, but didn't get a reply. I've found that Anandteh seems to know more about this kind of stuff, so I'm asking the same question here.... Thanks!

I had a question that I hope someone can help me with. I use a lot of terminal and terminal-based apps at work (mySQL, R, LaTeX). Ubuntu/Xubuntu (I switch between Gnome and XFCE) 9.04.

Ideally, I would like to have a separate terminal appearance for each terminal window (e.g. the normal terminal would have green text on a black background, the terminal for mySQL would have orange text on a black background, the terminal for LaTeX would have a smaller than usual font, and the R terminal would have blue text on a black background).

I suppose that I could create bash scripts that change the terminal colors before I run the commands for mySQL and R, but I don't know of a way to get the fonts to automatically shrink. I was thinking I could do something through terminal profiles but I haven't had much luck....

Any suggestions?

Thanks.
 

Alex

Diamond Member
Oct 26, 1999
6,995
0
0
The only thing I haven't figured out yet is launching a terminal window with a specific profile (shouldn't be too hard either).

In the terminal just go to Edit -> Profiles to create as many as you want (change font-size, colors, etc) and then Terminal -> Change Profile to switch...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Depends on which terminal you're using. I only have xterm and gnome-terminal installed but xterm has tons of color options and gnome-terminal supports both --window-with-profile=PROFILENAME and --tab-with-profile=PROFILENAME options.
 

AtlantaBob

Golden Member
Jun 16, 2004
1,034
0
0
Thanks guys! I'm really not sure why or how I missed that. It's much appreciated though.

Nothinman, I tried playing around with xterm, but I gotta say, I'm not sure I'm dedicated enough to figure out the right combination of options for that cryptic font -*-*-*-*-* command
(though for others who might want to try this link looked promising: http://linuxhelp.blogspot.com/...g-xterm-in-linux.html)

So, for right now, I'll either use xTerm with my Mac at home (which has a -fs font size option) or use gnome-terminal.

Again, thanks!
 

Net

Golden Member
Aug 30, 2003
1,592
2
81
just do this.

put this in you .bashrc located in your home dir

alias sqlterm="xterm -bg black -fg orange -cr green +cm +dc -geometry 80x24+100+50"


save, open up a new terminal

now anytime you type sqlterm you got your mySQL terminal

I would just run it as: sqlterm &
or make a shortcut for it.

For the script you could just do:

#!/bin/sh
#filename: runxterms
sqlterm &
myterm1 &
myterm2 &
myterm3 &

then save it and chmod 755 runxterms
./runxterms

----------------------------------------------------------------------------
some more useful changes

in your .bashrc

alias ls="ls --color"

in your .vimrc

set cindent
set smartindent
set autoindent
set expandtab
set softtabstop=2
set shiftwidth=2
"set cinkeys=0{,0},:,0#,!,!^F
syntax on
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |