Ubuntu housekeeping
Free up memory
- Clean snap’s cached versions (Ubuntu’s application installer and manager): https://itsfoss.com/clean-snap-packages/
- Clean apt cache:
sudo apt-get clean(size of cache can be seen withdu -sh /var/cache/apt/archives) - Clean old linux kernels:
sudo apt remove $(dpkg-query --show 'linux-modules-*' | cut -f1 | grep -v "$(uname -r)")(source with nice detailed explanation). Don’t forget to runsudo apt autoremoveafter. - Clean apt cache:
sudo du -sh /var/cache/aptto see how much space it’s taking,sudo apt cleanto remove all cache,sudo apt autocleanto remove only obsolete cached items du -shto see the size of a directory/file
Create .desktop file
In the ~/.local/share/applications, create the <application name>.desktop file:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/path/to/executable
Name=Name of Application
Icon=~/.local/share/icons/path/to/icon
There are no notes linking to this note.
There are no papers linking to this note.