deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware |
> Entering new AgentExecutor chain... | |
I should use the requests library to fetch the website's HTML | |
Action: Python REPL | |
Action Input: | |
response = requests.get('https://api.chucknorris.io/') | |
Observation: name 'requests' is not defined | |
Thought:I should import the requests library | |
Action: Python REPL | |
Action Input: |
// ==UserScript== | |
// @name noVNC Paste for Proxmox | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2a | |
// @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
// @author Chester Enright | |
// @match https://* | |
// @include /^.*novnc.*/ | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// @grant none |
#!/usr/bin/env bash | |
set -exuo pipefail | |
apt-get -qq update | |
apt-get -qq upgrade | |
apt-get -qq install build-essential cmake wget | |
DEB_WORKSPACE=$HOME # where to download and build the sources | |
DEB_HIP_ARCHITECTURES='gfx906:xnack-' # https://llvm.org/docs/AMDGPUUsage.html |
Here's how to set up a Windows 10 virtual machine in KVM with PCI passthrough. The VM will have access to an NVIDIA graphics card while the host machine (running Debian Buster) uses Intel integrated graphics. This is mostly for my own reference so I don't forget how I did it.
- Intel i5 (an old one) with integrated graphics: this will be used as the graphics card for the host machine running Debian Buster
- NVIDIA Geforce 1070: this will be used as the graphics card for the Windows 10 VM
In order to do hardware passthrough with KVM at all, you need to enable the Intel Vt-d virtualization extensions. Edit /etc/default/grub
and edit the GRUB_CMDLINE_LINUX_DEFAULT
line so that it reads like:
Better tutorial (a little bit more complicated): https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Download the "virtual" type aarch64 ISO file from https://www.alpinelinux.org/downloads/ with wget
- Execute
sudo dd if=alpine.iso of=/dev/sda
- On the Oracle Cloud panel, setup a console connection and connect to the serial console.
- Execute
sudo reboot
- When Alpine is launched and you are logged in as root, execute these commands in the serial console:
- Adopted from: https://stubby4j.com/docs/admin_portal.html
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
The motivation is: ssh to remote computer without port forwading, dynamic DNS and so on, the only thing needed is that the remote is connected to the Internet.
- On remote get tmate, put it in /usr/local/bin (apt version as of 18.04LTS is too old):
curl -L https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz|tar xJv
sudo mv tmate-2.4.0-static-linux-amd/tmate /usr/local/bin
- Put public keys in ~/.ssh/authorized_keys
# First let's update all the packages to the latest ones with the following command | |
sudo apt update -qq | |
# Now we want to install some prerequisite packages which will let us use HTTPS over apt | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq | |
# After that we will add the GPG key for the official Docker repository to the system | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# We will add the Docker repository to our APT sources |