Compare commits

...

5 Commits

Author SHA1 Message Date
cyteen 3877f6e15a comment broken drm-info line. 2025-07-24 09:46:49 +01:00
cyteen acdb3a6969 use variables inside the heredoc. 2025-07-24 09:42:21 +01:00
cyteen 5ad86855f9 add repo and other script dependencies. 2025-07-22 20:55:25 +01:00
mobian 20e424832a update codename to trixie.
Committer: cyteen <cyteen@ring-zero.co.uk>
2025-07-22 20:40:52 +01:00
mobian 350fbb861f add apt sources windsurfer editor - also adds the codeium ai plugin for lazyvim.
Committer: cyteen <cyteen@ring-zero.co.uk>
2025-07-22 20:07:53 +01:00
4 changed files with 91 additions and 4 deletions

View File

@ -15,7 +15,7 @@ apt install -y udisks2
apt install -y gddrescue
apt install -y ddcutil
apt install -y drm-info
drm_info -j | jq 'with_entries(.value |= .driver.desc)'^'
#drm_info -j | jq 'with_entries(.value |= .driver.desc)'^'
apt install -y xclip
apt install -y bat
apt install -y bc

View File

@ -2,11 +2,14 @@
# Getting started
# To get started with Android/LineageOS, you'll need to get familiar with and its git workflow.
sudo apt install git repo python3-kerberos
## Initializing
# To initialize your local repository using the LineageOS trees, use a command like this:
lineage_git="https://github.com/LineageOS/android.git"
# lineage_branch="lineage-18.1"
lineage_branch="lineage-20"
repo init -u ${lineage_git} -b ${lineage_branch} --git-lfs
repo sync build/make

View File

@ -2,7 +2,8 @@
set -e
# focal, jammy, kinetic, lunar, bookworm, bullseye, sid
UPSTREAM_CODENAME="bookworm"
# UPSTREAM_CODENAME="bookworm"
UPSTREAM_CODENAME="trixie"
curl --progress-bar --proto '=https' --tlsv1.2 -Sf https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg
@ -12,7 +13,6 @@ ln -sf /etc/apt/sources.list-available/waydroid.list /etc/apt/sources.list.d/way
apt-get update && apt-get install -y waydroid
waydroid init
waydroid init
waydroid container start

84
020_windsurf-codeium.sh Normal file
View File

@ -0,0 +1,84 @@
ki#!/bin/bash
DEST=${1:/etc/skel}
# Install required tools
sudo apt-get install wget gpg
RELEASE="stable"
TRANSPORT="https"
MIRROR="windsurf-${RELEASE}"
DOMAIN="codeiumdata.com"
KEY_PATH="wVxQEIWkwPUEAGf3"
URI_PATH="${KEY_PATH}/apt"
URI="${TRANSPORT}://${MIRROR}.${DOMAIN}/${URI_PATH}"
ARCH="amd64"
TYPES="deb"
KEYRING="windsurf-${RELEASE}.gpg"
KEYRINGS="/etc/apt/keyrings"
ACTIVE="/etc/apt/sources.list.d"
AVAILABLE="/etc/apt/sources.list-available"
SUITE='stable'
COMPONENT="main"
ENABLED="yes"
mkdir -p "${AVAILABLE}"
# Download and process GPG key
wget -qO- "${TRANSPORT}://${MIRROR}.${DOMAIN}/${KEY_PATH}/windsurf.gpg" | gpg --dearmor > ${KEYRING}
sudo install -D -o root -g root -m 644 ${KEYRING} ${KEYRINGS}/${KEYRING}
# Create sources file in DEB822 format
cat << EOF | sudo tee ${AVAILABLE}/windsurf.sources > /dev/null
Types: ${TYPES}
URIs: ${URI}
Suites: ${SUITE}
Components: ${COMPONENT}
Architectures: ${ARCH}
Signed-By: ${KEYRINGS}/${KEYRING}
Enabled: ${ENABLED}
EOF
ln -sf "${AVAILABLE}"/windsurf.sources "${ACTIVE}"/windsurf.sources
# Clean up temporary key file
rm -f ${KEYRING}
sudo apt install apt-transport-https
sudo apt update
sudo apt install windsurf
# neovim codeium plugin
# https://github.com/Exafunction/windsurf.vim
# key bindings
# disable bindings
# vim.g.codeium_disable_bindings = 1
# using folke/lazy.nvim.
cat << 'EOF' | tee ${DEST}/.config/nvim/lua/plugins/windsurf.lua
return {
{
"Exafunction/windsurf.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
config = function()
require("codeium").setup({
accept_keymapping = "<C-g>",
virtual_text = {
enabled = true,
},
debug = false,
})
end,
},
}
EOF