Go to ...

Techpository

A Better Technical Repository

RSS Feed

Techpository

Welcome to Techpository.  This is a personal repository of helpful information.  Content on this site is both self-created and copied from other resources.  We try to make sure we give credit where credit is due.  Use the information on this site at your own risk.

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

Linux

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

View More ››
Linux

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

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

View More ››
Linux

Linux: configure.ac error when running autoconf

If you start receiving errors that you have undefined macros like : configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE after running the command autoconf, you most likely need to run autoconf –install This command will take care of install the missing packages to create a working configure file. By: S Gimenez

Software

Microsoft Outlook 2016 hangs on the splash screen

When starting outlook the splash screen displays “starting”, but Outlook never starts. Close Outlook Start the “Run” command Type: outlook.exe /safe You may be prompted for your user credentials.  If so, enter them. Outlook should start fairly quickly.  It may take a minute or two to sync to the server. Close Outlook Start Outlook as

Linux

Linux: WordPress not working after a Linux OS upgrade

After upgrading my Digital Ocean server from Ubuntu 14.04 to 16.04, none of my WordPress sites would work. The issue was that the version of PHP had changed in 16.04 The following steps fixed the issue: sudo apt-get purge php5-common sudo apt-get install libapache2-mod-php sudo apt-get install php-mysql service apache2 restart   By: Timothy Conrad

View More ››