Skip to content

Instantly share code, notes, and snippets.

View vicente-gonzalez-ruiz's full-sized avatar

Vicente González Ruiz vicente-gonzalez-ruiz

View GitHub Profile
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / raspiaudio_ultrapp_manjaro.txt
Last active July 13, 2021 07:55
Raspiaudio Ultra++ on Majnaro
#!/bin/bash
set -x
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root (use sudo)" 1>&2
exit 1
fi
is_Raspberry=$(cat /proc/device-tree/model | awk '{print $1}')
1. You must be using the Nvidia kernel (`nvidia-smi` should show info). This basically implies that the kernel recognizes the GPU.
2. Follow the instructions provided at https://www.tensorflow.org/install/pip:
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
conda create --name tf python=3.9
conda activate tf
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
# 1. Download a kernel:
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.tar.xz
tar xvf linux-6.1.tar.xz
# 2. Configure the kernel (supposing a Manjaro kernel):
cd linux-6.1
make localmodconfig

Tuning i3

(At least in Manjaro Linux) By default, after install i3, the config file is placed at:

~/.i3/config

To add some new entry to i3status (whose output is usually placed at the bottom-right of the screen):

This guide is for creating new credentials for rclone

  1. Log into the Google API Console with your Google account (https://console.developers.google.com/).
  2. Select the project "mount-google-drive-in-linux".
  3. Under "ENABLE APIS AND SERVICES" search for "Drive", and enable the "Google Drive API".
  4. Click "Credentials" in the left-side panel (not "Create credentials", which opens the wizard), then "Create credentials". Unfinished ... see https://rclone.org/drive/#making-your-own-client-id
  1. Log into the Google API Console with your Google account (https://console.developers.google.com/).
  2. Select the project "mount-google-drive-in-linux".
  3. Under "ENABLE APIS AND SERVICES" search for "Drive", and click in "Google Drive API".
  4. Click in MANAGE.
  5. Click in CREDENTIALS.
  6. Row "Desktop client 1", column "Client ID", you can copy your credentials.

List avaiable (and usable) graphics hardware:

xrandr --listproviders

Find OpenGL renderer:

glxinfo | grep "OpenGL renderer"

Example:

sudo pacman -Fy glxinfo