Skip to content

Instantly share code, notes, and snippets.

@marcoczen
Last active April 20, 2023 00:20
Show Gist options
  • Save marcoczen/0b8d5ce2554f60d76375adcccb76453b to your computer and use it in GitHub Desktop.
Save marcoczen/0b8d5ce2554f60d76375adcccb76453b to your computer and use it in GitHub Desktop.
PopOS - Some Troubleshooting Commands
::: Some PopOS TroubleShooting Commands - v011 :::
( Mostly curated from posts from the PopOS Telegram Group )
: Apt/Dpkg Package Mgmt :
— sudo apt update
— sudo apt list --upgradable
— sudo apt show package_name
— sudo apt policy package_name
— sudo apt changelog package_name
— sudo apt install --only-upgrade package_name
— sudo apt upgrade
— sudo dpkg -l system76*
— sudo dpkg -L system76-power
: ChangeLogs - PopOS Packages :
— https://github.com/pop-os/repo-release/pulls?q=is%3Apr+is%3Aclosed
: Block Kernel from Upgrades To Avoid Stability Problems :
— cd /etc/apt/preferences.d
— sudo touch no_upgrades_for_these_packages
Via nano, add into the file above;
— sudo nano no_upgrades_for_these_packages
Package: linux-headers* linux-image* linux-modules*
linux-system76* linux-generic*
Pin: release *
Pin-Priority: -1
: Gnome Shell - Restart if Desktop Unresponsive :
— ' Alt + F2' + ' r '
: Gnome Shell - UI Improvements :
— sudo apt install gnome-shell-extensions
— sudo apt install gnome-tweaks
: Graphics :
— echo $XDG_SESSION_TYPE
— sudo system76-power graphics
— sudo system76-power graphics switchable
— sudo system76-power graphics power
— sudo nvidia-xconfig
— sudo find /etc -name "*xorg.conf*"
— nvidia-smi
: Hard Disk Health :
— sudo apt-get install smartmontools
— lsblk
— sudo smartctl -a /dev/sda
: Networking :
— sudo systemctl restart NetworkManager.service
: PIP - Python Scripts Installation :
$ python3 -m venv <venv_name>
$ source ./<venv_name>/bin/activate
$ pip install <package_name>
$ <package_name> --args
$ deactivate
: RAM Consumption :
- sudo psmem/bin/ps_mem
( Install ps_mem via pip )
: ZRAM Custom Setup :
- sudo nano /etc/pop-zram
SWAPPINESS=30
: Service Files - Enabled Services :
— systemctl list-unit-files | sort -n | grep enabled
: System Logs - Get / Share :
— sudo journalctl -r -x -b -p0..3 | nc termbin.com 9999
: System Specs - Get / Share :
— sudo inxi -Fxzrc0 | nc termbin.com 9999
::: End :::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment