Installing and Hardening an Ubuntu Server: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 7: Line 7:
After you've finished installing the OS, it's time to connect to the server and begin updates and a base configuration. I connect through SSH, but you can do it the physical box if you want. I've found that if you don't make any changes to the default disk settings, you fill up the disk very quickly. Let's change that first, we need to resize the logical volume to use all the existing and free space of the volume group.
After you've finished installing the OS, it's time to connect to the server and begin updates and a base configuration. I connect through SSH, but you can do it the physical box if you want. I've found that if you don't make any changes to the default disk settings, you fill up the disk very quickly. Let's change that first, we need to resize the logical volume to use all the existing and free space of the volume group.


<code>sudo lvm</code>
<syntaxhighlight lang="bash" line='line'>
sudo lvm
</syntaxhighlight>


<code>lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
<code>lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv