- Install/Update 1Password desktop app.
- Enable the 1Password SSH Agent in Settings > Developer > SSH Agent.
- Update Git to version 2.34.0 or later.
If you run Ollama on your host OS, but want to access it from within a protected container:
-
you should first add your user to the following Unix groups:
video,render,docker,ollamasudo usermod -a -G render,video $LOGNAME
-
make sure user
ollamais added to groupsvideoand `render -
install Docker (ideally in a dedicated VM; see https://gist.github.com/peterwwillis/e2b37e5dd502fd7ffc3833f56feade1e)
Colima creates a VM and sets up Docker inside it. This is a good command-line replacement for Docker Desktop.
Colima will keep persistent files in a different volume than the VM's root disk, so you can delete and recreate the root disk and your files are still there. This makes recovering from AI 'incidents' easy.
You can have multiple Docker contexts, one for "safe" work (in one VM), and one for "dangerous" AI work (different VM). The only real downside is a VM volume filling up with container images.
Your containers can access the local host's ports using hostname host.docker.internal.
I finally settled on a new personal Linux laptop, and it's the Lenovo ThinkPad T14s Gen 4 w/AMD processor, 32GB RAM, and Low-power 500 nits display.
I had mine shipped with Ubuntu, it comes with (I think) Ubuntu 22.04.01 LTS. It's nice because they set up the BIOS to come with Secure Boot enabled for Ubuntu. Everything works out of the box.
| #!/usr/bin/env sh | |
| # control-touchscreen.sh - script to control touchscreen device in Linux | |
| # Copyright (C) 2024 Peter Willis | |
| # | |
| # This script is designed to try to detect a Touchscreen device in Linux. | |
| # If it detects one, it allows you to bind or unbind it to the HID Generic | |
| # driver, which should enable or disable the touchscreen. | |
| # Works on Wayland, should work on X11 as well (but untested). | |
| # | |
| # SOFTWARE LICENSE: |
/var/log/kube-apiserver.log- API Server, responsible for serving the API/var/log/kube-scheduler.log- Scheduler, responsible for making scheduling decisions/var/log/kube-controller-manager.log- a component that runs most Kubernetes built-in controllers, with the notable exception of scheduling (the kube-scheduler handles scheduling).
| [user] | |
| ; NOTE: Replace your name, email, and signing ssh public key here. | |
| name = My Git User Name Here | |
| email = MYGITEMAIL@ADDRESS.HERE | |
| signingkey = MYLONGSSHPUBKEYHERE | |
| ; NOTE: Uncomment this if you want to set a default credential store for Git. | |
| ; On Linux, "secretservice" is the libsecret (aka keyring) method. | |
| ;[credential] | |
| ; credentialStore = secretservice |