LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can i have "go to windows" button on gnome menu (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-have-go-to-windows-button-on-gnome-menu-813675/)

rhklinux 06-12-2010 12:06 AM

can i have "go to windows" button on gnome menu
 
:newbie:
Code:

Ubuntu 10.04 Lucid Lynx
I have been told that one can write a script which will restart the computer then bypass grub and open other os mentioned in the script.
can anyone give me any idea how to write this script and what is the way to execute it ??
thanks in advance!

firbolg 06-12-2010 12:56 AM

There is some information here that should help http://ubuntuforums.org/showthread.php?t=1488926

For instance - but you'd need to check the numbers of the menu entries you have


sudo sed -i -e 's_set default=0_set default=1_g' /boot/grub/grub.cfg
sudo reboot

SuperJediWombat! 06-12-2010 06:58 PM

Try this:
Code:

echo "savedefault --default=2 --once" | grub --batch; sudo reboot
Replace --default=2 with the number for the OS you want to boot.

That will only work with grub2 (which you should have by default on Ubuntu 10.04)


All times are GMT -5. The time now is 08:21 AM.