9.3 has a long-click reboot that lets you choose what grub boots. Is there a script for this? I'd like to can remote reboot between SuSE and XP on one box. -- JDL
* Randall R Schulz <rschulz@sonic.net> [09-16-05 09:30]:
On Thursday 15 September 2005 23:56, John D Lamb wrote:
9.3 has a long-click reboot that lets you choose what grub boots.
"Long click?" What do you mean by that?
?? pause ?? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
Randall R Schulz wrote:
John,
On Thursday 15 September 2005 23:56, John D Lamb wrote:
9.3 has a long-click reboot that lets you choose what grub boots.
"Long click?" What do you mean by that?
When you log out, instead of clicking on reboot, click and hold on the little down arrow at the right of the button. This will cause a drop down menu to appear, where you can select the OS to boot into.
James, On Friday 16 September 2005 09:06, James Knott wrote:
Randall R Schulz wrote:
John,
On Thursday 15 September 2005 23:56, John D Lamb wrote:
9.3 has a long-click reboot that lets you choose what grub boots.
"Long click?" What do you mean by that?
When you log out, instead of clicking on reboot, click and hold on the little down arrow at the right of the button. This will cause a drop down menu to appear, where you can select the OS to boot into.
Right. Click-and-hold. I should have thought of that. It's probably worth pointing out to any newbies (and the forgetful) who might be paying attention that when you see a GUI signal like this (the small inverted triangle that appears, in this case, on the "Restart Computer" button) is an indication that clicking and holding will display a pop-up menu of alternatives to the default action that will occur if you simply click that button. The forward and back buttons in Mozilla / Firefox and other browsers are other examples of this kind of GUI device. Randall Schulz
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2005-09-16 at 12:06 -0400, James Knott wrote:
"Long click?" What do you mean by that?
When you log out, instead of clicking on reboot, click and hold on the little down arrow at the right of the button. This will cause a drop down menu to appear, where you can select the OS to boot into.
On which program you do that? I guess you mean in kdm, but as I don't use it, I don't know. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDKw+TtTMYHG2NR9URAjjVAJ9w7DUx0arPvDpaKpEUJp3DUCkwWACeJx9d IGpzMObt+gKjVo7Kxl0q9FE= =+hOb -----END PGP SIGNATURE-----
Carlos E. R. wrote:
The Friday 2005-09-16 at 12:06 -0400, James Knott wrote:
"Long click?" What do you mean by that? When you log out, instead of clicking on reboot, click and hold on the little down arrow at the right of the button. This will cause a drop down menu to appear, where you can select the OS to boot into.
On which program you do that? I guess you mean in kdm, but as I don't use it, I don't know.
I use KDE for the desktop.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2005-09-16 at 21:58 -0400, James Knott wrote:
On which program you do that? I guess you mean in kdm, but as I don't use it, I don't know.
I use KDE for the desktop.
And, you click "reboot" inside the desktop, or do you log off and then click "reboot" in the login manager? The login manager is usually kdm, not kde. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDLAs8tTMYHG2NR9URApPHAJ9y9N3qZqhZakHjZBOjeQy1Dr9DCACgjxH8 U/c0mKvxKh/gvgvGsJ65gw8= =lgTL -----END PGP SIGNATURE-----
Carlos E. R. wrote:
And, you click "reboot" inside the desktop,
inside the desktop, right clic, coose "disconnect", you will be prompted by a menu... there is also a text mode option (lilo -R, I don't know for grub) jdd -- pour m'écrire, aller sur: http://www.dodin.net http://valerie.dodin.net http://arvamip.free.fr
On Fri, 16 Sep, 2005 at 07:56:31 +0100, John D Lamb wrote:
9.3 has a long-click reboot that lets you choose what grub boots.
Is there a script for this? I'd like to can remote reboot between SuSE and XP on one box.
Your problem will be how to reboot out of windows, and back into linux... no wait... just have linux as the default selection in menu.lst. As to the mechanics of how KDM instructs grub to boot some alternative system, I'm sorry but I don't know. I don't have access to a 9.3 that runs KDE/KDM until monday, so I can't look into it. Since you're talking about Windows, I must assume that you already have some 'remote desktop' infrastructure in place. And as such I think your real task is how to get KDM to display it's little 'box-of-options' when you log out of your KDE-session. Rebooting Windows directly from Windows (which is often needed IIRC) is probably not an option. Unless you go for a setup in which your menu.lst is somehow accessible from inside windows. This probably means something like putting /boot on a separate (fat*) partition, which of course jeopardises your ability to boot the machine at all, should windows (or some antivirus software) suddenly decide to 'maintain'/clean/defrag/otherwise destroy the files. But GRUB is very versatile, and `info grub` *might* shed some light. (The manpage is somewhat limited, the whole manual is available through `info`). As an example of Grub's capabilities; I have this machine that runs headless and holds three systems; 9.3 and two ancient Debians. It's used for compilations for, and PXE booting of, LEAF routers. Since I'm fortunate enough to have that machine sitting next to a server, I had the option of connecting the two by way of a serial cable, and then having Grub display it's menu using the serial connection. Ssh'ing into the server and opening up kermit on the appropriate ttyS*, I get the Grub menu, and may choose to boot either of the three systems. I ended up with this setup, because it seemed the 'path of least resistance', in that it didn't require anything special to be done in any of the systems involved. (Actually I did put a getty on the tty in all three, since I might as well be able to log into the systems through the serial line, now that I was already halfway there)... HTH /Jon -- YMMV
On Thursday 15 September 2005 23:56, John D Lamb wrote:
9.3 has a long-click reboot that lets you choose what grub boots.
Is there a script for this? I'd like to can remote reboot between SuSE and XP on one box.
-- JDL
I would investigate using a dcop call to ksmserver. Get kdcop, if you don't have it already. It provides a gui to access an application's dcop interface. This is quit handy in figuring out which dcop call will do what you want. In your case, ksmserver (the kde session manager) has a logout signal that will logout and reboot or halt your machine. Telling it which OS to reboot into is a function in grub. That said, my script GRUB NextBoot (search kde-apps.org) will do this from within a kde session. So if you are into the box remotely in an NX session, this would work for you. However, it seems you are probably using ssh for a command line remote session. In that case, you should modify grub nextboot for your own needs. All you need to do tell grub what to reboot into. Make a textfile: savedefault --stage2=/boot/grub/stage2 --default=$input --once quit; Where input is the index number from your grub menu.lst; 0 is the first OS, 1 is the second, etc... Then as root, execute `grub < textfile` Now that grub will boot into whatever OS you told it to for the nex reboot only, now tell it to reboot with a safe logout of KDE: `dcop --all-users --all-sessions ksmserver ksmserver logout 0 1 0` # 0 2 0 is halt; see KApplication shutdown enums in KDE API -- Mark A. Taff With sufficient thrust, pigs fly just fine. --RFC 1925
participants (8)
-
Carlos E. R.
-
James Knott
-
jdd sur free
-
John D Lamb
-
Jon Clausen
-
Mark A. Taff
-
Patrick Shanahan
-
Randall R Schulz