Author Archives: peter

Linux | How to get Windows 10 License key from BIOS

If you have installed Linux on your laptop but wan’t to have a Windows VM in virtualbox then chances are that you need a serial number for windows 10.

Normally Windows read the embedded key that are hardcodet into the BIOS of the laptop and Windows in a virtual instance will not be able to read other than the vm’s virtual BIOS so you will need to type one in yourself.

With this command you can extract the serial number:

sudo hexdump -s 56 -e '"WIN key: " /29 "%s\n"' /sys/firmware/acpi/tables/MSDM

Exim | How to hide version number

To prevent showing hackers the version number of your Exim SMTP server it can be hidden by setting this SMTP banner.

Search for smtp_banner in /etc/exim.conf and replace it with:

smtp_banner = "${primary_hostname} ESMTP"

In some setups there is no smtp_banner set then just add the line to the config file

How to fix Chrome dependency problems on Kubuntu 18.04

If you wan’t Googles Chrome browser on Kubuntu 18.04 changes are that you run into an dependency problem when you install the deb package.

I got this result when i tried to install

pva@pva-laptop:~/Downloads$ sudo dpkg -i google-chrome-stable_current_amd64.deb 
Selecting previously unselected package google-chrome-stable.
(Reading database ... 217438 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (76.0.3809.132-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libappindicator3-1; however:
  Package libappindicator3-1 is not installed.

dpkg: error processing package google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 google-chrome-stable

To resolve the issue you need to install theses dependencies

sudo apt install libappindicator3-1 libindicator3-7

Raspberry Pi | how to disable swapping

If you wan’t to disable swapping on your raspberry pi to prevent fast weardown of you SD card or even if you are using a SSD to boot on via USB it can reduce your disks lifespan if you have swapping turned on and it’s default on.

Here is how to completely disable swapping on Raspberry Pi (raspberian)

sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall
sudo update-rc.d dphys-swapfile remove
apt purge dphys-swapfile

This is tested on my Raspberry Pi 3 with Raspberian 9 (Debian 9 based)

WARNING: this is only a good idea if you know that the server has enough ram for it’s tasks.

CS:GO | Linux | Playing against my 10 year old kid and losing

I have tested Steam on my old Lenovo T450 laptop that is my secondary machine, it’s running Linux Mint 19 Cinnamon Edition and is working great with Steam. I’m quite surprised that it was fast enough to Play CS:GO and in the same time being recording a full desktop session, but it worked out just fine. My hardware is Core 5i CPU, 8 GB RAM, Intel HD 5500 Grapichs card, 128 GB SSD harddisk. I used KaZam to record with, it came with Linux Mint.