Tag: homelab

  • How to Setup LAG and LACP for TP-Link Jetstream T2600G-28TS

    Setting up a link aggregation group (LAG) and link aggregation control protocol (LACP) for the TP-Link Jetstream T2600G-28TS managed switch is fairly straightforward. Keep in mind that LAGs will load-balance, but they do not load-share. One TCP/UDP connection will use one link, and is constrained to the bandwidth of that link. It is with multiple…

  • How to Identify Network Manager for Ubuntu

    There have been three approaches to managing network configurations in Linux: The oldest uses the /etc/network/interfaces file and ifup/ifdown scripts to manage network interfaces. After that came the network-manager daemon (often written Network-Manager or NetworkManager), which has a GUI available to manage interfaces. And most recently the systemd-networkd daemon (sometimes abbreviated just ‘networkd’) which is based on systemd unit files. In this post, we will explain…

  • How to Change from NetworkManager to Networkd

    By default, the desktop version of Ubuntu uses NetworkManager to configure and manage your network interfaces. NetworkManager provides a GUI, so in most desktop environments, it is the preferred way to handle networking. The server edition of Ubuntu does not have a desktop environment installed by default, so NetworkManager is not possible and therefore not…

  • How to Setup LACP Bonding on Ubuntu

    Network bonding or teaming refers to a process of combining two or more network interfaces into one. Network bonding can enhance performance and capacity by increasing throughput and bandwidth, and provide network redundancy and load balancing. This guide will show how to connect multiple network interfaces into a single bond interface on Ubuntu 20.04. Requirements…

  • How to Get Rid of Cloud-Init Datasource DataSourceNone Error on Ubuntu Server

    On my new installation of Ubuntu Server 22.04 LTS on ProxMox 7.2, I was receiving an error message about ‘cloud-init’ and ‘DataSourceNone’ whenever I logged into the Ubuntu Server. If you don’t need cloud functionality, you can get rid of the error by disabling the cloud-init process: Note: If you’re having trouble logging into shell…

  • How to Setup Google OAuth for Portainer Remote Access

    Portainer Business Edition allows you to easily setup authentication using Google OAuth for user logins. This means you can use a Google account to log into your Portainer web interface. If you can’t get a license for the Business Edition, you can still setup Google OAuth with Portainer Community Edition, but it does require a…

  • How to Check UFW Firewall Log

    A firewall is critical to the security of your linux system. This is a tutorial to enable UFW (Uncomplicated Firewall) logging and read the logs. For UFW logging to work, rsyslog must be enabled. Check to see if it is running: If rsyslog is not running, enable the service for it: Then, check if UFW logging is…

  • How to Restrict SSH Access by IP Address

    Allowing SSH access to the outside world is a security risk, so it’s a good idea to restrict access to certain IP addresses or subnets within your LAN. Here is how to restrict SSH access to certain IP addresses. Open the file/etc/hosts.allow as follows: Assuming you want to restrict access to systems in the 192.168.2.0 subnet,…

  • How to Install WordPress on Self-Hosted Server

    The instructions from the WordPress website for installation are pretty good, but here I’ve shortened and expanded some of the instructions and made it specifically for self-hosting with a MySQL database. These instructions assume you already have a LAMP stack (Linux, Apache, MySQL, PHP/Perl/Python). This guide starts off with an overview of the basic instructions…

  • How to Install MySQL

    Introduction MySQL is an open-source database management system, commonly installed as part of the popular LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack. It uses Structured Query Language (SQL) to manage its data. This guide will show you how to install a basic MySQL setup on your server. Prerequisites This guide was used on an Ubuntu 22.04 server. The following…