Skip to content

Instantly share code, notes, and snippets.

@kolbaba kolbaba/linux.md

Last active Mar 4, 2020
Embed
What would you like to do?

Linux Snippets

Installing Software

sudo apt update && sudo apt upgrade
sudo apt-get update
--
sudo snap install
slack --classic
solitaire
mc-installer
shotcut --classic
audacity
youtube-dl
gimp
sublime-text --classic
htop
chromium

# less frequent
gog-galaxy-wine
discord

...and more...

Download Links

Links

Linux Guest Virtualbox Issues and Solutions

Fix VBox Issue #1

apt update
apt upgrade #To install Linux headers
apt install gcc
apt install make
cd /media/"username"/VBOX*
./VBoxLinuxAdditions.run
reboot
// Install host ubuntu
sudo apt-get install virtualbox-guest-additions-iso

// Or VB Manager
sudo apt install build-essential dkms

Various Commands

// output network info
lspci | grep -i network

// kill a program
ps -A
ps -A | less
Pstree
Kill PID
pkill firefox
killall firefox
pgrep firefox

// what display manager
systemctl status display-manager

// show hidden files
control+h

// open file here
xdg-open

// install .deb
sudo dpkg -i /path/deb/file
sudo apt-get install -f ./

// add / remove packages

sudo apt-get install <packagename>
sudo apt-get remove <packagename>
sudo apt-get purge <packagename>

// Remove apt application
apt-get remove packagename
apt-get purge packagename or apt-get remove --purge packagename
apt-get autoremove
aptitude remove packagename or aptitude purge packagename
sudo apt-get install ubuntu-restricted-extras

// install desktops
sudo apt-get install ubuntu-desktop
sudo apt-get install kubuntu-desktop
sudo apt-get install lubuntu-desktop
sudo apt-get install mate-desktop
sudo apt-get install ubuntu-gnome-desktop
sudo apt-get install xubuntu-desktop

*Note: Remove Desktops Article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.