diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2017-03-17 23:46:13 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2017-03-17 23:46:13 -0700 |
commit | 14ac959780ab3dc09559a17d4c12b7fd3705be6f (patch) | |
tree | 7fba830ea3ca0d8fa33e797df8d4bc4d1efbbae6 /docs/gnulinux | |
parent | 7c7403283cb88e45f9275195b99cebcc2dcb8b3f (diff) | |
download | librebootfr-14ac959780ab3dc09559a17d4c12b7fd3705be6f.tar.gz librebootfr-14ac959780ab3dc09559a17d4c12b7fd3705be6f.zip |
Remove dependency on libreboot-website
Diffstat (limited to 'docs/gnulinux')
-rw-r--r-- | docs/gnulinux/configuring_parabola.md | 6 | ||||
-rw-r--r-- | docs/gnulinux/encrypted_debian.md | 2 | ||||
-rw-r--r-- | docs/gnulinux/encrypted_parabola.md | 16 | ||||
-rw-r--r-- | docs/gnulinux/grub_boot_installer.md | 16 | ||||
-rw-r--r-- | docs/gnulinux/grub_cbfs.md | 18 | ||||
-rw-r--r-- | docs/gnulinux/grub_hardening.md | 6 |
6 files changed, 32 insertions, 32 deletions
diff --git a/docs/gnulinux/configuring_parabola.md b/docs/gnulinux/configuring_parabola.md index ea06dec2..0612cd7d 100644 --- a/docs/gnulinux/configuring_parabola.md +++ b/docs/gnulinux/configuring_parabola.md @@ -611,7 +611,7 @@ I didn't want the following, so I removed them: I also lazily installed all fonts: -# **pacman -S $(pacman -Ssq ttf-)** +# **pacman -S \$(pacman -Ssq ttf-)** And a mail client: @@ -638,7 +638,7 @@ start lxde without lxdm. Read Open LXterminal: - $ cp /etc/skel/.xinitrc \~ + \$ cp /etc/skel/.xinitrc \~ Open .xinitrc and add the following plus a line break at the bottom of the file. @@ -656,7 +656,7 @@ exec startlxde * Now make sure that it is executable: -$ **chmod +x .xinitrc** +\$ **chmod +x .xinitrc** [Back to top of page.](#pagetop) diff --git a/docs/gnulinux/encrypted_debian.md b/docs/gnulinux/encrypted_debian.md index a6021852..b74af313 100644 --- a/docs/gnulinux/encrypted_debian.md +++ b/docs/gnulinux/encrypted_debian.md @@ -193,7 +193,7 @@ this section. Immediately after logging in, do that: -$ **sudo ecryptfs-unwrap-passphrase** +\$ **sudo ecryptfs-unwrap-passphrase** This will be needed in the future if you ever need to recover your home directory from another system, so write it down and keep the note diff --git a/docs/gnulinux/encrypted_parabola.md b/docs/gnulinux/encrypted_parabola.md index 34e850fd..005def8c 100644 --- a/docs/gnulinux/encrypted_parabola.md +++ b/docs/gnulinux/encrypted_parabola.md @@ -572,13 +572,13 @@ option at the end, with the name of your chosen chip is quotes. You can check if everything is in there (*grub.cfg* and *grubtest.cfg* would be really nice): - $ ./cbfstool libreboot.rom print + \$ ./cbfstool libreboot.rom print Extract grubtest.cfg: - $ ./cbfstool libreboot.rom extract -n grubtest.cfg -f grubtest.cfg + \$ ./cbfstool libreboot.rom extract -n grubtest.cfg -f grubtest.cfg And modify: -$ **vi grubtest.cfg** +\$ **vi grubtest.cfg** In grubtest.cfg, inside the 'Load Operating System' menu entry, change the contents to: @@ -608,10 +608,10 @@ hardening your GRUB configuration, for security purposes. Save your changes in grubtest.cfg, then delete the unmodified config from the ROM image: - $ ./cbfstool libreboot.rom remove -n grubtest.cfg + \$ ./cbfstool libreboot.rom remove -n grubtest.cfg and insert the modified grubtest.cfg: -$ **./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t +\$ **./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t raw** Now refer to <http://libreboot.org/docs/install/#flashrom>. Cd (up) to @@ -650,16 +650,16 @@ this guide again in the future (modifying the already modified config). Inside libreboot\_util/cbfstool/{armv7l i686 x86\_64}, we can do this with the following command: -$ **sed -e 's:(cbfsdisk)/grub.cfg:(cbfsdisk)/grubtest.cfg:g' -e +\$ **sed -e 's:(cbfsdisk)/grub.cfg:(cbfsdisk)/grubtest.cfg:g' -e 's:Switch to grub.cfg:Switch to grubtest.cfg:g' < grubtest.cfg > grub.cfg** Delete the grub.cfg that remained inside the ROM: - $ ./cbfstool libreboot.rom remove -n grub.cfg + \$ ./cbfstool libreboot.rom remove -n grub.cfg Add the modified version that you just made: - $ ./cbfstool libreboot.rom add -n grub.cfg -f grub.cfg -t raw + \$ ./cbfstool libreboot.rom add -n grub.cfg -f grub.cfg -t raw Now you have a modified ROM. Once more, refer to <http://libreboot.org/docs/install/#flashrom>. Cd to the libreboot\_util diff --git a/docs/gnulinux/grub_boot_installer.md b/docs/gnulinux/grub_boot_installer.md index 8821f1ef..edd25715 100644 --- a/docs/gnulinux/grub_boot_installer.md +++ b/docs/gnulinux/grub_boot_installer.md @@ -26,21 +26,21 @@ to create the bootable GNU+Linux USB drive: Connect the USB drive. Check dmesg: - $ dmesg + \$ dmesg Check lsblk to confirm which drive it is: - $ lsblk + \$ lsblk Check that it wasn't automatically mounted. If it was, unmount it. For example: - $ sudo umount /dev/sdX* + \$ sudo umount /dev/sdX* # umount /dev/sdX* dmesg told you what device it is. Overwrite the drive, writing your distro ISO to it with dd. For example: - $ sudo dd if=gnulinux.iso of=/dev/sdX bs=8M; sync + \$ sudo dd if=gnulinux.iso of=/dev/sdX bs=8M; sync # dd if=gnulinux.iso of=/dev/sdX bs=8M; sync You should now be able to boot the installer from your USB drive. @@ -71,20 +71,20 @@ how to create the bootable GNU+Linux USB drive: Connect the USB drive. Check dmesg: - $ dmesg | tail + \$ dmesg | tail Check to confirm which drive it is, for example, if you think its sd3: - $ disklabel sd3 + \$ disklabel sd3 Check that it wasn't automatically mounted. If it was, unmount it. For example: - $ doas umount /dev/sd3i + \$ doas umount /dev/sd3i dmesg told you what device it is. Overwrite the drive, writing the OpenBSD installer to it with dd. For example: - $ doas dd if=gnulinux.iso of=/dev/rsdXc bs=1M; sync + \$ doas dd if=gnulinux.iso of=/dev/rsdXc bs=1M; sync You should now be able to boot the installer from your USB drive. Continue reading, for information about how to do that. diff --git a/docs/gnulinux/grub_cbfs.md b/docs/gnulinux/grub_cbfs.md index deb0a456..14f0ef5b 100644 --- a/docs/gnulinux/grub_cbfs.md +++ b/docs/gnulinux/grub_cbfs.md @@ -130,7 +130,7 @@ image file is named *libreboot.rom*, so please make sure to adapt. ROM images are included pre-compiled in libreboot. You can also dump your current firmware, using flashrom: - $ sudo flashrom -p internal -r libreboot.rom + \$ sudo flashrom -p internal -r libreboot.rom # flashrom -p internal -r libreboot.rom If you are told to specify the chip, add the option **-c {your chip}** to the command, for example: @@ -144,7 +144,7 @@ Extract grubtest.cfg from the ROM image {#extract_testconfig} You can check the contents of the ROM image, inside CBFS: - $ cd .../libreboot\_util/cbfstool** $ ./cbfstool libreboot.rom + \$ cd .../libreboot\_util/cbfstool** \$ ./cbfstool libreboot.rom print** The files *grub.cfg* and *grubtest.cfg* should be present. grub.cfg is @@ -154,7 +154,7 @@ reduce the possibility of bricking your device, so DO NOT SKIP THIS! Extract grubtest.cfg from the ROM image: - $ ./cbfstool libreboot.rom extract -n grubtest.cfg -f grubtest.cfg + \$ ./cbfstool libreboot.rom extract -n grubtest.cfg -f grubtest.cfg Modify the grubtest.cfg accordingly. @@ -166,11 +166,11 @@ Re-insert the modified grubtest.cfg into the ROM image {#reinsert_modified_testc Once your grubtest.cfg is modified and saved, delete the unmodified config from the ROM image: - $ ./cbfstool libreboot.rom remove -n grubtest.cfg + \$ ./cbfstool libreboot.rom remove -n grubtest.cfg Next, insert the modified version: -**$ ./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t +**\$ ./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t raw** [Back to top of page.](#pagetop) @@ -182,7 +182,7 @@ Testing [../install/#flashrom](../install/#flashrom) for information on how to flash it. - $ cd /libreboot\_util** # **./flash update libreboot.rom + \$ cd /libreboot\_util** # **./flash update libreboot.rom Ocassionally, coreboot changes the name of a given board. If flashrom complains about a board mismatch, but you are sure that you chose the correct ROM image, then run this alternative command: @@ -214,17 +214,17 @@ to grubtest.cfg, so that you don't have to manually switch to it, in case you ever want to follow this guide again in the future (modifying the already modified config). From /libreboot\_util/cbfstool, do: -$ **sed -e 's:(cbfsdisk)/grub.cfg:(cbfsdisk)/grubtest.cfg:g' -e +\$ **sed -e 's:(cbfsdisk)/grub.cfg:(cbfsdisk)/grubtest.cfg:g' -e 's:Switch to grub.cfg:Switch to grubtest.cfg:g' < grubtest.cfg > grub.cfg** Delete the grub.cfg that remained inside the ROM: - $ ./cbfstool libreboot.rom remove -n grub.cfg + \$ ./cbfstool libreboot.rom remove -n grub.cfg Add the modified version that you just made: - $ ./cbfstool libreboot.rom add -n grub.cfg -f grub.cfg -t raw + \$ ./cbfstool libreboot.rom add -n grub.cfg -f grub.cfg -t raw **Now you have a modified ROM. Again, refer back to [../install/#flashrom](../install/#flashrom) for information on how to diff --git a/docs/gnulinux/grub_hardening.md b/docs/gnulinux/grub_hardening.md index e982efca..f135b349 100644 --- a/docs/gnulinux/grub_hardening.md +++ b/docs/gnulinux/grub_hardening.md @@ -111,12 +111,12 @@ configurations, is to remove (or comment out) **unset superusers** in function try\_user\_config: function try_user_config { - set root="${1}" + set root="\${1}" for dir in boot grub grub2 boot/grub boot/grub2; do for name in '' autoboot_ libreboot_ coreboot_; do - if [ -f /"${dir}"/"${name}"grub.cfg ]; then + if [ -f /"\${dir}"/"\${name}"grub.cfg ]; then #unset superusers - configfile /"${dir}"/"${name}"grub.cfg + configfile /"\${dir}"/"\${name}"grub.cfg fi done done |