Skip to content

setupUpdate

Florian Schneider edited this page Oct 7, 2014 · 1 revision

Maintenance of the Workstation

Superuser rights

Updating the server's OS

From time to time, the Linux system on the workstation needs to be updated for reasons of security and reliability.

This can easily be prompted remotely from the terminal, after you logged in via ssh. Just call the following prompts. Each will require a couple of minutes downloading and installing.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

After that, a reboot is necessary:

sudo reboot

You will need to provide the boot security password after start up. This needs to be done physically via the workstations keyboard.

Edit files through the terminal

For maintenance of the webserver, e.g. setting access rights, or of git post-update hooks you will need to edit files on the workstation.

This is a bit tricky because you will need to have the right to do so and once you gained access you won't have a decent text editor with a graphical user interface (unless you are sitting physically in front of the workstation).

When connected via ssh you will have to work in vi. That is a minimalist editor for text files that runs in the terminal. This can be an annoyance if you do not know the minimal keys to navigate vi.

There are two modes in vi: the navigation mode and the text mode. By default, you start in navigation mode and can move the curser around. The most important prompts are:

  • dd : delete this line
  • ZZ : get out and save
  • !q : get out and don't save
  • a : switch to text mode and add something here

Once you are in the text mode, the other prompts won't work (instead you type litteral letters) before you hit ESC.

Clone this wiki locally