These instructions will install Gogs on an Ubuntu 20.04 server using the MariaDB back-end. Gogs is aself-hosted front-end to Git. Gogs is extremely lightweight and comes in a single binary file. It alsosupports multiple back-end databases including PostgreSQL, MySQL, or SQLite3. These commands assume you are running as root or sudo. All scripts also rely…
Upgrade/Install PHP 7.4 in CentOS 8
The good news is this whole process is relatively painless, so here we go. As always, all the commands assume you have root permissions. First, install the EPEL and remi repositories. List the PHP versions you have available. This should list versions of PHP both in the main repositorys as well as the remi repository….
Useful Linux CLI Commands
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…