Edit your alsamixer settings
alsamixer
Store the changes on a file
alsactl --file /home/<>/.config/asound.state store
#!/bin/bash | |
# Demonstrates how to create a headless display using xvfb. | |
# Create the display: | |
Xvfb :100 -ac & | |
PID1=$! | |
export DISPLAY=:100.0 | |
# Run the application that needs the display: |
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
Edit your alsamixer settings
alsamixer
Store the changes on a file
alsactl --file /home/<>/.config/asound.state store
#!/usr/bin/sh | |
nvgpu=$(lspci | grep -iE 'VGA|3D' | grep -i nvidia | cut -d ":" -f 3) | |
nvkernmod=$(lspci -k | grep -iEA3 'VGA|3D' | grep -iA3 nvidia | grep -i 'kernel driver' | grep -iE 'vfio-pci|nvidia') | |
if [[ ! -z $nvgpu ]]; then | |
if [[ -z $nvkernmod ]]; then | |
# Check for internet connection | |
wget -q --spider http://google.com | |
if [ $? -eq 0 ]; then |