Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Articles

Youtube Subtitles in Any Language

YouTube subtitles in any language make videos easier to watch, understand, and share with a global audience. Whether you are watching educational content, tutorials, interviews, or entertainment, subtitles can help you follow spoken words more clearly. They are especially useful for people who are deaf or hard of hearing, as well as for language learners who want extra support while watching videos.

Your CMS Upgrade Is Now a Stack Project: A 2026 PHP Roadmap for WordPress and Drupal Sites

There is a quiet deadline hiding under a lot of otherwise healthy marketing websites. The home page loads, the forms still submit, and nobody feels urgency until a host removes an old package, a plugin update fails, or a major CMS upgrade suddenly becomes impractical. As of April 18, 2026, that deadline is often not design, content, or SEO strategy. It is PHP.

AI Crawler Control for Business Websites: Protect Your Content Without Disappearing From Search

For many business websites, AI crawler control has moved from a theoretical policy question to an operational one. If you run WordPress, Drupal, or a custom marketing stack, your site may now be visited by a mix of traditional search crawlers, AI search bots, training crawlers, and user-triggered fetchers. Treat them all the same and you risk making a bad trade: either letting too much happen at your origin, or blocking traffic so broadly that your site becomes less visible where prospects increasingly discover information.

Shrink PDF In Linux

Here is a great reference how to compress and reduce the size of PDF files with Ghost Scrip (gs) in Linux: http://blog.virtualzone.de/2012/11/how-to-reduce-pdf-file-size-in-linux…

Example: "gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=output.pdf input.pdf"

Running Linux on T450s T495s T14, Thinkpads and Others

I used a couple of moments to figure out if I wanted to stay on Kubuntu 14.04 LTS (Long Term Support), but then I decided to go with the new version 15.10. I want the new KDEnLive, so I can create more bad videos no one watches on my Youtube Channel PlantSugar.

Initial Setup

Update 2022-12-22: Optimized and started to strike through old not needed info when using Windows 11 and Kubuntu 22.10 end of 2022.

Get the bootloader working with Windows 10

Sending Mails From A Linux Server

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

Or: echo "Test from $HOSTNAME" | mail -s "Everything A okay" -a "From: noreply@$HOSTNAME" [destinationmail.com]

 

Adjust Screen Brightness Ubuntu 19.10 - 22.04

Terminal: xrandr -q | grep " connected"
Output: eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm

So my connected screen name is eDP-1

xrandr --output eDP-1 --brightness 0.5

0.5 = 50% of current brightness. Back to normal use:

xrandr --output eDP-1 --brightness 1

brightness 1 = 100%

Source and thanks to https://askubuntu.com/questions/149054/how-to-change-lcd-brightness-fro…

Skype For Linux Fix High CPU Consumption

Possible fix:

Delete the cache: ~/.config/skypeforlinux/Cache/

Skype start command: nice -n 19 rm -r ~/.config/skypeforlinux/Cache/* ; nice -n 19 /usr/bin/skypeforlinux %U skypeforlinux --disable-accelerated-video-decode=true

Skype start command vanilla: /usr/bin/skypeforlinux %U

Keyboard Mapping Kubuntu 20.04

Quick instructions:

insert: "keycode 49 = less greater backslash backslash backslash" in "$HOME/.Xmodmap" and run "xmodmap .Xmodmap" - this will setup your keys on the system.
To make these keys persistent run: "xkbcomp $DISPLAY $HOME/.xkbmap"

Very interesting: https://medium.com/@saplos123456/persistent-keyboard-mapping-on-ubuntu-using-xmodmap-cd01ad828fcd

Mounting Your Android Phone In Linux

Update 2022-07-14: kill kiod or kiod5 and then do jmtpfs

Update 2021-07-10: sudo aptitude install gmtp

It can be a challenge to mount your Android phone (MTP device) in Linux if you have some strange files from your old Iphone. I needed to do it the hard way.

You need to install mtpfs and use this command: sudo mtpfs -o allow_other /media/android-device

Reference.

 

Ubuntu Linux Flush DNS Cache

sudo resolvectl flush-caches

Before Ubuntu 22.04

Check DNS cache status: sudo systemd-resolve --statistics

Flush DNS cache: sudo systemd-resolve --flush-caches

Converting PNG to SVG

In a lot of cases it is useful to convert bitmaps like jpg, png to vector graphics like SVG or AI.

Inkscape -> Path -> Trace Bitmap

BASH

convert file.png file.pnm
potrace file.pnm -s -o file.svg

Protocols h2 h2c http/1.1 Tips and Tricks

HTTP/2 is the latest HTTP network protocol.

https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831
https://www.upwork.com/resources/what-is-http2#:~:text=Find%20Work-,Dis….
https://www.tecmint.com/enable-http2-in-apache-on-ubuntu/

Delete Files and Folders Older Than X days

find /[FOLDER_NAME]/* -mtime +[OLDER_THAN_DAYS] -exec rm -rf {} \;

Example deletes all files and folders in tmp folder that are older than 180 days: find /tmp/* -mtime +180 -exec rm -rf {} \;

Ubuntu Select Touch Device

Quick note: xinput map-to-output 11 eDP

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:

Example of battery status from TLP 2021-12-06 T495s
Linux Laptop Power Management TLP

TLP is an advanced power management tool I use for my laptop that runs Linux. I have not tested the different settings, but it seems that the battery time is increased compared to not running it. :-) I only use it in battery-mode. There are some extra features for Thinkpad laptops.

TLP settings file Ubuntu: /etc/tlp.conf

Reload config: sudo tlp start

Check TLP status: sudo tlp-stat 

Check battery: upower -i /org/freedesktop/UPower/devices/battery_BAT0

SSH Tips and Tricks

Kick user from SSH server: sudo pkill -HUP -u [USERNAME]

 

Cloudflare API

Handling DNS records from bash, including import of bind config zone file: https://github.com/tmiland/Cloudflare-BIND-Zone-File-Upload/blob/master…

Debugging PHP

There are many ways of debugging php. I will start creating a reference guide here.

One of the best references out there: https://phptherightway.com/

Activate showing php errors either in the application itself, cpanel or php.ini.

error_reporting(E_ERROR | E_WARNING);

Dumping variables

var_dump($variable_name);
file_put_contents("dump.txt", ob_get_contents());
ob_end_clean();

 

key words: debug

KDE 5 Plasma Fix After Upgrade

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.

Pagination

  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page

Review Greg on Google

Greg Nowak Google Reviews

 

  • Youtube Subtitles in Any Language
  • Your CMS Upgrade Is Now a Stack Project: A 2026 PHP Roadmap for WordPress and Drupal Sites
  • AI Crawler Control for Business Websites: Protect Your Content Without Disappearing From Search
  • Portfolio
  • Gregs IT and Logistics Optimization
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.