crontab -u www-data -e – Edit crontab of user where www-data is the user. rsync -a /dir1/ /dir2/ – Sync two directories. This overwrites files with the same names. stat file.txt – Show information about a file or directory. du -sh directory/ – show file or directory size. zip -r zip_filename.zip directory/ – zip up…
Import certificate for Firepower Remote Access VPN
This guide uses a DigiCert certificate, but any certificate bundle would work. The easiest way to do this is using a PKCS12 file. The certificate CSR, key, and PFX file are generatedin Linux. Save settings as needed. First we need to create a CSR to use with Digicert to issue our certificate in Linux. The…
Monitor or watch an rsync process
… or to see what files the process has opened.
Useful wget examples
This is useful for mirroring directories such as Linux download directories. –recursive – downloads every directory–no-clobber – do not replace files–domains – limit download to a certain domain or sub-domain–R “index.html” – don’t save index.html files
Quick time server set up on HP/Aruba switches
This is a quick configuration of setting a time server on Aruba/HP switches. Enable sntp. Specify how to get to your time server. If your DHCP server specifies an SNTP server in it’s leases, then you didn’t really have to go throughthis. Specify the time server. Replace IP.IP.IP.IP with your server IP. Set the timezone….
Manage Mayan EDMS in Docker
docker exec -ti mayan-edms /bin/bash cd /opt/mayan-edms/bin Execute ./mayan-edms.py to get a list of available commands
Ubuntu 18.04 to 20.04 Upgrade Notes
Upgrading might break your local resolver, DNSMasq. When you issue the command systemctl status dnsmasq, you might get an error that looks something like, dnsmasq: cannot access /etc/dnsmasq.d/lxd: No such file or directory. DNSMasq does not start because it cannot find this file. This file is simply a dangling symlink that needs to be removed,…
Fix DNS after upgrading to Ubuntu Server 20.04
The way DNS is configured in Ubuntu has become overly complicated in the last few versions. Insteadof configuring /etc/network/interfaces, it is now configured using Netplan. But sometimes thatdoesn’t even work because DNS is ultimately controlled by systemd-resolv. systemd-resolvgenerates /etc/resolv.conf and the default stub DNS uses a local resolver to resolve DNShostnames. For some reason, after…
Install PowerDNS with PowerDNS-Admin
There are several places where you will need to choose a custom value, such as password. Pleasekeep that in mind. Update Ubuntu Install MariaDB Run MySQL security Login to MySQL as root We will now create the powerdns table. Use the following commands within the MySQL console line byline. Disable systemd-resolved. Replace resolv.conf. Install PowerDNS…