Print dnsmasq statistic to journalctl

sudo pkill -USR1 dnsmasq
| 29 Mar 2021

Print repository usage

Print how many packages are installed per repository:

sudo dnf list --installed | grep -E -o "@.*" | sort | uniq -c
| 29 Mar 2021

Rose frame colour

Matching nail polisher colour for Rose Pro SL Disc (red) is Rimmel A Spritzzz (714)

| 6 Mar 2021

Remove host entry from known_hosts file

To remove a host entry from ~/.ssh/known_hosts you can do it manually by editing the file or use ssh-keygen application:

ssh-keygen -R 135.181.157.20

This should fix Host key verification failed error

| 4 Mar 2021

Clear file from leading new line and etc

cat file | tr -d [$'\t\r\n'] > new_file
| 26 Feb 2021

Intel i5-10400 CPU benchmark

CPU benchmark from desktop PC

$ sysbench cpu run --time=5
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  1389.45

General statistics:
    total time:                          5.0001s
    total number of events:              6949

Latency (ms):
         min:                                    0.70
         avg:                                    0.72
         max:                                    1.04
         95th percentile:                        0.75

Threads fairness:
    events (avg/stddev):           6949.0000/0.00
    execution time (avg/stddev):   4.9991/0.00
| 22 Feb 2021

Install nvidia drivers

Verify your GPU:

/sbin/lspci | grep -e VGA

Make sure you:

  • disabled Wayland
  • disabled Secure Boot

Make sure you system is up to date (reboot if something was installed):

sudo dnf update -y

Install nvidia driver:

sudo dnf install akmod-nvidia
sudo dnf install xorg-x11-drv-nvidia-cuda

Wait until kernel module is compiled.

Enable video acceleration and some extras:

sudo dnf install vdpauinfo libva-vdpau-driver libva-utils xorg-x11-drv-nvidia-cuda-libs xorg-x11-drv-nvidia-cuda

Reboot system.

Verify that nouveau driver is disabled:

lsmod |grep nouveau
| 20 Feb 2021

Disable Selinux

Edit this /etc/selinux/config file and follow instructions

| 20 Feb 2021

Disable Wayland and switch to X11

By default fedora uses Wayland. Make sure the following section exists in /etc/gdm/custom.conf:

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
DefaultSession=gnome-xorg.desktop
| 20 Feb 2021

Record all traffic on specific port

Create TCP dump of all traffic on localhost on port 8888

sudo tcpdump -i lo "port 8888" -w dump
| 15 Feb 2021