Created
February 14, 2023 08:31
-
-
Save Max95Cohen/2992b9a4773278c9e449ac7a27aa8482 to your computer and use it in GitHub Desktop.
centos tips
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
# Server autologin | |
cp /lib/systemd/system/getty@.service /etc/systemd/system/getty@tty1.service | |
[Service] | |
ExecStart=-/sbin/agetty --autologin root --noclear %I | |
# Increase LVM size of root folder / | |
df -h | |
cp -a /home /home2 | |
umount /dev/mapper/centos-home | |
lvremove /dev/mapper/centos-home | |
lvextend -l +100%FREE /dev/mapper/centos-root | |
xfs_growfs /dev/mapper/centos-root | |
df -h | |
mv /home2/* /home/ | |
rmdir /home2 | |
vi /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment