Friday, May 07, 2021

Fix slow VNC connection to headless Linux server with intel GPU

Back in 2018, I had observed that VNC connections to headless Ubuntu 16.04 server (the one without any monitors connected) was extremely slow and laggy. After bunch of experiments, I figured out that the problem was caused due to missing Xorg.conf template

Below solution was tested with Ubuntu 16.04, I am not sure if same problem is still observed with newer Ubuntu versions

Solution:


Thursday, May 06, 2021

Ubuntu Force apt to use IPv4

On U16.04, I found that apt took really long time to update over IPv6.

Enter below command to force the use of IP v4 for apt

echo "Acquire::ForceIPv4 "true";" | sudo tee /etc/apt/apt.conf.d/99force-ipv4 > /dev/null


Wednesday, May 05, 2021

How to install Dropbox on Linux with single sign on (SSO)

I had to do mini research to be able to successfully install dropbox on Linux with single sign-on. Here are the steps I followed.
  1. Close all browsers windows.
  2. Open fresh browser window, visit to https://www.dropbox.com/ and login using SSO.
  3. Once logged-in, install dropbox package as usual. I used below steps
  4. Open Dropbox from the installed program files, click OK to install dropbox daemon process.
  5. It should open your browser once again and ask for linking confirmation. Press OK.

Keywords:

  • dropbox linux enter linking code
  • Entering Linking Code After Dropbox Install on Ubuntu/Linux

Wednesday, April 28, 2021

Script to disable automatic updates on Ubuntu 16.04

I work on Ubuntu with some custom Kernel extensions which needs to be built upon each Kernel updates. Since, it is a dev. environment, sensible option was to lock the packages which I was using for development.
Below script disables automatic package updates on Ubuntu 16.04.x
Note: Do NOT disable security updates on production system!

Wednesday, March 31, 2021

qDebug log with and without spaces in a single sentence

Below sample shows how spaces can be disabled/enabled in middle of a single qDebug log.
Keyword: qDebug disable space in middle of log

Saturday, March 27, 2021

Mac OS: How to stop/kill Kaspersky Endpoint Security

Recently all of sudden I had started getting all sorts of internet connecitivity issues on my Office issued Mac book Pro. My internet would stop working all together on my Mac book Pro and the only way to get it working again was to reboot Mac Os.
After some closer inspection, I found that Kaspersky Endpoint Security pushed my company's IT was causing this issue. Since Kaspersky Endpoint Security does not contain graphical user interface to interact with, I had to come up with a way to unload it from system memory.
Below script unloads Kaspersky Endpoint Security Daemon. You need to run it after each reboot. You need to have super user permission.
sudo launchctl unload /Library/LaunchDaemons/com.kaspersky.kav.plist
WARNING: Above command stops Kaspersky Endpoint Security. Enter it only if you know what you're doing!

Friday, March 26, 2021

Qt: Nested QMap example

I had to recently use nested Qt QMap. Below is a simple C++ code sample which shows how I used nested QMap and initialised using C++ initialiser list.