Tag Archives: Ubuntu

How to beautify XML text on command line in Ubuntu

sudo apt install libxml2-utils echo ‘your xml stuff here’ | xmllint –format – You will get a beautiful well-organized XML output. Sources: https://jahansyed.co.uk/2016/04/22/how-to-install-xmllint-in-ubuntu/ https://stackoverflow.com/questions/16090869/how-to-pretty-print-xml-from-the-command-line

Posted in Linux | Tagged , , , , , | Leave a comment

Flush the DNS cache on Ubuntu 18.04

sudo systemd-resolve –flush-caches Source: https://askubuntu.com/questions/906476/how-can-i-flush-the-dns-on-ubuntu-17-04

Posted in Linux | Tagged , , , , | Leave a comment

Create SSH profiles for your frequent connections on Ubuntu 18.04 using ssh_config

This is very useful if you connect to tons of servers via ssh and you need to keep record of them as profiles. Edit/Create a file .ssh/config Add entries in this manner: Host blabla User blablabla # or domain\blablabla if … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment

Add a custom resolution to your display using xrandr on Ubuntu 18.04

Just in case your monitor’s supported resolution is not properly detected or if you want a custom resolution to be used: In this example, we will try to add 1368×768, with a refresh rate of 60 Run cvt to get … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment

Force remove an entry from Ubuntu Online Accounts

I was trying to delete an entry in my online accounts (since I restored Ubuntu 18.04 files over 17.10), and it wasn’t getting deleted. The solution is to edit the following file: ~/.config/goa-1.0/accounts.conf Then simply remove the entry you wish … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Solve /boot getting 100% full issue on Ubuntu Servers

This is an issue affecting many Ubuntu servers. It basically happens when you enable automated security updates, multiple kernel packages get installed automatically, without removing the old ones, which gets /boot 100% full and the package manager is no longer … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment

How to change default terminal emulator in Ubuntu 18.04

Ctrl+Alt+t is the keyboard shortcut to open a terminal in Ubuntu. By default, it opens an ‘x-terminal-emulator’ terminal. I wanted to change that to use my favorite terminal emulator, which is ‘terminator’ To do that: gsettings set org.gnome.desktop.default-applications.terminal exec ‘terminator’ … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment