Go to ...

Techpository

A Better Technical Repository

RSS Feed

Linux

Linux: Command Line to monitor a websites status

Steps to monitor a website using curl: 1. Create the main script file 2. Create a site list file 3. Create a cron job 1. main scripts Working directory /home/username/scripts vi /home/username/scripts/checkmysites #!/bin/bash SITESFILE=/home/usernamescripts/sites.txt #list the sites you want to monitor in this file EMAILS=”[email protected]” #list of email addresses to receive alerts (comma separated) while

Ubuntu: Bond two network cards together

Bonding, also called port trunking or link aggregation means combining several network interfaces (NICs) to a single link, providing either high-availability, load-balancing, maximum throughput, or a combination of these. In this example you will first need to disable Network Manager if you are currently using it. sudo systemctl stop NetworkManager.service sudo systemctl disable NetworkManager.service Installation

Ubuntu 16.04 – Disable/Enable Network Manager

Disable: sudo systemctl stop NetworkManager.service sudo systemctl disable NetworkManager.service Enable: sudo systemctl stop NetworkManager.service sudo systemctl enable NetworkManager.service

Ubuntu: Autologin to an encrypted drive on startup

Make certain that you understand the security implications of using auto login on an encrypted drive. Part 1: Encrypt the secondary drive. In the Unity dash type “disks” and hit enter. Below “Devices” click on the hard drive you want to encrypt. Below “Volumes” click on the cog/more actions button. Click “Format Volume”. For type,

Linux: Create a small file of random data

There a several ways to create a file with random data. Here are two options: head -c 100k /dev/urandom > test.txt dd if=/dev/urandom of=test2.txt bs=1k count=100 The key is creating the data from /dev/urandom or /dev/random By: Timothy Conrad

Older Posts››