Skip to content

Instantly share code, notes, and snippets.

@Max95Cohen
Created February 14, 2023 08:31
Show Gist options
  • Save Max95Cohen/2992b9a4773278c9e449ac7a27aa8482 to your computer and use it in GitHub Desktop.
Save Max95Cohen/2992b9a4773278c9e449ac7a27aa8482 to your computer and use it in GitHub Desktop.
centos tips
# 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