GRUB2: set Super Mario as startup tune

echo "GRUB_INIT_TUNE=\"1000 334 1 334 1 0 1 334 1 0 1 261 1 334 1 0 1 392 2 0 4 196 2\"" | sudo tee -a /etc/default/grub > /dev/null && sudo update-grub

22
By: stanix
2011-04-12 12:47:04

1 Alternatives + Submit Alt

What Others Think

untested, but if this works, the awesomeness could only be exceeded by changing the startup tune to the imperial death march
linuxrawkstar · 562 weeks and 1 day ago
Can anyone confirm if this works?
leovailati · 562 weeks and 1 day ago
This feature is documented at https://help.ubuntu.com/community/Grub2 , so it's for real. It is worth pointing out that the docs say that the Grub menu will not be displayed until after the music is done playing. Be aware of this when composing long into tunes.
smithadmin · 562 weeks ago
yes, it works!
cd1 · 561 weeks and 6 days ago
Does this work in Fedora14?
dtolj · 561 weeks and 5 days ago
@dtoli if you hav grub2 installed then yes! What I'm interested in knowing is, will it work in burg? I'm going to try it out later.
sinisterstuf · 561 weeks and 4 days ago
@sinisterstuf: it works for burg replace grub by burg and it will work
halohell · 561 weeks and 3 days ago
Found elsewhere: GRUB_INIT_TUNE="480 900 2 1000 2 800 2 400 2 600 3" for the "Close Encounters" greeting message. Sure would be nice to cat /dev/dsp somehow to test these tunes without rebooting.
Mozai · 560 weeks and 1 day ago
"sure would be nice to ..." Ha! instead of waiting, I figured it out myself. Pity that the GRUB2 wiki is down, else I'd add it there. It's too long to be a one-liner; pity I can't use it to curry favour with this website. tune="480 900 2 1000 2 800 2 400 2 600 3"; f="";tmpdir=$(mktemp -d);for d in $tune;do if [ ! "$t" ];then t=$d;elif [ ! "$f" ];then f=$d;else sox -U -r 8000 -n -t raw - synth $(echo "$d*(60/$t)"|bc -l) sine $f >>$tmpdir/grubtune.ul;f="";fi;done;sox -c1 -r 8000 $tmpdir/grubtune.ul $tmpdir/grubtune.au;play -q $tmpdir/grubtune.au;/bin/rm -r $tmpdir
Mozai · 560 weeks and 1 day ago
Hint: divide/multiply every second number by 2 to get a lower/higher octave :)
stanix · 559 weeks and 5 days ago
Amazing. This worked like a charm
nssy · 559 weeks and 2 days ago
Star Wars Imperial Death March: GRUB_INIT_TUNE="480 440 4 440 4 440 4 349 3 523 1 440 4 349 3 523 1 440 8 659 4 659 4 659 4 698 3 523 1 415 4 349 3 523 1 440 8"
Striek · 554 weeks and 2 days ago
:D
sputnick · 554 weeks and 1 day ago
tee is used when you need to print to STDOUT _and_ a file. Using it with sudo like this just adds an unneeded program into the mix. The alternative, passing all the commands to sudo as a string to be execute by bash, is somewhat better but still awkward.
dbbolton · 544 weeks and 2 days ago
this one work with fedora i think. https://digitalsignbrothers.com/
dayothomas857 · 32 weeks and 5 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. Geronimo Stilton Books
xolabemo · 11 weeks and 3 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. Milano Seo
xolabemo · 8 weeks and 5 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.pre-IPO shares
xolabemo · 8 weeks and 5 days ago
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. Huiswerkbegeleiding
xolabemo · 8 weeks and 2 days ago
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. valves manufacturers in uae
xolabemo · 7 weeks and 4 days ago
Nice to read your article! I am looking forward to sharing your adventures and experiences. https://mylifelogin.org/
xolabemo · 7 weeks and 4 days ago
I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think. Bathroom Supplies
xolabemo · 7 weeks ago
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. Walworth valves supplier
xolabemo · 6 weeks ago
I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up.. double sided tape suppliers
xolabemo · 5 weeks and 5 days ago
I gotta favorite this website it seems very helpful . double sided tape wholesale
xolabemo · 5 weeks and 5 days ago
I gotta favorite this website it seems very helpful . double sided tape suppliers
xolabemo · 5 weeks and 5 days ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. vendita pneumatici online
xolabemo · 5 weeks and 1 day ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. vendita pneumatici online
xolabemo · 5 weeks and 1 day ago
I love the way you write and share your niche! Very interesting and different! Keep it coming! www.headquarterscomplaints.org
xolabemo · 5 weeks and 1 day ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. wwwroblox.com redeem
xolabemo · 4 weeks and 4 days ago
That is really nice to hear. thank you for the update and good luck. JDA Demand Fulfillment Training
xolabemo · 3 weeks and 4 days ago
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. Python Online Job Support from India
xolabemo · 2 weeks ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.minecraft skindex
xolabemo · 2 weeks ago
Great content material and great layout. Your website deserves all of the positive feedback it’s been getting. https://www.createemailaccounts.net
xolabemo · 1 week and 6 days ago
I gotta favorite this website it seems very helpful . UiPath freelancer
xolabemo · 1 week and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: