kb_linux
Table of Contents
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
il y a une différence importante entre Grub et Grub2 dans la numérotation des partitions :
Sur Grub, la numérotation démarre à 0 pour les disques physiques ET pour les partitions. Exemple : /dev/hda1 ou /dev/sda1 sera nommé hd(0,0) par grub.
Sur Grub2, elle démarre à 0 pour les disques physiques et à 1 pour le numéro de la partition. Exemple : /dev/hda1 ou /dev/sda1 sera nommé hd(0,1) par grub-pc.
Satellite/SpaceWalk/SuSE Manager
Troubleshooting
Running a script through Satellite fails...
Failed to download metadata for repo ‘AppStream’ [CentOS]
Shell scripting
- https://www.shellcheck.net/, finds bugs in your shell scripts
- https://www.shellscript.sh/, The Shell Scripting Tutorial
- 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, Good practices for writing shell scripts
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
kb_linux.txt · Last modified: by atl
