Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Remote Kernel Upgrade, How can I upgrade a kernel remotely safe
ehabheikal
post Mar 23 2004, 09:35 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 23-March 04
Member No.: 2,635



I have a RH 7.2 server and would like to upgrade the kernel to a special kernel.
I have lilo. The problem is that this computer is a dedicated hosted server that I have no access to except the ability to tell support to reboot it anything else incurs a hefty supprt cost sad.gif

So is there a way in lilo to tell lilo to boot the next time only with a given kernel, and then subsequent reboots go to the old and trusted kernel.
The Idea is if the new kernel boots and works I can then change the default, if it does not, then automatically on the next reboot it will revert to old and trusted kernel.

Any help will be much apprecaited. smile.gif
Go to the top of the page
 
+Quote Post
Robert83
post Mar 23 2004, 09:42 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

the safest way would be to use SSH to login to the remote computer, and you can then update kernel, update system, make settings etc... [in console mode], but if you enable X forwarding you can run mozilla or other graphical tools on that computer [if installed] , download stuff, install stuff.

you'll need SSHD as a service enabled on that server computer


and also you will need to modify this file on both server and client
/etc/ssh/sshd_config

the following line should be uncomented

#Protocol 2,1

like this

Protocol 2,1

and then remove protocol 1 [it has known vurnabilities, DON'T USE PROTOCOL 1, ONLY USE PROTOCOL 2, never EVER-EVER login to a linux computer [or any other] with TELNET, it transports password in plain text.

so you're protocol line should look like this

Protocol 2

then once SSHD is enabled at server

type :

ssh ip_adress_of_the_server

then the following will come out :

[root@demon /]# ssh 192.168.0.250
The authenticity of host '192.168.0.250 (192.168.0.250)' can't be established.
RSA key fingerprint is 6f:a3:bb:1e:fa:d7:7d:63:8e:da:9c:57:56:97:e8:9e.
Are you sure you want to continue connecting (yes/no)?

you should say yes

then the following will show up

Warning: Permanently added '192.168.0.250' (RSA) to the list of known hosts.
root@192.168.0.250's password:

enter the root pasword [the one that you used on the SERVER computer for login]

Last login: Tue Mar 23 11:05:26 2004 from 192.168.0.102
[root@thor root]#

and we are there, have fun smile.gif

once you're done type

exit

to logout from the server

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Robert83
post Mar 23 2004, 09:46 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



here is

the sshd_config file [only the important lines]

Port 22 [doesn't matter if it's commented, this is used by default, leave it as it is]
Protocol 2 [DON'T FORGET THIS on both CLIENT, SERVER]

X11Forwarding yes [make sure you enable this on both CLIENT,SERVER, otherwise you won't be able to use X based tools on you're server]


Subsystem sftp /usr/libexec/openssh/sftp-server

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Robert83
post Mar 23 2004, 09:51 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



And here is a short explanation of /etc/grub/menu.lst file


#boot=/dev/hda
default=0 [with this you tell the system wich kernel / system it will boot as default, in this example 0 means Fedora Core1 and 1 would mean DOS [WindowsXP] ]
timeout=10 [with this you can tell how much will grub wait till it boots the default choice , if you wan't you can set this to 1 to speed up things, BUT NEVER DO THIS UNLESS YOU'RE 99.99% SURE THAT THE NEW KERNEL WORKS AS IT SHOULD!!!]
splashimage=(hd1,7)/grub/splash.xpm.gz [don't touch]
title Fedora Core (2.4.22-1.2174.nptl) [you can change it to whatever name you want]
root (hd1,7) [don't touch]
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdd=ide-scsi rhgb vga=792 [now this might look different to you , but vga=792 I reccomend since it gives you a higher resolution , you can see more stuff in console]
initrd /initrd-2.4.22-1.2174.nptl.img [don't touch]
title DOS [you can change this to whatever name you want]
rootnoverify (hd0,0) [don't touch]
chainloader +1 [don't touch]

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 23 2004, 09:49 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I don't know a way to do what you want ... but if you have another machine locally ... you can move the kernel down onto that machine and test boot it there ...

See this thread


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 10:21 PM