This article describes how to create a bash file to restart the apache server.
Category: Administration
This article describes how to add lines to a file in linux.
This article show how to locate file easily in Linux. To install and update mlocate so as to use immediately.
How to copy to local directory with the same name.
# rsync -avzh /myzpool/backups /media/usb/usb-backup/
A vulnerability in Apache Log4j, a widely used logging package for Java has been found. The vulnerability, which can allow an attacker to execute arbitrary code by sending crafted log messages, has been identified as CVE-2021-44228 and given the name Log4Shell. It was first reported privately to Apache on November 24 and was patched with version 2.15.0 of Log4j on December 9. It affects Apache Struts, Apache Solr, Apache Druid, Elasticsearch, Apache Dubbo, and VMware vCenter. Since then, it has been disclosed that in certain non-default conditions, the original patch was incomplete; this was designated as CVE-2021-45046 and a new version of Log4j, 2.16.0, has been released.
Create a New User
Open the root user terminal and run the following command:
# adduser username
Add a user to the sudoers file
# usermod -a -G sudo rogerp
Add with visudo
Login as root.
Run
# visudo
Add the user with:
username ALL=(ALL:ALL) ALL
Save file.
Ready to Go!
Run sudo /usr/bin/nvidia-uninstall
to uninstall a manually installed driver, if you still got one.
Remove everything of your old NVIDIA driver (simulate first):
<code>sudo apt remove --purge -s nvidia-* sudo apt remove --purge -s libnvidia-* </code>
If only nvidia packages are there to be removed, remove really:
<code>sudo apt remove --purge nvidia-* sudo apt remove --purge libnvidia-* </code>
Run sudo apt update
and ubuntu-drivers devices
again.
If nvidia-390 is still recommended, add your output of sudo ubuntu-drivers autoinstall
again.
Great Article: https://www.digitalocean.com/community/tutorials/how-to-install-jitsi-meet-on-ubuntu-18-04
Best Article: https://www.atlantic.net/hipaa-compliant-hosting/how-to-install-openfire-ubuntu-20-04/
The original installation of zpool was from a POPOS 20 install. After Installing a new Ubuntu system over the top of POPOS, the zpool was not listed. Here are the steps to restore the zpool.
Install zfsutils
# apt install zfsutils-linux
When trying to import, I received an error:
# zpool import pool: myzpool id: 13464327419314907931 state: ONLINE status: The pool was last accessed by another system. action: The pool can be imported using its name or numeric identifier and the '-f' flag. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY config: myzpool ONLINE mirror-0 ONLINE ata-WDC_WD2002FFSX-68PF8N0_WD-WCC6N7PRY8JJ ONLINE ata-WDC_WD2002FFSX-68PF8N0_WD-WCC6N7PRY1VJ ONLINE root@skynet:/home/rogerp# zpool import myzpool cannot import 'myzpool': pool was previously in use from another system. Last accessed by pop-os (hostid=b5f0b0a0) at Tue May 4 04:27:02 2021 The pool can be imported, use 'zpool import -f' to import the pool.
Import using the -f flag and the pool name that was created originally.
# zpool import -f myzpool
Resources:
https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY/