Script

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:

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