InfectedProject

Quick tip: Upgrade your Linux computers remotely

Jan 14th 2008
5 Comments
respond
trackback

Connect to your Linux system via SSH for a quick and easy update. This quick little tutorial comes in handy when you are managing multiple Linux systems and need to update them all to the latest and greatest software. Please note; It is strongly recommend that you do NOT try to upgrade your system over the internet since the connection is more prone to disconnect mid-upgrade and that would most likely break your Linux installation.

Requirements:

  • Static IP set for the remote computer
  • SSH Installed on the remote computer
  • APT Installed on the remote computer

Step One

Step One - SSH Remote Upgrade

Connect to the system you want to upgrade ssh adminusername@ip.address.here then press enter. Now type in you password and press enter again. You should now be connected to the remote Linux machine and see its CLI.

Step Two

Step Two - SSH Remote Upgrade

Now type in sudo apt-get update and press enter. This will update the sources, so APT knows what to packages to upgrade.

Step Three

Step Three - SSH Remote Upgrade

Type sudo apt-get upgrade and press enter. Review the updates (if there are any) and type yes to upgrade.

UPDATE: Commenter Jordan has enlightened me that you can issue a screen command to keep your job running even if you close your SSH session, I did some research and found some information on how to do this here and a nice screencast here.


This post is tagged , , , , , ,

5 Responses

  1. Jordan says:

    You could use the screen command so that it continues even if you get disconnected, and thus work over the internet/wireless network. (note, this means you can do the updating from your iphone/other ssh enabled mobile device.

  2. max stirner says:

    I use the no-ip on the router or server (very easy to do on linux) to get a free domain name on a dynamic ip address (e.g. dsl connections). No need for a fixed IP.

  3. Yohan says:

    Very cool thanks!

Leave a Reply

Categories

About

My name is Andrew and I happen to be a seventeen year old male (vegetarian, modernist, secularist, humanist, geek) homo sapien. I’m living out my short life on a pale blue dot, orbiting a fusion reactor, located somewhere in one of the spiral arms of our gargantuan galaxy, aimlessly wandering the infinite expanse of the cosmos. You just happened to have reached my tiny corner of the Universe. [...]

Latest Photos

Bedroom 360°Looking FowardReminiscingSilhouetteMyspace January '09 - Neue Year (Updated)My Very Own Font!Domo arigato, Mr. Roboto.Surrounding

Recently Played

  • Walt Disney Studios – WALL-E 4 hours ago
  • The Velvet Underground – All Tomorrow's Parties 4 hours ago
  • The Velvet Underground – Venus in Furs 4 hours ago
  • The Velvet Underground – There She Goes Again 4 hours ago
  • The Velvet Underground – The Black Angel's Death Song 5 hours ago
  • The Velvet Underground – I'll Be Your Mirror 5 hours ago