Lecture Note: ソフトウェア・クラウド開発プロジェクト実践

Tips

Use GNU Screen for your group work

GNU Screen is a screen manager with VT100/ANSI terminal emulation. GNU Screen provides various functions. One of the features of GNU Screen, multi display mode, enables you to share your terminal among your team.

GNU screen is managed by the package manager, apt, in Ubuntu server, so you can install it just by executing the following command:

$
sudo apt-get install screen

To create a new session named <mysession>, type the following command:

#
screen -S mysession

Now you can share the session from other terminals of the same user by typing the following command:

#
screen -x mysession

We recommend to use screen command from the root user to share the terminal. Note that the session can be shared among multiple users but it requires you to change the permission of /usr/bin/screen and /var/run/screen to 6755 and 0755, respectively; which may trouble you.

Copy your SSH public key to a server (before disabling password authentication)

For SSH public key authentication, your SSH public key must be copied to .ssh/authorized_keys in your home directory. However, copy and paste operation sometimes leads to some troubles such as permission misconfiguration, so you can you ssh-copy-id before you disable password authentication. To use it, juse type the following command at your client host:

$
ssh-copy-id <username>@<hostname>