Browsed by
Category: Linux

Linux labs

NUT Email Notifications / Proxmox

NUT Email Notifications / Proxmox

1. Configure Email Settings: a. Install an Email Transfer Agent (MTA): To configure NUT (Network UPS Tools) to send email alerts, you need to set up the email notification feature in the NUT configuration files. Here’s a general guide to configuring email alerts with NUT: 1. Configure Email Settings: a. Install an Email Transfer Agent (MTA): You need an MTA installed on your system to send emails. Common MTAs include Postfix, Sendmail, and Exim. Ensure that your MTA is properly…

Read More Read More

Monitoring Systemd Services / Automatic Cron Restart

Monitoring Systemd Services / Automatic Cron Restart

I got a raspberry pi acting as a NUT SERVER, and it keeps flaking out. I keep having to restart nut-server all the time. Lets automate checking if the service is running and restart it if its not. The Issue. Every so often it just stops. See the graph below Lets create a bash script for checking the service Lets save the script and make it executable Lets edit crontab by typing “crontab -e” into the shell and add the…

Read More Read More

Reduce the fan noise of the Dell R720XD (plus other 12th gen servers) with IPMI

Reduce the fan noise of the Dell R720XD (plus other 12th gen servers) with IPMI

Introduction In this guide I will be showing you how you can reduce the fan noise of the Dell Powerdge r720XD. This will probably work on the r720 and other 12th gen dell servers. To do this, we will be using IPMI to manually override the fan speed. Requirements In order to follow this guide, you will need the following: A Linux machine (or anything with ipmitool available) 12th gen Dell Poweredge Server with iDRAC 7 Disclaimer Make sure you keep an…

Read More Read More

Basics Linux Network Sharing Python & HTTP

Basics Linux Network Sharing Python & HTTP

Super quick network sharing.  Simple HTTP Server Python has a super useful tool for serving files over HTTP. This is great if you just want to create a quick network share that other machines on your network can access. To do that just go to the directory you want to share and run: $ python -m SimpleHTTPServer This sets up a basic webserver that you can access via the localhost address. So grab the IP address of the machine you…

Read More Read More

How to enable Wake On LAN in Ubuntu Server 18.04 / Debian based systems / Systemd

How to enable Wake On LAN in Ubuntu Server 18.04 / Debian based systems / Systemd

What you’ll need The only things you’ll need to make this work are: An instance of Ubuntu Server 18.04 A user account with sudo privileges A network interface that supports WOL How to install ethtool The tool that makes this possible is ethtool. Chances are, it’s already installed on your server. However, on the off-chance it’s not, let’s install it. Open a terminal window and issue the following command: sudo apt-get install ethtool -y How to locate the interface name…

Read More Read More

Get system metrics for 5 min with Docker, Telegraf, Influxdb and Grafana

Get system metrics for 5 min with Docker, Telegraf, Influxdb and Grafana

Original Source: https://towardsdatascience.com/get-system-metrics-for-5-min-with-docker-telegraf-influxdb-and-grafana-97cfd957f0ac Hi all, there is a very quick guide how to configure a system monitoring for one or more servers using a modern stack of technologies, like Grafana, Docker and Telegraf with Influxdb. The main goal for this article is to show how to start getting system metrics from your servers quick and easy, without spending lot of time for configuring big and complicated monitoring systems. Especially if you only need to take care for few Web servers…

Read More Read More

Manjaro Gnome Screen Sharing

Manjaro Gnome Screen Sharing

Step 1: Enable Remote Access to Ubuntu Ubuntu machines by default have the protocol and server installed already. To enable remote access, logon to the desktop computer and go to System Menu ==> System Settings… as shown in the image below… When system settings page opens, go to Sharing ==> Enable sharing by sliding the button to the right… When sharing is enable, click the Screen Sharing option on the page and turn on Screen Sharing  as shown in the image below… When you’re done,…

Read More Read More

Auto open website on Raspberry Pi startup

Auto open website on Raspberry Pi startup

I would like to credit Brian Haines with the provided information below.You can view the original content on his site followinghttps://brianhaines.com/2019/01/08/auto-open-website-on-raspberry-pi-startup/ Thanks for letting me keep a copy Brian! Visit him at https://brianhaines.com/ There are a number of resources on the Web for this, but most are outdated or take the process further than I wanted. To be clear, I don’t want to disable the Pi’s desktop or block the user from using Chrome. I just want the Pi to…

Read More Read More

Complete Unraid Monitoring

Complete Unraid Monitoring

Copying from various sources. Links at bottom of page. I have for some time shared my Unraid System dashboard over at Grafana.com but never really had the time to make a quick write up on how to set it all up. So this will try to do just that. This guide will make it so you will be able to monitor cpu usage, cpu temps, network stats, ram usage and much more by simply importing a dashboard. How it works In getting…

Read More Read More

Unraid SteamCacheBundle

Unraid SteamCacheBundle

Install Head to Community Applications. Search for and install SteamCacheBundle. Next set a fixed IP address. Enter this in the box marked, Fixed IP address. Make sure it’s not an IP already in use on your network. Now enter the same IP address for the LANCACHE_IP variable Make sure the Data and Logs directories are set to your liking. The Data directory is where all the cache data will be stored. Now change the CACHE_MEM_SIZE, CACHE_DISK_SIZE and CACHE_MAX_AGE if you wish. The are fairly self explanatory and…

Read More Read More

Mount Samba share on Ubuntu and Debian

Mount Samba share on Ubuntu and Debian

These steps will help you to mount remote samba shared directory to your system. Follow the step by step guide for the mounting of remote samba share on Ubuntu and Debian system. Also enables to automount shared drive even after system reboot. Step 1 – You need to install package cifs-utils on your system. Run the following command on the terminal for the installation. sudo apt-get install cifs-utils Step 2 – After that create a directory to mount the share drive. sudo mkdir /media/Share…

Read More Read More

Use systemd to Start a Linux Service at Boot

Use systemd to Start a Linux Service at Boot

What is systemd?Permalink systemd is a Linux system tool initially developed by the Red Hat Linux team. It includes many features, including a bootstrapping system used to start and manage system processes. It is currently the default initialization system on most Linux distributions. Many commonly used software tools, such as SSH and Apache, ship with a systemd service. It is simple to create a custom systemd service that will run any script or process you choose. Although there are several…

Read More Read More

SETTING UP SAMBA SHARING SERVER ON ARCH LINUX

SETTING UP SAMBA SHARING SERVER ON ARCH LINUX

Original https://lampjs.wordpress.com/2018/08/10/setting-up-samba-sharing-server-on-arch-linux/ Samba facilitates file and printer sharing among Linux and Windows systems. To share contents of linux server there should be a sharing server running, mostly Samba is used as sharing server on linux machines. Follow the steps below to install Samba on PC where you need to share files. Install Samba 1 # pacman -S samba Create configuration file for Samba, it is required but not automatically created when installing samba so have to manually create it. 1 #…

Read More Read More

Raspberry Pi 5250 Terminal Emulator

Raspberry Pi 5250 Terminal Emulator

The Raspberry Pi 3b kit, from various kit providers, costs around $50 including case, heat sinks and power supply. Add a 8GB microSDHC card for less than $10 and you’ve got the makings of an inexpensive (sub $60) 5250 terminal. There are two basic methods we’ve used with good success to create a 5250 terminal from a Raspberry Pi. First, if you have an IBM-i with active SWMA and are running IBM-i 7.x, then the new IBM-i Access Client Solution…

Read More Read More

Example: Ubuntu Setting up an alias for the – sudo apt-get install – command

Example: Ubuntu Setting up an alias for the – sudo apt-get install – command

If you do a lot of installations on your system and wish to avoid using the entire sudo apt-get install command, you can create a short alias for it using the following method: Through the file manager, open the .bashrc file located in your home folder. This file is usually a hidden file so you will need to use the Ctrl+H control to view all the hidden files located in the folder. You can use your favorite text editor through the command line or UI to…

Read More Read More

WordPress on Docker, with phpMyAdmin, SSL (via Traefik) and automatic updates

WordPress on Docker, with phpMyAdmin, SSL (via Traefik) and automatic updates

This was a very helpful for me to understanding trying to reverse engineer to make my own. Original link is below. Tried my best to COPY/PASTE the HTML code cutting out certain bits. This is for me to reference. Docker, a powerful and standardized way to deploy applications Free SSL certificates from Let’s Encrypt (via Traefik) phpMyAdmin to easily manage your databases Automatic container updates (via Watchtower) If you’ve got your own server already — whether at Bytemark or not…

Read More Read More