Insert desired props in XML format using $ sudo virsh edit <domain>
To query usb devices reported on host system, run lsusb -v | grep ${target_name}
| #!/bin/bash | |
| printf " ==================================== \n NTFS-3G Mounter | Author: Sarthak Malik \n Content made available as Open Source under MIT-License \n Remount a drive with R/W permissions using OSX-FUSE NTFS-3G layer. \n For usage guide: https://github.com/osxfuse/osxfuse/wiki/NTFS-3G \n ==================================== \n" | |
| printf " ==================================== \n WARNING! READ CAREFULY: \n The specified volume will be unmounted. \n Please quit and save any applications before proceeding. Use at your own risk, no warranties or gaurantees implied of any kind. \n ==================================== \n" | |
| printf " Script Usage: \n $ chmod +x ./script_name.sh \n $ ./script_name.sh \n ==================================== \n\n" | |
| if [[ "$OSTYPE" == "darwin"* ]] | |
| then |
| Section "OutputClass" | |
| Identifier "nvidia" | |
| MatchDriver "nvidia-drm" | |
| Driver "nvidia" | |
| Option "AllowEmptyInitialConfiguration" | |
| Option "PrimaryGPU" "yes" | |
| Option "SLI" "Auto" | |
| Option "BaseMosaic" "on" | |
| EndSection |
| blacklist nouveau | |
| # Make a soft dependency for nvidia-uvm as adding the module loading to | |
| # /usr/lib/modules-load.d/nvidia-uvm.conf for systemd consumption, makes the | |
| # configuration file to be added to the initrd but not the module, throwing an | |
| # error on plymouth about not being able to find the module. | |
| # Ref: /usr/lib/dracut/modules.d/00systemd/module-setup.sh | |
| # Even adding the module is not the correct thing, as we don't want it to be | |
| # included in the initrd, so use this configuration file to specify the |
| GRUB_TIMEOUT=5 | |
| GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" | |
| GRUB_DEFAULT=saved | |
| GRUB_DISABLE_SUBMENU=true | |
| GRUB_TERMINAL_OUTPUT="console" | |
| GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 zswap.enabled=1" | |
| GRUB_DISABLE_RECOVERY="true" | |
| GRUB_ENABLE_BLSCFG=true |
| Xcursor.size: 24 | |
| Xcursor.theme: DMZ-Black |
Obtain root access with sudo -i before running the following commands.
Online resize is not supported, it is recommended to clone the image before proceeding. To allocate additional blocks to an image that does not pre-allocate space, run the following command.
$ qemu-img resize <> +128G| #!/bin/bash | |
| tb_exists=`which toolbox` | |
| if [ ${tb_exists} != "/usr/bin/toolbox" ] | |
| then | |
| sudo dnf install toolbox -y | |
| fi | |
| toolbox create -c displaycal -r 31 -y |
| #!/usr/bin/env python3 | |
| # Usage: | |
| # PYTHONPATH=src ./train --dataset <file|directory|glob> | |
| # Got 1558M to train on a TITAN RTX using IBM Tensorflow_Large_Model_Support | |
| # TLMS can insert explicit swaps in the graph between GPU and CPU, to extend the memory | |
| # But the graph has While_Loop, so you have to use the TFLMSv2 version (which works with TF 1.x) | |
| # | |
| # Download, expand, get the egg out and install. |
| #!/bin/bash | |
| tb_exists=`which toolbox` | |
| if [ ${tb_exists} != "/usr/bin/toolbox" ] | |
| then | |
| sudo dnf install toolbox -y | |
| fi | |
| toolbox create -c figma -r 31 -y |