flatpak – get latest libreoffice

flatpak is tool similar to 0install. You can find more details here.

# Get the gnome-sdk gpg keys
wget https://sdk.gnome.org/keys/gnome-sdk.gpg
# Add the keys to trusted keys
flatpak remote-add --user --gpg-import=gnome-sdk.gpg gnome https://sdk.gnome.org/repo/

# Install pre-requisite gnome
flatpak install --user gnome org.gnome.Platform 3.20

# Download the flatpak file and install it. Or you can follow the next step.
wget 'http://download.documentfoundation.org/libreoffice/flatpak/latest/LibreOffice.flatpak'
flatpak install --user --bundle LibreOffice.flatpak

# Install flatpak without downloading
flatpak install --user gnome org.gnome.Platform.Locale 3.20

# Run you brand new shiny latest libreoffice
flatpak run org.libreoffice.LibreOffice

# At a later date, when you want to update libreoffice.
flatpak update --user org.libreoffice.LibreOffice

systemd – start service when you enable it

More often than not for any service, I end up doing :

systemctl enable <service>
systemctl start <service>

But there is shorcut to this. In systemctl command when you enable the service, you can use “–now” to start the service as follows:

systemctl enable --now <service>

quite a timesaver ūüôā

Kernel dropped packet analysis

Found a simple method to check for all the packets dropped by kernel.

First you need to install dropwatch with

dnf install dropwatch

and details of the package

Name        : dropwatch
Arch        : x86_64
Epoch       : 0
Version     : 1.4
Release     : 13.fc24
Size        : 27 k
Repo        : fedora
Summary     : Kernel dropped packet monitor
URL         : http://fedorahosted.org/dropwatch
License     : GPLv2+
Description : dropwatch is an utility to interface to the kernel to monitor for dropped
: network packets.

 

Once that is done, you will see the kernel address. How do you map those to kernel functions, refer Get kernel function name from kernel address.