Wednesday, August 21, 2013

SCP could fail

What could go wrong with scp?

Recently I am using Oracle Developer Day virtual machine to test Oracle DB. Transferring files between the host and the VM by scp failed as both .bash_profile and .bashrc of the oracle user contains some output commands. scp is not interactive so those lines must be commented out as the following comment points out.

Thursday, August 1, 2013

Terminator startup

Terminator is a terminal emulator for multiple platforms.
I just have replaced the gnome-terminal with it, as it has really nice and usable features.
My favorite is the possibility to create layouts and with one command I can spawn a new terminal window that is split to separate command areas. I use command prompt a lot: for git, maven, ssh or just for finding files. So it is really nice that for one project I create just one layout with all the necessary command shells that I need usually.
One point that hold me back for a while was that I wanted the separate shell prompts to start from different folders. In the layout menu there is a possibility to specify a startup command for a given terminal. It took me some time to realize though that this command replaces the terminal. So if there is no command it starts my shell. If a command is given it executes it, but the shell will not be started. So my first trial to write
cd /home/tyufi/tools/jboss
was not enough it must have been extended to
cd /home/tyufi/tools/jboss; bash
Now it works perfectly!

A complete guide can be found here.