-
Notifications
You must be signed in to change notification settings - Fork 1
HP Pavilion Laptop 15 eg0025
- Create the bootable USB drive w/ Kubuntu 22.04
- Put the USB drive in the USB port on the right side of the HP Laptop
- I'd recommend going into the BIOS Setup Configuration and setting Action Keys Mode to Disabled
- Start the computer and get into the boot device menu
- Select to boot from the USB Hard Drive (UEFI)
- Select Try or Install Kubuntu
- In dialog select Try Kubuntu
- Click on the wifi/network icon in the tray in the lower right
- Connect to your wifi (enter password as needed) (this is not 100% necessary at this stage)
- Double click on Install Kubuntu in the top left
- Set language (continue for English)
- Set keyboard (continue for English US)
- Wireless if you already did it the step is skipped
- Software - Normal installation, (Download updates, if your wifi is connected)
- Check Configure Secure Boot and give it a simple password, you will need this when you reboot after installing
- Disk Setup _Guided - use entire disk and set up encrypted LVM, we should use a common password for Esme dev machines, ask on Slack
- Click Install Now
- Set timezone
- Set user info
- use your full name
- pick a username you like
- pick a password you like
- pick a computer name you like
- Require my password to log in
- When installation is complete, select continue testing
- Running KDE Partition Manager will show these logical volumes in vgkubuntu
- Open a Konsole and run the following commands to shrink the root lv (display the lvs before and afterwards)
sudo lvs
sudo e2fsck -fy /dev/vgkubuntu/root
sudo resize2fs /dev/vgkubuntu/root 50G
sudo lvreduce -L 50G /dev/vgkubuntu/root
sudo lvs
- Next in the console run the following commands to create the userdata, project and var logical volumes
sudo lvcreate -L 20G -n userdata vgkubuntu
sudo lvcreate -L 30G -n projects vgkubuntu
sudo lvcreate -L 30G -n var vgkubuntu
sudo mkfs.ext4 -L userdata /dev/mapper/vgkubuntu-userdata
sudo mkfs.ext4 -L projects /dev/mapper/vgkubuntu-projects
sudo mkfs.ext4 -L var /dev/mapper/vgkubuntu-var
- Update the
fstab
in the new root partition so it mounts the userdata, projects and var partitions
mkdir root var
sudo mount /dev/mapper/vgkubuntu-root root
sudo mount /dev/mapper/vgkubuntu-var var
# copy the existing contents of var to the new var partition
sudo rsync -av root/var/ var/
# remove the existing contents of var (because we're going to mount the var partition on top of it)
sudo rm -r root/var/*
# create userdata and projects mount points
sudo mkdir root/userdata root/home/<user>/Projects
# edit fstab and add entries to mount var, userdata and projects
kate root/etc/fstab &
fstab should look something like this:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/vgkubuntu-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/nvme0n1p2 during installation
UUID=32729611-d5e0-4f13-84be-2b864e4ca75c /boot ext4 defaults 0 2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=A340-E58F /boot/efi vfat umask=0077 0 1
/dev/mapper/vgkubuntu-swap_1 none swap sw 0 0
/dev/mapper/vgkubuntu-var /var ext4 defaults 0 2
/dev/mapper/vgkubuntu-userdata /userdata ext4 defaults 0 2
/dev/mapper/vgkubuntu-projects /home/mjl/Projects ext4 defaults 0 2
-
Reboot
-
remove the usb drive
-
Perform MOK management (secure boot)
- Enroll MOK
- Continue
- Enroll the key(s)? Yes
- Password is the one you created during install for secure boot (it doesn't display anything when I typed it)
- Reboot
-
Unlock disk nvme0n1p3_crypt (it may take 10-30 seconds before it accepts typing)
-
Log in w/ your user/password
-
connect to internet (ie set up wifi as before during install)
-
open a konsole
-
upgrade all OS packages by first getting the latest list (update) and then upgrading
sudo apt update && apt list --upgradable
sudo apt upgrade
- rebooting is frequently needed now, depending on what was upgraded, if you see update-initramfs run, then reboot
- I have a system tray notification to add language support packages, might as well do that
- log back in
- I did most of the KDE customizations below now (although there are more than that so I may have to split the list)
This is where it is worth just looking at the directions in the mlippert/dotfiles/wiki
I started adding steps here that are part of the instructions there.
- create the userdata directory for your user e.g. mjl
sudo mkdir /userdata/mjl
sudo chown mjl:mjl /userdata/mjl
- clone the dotfiles repo in /userdata/
git clone https://github.com/mlippert/dotfiles.git --recurse-submodules
Use F10
when booting to get into the boot menu
Use Esc
and then F9
to select a boot device
Note!!!: The HP does not recognize bootable USB drives in the left USB port only in the right USB port.
The encrypted pv shows in the Partition Manager as luks encrypted, I saw it as nvme0n1p3
Running cryptsetup to ask for the password and create the volume group ? mount point
sudo cryptsetup -v luksOpen /dev/nvme0n1p3 vgkubuntu
- See the things listed in the playbook you may want to install:
- latest nodejs currently v18 (nodesource install instructions)
- virtualbox (you want to add the package repo at http://download.virtualbox.org/virtualbox/debian, and will need a key)
- ripgrep
- discord
- SmartGit (download the tar file extract to ~/bin/smartgit)(needs license)
- Beyond Compare (needs license, can integrate w/ SmartGit)
- Slack (snap or deb? not sure which is a better option, sadly flatpak isn't supported by Slack)
- MongoDB Compass
- SimpleScreenRecorder (
sudo apt install simplescreenrecorder
) - Kamoso (
sudo apt install kamoso
) - VS Code Editor (if you want to use it, instead of vim/gvim which the playbook installed)
- Right click on Application Menu | Show Alternatives... select Application Menu
- Add Widgets to bottom panel
- Quichlaunch next to Application Menu (because I prefer it to apps being pinned to the Task Manager)
Add these launchers (some may have to be done later once they're installed)- Firefox
- Dolphin (File manager)
- Konsole
- Smartgit
- Lock/Logout to the immediate left of the System Tray
- Quichlaunch next to Application Menu (because I prefer it to apps being pinned to the Task Manager)
- Add Widgets to desktop
- System monitor sensor (Memory Usage, Total CPU Use, Individual Core Usage
- Network speed
- Right click on Task Manager | Show Alternatives select Task Manager (instead of Icons-only Task Manager)
- Configure Task Manager Behavior
- Show only tasks: Uncheck From current desktop
- Unpin applications from the Task Manager
- Start Dolphin
- Show Menubar
- Configure Dolphin
- Sorting mode: Alphabetical, case sensitive (ymmv)
- turn off Open new folders in tabs
- Select Details view mode pick a smaller zoom mode so you can see more files in the window
- Right click on the titles row to select more columns and add
- Type
- Permissions
- Owner
- User Group