Basic Linux Installation Guide: Difference between revisions

From The Maceys in California
Line 75: Line 75:
</syntaxhighlight>
</syntaxhighlight>
Input your password if prompted.
Input your password if prompted.
{{note | With Kubunto user the local Konsole window as ssh is quite broken}}
==Continue configuring the system from an ssh terminal session==
==Continue configuring the system from an ssh terminal session==
===Install Putty===  
===Install Putty===  

Revision as of 05:57, 15 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 from. The process is similar doing it on a physical machine as it is on a VM. There

Create a Bootable USB key

If you are installing on a VM, skip on down.

Or Create a VM from the Proxmox Console

Pretty much stick to the defaults. Make sure to create the disk on fast1, fast2 or fast3. The distribution ISO files are on local (pve). The current usual candidate is Kubuntu 26.04, but other distributions are available and loaded in the library.

If a distribution that is not currently available is wanted, select local (pve) from the left panel, click on ISO Images and the upload. This will load an image from the local machine to the pve system.

A minimal install will work on server VMs. The complete set of tools that comes with the full distribution is not needed. It is nice to have a desktop display that can be run from the console, however.

Click on Create VM on the upper right to start the process. Proxmox will assign a number, or you can assign one that is not currently in use. Pick a memorable name based on use. I use the distro name if I am testing. Pick volume that has sufficient space to hold the vdisk.

The only configuration that is normally needed is to set the number of cores to be assigned. and the size to allocate for memory.

The system will boot after confirmation. Go to the console for the machine to continue the installation of the OS.

Install the Linux Disro

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 Kubuntu splash screen will appear and move on to configuring the system.

The process for installing native Ubuntu has a few more options, particularly on formatting the disk. The process is pretty much the same though.

Note: If you are installing Ubuntu DO NOT install with the ZFS option

After Installation Actions

First Things First

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

Todo: Add the connection information to the Start.me section for connections


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.

Note: With Kubunto user the local Konsole window as ssh is quite broken

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.

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.

Do this as login user, NOT root.

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.

For the putty in Kubuntu, pasting commands into the session fails.

cat > ${USER} <<EOF
${USER}    ALL=(ALL) NOPASSWD:ALL
EOF
chmod 440 ${USER}
sudo chown 0:0 ${USER}
sudo mv ${USER} /etc/sudoers.d/${USER}

Give yourself superuser privileges before you continue.

sudo /bin/bash