Skip to content
Menu
vernon.wenberg.net
vernon.wenberg.net

Category: Linux

February 24, 2025

Useful Commands for Windows Subsystem for Linux

Check current WSL version in use Set default WSL version. Currently 1 or 2. Convert WSL version to version 2 where Ubuntu-20.04 is the name of the distribution. List distributions available for install.

Read More
December 9, 2024

Mount Google Drive in Linux using rclone

Prerequisites Add Google Drive remotes in rclone Once you have installed rclone and created your client ID in Google, you can now begin adding the “remote” in rclone. Remotes in rclone are your remote drives that you want to sync to locally. rclone supports syncing many remote drives, but here we will be specifically mounting…

Read More
July 1, 2024July 1, 2024

Allow Python to use ICMP raw packets

icmplib uses raw packets to create ICMP packets. While this is not an issue in Windows, ping on Linux always runs as root to create those packets. icmplib will throw the following error if it is unable to get permissions to create raw network packets. Use the following command to allow Python to manipulate raw…

Read More
June 24, 2024June 24, 2024

“agent refused operation” when logging in with ssh keys

Copying your SSH keys to a new server is usually accomplished by However, on Fedora 40, I encountered the following error after adding my keys. This appears to just be a permissions issue. To fix this, use the following commands.

Read More
June 24, 2024June 24, 2024

Service check / Port check in LibreNMS

LibreNMS offers a way to check for services and/or ports. In this example, we will check for HTTPS/SSL. First we need to enable services. Make sure the value for show_services is “1”. If not, change it to “1”. We then need to install the nagios-plugins. Let’s add a dummy device. In this case, we will…

Read More
May 18, 2024May 18, 2024

CrowdStrike: Update to supported kernel to remove RFM status in Ubuntu

To get the full benefits of the falcon-sensor on Ubuntu, you need to use a supported kernel, or your system will be in “RFM”. To remove the RFM status we will need to update to a kernel supported by your version of falcon-sensor. First verify your RFM status. You should see the following in the…

Read More
March 9, 2024July 1, 2024

Essential Linux/Mac/WSL Terminal Apps

I usually forget what apps I regularly use on a Linux terminal until I get a command not found error. This will act as my reference to remember to install these apps when using a new terminal. This is a work in progress and apps may be added or removed. Most of these apps are…

Read More
February 19, 2024February 19, 2024

Create database and add user in PostgreSQL

Read More
January 29, 2024July 21, 2024

Useful Linux CLI Commands

Edit crontab of user where www-data is the user Sync two directories. This overwrites files with the same names Show information about a file or directory Show file or directory size Zip up a directory Unzip file to current directory List files and directories in a zip file Search for “whatever” in file.txt Run last…

Read More
January 16, 2024January 16, 2024

Only allow certain IPs to access your Apache2/nginx web server

Use the following statements in your conf files. IPs are in CIDR format. Replace with your IP ranges as needed. Apache 2.4 Apache 2.2 nginx

Read More
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Disclaimer

These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.

Recent Posts

  • Docker Reference
  • Useful Commands for Windows Subsystem for Linux
  • FortiManager Local-In Policy
  • Mount Google Drive in Linux using rclone
  • Restore original Explorer context menus in Windows 11

Mastodon

  1. Loading Mastodon feed...

©2025 vernon.wenberg.net | Powered by WordPress and Superb Themes!