Open a terminal window, press Ctrl+Alt+T. sudo apt update sudo apt install libpam-google-authenticator google-authenticator Make tokens “time-base””: yes SCAN QR Code with Authenicator app Answer questions as follows: Update the .google_authenticator file: yes Disallow multiple uses: yes Increase the original generation time limit: no Enable rate-limiting: yes Edit tho file: sudo nano /etc/pam.d/common-auth Add the following lines at the end of the file: auth required pam_google_authenticator.so nullok auth required pam_permit.so
Error starting VM with bridged adapter in KVM: Error starting domain: internal error: /usr/libexec/qemu-bridge-helper –use-vnet –br=virbr0 –fd=20: failed to communicate with bridge helper: Transport endpoint is not connected stderr=failed to create tun device: Operation not permitted Cause: Most likely from an update to qemu or bride helper permssions reset from an update. Fix: sudo chmod u+s /usr/lib/qemu/qemu-bridge-helper
Open the Chrome browser and navigate to: chrome://flags Then enable the following items: Lacros support Lacros as the primary browser Web Apps Crosapi Ignore lacros-avability policy
Expand the QCOW2 image file at the kvm host os: qemu-img info ubuntu20.04.qcow2 qemu-img resize ubuntu20.04.qcow2 +5G From within the guest run the following commands: sudo pvs sudo growpart /dev/vda 3 sudo lsblk sudo pvresize /dev/vda3 sudo vgs sudo lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv That’s all. The LVM should be expanded to use the new space.
When you enable developer mode you are prompted to set a root password but this is not the SUDO password. You must set a new SUDO password. Press CTRL-ALT-F2 (or Forward) Login as root. At the prompt type: chromeos-setdevpasswd That’s it!
sudo apt update sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager -y sudo apt install gnome-boxes cd /etc/libvirt sudo nano qemu.conf Uncomment user and group: add the line to the end of the file and save: xhost +
Here is a shell script to decrypt a folder of files that was originally encrypted with openssl. #! /bin/bash #Disclaimer: This script is provided “as -is” for use at your sole risk without any warranty, whether #express or implied of its accuracy, completeness, fitness for a particular purpose. The author accepts no liability for any damages or data loss you may sustain even #if it has been advised of the possibility of such damages.
apt update apt-get install nginx sudo systemctl start nginx sudo systemctl enable nginx sudo systemctl status nginx apt-get install php php-mysql php-fpm php-curl php-gd php-intl php-mbstring php-soap php-xml php-xmlrpc php-zip mariadb-server mariadb-client sudo systemctl start mariadb sudo systemctl enable mariadb sudo systemctl status mariadb sudo systemctl start php7.4-fpm && systemctl enable php7.4-fpm && systemctl status php7.4-fpm mysql_secure_installation sudo mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB