Solved

Upgrading Linux Remotely

Posted on 2006-07-03
4
216 Views
Last Modified: 2013-11-13
Hi,

I have a Linux box with remote telnet access. My OS is RH 7.3. I wouuld like to upgrade to RH 9 or Fedora without loosing my current settings. Is there a way to do this remotely via telnet ? How ? I do not have physical access to the machine.

Thank you,
Antonio
0
Comment
Question by:agubaira
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
ID: 17031055
First - get rid of telnet!!!!!! Replace with sshd - Telnet is not secure!

Not having access to your system poses a major risk in the event of something going wrong and you cannot reboot!.

Anyway - This is possible to do:)...but not via the standard approach that you would normally use, and it is not particularly easy!...and there is still a very high risk that this may go wrong! I *STRONGLY* recommend that you try and confirm this process at work on a spare PC before attemptin it remotely. Document as you go!

1. You need to be able to guarantee that you can still connect to your system after reboot! Useful tricks here are to use a 'statically linked' software package:

http://matt.ucc.asn.au/dropbear/dropbear.html

would be ideal for this. Configure it to boot automatically!

2.    Check whether you are using 'lilo' or 'grub' as your boot loader. You need to understand the process that this goes through in details so that you can correctly insert your new kernel when you wish to replace the old one. For grub you merely add another title section above the existing on, and it'll boot the top one first:

title My Enterprise Linux (2.4.21-15.EL)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/
        initrd /initrd-2.4.21-15.EL.img

The kernels and the initrds are normally available on the distro CDs, so you can just upload them to the correct location. Note that you must have the correct modules installed for the new kernel, or this won't work. I thoroughly recommen dthat you build yourself a new kernel from scratch in order to ensure that you understand all the elements that tie in here:

http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html

Once you've got this far, the easiest approach is to stick all of the rpm files from the FC install CD into a single folder, and rpm -Uvh *. Everything will get upgraded, but it will take some time! Unfortunately there will be files left 'lying around' from the old installation...and of course your home directory wont be affected by this process.

Obviously make a backup of everything you need before doing this!

(   (()
(`-' _\
 ''  ''

0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17031072
Some additional useful links:

Lilo:

http://www.tldp.org/HOWTO/LILO.html

Grub:

http://www.gnu.org/software/grub/

(   (()
(`-' _\
 ''  ''
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now