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:

Posted in Linux | Tagged , , , , | 5 Comments

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

List network adapters connected to Ubuntu Server

sudo ls /sys/class/net

Source: https://askubuntu.com/questions/296152/how-to-check-what-is-my-network-card-on-ubuntu

Posted in Ubuntu | Tagged , | Leave a comment

Validate xml files with xmlstarlet on Ubuntu

sudo apt install xmlstarlet
xmlstarlet 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 from Allowed to All Apps -> Navigate to KDE Connect and choose Allow
  • Go to Apps -> KDE Connect -> Open by default -> Battery -> Change Launch to Manage manually -> Select all options
  • Restart your phone and open the KDE Connect App

Enjoy!

Sources:

https://github.com/Bajoja/indicator-kdeconnect/issues/43

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