Invalid or missing Livepatch token

Disable Livepatch either through the GUI or by running canonical-livepatch disable as root Uninstall Livepatch with snap remove canonical-livepatch as root (optional. Try it first without doing this) Run the command rm /etc/machine-id as root to remove your current machine ID (if it says the file or directory doesn’t exist, you can safely ignore it) Run the command systemd-machine-id-setup as root to regenerate […]

Read More

crontab every 30 minutes linux / ubuntu

valid hours: 0-23 — valid minutes: 0-59 example #1 30 * * * * your_command this means “run when the minute of each hour is 30” (would run at: 1:30, 2:30, 3:30, etc) example #2 */30 * * * * your_command this means “run when the minute of each hour is evenly divisible by 30” (would run […]

Read More

optimize Linux server performance

Compress components with gzip Compression reduces response times by reducing the size of the HTTP response. Gzip is the most popular and effective compression method currently available and generally reduces the response size by about 70%. Approximately 90% of today’s Internet traffic travels through browsers that claim to support gzip. Use cookie-free domains When the […]

Read More

check last failed login attempts ubuntu

In CentOS or RHEL, the failed SSH sessions are recorded in /var/log/secure file. Issue the above command against this log file to identify failed SSH logins. A slightly modified version of the above command to display failed SSH logins in CentOS or RHEL is as follows.

Read More

how to check zombie process in ubuntu

Find the zombie What you get is Zombies and anything else with a Z in it, so you will also get the grep: Find the zombie’s parent: Will give you: kill process ubuntu sudo kill -9 process_id Kill all processes you can kill. working your way up to -9

Read More