03 First Boot & Basic Settings

Table of Contents

Previous Page

Next Page


First Commands!

“sudo”, which means “super user do”, will prompt for the admin password since it’s an elevated command, like changing a system file. Meant to prevent other users from breaking things.

This will update the repositories, but doesn’t download or install anything!

sudo apt update

This will install (upgrade) all packages that have available updates.

sudo apt upgrade

You can combine commands! The -y automatically answers “yes” to the prompt.

sudo apt update && sudo apt upgrade -y

For cleaning up old installs and leftover pieces, this combo command takes care of it:

sudo apt autoclean && sudo apt autoremove

For removing specific packages, use Synaptic Application Manager, to make searching easier.

sudo apt install synaptic

NEEDRESTART

needrestart is a neat little tool that automatically reloads running packages after an update.

  1. install package
sudo apt install needrestart
  1. open config file for settings:
sudo nano /etc/needrestart/needrestart.conf
  1. Delete ”#” to enable, and change “i” to “a” in this line to make automatic:
    $nrconf{restart} = ‘a’;

I enjoy making scripts, like this updater & cleaner: ~~~~~~~

  1. Make new file
sudo nano /usr/local/bin/bondate
  1. copy this into empty file:
#!/bin/bash

sudo apt update && sudo apt upgrade -y ; \
sudo apt --purge autoremove -y ; \
sudo apt autoclean -y ; \
sudo apt clean ; \
flatpak update ; \
sudo needrestart ; \
echo also: ; \
echo Consider: sudo rclone selfupdate ; \
echo Consider: sudo winetricks --self-update
  1. save file; then make executable:
sudo chmod +x /usr/local/bin/bondate
  1. and now entering ‘bondate’ in any terminal runs all the updates and cleaners!

Random audio cracking issues: ~~~~~~~~~~~~~~~~~~~

One of the things that can make you want to go back to Windows.
This config location is specific to current Pop_OS version:

sudo nano /usr/share/wireplumber/main.lua.d/50-alsa-config.lua
systemctl restart --user pipewire.service

Go here for more detailed reasonings, or for other distros: Audio Troubleshooting
This issue is NOT unique or specific to Pop!_OS


Remove repository: ~~~~~~~~~~~~~~~~~~~

There’s several ways, but just deleting a file seems easy:

ls -l /etc/apt/sources.list.d/

then, if there’s something to remove:
To type file name, type a few letters until unique, and hit [tab]

sudo rm [filename]

Table of Contents

Previous Page

Next Page