Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-12-2010, 01:06 AM   #1
Registered: Jan 2010
Location: india/pune
Distribution: Arch Fedora20
Posts: 126

Rep: Reputation: 18
Unhappy can i have "go to windows" button on gnome menu

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!
Old 06-12-2010, 01:56 AM   #2
LQ Newbie
Registered: Jun 2010
Posts: 17

Rep: Reputation: 3
There is some information here that should help

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
Old 06-12-2010, 07:58 PM   #3
Registered: Apr 2009
Location: Perth, Australia
Distribution: Ubuntu/CentOS
Posts: 208

Rep: Reputation: 51
Try this:
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)

Last edited by SuperJediWombat!; 06-12-2010 at 08:08 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
About the "show desktop" -button in gnome raaste Linux - Software 5 05-22-2006 05:25 PM
Edit what's in the K-Menu ("start" button) smiley_lauf SUSE / openSUSE 4 01-16-2006 12:55 AM
Glade freezes when I click the "Edit Menu" button josedsilva Linux - Software 0 12-26-2005 11:45 PM
How do you make the windows button on keyboard cause "start" menu to appear FocusedWolf Linux - General 4 04-20-2004 10:56 PM
"Show Desktop" button for GNOME ministre Linux - General 2 10-22-2003 07:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration