Skip to content

Pop OS

Run Updates

sudo -- sh -c 'apt update; apt dist-upgrade -y; apt autoremove -y; apt autoclean -y'
flatpak update -y

Rename Computer

sudo hostnamectl set-hostname [hostname]

Auto Mounting Network Shares

I host users Documents, Music, Pictures and Videos folders on my NAS in a SMB share called "users". Inside of the users share, there is a folder for each user. This allows central access to a users files accross any machine in my network.

There is also a "public" SMB share that I mount to the Public folder that all users can see and use.

Libpam will automatically mount a network location to the specified folder when a user logs in.

Cifs-utils is a package that provides the ability to use SMB shares.

Note

In order for this to work as intended, the username and the password must be the same for each user between the local machine and the NAS/server hosting the SMB share and permissions set accordingly.

Install libpam-mount and cifs-utils:

sudo apt-get install libpam-mount cifs-utils -y

Edit the config file:

sudo nano /etc/security/pam_mount.conf.xml

Add the following to the end of the file, before the closing </pam_mount>:

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Documents" 
        mountpoint="~/Documents" 
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Music" 
        mountpoint="~/Music" 
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Pictures" 
        mountpoint="~/Pictures" 
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Videos" 
        mountpoint="~/Videos" 
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="public" 
        mountpoint="~/Public" 
/>

Replace Pop-Shop with Cosmic Store

sudo apt install cosmic-store -y
sudo apt remove --purge pop-shop

Install Apps From Cosmic Store

  • Firewall Configuration
  • GNU Image Manipulation Program
  • Lutris
  • Remmina
  • Steam
  • Virtual Machine Manager
  • VLC
  • WPS Office

Both Steam and Lutris should be installed using the "System" selection and not as flatpaks.

Remove LibreOffice

I am not a fan of LibreOffice, and instead use WPS Office as it provides a expirience that is nearly identical to using a Microsoft Office product.

sudo apt remove --purge libreoffice-\*

Media Codecs and Microsoft Fonts:

Some software cannot be distributed with the OS due to legal reasons. We can install them on their own and agree to the terms and conditions to use them. Documentation can be found here.

sudo apt install ubuntu-restricted-extras -y

Increase Timeout of GNOME Desktop

I primarily added this as GNOME would throw messages complaining that games were becoming unresponsive while launching through Steam. This increases the timeout before GNOME decides an application is taking to long to respond:

gsettings set org.gnome.mutter check-alive-timeout 10000

WINE

WINE Is Not an Emulator is a compatability layer that allows Windows based application to run on NIX systems. Official documentation can be found here.

Add the repositories to the list of sources for apt:

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources

Install the stable version of WINE:

sudo apt install --install-recommends winehq-stable

Tailscale

Tailscale is a software overlay VPN that uses wireshark to connect devices together. I have a tailscale docker container on my home network, and this allows me to access everything on my local network from anywhere.

The one caviet to this is in order to mount the network shares above, I have to connect to wifi before logging in.

Instructions for installing tailscale can be found here.

There is a script that will handle the installation and all dependencies and configs for you:

sudo curl -fsSL https://tailscale.com/install.sh | sh

The following command starts and enables the tailscale service and tells it to accept the routes advertised by my firewall for my internal resources.

sudo tailscale up --accept-routes

Update and Reboot

I run the update command above to make sure that everything is up to date and purge any dependencies that are no longer needed:

sudo -- sh -c 'apt update; apt dist-upgrade -y; apt autoremove -y; apt autoclean -y'

And then reboot:

sudo reboot now

Now I'm ready to rock 'n roll!

Maintinence

Keeping things up to date is important, so I typically run the commands listed at the beginning of this page to update apt and flatpak. You can always use the Cosmic Store or Pop Shop to do this, but I find it quicker and easier to simply run these commands. The terminal will keep a history of commands you have used and using the up and down arrow keys, you can simply scroll through and use them again.