| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| kb_linux [2020/03/25 06:06] – [Misc] atl | kb_linux [2023/08/24 03:09] (current) – atl |
|---|
| ====== Boot ====== | ====== Boot ====== |
| | |
| | ===== Interrupt Boot process and change the //root// password ===== |
| | |
| | - **Edit** the kernel boot parameters by pressing **e** |
| | - **Go to** the end of the 3linux3 line by pressing **Ctrl+e**, removing //ro crash// and add //rd.break enforcing=0// |
| | - **Start** the system by pressing **Ctrl+x** |
| | - **Remount** the root of the system:\\ mount -o remount,rw /sysroot |
| | - **Switch** to /sysroot:\\ chroot /sysroot |
| | - **Reset** the root password |
| | - **Enable** SELinux relabeling:\\ touch /.autorelabel |
| | - **Exit** the shell |
| |
| ===== Grub ===== | ===== Grub ===== |
| cf.[[http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216|http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216]] | cf.[[http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216|http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216]] |
| |
| | ==== Failed to download metadata for repo ‘AppStream’ [CentOS] === |
| | |
| | cf. |
| | [[https://techglimpse.com/failed-metadata-repo-appstream-centos-8/|Failed to download metadata for repo ‘AppStream’ [CentOS]]] |
| ====== Shell scripting ====== | ====== Shell scripting ====== |
| |
| * [[https://www.shellscript.sh/|https://www.shellscript.sh/]], The Shell Scripting Tutorial | * [[https://www.shellscript.sh/|https://www.shellscript.sh/]], The Shell Scripting Tutorial |
| * [[https://www.davidpashley.com/articles/writing-robust-shell-scripts/|https://www.davidpashley.com/articles/writing-robust-shell-scripts/]], Writing Robust Bash Shell Scripts | * [[https://www.davidpashley.com/articles/writing-robust-shell-scripts/|https://www.davidpashley.com/articles/writing-robust-shell-scripts/]], Writing Robust Bash Shell Scripts |
| * [[http://www.yoone.eu/articles/2-good-practices-for-writing-shell-scripts.html|http://www.yoone.eu/articles/2-good-practices-for-writing-shell-scripts.html]], Good practices for writing shell scripts | * [[http://www.yoone.eu/articles/2-good-practices-for-writing-shell-scripts.html|http://www.yoone.eu/articles/2-good-practices-for-writing-shell-scripts.html]], Good practices for writing shell scripts \\ [[https://www.cyberciti.biz/faq/unix-linux-bash-find-out-the-exit-codes-of-all-piped-commands/|https://www.cyberciti.biz/faq/unix-linux-bash-find-out-the-exit-codes-of-all-piped-commands/]], Bash Find out the exit codes of all piped commands |
| | |
| |
| |
| * | |
| ====== Misc ====== | ====== Misc ====== |
| |