Basic Linux Installation Guide: Difference between revisions
Lynn Macey (talk | contribs) |
Lynn Macey (talk | contribs) |
||
| Line 55: | Line 55: | ||
=After Installation Actions= | =After Installation Actions= | ||
===Get the System Up To Date=== | ===Get the System Up To Date=== | ||
In spite of selecting to install updates during the main installation, the non-OS packages don't get this treatment in the full install. Regardless, this step is a good idea. | In spite of selecting to install updates during the main installation, the non-OS packages don't get this treatment in the full install. Regardless, this step is a good idea. | ||
Revision as of 18:43, 25 August 2026
Installing Linux systems
The installation process for both the desktop physical machines and Linux VMs is pretty straight forward. The idea is to get a vanilla basic installation that can be built on to. The process is similar doing it on a physical machine as it is on a VM. There
Setup a Bootable USB key
If you are installing on a VM, skip on down.
Look to see if the desired distribution has been loaded onto the Ventoy USB key.
If not download from a reputable source and copy it to the key.
Boot the machine from the key.
Or Create a VM from the Proxmox Console
Connect to PVE and verify distro
Open the Proxmox GUI: http://pve.lan:8006
Before creating the VM make sure that the desired distribution in in the ISO library. Select pve on the leftmost menu panel. This will display all of the VMs and storage objects. Select local(pve). Select ISO images to display the ISO library. If the desired image is there, continue to create a VM. If not select local (pve) from the left panel, click on ISO Images and the upload. Select the distribution ISO image from the local machine to upload to the library.
Create the VM
Click on the Create VM button on the upper right.
The system will present a sequenced system definition.
General - The defaults are fine. Change the ID if desired. OS - The defaults are correct. Pick the distribution in the highlighted box. System - The defaults are fine. Change the Graphics card to one of the VirtIO to experiment. Disks - The choices are fast1, fast2 and fast3. They are about the same except for space. This is root disk for the install. 50-100GB are good choices. CPU - 1 socket and set the cores appropriately. 2 or 4 is typical. Scroll to the bottom of Type and select host. Memory - Depends on the task. 2048, 4096 and 8192 are two, four and eight GB. Network - Defaults are fine. Confirm - Review, select Start on create box and click Finish.
The system will create the VM and start it up. Select the machine ID on the left panel and then go to the console for it.
Install the OS Distribution
A minimal install will work on server VMs. The complete set of tools that comes with the full distribution are not needed. It is nice to have a desktop display that can be run from the console, however. All of the Debian variants, including Ubuntu, Kubuntu and Zorin, run through the same basic steps to install
This is pretty much a case of answer obvious questions and then waiting for the install to complete.
Installation screen: Next Timezone: Next unless you want the machine to be elsewhere Keyboard: Next Installation mode: Select full for a desktop, minimal for a server VM Select Download and install updates: Next In partitions, the disk is already selected, select erase: Next Set the user and machine information. Since we are all friends, click on Log oin automatically: Next Review the confirmation page and fix if necessary: Install There will be a popup confirming that the disk contents will be destroyed, but we don't care: Install now
Now you can go away for a while. Don't panic, the progress stalls at around 90% for a while but everything is working correctly.
After the install completes, the system will need to reboot. Proxmox takes care to boot from the drive rather than the virtual CD: Done
The splash screen will appear and move on to configuring the system.
After Installation Actions
Get the System Up To Date
In spite of selecting to install updates during the main installation, the non-OS packages don't get this treatment in the full install. Regardless, this step is a good idea.
sudo apt update
sudo apt upgrade
Install and Open Cockpit
Cockpit is a very useful tool for viewing and modifying a number of system configuration pieces. All of these can be changed with the installed tools, but Cockpit is an easy way to do them in one place. The main screen also shows system activity.
By default, the system will be assigned a DHCP address.
. /etc/os-release
sudo apt install -t ${VERSION_CODENAME}-backports cockpit
Open URL from a web browser:
https://<ip address>:9090
Login with the user created on the install. After logging in, do a quick check, switch to administrative access and then open the terminal window. Change the network connection information and verify that the DNS server is set to 192.168.86.2
See Also
Cockpit Reference Install Cockpit on Ubuntu
Install and Configure sshd (Minimal Install only)
The sshd server needs to be running so that you can login. This is required in order to cut and paste. This means that you need to type the commands manually.
sudo apt install openssh-server putty-tools -y
sudo systemctl start ssh
Input your password if prompted.
On Ubuntu continue configuring the system from an ssh terminal session
Install Putty
Click on the Application Launcher. Search for the putty app. Click on the selection to connect to ssh servers. Click on install in the installation popup. Once installed, just click on launch. Enter localhost as the Host Name. Accept on the Security Alert popup.
Alternatively you can connect from another system, use:
ip a
to get the systems IP address to use in your local putty session. After entering the host, click on Open.
Initiate putty to continue
Accept on the Security Alert popup.
Login using the credentials that you entered during the install. Now you can cut and paste.
Terminal Access using Kubuntu
If you have installed on a desktop it is easy to use the Konsole application.
Just a reminder. Multi line pastes fail when entering commands.
Fix sudo to not prompt for password
As a person who has worked as the root user since the Unix days, I find being prompted for a password when using sudo to get admin privileges.
Create a file for the user in the /etc/sudoers.d directory and add the following line to it. ${USER} matches the user created during the install. This needs to be done by the ordinary user or the steps will create a sudoers.d file for root. Do in two steps because you will be asked to authenticate assuming that this is probably the first sudo command of the session.
echo "${USER} ALL=(ALL) NOPASSWD:ALL">${USER};chmod 400 ${USER};sudo chown 0:0 ${USER}
sudo mv ${USER} /etc/sudoers.d/${USER}
Give yourself superuser privileges before you continue.
sudo /bin/bash
