Content :
| system.activationScripts.applications.text = let | |
| env = pkgs.buildEnv { | |
| name = "system-applications"; | |
| paths = config.environment.systemPackages; | |
| pathsToLink = "/Applications"; | |
| }; | |
| in | |
| pkgs.lib.mkForce '' | |
| # Set up applications. | |
| echo "setting up /Applications..." >&2 |
| { | |
| "registry-mirrors" : [ | |
| "https://cr.yandex/mirror", | |
| "https://dockerhub.timeweb.cloud", | |
| "https://huecker.io", | |
| "https://noohub.ru", | |
| "https://dcr-px.ru", | |
| "https://mirror.gcr.io", | |
| "https://quay.io", | |
| "https://registry.access.redhat.com", |
| 1) SSH into the server as a root user | |
| 2) Install the required dependencies. Run apt install cmake libpcre3 libpcre3-dev | |
| 3) Run wget "https://nginx.org/download/nginx-$(nginx -v 2>&1 | awk -F/ '{print $2}' | sed 's/(Ubuntu)//' | tr -d '[:space:]').tar.gz" | |
| 4) Run tar -xzf nginx-{{ version }}.tar.gz | |
| 5) Run git clone --recurse-submodules -j8 https://github.com/google/ngx_brotli | |
| 6) cd ngx_brotli/deps/brotli && mkdir out && cd out | |
| 7) Run cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed .. | |
| 8) Run cmake --build . --config Release --target brotlienc | |
| 9) Run cd ~/nginx-{{ version }} | |
| 10) Run ./configure --add-module=/root/ngx_brotli |
mirror of The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10) by /u/cjalas
>Welcome all, to the first installment of my Idiot Friendly tutorial series! I'll be guiding you through the process of configuring GPU Passthrough for your Proxmox Virtual Machine Guests. This guide is aimed at beginners to virtualization, particularly for Proxmox users. It is intended as an overall guide for passing through a GPU (or multiple GPUs) to your Virtual Machine(s). It is not intended as an all-exhaustive how-to guide; however, I will do my best to provide you with all the necessary resources and sources for the passthrough process, from start to finish. If something doesn't work properly, please check /r/Proxmox, /r/Homelab, /r/VFIO, or
| APP_KEY= | |
| APP_ENV=local | |
| APP_DEBUG=true | |
| APP_URL=http://127.0.0.1:8000 | |
| DB_CONNECTION=mysql | |
| DB_HOST=127.0.0.1 | |
| DB_PORT=3306 | |
| DB_DATABASE=laravel | |
| DB_USERNAME=root |
NOTE: I want disclaimer that this work is not complete mine. Most of the work here is comming from: https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
$ brew doctor
$ brew updateThis guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like
pipewire-debian, you might get into conflicts.
Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.
Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.
Based on Debian Wiki, but simplified for Ubuntu 22.04.
This login notifier uses IP information to send silent telegram notifications if the login source seem to be trustable.
First, please read this awesome Medium tutorial on how to setup the Telegram bot.
| #!/usr/bin/env bash | |
| if [ "$EUID" -ne 0 ];then | |
| >&2 echo "This script requires root level access to run" | |
| exit 1 | |
| fi | |
| if [ -z "${WORDPRESS_DB_PASSWORD}" ]; then | |
| >&2 echo "WORDPRESS_DB_PASSWORD must be set" | |
| >&2 echo "Here is a random one that you can paste:" |