After each login, there's certain commands that I run on specific tabs of gnome-terminal. This is a tedious process, so can this be done automatically?
Yes, there is a way. You need to tell gnome-terminal to launch tabs with certain profiles; these profiles must be setup to start a shell with the commands you want.
First, you need to make a script (or a launcher icon) that will start
Now, you need the profile you just referenced. This is created by opening
Next, you need to create that shell profile file. So edit $HOME/.dev_profile (or whatever file you specified in the previous step). Place whatever commands you want in there; they will be executed when the shell is started. Treat this like you would a .bashrc - this will replace it. Depending on how your .bashrc is setup, you may want to
|show 1 more comment|
You can start multiple commands on the same gnome-terminal command line by specifying the
If you want a command to run when you log in, put it in a shell script (for example
(You must use the full path to your home directory on the
(This answer has been tested with Gnome 2.30 on Ubuntu 10.04. As Gnome sometimes breaks compatibility, it may or may not apply to other versions.)
I am seeing here a lot of stuffs. Probably you do not need anything of this.
These are the steps that I did in my Oracle 5.9 Linux:
It worked for me. Of course, in my case, I just want to run .profile to setup my terminal environment.