Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Every time I reboot my linux machine I have to set up 5 or 6 terminals and Im trying to find a way to do this automatically. Bind a script to a shortcut or on startup that starts several terminals (extra point if theyre tabbed) and have each terminal ssh to different servers.

Any idea on how to do this? Using Ubuntu.

share|improve this question

migrated from stackoverflow.com Apr 25 '11 at 16:16

This question came from our site for professional and enthusiast programmers.

    
Probably better off at ubuntu.stackexchange.com –  nos Apr 23 '11 at 22:49

4 Answers 4

You could just run gnome-terminal -x command

Alternatively, I have something like this setup with terminator. I documented the process.

This allows you to do some interesting things with terminals. (You can ignore the compiz voodoo, but it is very good for making multiple terminals and having them autostart certain things)

share|improve this answer

System | Preferences | Startup Applications | Starttup Programs | Add

Name: SSH to $HOSTNAME
Command: gnome-terminal -e "ssh $HOST"

Add --tab to the command as desired.

share|improve this answer

This sounds like a perfect job for a terminal multiplexer like tmux or screen.

Set up your .tmux.conf to start with however many windows open, running the specific applications that you require.

See my answer here for details on how to accomplish this in tmux:

How to set up tmux so that it starts up with specified windows opened?

share|improve this answer

I do it like this:

  1. position the terminals manually, use xwininfo to get the geometry parameters
  2. store the terminal commands along with -geometry in a file (urxvt -font terminus ...)
  3. use wmctrl -s to select the correct virtual desktop
  4. run the shell script with the terminal commands from ~/.xinitrc or bind it to a key
share|improve this answer

Your Answer

 
discard

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