====== Install Ubuntu 18.04.5 ====== \\ ===== Starting the installation ===== \\ Download Ubuntu 18 here: [[https://releases.ubuntu.com/18.04.5/|https://releases.ubuntu.com/18.04.5/]] \\ mount the downloaded Ubuntu 18.04.5 .iso file \\ reboot your system \\ select a language (english is fine) \\ {{:linux:ubuntu:pasted:20210830-142222.png}} \\ select "Install Ubuntu Server" \\ {{:linux:ubuntu:pasted:20210830-142325.png}} \\ ===== Configuration ===== \\ ==== Select your language ==== \\ {{:linux:ubuntu:pasted:20210830-124208.png}} \\ {{:linux:ubuntu:pasted:20210830-124240.png}} \\ {{:linux:ubuntu:pasted:20210830-124328.png}} \\ {{:linux:ubuntu:pasted:20210830-124347.png}} \\ {{:linux:ubuntu:pasted:20210830-125059.png}} \\ ==== Configure the keyboard ==== \\ {{:linux:ubuntu:pasted:20210830-125147.png}} \\ press y \\ {{:linux:ubuntu:pasted:20210830-125155.png}} \\ select yes if you have "ö" \\ {{:linux:ubuntu:pasted:20210830-125226.png}} \\ press "ö" \\ {{:linux:ubuntu:pasted:20210830-125258.png}} \\ select no for the weird e \\ {{:linux:ubuntu:pasted:20210830-125325.png}} \\ {{:linux:ubuntu:pasted:20210830-125352.png}} \\ ==== Configure the network ==== \\ select your primary network interface \\ {{:linux:ubuntu:pasted:20210830-125642.png}} \\ enter your hostname \\ {{:linux:ubuntu:pasted:20210830-125747.png}} \\ ==== Set up users and passwords ==== \\ enter the full name for the first user \\ {{:linux:ubuntu:pasted:20210830-125953.png}} \\ enter the username \\ {{:linux:ubuntu:pasted:20210830-130013.png}} \\ enter a complex password \\ {{:linux:ubuntu:pasted:20210830-130632.png}} \\ ==== Configure the clock ==== \\ if the autoselected timezone is correct select yes, otherwise select no and chose the correct location \\ {{:linux:ubuntu:pasted:20210830-130742.png}} \\ ==== Partition disks ==== \\ if you had a server before, select unmount partitions \\ {{:linux:ubuntu:pasted:20210830-130948.png}} \\ select "Manual" and then set up LVs (LVM) \\ {{:linux:ubuntu:pasted:20210830-131259.png}} \\ select your disk \\ {{:linux:ubuntu:pasted:20210830-131343.png}} \\ partition the disk -1GB space (for /boot) \\ {{:linux:ubuntu:pasted:20210830-133840.png}} \\ select "Primary" \\ {{:linux:ubuntu:pasted:20210830-134242.png}} \\ select "Beginning" \\ {{:linux:ubuntu:pasted:20210830-134317.png}} \\ set use as "physical volume for LVM" and select "Done setting up the partition" \\ {{:linux:ubuntu:pasted:20210830-134425.png}} \\ select the "1 GB FREE SPACE" \\ {{:linux:ubuntu:pasted:20210830-134658.png}} \\ select "Create a new partition" \\ {{:linux:ubuntu:pasted:20210830-134726.png}} \\ continue with the 1 GB \\ {{:linux:ubuntu:pasted:20210830-134750.png}} \\ again choose "Primary" \\ {{:linux:ubuntu:pasted:20210830-134811.png}} \\ set "Ext4" and mount point "/boot", you can also set the label as "/boot" \\ {{:linux:ubuntu:pasted:20210830-135438.png}} \\ select "Configure the Logical Volume Manager" \\ {{:linux:ubuntu:pasted:20210830-135635.png}} \\ select "Create volume group" \\ {{:linux:ubuntu:pasted:20210830-135713.png}} \\ choose a name for your VG \\ {{:linux:ubuntu:pasted:20210830-135806.png}} \\ and place it on your correct partition \\ {{:linux:ubuntu:pasted:20210830-140500.png}} \\ select "Create logical volume" \\ {{:linux:ubuntu:pasted:20210830-135908.png}} \\ select your VG \\ {{:linux:ubuntu:pasted:20210830-140516.png}} \\ choose a name for your LV \\ {{:linux:ubuntu:pasted:20210830-135942.png}} \\ then select the size (if you have the chance to extent your PV/VG, you should create a 10GB root and some fitting /etc /var /home mounts as well. in my case I cannot extent it so I chose to use all on /) \\ {{:linux:ubuntu:pasted:20210830-140529.png}} \\ select your new LV \\ {{:linux:ubuntu:pasted:20210830-140618.png}} \\ set "XFS" and the mountpoint "/" \\ {{:linux:ubuntu:pasted:20210830-140659.png}} \\ it should look like this now, if so, write changes to disk \\ {{:linux:ubuntu:pasted:20210830-140747.png}} \\ ===== OS Installation ===== \\ ==== Proxy ==== \\ during the next loadingscreens you will be asked for a proxy, if you dont have one leave it blank, otherwise insert your proxyip \\ {{:linux:ubuntu:pasted:20210830-141117.png}} \\ ==== Configuring tasksel ==== \\ select "No automatic updates" otherwise your OS will install updates without your interaction \\ {{:linux:ubuntu:pasted:20210830-141433.png}} \\ ==== Software selection ==== \\ choose "OpenSSH server", you can install the other software later \\ {{:linux:ubuntu:pasted:20210830-141617.png}} \\ ==== Select and install software ==== \\ wait.. \\ {{:linux:ubuntu:pasted:20210830-141802.png}} \\ ==== Install the GRUB boot loader on a hard disk ==== \\ select "yes" \\ {{:linux:ubuntu:pasted:20210830-141941.png}} \\ ==== Finish the installation ==== \\ Yay! \\ {{:linux:ubuntu:pasted:20210830-142116.png}} \\ ===== After the installation ===== \\ eject the disk/ iso \\ reboot your machine \\ fully update your OS \\ configure your network interface, sudoers, ssh and consider fail2ban \\ [[linux:general:network|Network]] \\ [[linux:general:sudoers|Sudoers]] \\ [[linux:general:ssh|SSH]] \\ [[linux:ubuntu:fail2ban|Fail2Ban]]