Solved

Upgrading Linux Remotely

Posted on 2006-07-03
4
215 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

14 Experts available now in Live!

Get 1:1 Help Now