Tag Archives: Ubuntu

Set fractional display scaling on Ubuntu 18.10 (XORG)

I am using an LG 5K monitor, and the display scaling options are very limited in gnome-shell, only increments of 100%. To have fractional scaling, I tried this script: #!/bin/bash gsettings set org.gnome.desktop.interface scaling-factor 2gsettings set org.gnome.settings-daemon.plugins.xsettings overrides “{‘Gdk/WindowScalingFactor’: <2>}” … Continue reading

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

Using gzip to compress a file without overriding it

gzip < source_file > compressed_file.gz Source: https://unix.stackexchange.com/questions/46786/how-to-tell-gzip-to-keep-original-file

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

Resize root filesystem on Ubuntu 18.04 with LVM

Ubuntu 18.04 default lvm layout comes with only a 4 GB root partition. Here we will extend it to occupy the full free space in the volume group: sudo lvextend -l 100%FREE –resizefs /dev/ubuntu-vg/ubuntu-lv That’s it, Enjoy! Sources: https://access.redhat.com/solutions/44089 https://www.digitalocean.com/community/tutorials/how-to-use-lvm-to-manage-storage-devices-on-ubuntu-18-04

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

How to scan for devices in your network in Ubuntu

sudo apt install arp-scan sudo arp-scan -l –interface=wlp2s0 Replace wlp2s0 with your NIC’s name, works for both wireless and wired Source: https://askubuntu.com/questions/82480/how-to-see-all-computers-connected-to-a-network

Posted in Linux | Tagged , , | Leave a comment

Validate xml files with xmlstarlet on Ubuntu

sudo apt install xmlstarletxmlstarlet val XML_FILE.xml

Posted in Linux | Tagged , , | Leave a comment

How to resolve KDE Connect App losing connection with Linux after screen is locked on Huawei Phones

I tested on my P10 Plus, but this can work on other Huawei phones as well I believe. I have EMUI 8 with Android 8 and my OS is Ubuntu 18.10 with GSConnect Go to Ignore Battery Optimization -> Change … Continue reading

Posted in Android, Ubuntu | Tagged , , , , , | 1 Comment

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