DATE CHECKED THIS PAGE WAS VALID: 29/08/2023
Pretty basic, you want to elevate to root and then add your user to the sudo group and reboot:
su sudo adduser peter sudo sudo reboot
The account added to the sudo group is 'peter' in the example above.