If you often have to log into remote machines, or always run a similar set of
terminal applications, you can use Konsole's “Session” feature
along with TDE's session management to automate a lot of this for you.
Let's take the following example:
You often have open an ssh session to the machine
administration
ready for generic administration
tasks.
You may have noticed the button on Konsole's tab
bar contains a menu if you click and hold on it, and you can choose new session
types here. We are going to add new entries to this menu.
Click on the menu entry ->
Choose the Session tab.
Fill in the first entry with a name. This is the name that will show in the menu, and will be the default label instead of Shell when you start a session of this type.
Enter a command just as you normally would if you opened a new
shell and were going to issue that command. For our first example above, you
might type ssh
.administration
On the lower part of the panel, configure this
session's appearance. You can have a different font, colour scheme,
and $TERM
type for each session.
Press the button. A dialog will ask you to confirm the filename.
Press .
You should now be able to press and hold the button
on the tab bar, and select your new session type from the list. A new shell
session will open within the Konsole window, with the result of your executed
command. In our example, you will be at an ssh
passphrase prompt, and when you provide your passphrase, you will be logged
into the remote machine.
[1]
Perhaps you want to remotely tail your http error logs on a
webserver, you could use a commandline something like
ssh
.-f
webserver
tail
-f
/var/log/httpd-error.log
You can use this to execute local commands as well. Try creating a
session where the command is tail
.
In this case, exiting the
running application will close the shell session as well.-f
/var/log/messages
One really nice use of this feature is if you find you always have the same set of open sessions, TDE can open them all for you automatically when you start a new TDE session. Simply have them open as you like when you exit TDE, and they will be saved with your TDE session, and restored just like any other application when you restart TDE.
You can assign shortcuts to any session.
Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team