This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemctl stop pve-cluster | |
systemctl stop corosync | |
#Start the cluster file system again in local mode: | |
pmxcfs -l | |
#Delete the corosync configuration files: | |
rm /etc/pve/corosync.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "[*] Show the full hostname in the prompt unprivileged prompt." | |
sed -i 's/\\h/$(hostname -f)/g' ~/.bashrc | |
source ~/.bashrc | |
echo "[*] Copy this file to /root/" | |
sudo cp ~/.bashrc /root/ | |
echo "[*] Change the root prompt to be red." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Black='\033[0;30m' | |
DarkGray='\033[1;30m' | |
Red='\033[0;31m' | |
LightRed='\033[1;31m' | |
Green='\033[0;32m' | |
LightGreen='\033[1;32m' | |
Brown='\033[0;33m' | |
Yellow='\033[1;33m' |