Category Archives: Ubuntu

Set fractional display scaling on Ubuntu 18.10 (XORG)

I am using an LG 5K monitor, and the display scaling options are very limited in gnome-shell, only increments of 100%. To have fractional scaling, I tried this script: #!/bin/bash gsettings set org.gnome.desktop.interface scaling-factor 2gsettings set org.gnome.settings-daemon.plugins.xsettings overrides “{‘Gdk/WindowScalingFactor’: <2>}” … Continue reading

Posted in Ubuntu | 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

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 … Continue reading

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

Start Slack Minimized on Ubuntu 18.04

It might seem silly, but I just hate having to see the Slack Connection window every time I start my computer. I just wanted it to start minimized, no big deal! To start it minimized, just append -u to the … Continue reading

Posted in Linux, Ubuntu | Tagged , , | 2 Comments

How to call GitHub REST API from Ubuntu

In brief, I needed to get a list of the members currently in my organization at GitHub. There are multiple ways to do so, including: Direct calls to the API from curl sudo apt install curl Python using PyGitHub pip … Continue reading

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

Force PKI and Password authentication simultaneously on Ubuntu

I use AD authentication in my environment (for password-based authentication) Current Scenario A valid AD user logs in to the Ubuntu Linux server via SSH That user adds his public key to ~/.ssh/authorized_keys for passwordless login I disable/lock/delete the AD … Continue reading

Posted in Linux, Ubuntu, Uncategorized | Tagged , , , , | Leave a comment

Create random passwords from command line in Ubuntu

There are two handy tools that generate random passwords from the command line in Ubuntu (and other distros of course). It’s more secure to use passwords from these tools instead of online password generators. First of which is apg and … Continue reading

Posted in Ubuntu, Uncategorized | Tagged , , , , | Leave a comment