Difference between pages "Nx" and "Grub2"

From Linuxintro
(Difference between pages)
(rPpSBsxP)
 
imported>ThorstenStaerk
 
Line 1: Line 1:
Filtering the frenidly skiesSo maybe you're tired of that one frenid that posts nothing but song lyricsMaybe it's the one who is constantly posting political rants. Or perhaps the one who apparently does nothing but play Facebook games all dayWhatever.  The point is, you're sick of it and you want to know what to do about it.Take controlFacebook offers some degree of control as to what you see in your feed from your frenids and page likesFirst of all, there's the blunt instruments  obviously, you can unfriend someone, but that's a bit extreme and antisocial if they still post some things you want to hear aboutThe other blunt instrument would be the Hide  option, as seen here:Why anyone would want to hide our sister site  is beyond me, but this hides all updates from this frenid or page from showing up in your feed, but you can still see what they have posted by going to their page. A bit imprecise, but simple and it works. Of course, you can undo this at any time.For a bit more control, go to the frenid or page in question's profile page, hover your mouse over the button that says  Friends  or  Subscribed,  and click  Settings.   When you've done that, you will see a menu that will allow you to pick what kind of updates you wish to see from this frenid  uncheck the ones you don't want to see.Unfortunately, while this offers you control over what type of update you get from frenids, it doesn't let you filter status updates by content  whether it's about what they had for dinner last night, or that  [insert politician here] is the worst thing since the bubonic plague. Fortunately, there's an option for that.Baby, pleaseBabies and kids are an ever-present topic on Facebook, and it seems there are some people out there that are just tired of hearing about the 347th cute thing Junior did this morning. Well, some computer savvy people who feel that way created the . Install the extension   which works with both Chrome and Firefox  and add a couple keywords to help it out, and it will happily replace all baby picture and posts with photos of cats (or whatever you want, though cats are the default).The awesome thing about unbaby.me is that since it works on a keyword basis, you can add any keywords you want to its filter list  politics, food,    type stories, whateverWhile not a Facebook-supported filter, it might be worth a shot at blocking some junk without having to block the person.Mister FixerIn addition to unbaby.meis another keyword-based filtering system, among other features for Facebook.  Social Fixer works on Firefox, Chrome, Safari, Opera 11+, and Grease Monkey  a few more choices than unbaby.me offers.  Its keyword filtering also offers a bit more flexibility and control  but it won't replace the political posts with pictures of cats.  Well, for some of you that's probably okay too.GD Star Ratingloading...
+
To configure the GRUB2 bootloader on SUSE Linux, use the file /etc/grub2/grub.cfg. I can be generated by the command
 +
  grub2-mkconfig -o /boot/grub2/grub.cfg
 +
from /etc/default/grub and the files in /etc/default/grub
 +
 
 +
/etc/grub.d/*____
 +
                  \
 +
                    --- (grub2-mkconfig -o /boot/grub2/grub.cfg ---> /etc/grub2/grub.cfg
 +
                  /
 +
  /etc/default/grub
 +
 
 +
 
 +
The best way to add a menu item to your grub2 boot menu is to add the command menuentry to the end of /etc/grub.d/40_custom like this:
 +
* change /etc/grub.d/40_custom to look like:
 +
<pre>
 +
#!/bin/sh
 +
exec tail -n +3 $0
 +
# This file provides an easy way to add custom menu entriesSimply type the
 +
# menu entries you want to add after this commentBe careful not to change
 +
# the 'exec tail' line above.
 +
 
 +
menuentry linuxintro{
 +
}
 +
</pre>
 +
* call grub2-mkconfig:
 +
<pre>
 +
# grub2-mkconfig -o /boot/grub2/grub.cfg
 +
Generating grub.cfg ...
 +
Found theme: /boot/grub2/themes/openSUSE/theme.txt
 +
Found linux image: /boot/vmlinuz-3.7.10-1.40-desktop
 +
Found initrd image: /boot/initrd-3.7.10-1.40-desktop
 +
Found linux image: /boot/vmlinuz-3.7.10-1.16-desktop
 +
Found initrd image: /boot/initrd-3.7.10-1.16-desktop
 +
   No volume groups found
 +
error: syntax error.
 +
</pre>
 +
* woops ;) Add a volume to the configuration in /etc/grub.d/40_custom:
 +
<pre>
 +
#!/bin/sh
 +
exec tail -n +3 $0
 +
# This file provides an easy way to add custom menu entries. Simply type the
 +
# menu entries you want to add after this commentBe careful not to change
 +
# the 'exec tail' line above.
 +
 
 +
menuentry linuxintro{
 +
  set hd=(hd0,0)
 +
}
 +
</pre>
 +
* and run mkconfig again:
 +
  # grub2-mkconfig -o /boot/grub2/grub.cfg

Revision as of 13:59, 18 January 2016

To configure the GRUB2 bootloader on SUSE Linux, use the file /etc/grub2/grub.cfg. I can be generated by the command

grub2-mkconfig -o /boot/grub2/grub.cfg

from /etc/default/grub and the files in /etc/default/grub

/etc/grub.d/*____
                 \
                   --- (grub2-mkconfig -o /boot/grub2/grub.cfg --->  /etc/grub2/grub.cfg
                 /
/etc/default/grub


The best way to add a menu item to your grub2 boot menu is to add the command menuentry to the end of /etc/grub.d/40_custom like this:

  • change /etc/grub.d/40_custom to look like:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry linuxintro{
}
  • call grub2-mkconfig:
# grub2-mkconfig -o /boot/grub2/grub.cfg 
Generating grub.cfg ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-3.7.10-1.40-desktop
Found initrd image: /boot/initrd-3.7.10-1.40-desktop
Found linux image: /boot/vmlinuz-3.7.10-1.16-desktop
Found initrd image: /boot/initrd-3.7.10-1.16-desktop
  No volume groups found
error: syntax error.
  • woops ;) Add a volume to the configuration in /etc/grub.d/40_custom:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry linuxintro{
  set hd=(hd0,0)
}
  • and run mkconfig again:
# grub2-mkconfig -o /boot/grub2/grub.cfg