This article show how to locate file easily in Linux. To install and update mlocate so as to use immediately.
Category: Administration
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/
How to mount a NTFS disk in Debian.
Find the disk:
# fdisk -l Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors Disk model: ST3250310AS Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x84c02518 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 471801855 471799808 225G 83 Linux /dev/sda2 471803902 488396799 16592898 7.9G 5 Extended /dev/sda5 471803904 488396799 16592896 7.9G 82 Linux swap / Solaris Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Disk model: WDC WD10EZRX-00L Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x93665d93 Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 1953521663 1953519616 931.5G 7 HPFS/NTFS/exFAT
So, the NTFS is disk sdb1. Find the UUID value.
sudo blkid /dev/sdb1 /dev/sdb1: LABEL="Backup" UUID="0CF88F39F88F2056" TYPE="ntfs" PTTYPE="atari" PARTUUID="93665d93-01"
Install NTSF-3G:
# sudo apt-get install ntfs-3g
Create the /mnt/ntfs/ directory
# sudo mkdir -p /mnt/ntfs/
Add to fstab.
# nano /etc/fstab # UUID="YOUR-UID-HERE" /mnt/ntfs/ ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0 UUID="0CF88F39F88F2056" /mnt/ntfs/ ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0
Test it
# sudo mount -a
# df -h /dev/sdb1 932G 295G 638G 32% /mnt/ntfs
# cd /mnt/ntfs/ # ls -l
Some great scripts for stress testing and benchmark tests:
https://haydenjames.io/linux-benchmark-scripts-tools/