All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
#!/usr/bin/env bash | |
# run this on the remote terminal machine, as auser with sudo powers, probably through a remote ssh shell | |
# this will overwrite all the settings it touches | |
# the name of the user to run these commands as | |
TARGET_USER=jane | |
# we need an inlocked desktop session. we can either start a new autologin one or unlock an existing one |
from tabulate import tabulate | |
def print_tables_side_by_side(*tables, spacing: int = 3): | |
string_tables_split = [tabulate(t, headers="firstrow").splitlines() for t in tables] | |
spacing_str = " " * spacing | |
num_lines = max(map(len, string_tables_split)) | |
paddings = [max(map(len, s_lines)) for s_lines in string_tables_split] |
if "%1" == "elevated" goto start | |
powershell -command "Start-Process %~nx0 elevated -Verb runas" | |
goto :EOF | |
:start | |
rem your code goes here |
# https://elixir.bootlin.com/linux/v4.3/ident/CAP_LAST_CAP | |
# first creating a file with 0 inside file | |
echo 0 > ~/cap_last_cap | |
# Next step is to bind the file cap_last_cap to /proc/sys/kernel/cap_last_cap | |
#for proot-distro with ubuntu-18.04 the command looks like | |
proot-distro login ubuntu-18.04 --bind cap_last_cap:/proc/sys/kernel/cap_last_cap |
Modern versions of Windows support GPU paravirtualization in Hyper-V with normal consumer graphics cards. This is used e.g. for graphics acceleration in Windows Sandbox, as well as WSLg. In some cases, it may be useful to create a normal VM with GPU acceleration using this feature, but this is not officially supported. People already figured out how to do it with Windows guests though, so why not do the same with Linux? It should be easy given that WSLg is open source and reasonably well documented, right?
Well... not quite. I managed to get it to run... but not well.
- Verify driver support
I'm still looking for the right settings, and might begin with my previous attempts with a kitsune bard.
Of the three examples below, most break the ["description", "artist", "modifiers"] list convention, and all are relatively uncluttered descriptions.
Setting | TheHistorian | WAS |
---|