Linux

Ubuntu Select Touch Device

Submitted by Greg Nowak on 2021-07-17

I have a thinkpad laptop with a touchscreen. When I connect my external screen, then the touch sensor on my laptop screen moves the cursor on the external screen, which is not what I want. I want to keep my touch on my laptop screen.

I followed the instructions here: https://askubuntu.com/questions/51445/how-do-i-calibrate-a-touchscreen-…

First run:

xinput

Output:

KDE 5 Plasma Fix After Upgrade

Submitted by Greg Nowak on 2021-07-15

Missing icons on the login screen and everywhere else after upgrade to Kubuntu 21.04? You have come to the right place!

Easy fix: sudo apt install libqt5quick5

Source: https://askubuntu.com/questions/1288506/black-icons-after-reinstalling-…

I did not have any problems on my main machine, but my old machine which had not been updated for more than a year did not swallow the upgrade easily.

Tags

Wget The Non-Interactive Network Downloader Tips and Tricks

Submitted by Greg Nowak on 2021-04-10

Many times you need to download files from the internet, specifically when you want to automate a process or two. Here is where wget comes in handy. This is a standard tool on most Linux systems.

In some cases the server you want to download from does a couple of checks, so your automation fails. You can come by that by adding a couple of switches like:

wget --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" --auth-no-challenge URL_OF_FILE_TO_DOWNLOAD

Sometimes: wget --user-agent="Mozilla"

Tags

Adjust power management settings for Ryzen Processors

Submitted by Greg Nowak on 2021-02-23

This might be useful when your machine shuts down unexpectadly under heavy loads: https://github.com/FlyGoat/RyzenAdj

For me it only happens in Windows when the batery is charging too. I think charging thresholds are a must. In linux we have tlp: https://linrunner.de/tlp/ and https://wiki.archlinux.org/index.php/TLP and https://github.com/linrunner/TLP :-D

Enable SMART on Old External Seagate SSD Ubuntu 20.10

Submitted by Greg Nowak on 2021-02-05

I have an old external seagate ssd 2TB for backup called "BUP Slim BL". It was a challenge to enable the SMART capability on Ubuntu 20.10.

You might give this a go: sudo smartctl -d sat -T permissive --smart=on /dev/sda1

If that does not work, you might need:

echo options usb-storage quirks=$(lsusb | awk '/Seagate/ {print $6}'):u | sudo tee -a /etc/modprobe.d/ignore_uas.conf
sudo update-initramfs -u

Sending Mails From A Linux Server

Submitted by Greg Nowak on 2020-12-03

In this example we use Ubuntu linux.

Software: mailutils

Restart postfix after changing postfix config file: main.cf: sudo service postfix restart

First test if you can access gmail through port 25: telnet gmail-smtp-in.l.google.com 25

Test mail with: echo "Hello world" | mail -s "Test Email" -a "From: [email protected]" toMail.com

 

Mail configuration

/etc/mailname > grn.dk

/etc/hostname > grn.dk

hostname grn.dk

/etc/hosts > [IP] grn.dk localhost

Tags