sudo apt full-upgrade
When prompted type in the following to continue the upgrade
Yes, do as I say!
You may need to remove libsnmp-base if you have package issues.
sudo apt-get remove libsnmp-base
sudo apt full-upgrade
When prompted type in the following to continue the upgrade
Yes, do as I say!
You may need to remove libsnmp-base if you have package issues.
sudo apt-get remove libsnmp-base
Disable the service from starting on system boot
systemctl disable NetworkManager
Stop the service from running
systemctl stop NetworkManager
And if you want to remove it from the system.
yum remove NetworkManager
Refer to this post if you need to set a static IP Address
Install with snap
sudo snap install nextcloud
Set user and password for NextCloud
sudo nextcloud.manual-install nextcloudadmin password
Allow https access for firewall
sudo ufw allow 80,443/tcp
For the following steps to work, you’ll need an A record setup on your domain name server to point a domain to your Next Cloud servers public ip address. Change www.example.com in the following steps to the domain name you’ve setup.
View trusted domains
sudo nextcloud.occ config:system:get trusted_domains
Setup new trusted domain. Change www.example.com with your domain.
sudo nextcloud.occ config:system:set trusted_domains 1 --value=www.example.com
Run through Lets Encrypt to setup a SSL certificate.
sudo nextcloud.enable-https lets-encrypt
Should be able to access NextCloud from a web browser www.example.com
Basic steps are as follows.
The network configuration settings for the server edition of Ubuntu are now stored in the following location. Create the file if it does not exist.
sudo vi /etc/netplan/01-network-manager-all.yaml
Add or edit the config file to the following. Change eno1 to your interface name and the address and gateway to the appropriate IP’s
For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.200.24/24]
gateway: 192.168.200.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
Now apply the changes with the following command.
sudo netplan apply
On Windows you can use the CertUtil utility to verify an iso image.
First, you’ll need the checksum of the iso. Should be on the page where you downloaded the iso. More info about that here.
Next generate the hash by running the following in a command prompt. Replace the path and ISO name with the one you downloaded
certutil -hashfile Downloads\ubuntu-19.04-live-server-amd64.iso sha256
Example output
SHA256 hash of Downloads\ubuntu-19.04-live-server-amd64.iso: 25d483341ccd0d522a6660b00db933787c86c47b42f1845bcf997127f4b61e9d CertUtil: -hashfile command completed successfully.
Compare the output with the checksum. If they are the same, you should be good to go.
The following script is for monitoring if an IP address is reachable or not. If it becomes unavailable the script will turn on a LED that is plugged into one of the GPIO pins of the Raspberry Pi. View pinout here
Script
#!/bin/bash
# Script to ping ip address and turn on LED on if device is unreachable.
nPin="18" # Change if GPIO pin is different
ledPin="gpio${nPin}" toPing="8.8.8.8" # Change to address you want to ping
echo "${nPin}" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/${ledPin}/direction
if ( fping -r1 $toPing | grep -v alive ); then
echo "Internet unreachable"
# Turn on LED
echo "1" > /sys/class/gpio/${ledPin}/value
else
# Turn off LED
echo "0" > /sys/class/gpio/${ledPin}/value
fi
Save script as ping_led.sh and make it executable.
chmod +x ping_led.sh
and run the script.
sh ping_led.sh
Run script in crontab
You can setup the script to run every minute using a crontab
crontab -e
Add the following line
*/1 * * * * /home/pi/ping_led.sh
Should now execute the script every minute and not need any human interaction.
You can use find command to find and delete files older than the specified days. In this case 30.
find /backup/* -mtime +30 -exec rm {} \;
Non recursive example. The -prune option should limit find to only look for files in the /backup directory. So it won’t check any subdirectories.
find /backup/* -prune -mtime +30 -exec rm {} \;
Follow output
journalctl -f
Follow service
journalctl -f -u sshd
Print x many lines. Change x to the amount of lines you want printed
journalctl -n 25 -u sshd
Helpful image from the Raspberry Pi site.
Note the numbers are the GPIO nmumbers you would use for programming.

Some helpful links
https://www.raspberrypi.org/documentation/usage/gpio/
https://pinout.xyz/
https://www.jameco.com/Jameco/workshop/circuitnotes/raspberry-pi-circuit-note.html