LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-12-2010, 12:06 AM   #1
rhklinux
Member
 
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



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

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

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

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


Reply



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 04:25 PM
Edit what's in the K-Menu ("start" button) smiley_lauf SUSE / openSUSE 4 01-15-2006 11:55 PM
Glade freezes when I click the "Edit Menu" button josedsilva Linux - Software 0 12-26-2005 10:45 PM
How do you make the windows button on keyboard cause "start" menu to appear FocusedWolf Linux - General 4 04-20-2004 09:56 PM
"Show Desktop" button for GNOME ministre Linux - General 2 10-22-2003 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

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