Skip to main content
GrN.dk

Main navigation

  • 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

Linux

By Greg Nowak, 8 August, 2021

Linux Browser Tweaks

In firefox I have enabled a couple of tweaks described here for hardware acceleration: https://askubuntu.com/questions/1216192/why-is-kubuntu-using-much-more-…

 

Maybe more info here: https://itectec.com/ubuntu/ubuntu-why-is-kubuntu-using-much-more-cpu-th…

Tags

  • Linux
By Greg Nowak, 6 August, 2021

Mysqldump encoding

If you experience false characters in your mysqldump, you might want to try to set the encoding specifically. Example with latin1:

mysqldump -u [USER] -p --opt --skip-set-charset --default-character-set=latin1 [DATABASE_NAME] > [OUTPUT_FILE_NAME].sql

Check different encoding settings in mysql when using a specific database: show variables like 'char%';

More info and tips: https://www.toptal.com/php/a-utf-8-primer-for-php-and-mysql

Tags

  • Script
  • Linux
By Greg Nowak, 5 August, 2021

KDE contextual menu shortcut (mouse right click wannabe)

Use "xdotool key Menu" in a global shortcut. That's it!

Source: https://askubuntu.com/a/1008343/1016583

Tags

  • Linux
By Greg Nowak, 17 July, 2021

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:

Tags

  • Linux
  • screen
  • Script
By Greg Nowak, 15 July, 2021

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.

Tags

  • Linux
By Greg Nowak, 25 April, 2021

Run process in the background Linux

To detach a process started in the terminal, you can always add & at the end. For example: npm run evaluation &

Or: nohup bash script.bash &

After that you can run "jobs", to see the running jobs for that user.

Otherwise you can use "htop" or "ps -ef |grep bash" to find all bash jobs for instance.

References:

https://www.dev2qa.com/how-to-run-node-js-server-in-background/

Tags

  • Script
  • Linux
By Greg Nowak, 10 April, 2021

Wget The Non-Interactive Network Downloader Tips and Tricks

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

Tags

  • Linux
  • Script
By Greg Nowak, 25 February, 2021

Get Current Working Directory In Any Window Linux Bash

readlink -e /proc/$(xprop -id $(xdotool getactivewindow) _NET_WM_PID | awk '{print $3}')/cwd

Inspired by: https://superuser.com/questions/1116636/open-a-terminal-from-any-direct…

Tags

  • Linux
  • Script
By Greg Nowak, 23 February, 2021

Adjust power management settings for Ryzen Processors

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

Tags

  • Linux
  • Hardware
By Greg Nowak, 5 February, 2021

Enable SMART on Old External Seagate SSD Ubuntu 20.10

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

Tags

  • Linux
  • Hardware

Pagination

  • Previous page
  • 2
  • Next page
Linux

Review Greg on Google

Greg Nowak Google Reviews

 

  • Portfolio
  • About Greg Nowak
  • Gregs IT and Logistics Optimization
  • Shrink PDF In Linux
  • Running Linux on T450s T495s T14, Thinkpads and Others
RSS feed

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