Ubuntu 22.04 Tutorials

How to Automate Ubuntu Server System Updates and Package Installation

Ubuntu 22.04

Keeping your Ubuntu system updated and installing essential packages can be done efficiently using a simple Bash script. This guide will walk you through creating a script that automates system updates, upgrades installed packages, and installs specific packages of your choice. You can run the script manually or schedule it to execute automatically at a set time using cron jobs.

Step-by-Step Guide

Step 1: Create the Bash Script

Start by creating a new script file, for example, update_and_install.sh. This script will handle all the necessary steps for updating your system.

Example Script: update_and_install.sh

#!/bin/bash

# Update package list
echo "Updating package list..."
sudo apt update

# Check if dpkg was interrupted and run 'sudo dpkg --configure -a' if necessary
if [ $? -ne 0 ]; then
    echo "Checking for dpkg errors..."
    dpkg_error=$(sudo apt update 2>&1 | grep "dpkg was interrupted")
    if [ -n "$dpkg_error" ]; then
        echo "Error detected: 
Read the rest

Introducing Zevonix: Your Pathway to Smarter IT

As businesses increasingly rely on technology to drive innovation and efficiency, the need for robust IT support becomes critical. My name is Patrick Domingues, and as the owner of Zevonix, I’m proud to offer tailored IT solutions designed to meet the diverse needs of modern businesses. At Zevonix, we’re more than just a managed service provider (MSP)—we’re your partner in navigating the evolving technology landscape.

Who We Are

Zevonix is built on the principle of delivering smarter IT solutions to businesses of all sizes. With years of experience in IT management and security, we understand the challenges businesses face. From day one, my goal has been to provide top-notch IT services that simplify technology and drive growth for our clients.

Zevonix

Our Services

At Zevonix, we offer a comprehensive suite of services to ensure your technology infrastructure is optimized, secure, and scalable:

  1. Managed IT Services Our managed IT services
Read the rest
PowerShell Tutorials

How to Remove User Pin with PowerShell

Learn how to remove user PINs using PowerShell with this step-by-step guide and sample script for managing biometric authentication on Windows systems.

PowerShell offers a variety of tools to help automate and manage tasks in Windows environments. In this guide, we’ll show you how to remove a user’s PIN using PowerShell. Removing a PIN from a system can be part of user management, security protocols, or resetting biometric authentication methods. Here’s a step-by-step process along with a sample script that utilizes the BiometricAuthentication PowerShell module.

Step 1: Install the Required Module

Before running the script, you need to ensure that you have the necessary PowerShell module. In this case, the module BiometricAuthentication is required for managing biometric authentication, including PINs.

To install the module, run:

Install-Module -Name "BiometricAuthentication" -Force

Step 2: Use the Script to Remove the PIN

The script below finds users with PINs and removes them:

# Import 
Read the rest
PowerShell Tutorials

How to Automate Microsoft Edge Updates with PowerShell

Learn how to automate Microsoft Edge updates using a simple PowerShell script, ensuring your systems stay secure and up-to-date effortlessly. Microsoft Edge, like many other applications, frequently receives updates that improve performance, add new features, and address security vulnerabilities. However, manually checking for updates can be time-consuming, especially in a business environment where automation is key.

PowerShell-7

Automating Microsoft Edge Updates

The script below allows you to automate the process of installing updates for Microsoft Edge. It works by executing the Microsoft Edge Update executable with specific arguments to silently check for and install updates.

$EdgeUpdatePath = "C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe"
$ArgumentList = "/silent /install appguid={56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}&appname=Microsoft%20Edge&needsadmin=True"

$Process = Start-Process -FilePath $EdgeUpdatePath -ArgumentList $ArgumentList -PassThru -Wait

if ($Process.ExitCode -eq 0) {
    Write-Host "Update successfully installed."
} else {
    Write-Host "Update failed to install."
}

Why Automate Edge Updates?

Automating updates is especially useful for IT administrators managing multiple machines. It ensures that all … Read the rest

PowerShell Tutorials

How to Remove Dell Support Assist & Command Update with PowerShell

This PowerShell script is designed specifically to automate the removal of Dell SupportAssist and Dell Command | Update applications from systems. These Dell utilities are often pre-installed on Dell machines, and while useful for some environments, they may need to be removed for compliance, standardization, or even mitigating a potential vulnerability.

PowerShell-7

Script Overview:

  • Targeted Uninstallation: The script uses application name matching to locate and uninstall Dell SupportAssist and Dell Command | Update silently.
  • Automation-Friendly: Ideal for use in large-scale deployments, this script can be run remotely or as part of an automation process.
  • Silent Execution: The uninstallation process runs quietly without user prompts, making it suitable for background execution.

This script provides an efficient and streamlined way to remove these common Dell utilities across multiple devices in your environment.

Steps to Run the PowerShell Script:

1. Open PowerShell with Administrator Privileges:

  • Click on the Start menu, search for “PowerShell.”
  • Right-click
Read the rest
PowerShell Tutorials

How to Automate Disk Cleanup with PowerShell

Optimize your system’s performance with automated Disk Cleanup using PowerShell, ensuring thorough file removal across all user accounts effortlessly.

PowerShell-7

To run Disk Cleanup as the system user and clean up files for all user accounts on the computer using PowerShell, you can follow these steps:

  1. Run Disk Cleanup as System User: To perform Disk Cleanup with elevated privileges, use the schtasks command to schedule a task that runs as the system user. This task will be set to clean up system files and files from all user accounts.
  2. Execute Disk Cleanup: The cleanmgr utility can be used to run Disk Cleanup. However, there isn’t a direct way to specify all user accounts using cleanmgr. Instead, you can automate the process using the Dism (Deployment Imaging Service and Management Tool) command, which can clean up system components and Windows Update files.

Here’s an example PowerShell script to accomplish this:

# 
Read the rest
PowerShell Tutorials

Scanning Directories for Files with PowerShell

Learn how Scanning Directories for Files with PowerShell can help you locate specific files, making it easy to identify their paths, sizes, and modification dates.

Script Overview

The PowerShell script provided below searches for .xlsx files starting from the root directory C:\. It recursively scans through all subdirectories and returns a list of files that match the specified criteria. For each found file, it displays the full file path, file size, and the last modified date.

Get-ChildItem -Path C:\ -Recurse -Include *filenamehere.xlsx | Select-Object FullName, Length, LastWriteTime

Explanation of the Script

  • Get-ChildItem: This cmdlet retrieves the items (files and directories) from a specified location. It can be used to list files and directories in a given path.
  • **-Path C:**: This specifies the starting point for the search, which is the root directory C:\. You can change this to any directory you want to start your search from.
Read the rest
Ubuntu 22.04 Tutorials

How to Install AWS CLI on Ubuntu 24.04

Ubuntu 24.04

The Amazon Web Services (AWS) Command Line Interface (CLI) is a powerful tool that allows you to manage AWS services from a terminal session on your Ubuntu system. With the AWS CLI, you can efficiently control multiple AWS services and automate tasks through scripts. This guide will walk you through the steps to install AWS CLI on Ubuntu, ensuring you have the tools needed to manage your cloud infrastructure seamlessly.

Step 1: Update Your System

Before you install any new software, it’s always a good idea to update your system to ensure all existing packages are up to date. Open your terminal and run the following commands:

sudo apt update && sudo apt upgrade -y

Step 2: Install AWS CLI Using APT

The AWS CLI can be installed using the apt package manager. To do this, you need to add the AWS CLI repository to your system.

2.1. Install Prerequisites

Read the rest
Ubuntu 22.04 Tutorials

How To Install Plex Media Server on Ubuntu 24.04

How To install Plex Media Server on Ubuntu 24.04 with this easy guide. Download, install, and configure Plex to stream your media effortlessly on your network.

Requirements for Installing Plex Media Server on Ubuntu 24.04

Ubuntu 22.04
  1. Ubuntu 24.04 Operating System: Ensure you are running Ubuntu 24.04.
  2. Internet Connection: Required for downloading the Plex Media Server package.
  3. Sufficient Storage: Ensure you have enough disk space for the Plex Media Server and your media library.
  4. User with Sudo Privileges: You need to have administrative rights to install software.
  5. Basic Terminal Knowledge: Familiarity with using the terminal to run commands.
  6. Firewall Configuration: (Optional) If using a firewall, ensure ports are open for Plex.
  7. Web Browser: To access the Plex Web App for configuration.

Step 1: Open a Terminal

You can open a terminal by pressing Ctrl + Alt + T on your keyboard.

Step 2: Update Your

Read the rest
Ubuntu 22.04 Tutorials

How to Install Nginx Proxy Manager on Ubuntu 24.04 and Docker

How to install Nginx Proxy Manager on Ubuntu 24.04 with Docker involves several steps, from installing Docker to configuring Nginx Proxy Manager. Follow these steps to get everything up and running smoothly.

Requirements for Installing Nginx Proxy Manager on Ubuntu 24.04 and Docker

Before you begin the installation of Nginx Proxy Manager on Ubuntu 24.04, ensure that your system meets the following requirements:

Ubuntu 24.04

System Requirements

  1. Operating System: Ubuntu 24.04 LTS Ubuntu 24.04 (Noble Numbat)
  2. User Privileges: A user account with sudo privileges
  3. CPU: At least 2 cores
  4. Memory: At least 2 GB of RAM
  5. Storage: At least 30 GB of free disk space

Software Requirements

  1. Docker: Docker must be installed on your system. This guide includes steps for installing Docker.
  2. Docker Compose: Docker Compose should be installed, which is included as a Docker plugin in this guide.
  3. Internet Connection: Required to download
Read the rest

Stay Informed

Receive instant notifications when new content is released.