These steps assume you are root or using sudo. Install cifs-utils. Create /root/.smbcredentials with the following contents … Change username and password to your username and password. Edit /etc/fstab and add the following line to the end. 192.168.1.111 should be changed to your host and software should be changed to your share./mnt/clyde is the location…
Category: Linux
Useful Commands for Windows Subsystem for Linux
wsl -l -v – check current WSL version in use wsl -–set-default-version 1 – set default WSL version. Currently 1 or 2. wsl -–set-version Ubuntu-20.04 2 – convert WSL version to version 2 where Ubuntu-20.04 is the name of the distribution.
Allow rrdcached, memcache, and MariaDB/MySQL through the firewall in CentOS 8
Open ports 42217 (rrdcached) and 11211 (memcached) in the firewall and reload the firewall. Verify that the ports are open using firewall-cmd –-list-all.
Disable IPV6 in Ubuntu 18.04
IPV6 sometimes break DNS resolution in Ubuntu 18.04. Follow the steps below to disable and verifythat IPV6 is disabled in Ubuntu.Edit /etc/sysctl.conf and add the following lines to the end of the file … Save the file and issue the following command to force Ubuntu to reload the file. To verify that the new configuration…
Wireguard Installation
Use Angristan’s automated WireGuard installation. The install will create a client .conf file in the directory you ran the script. Import the .conf file into your client. Client install files can be downloaded from the Wireguard site. To enable access to your local network while connected through the VPN, add the following two lines to…
Install Gogs on Ubuntu 20.04 with MariaDB
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.