User Tools

Site Tools


kb_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb_linux [2020/03/25 06:06] – [Misc] atlkb_linux [2023/08/24 03:09] (current) atl
Line 1: Line 1:
 ====== 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 =====
Line 19: Line 30:
 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 ======
  
Line 24: Line 39:
   * [[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 ======
  
kb_linux.1585130803.txt.gz · Last modified: by atl