An open API service indexing awesome lists of open source software.

https://github.com/snth/dotfiles

Instructions for managing my dotfiles
https://github.com/snth/dotfiles

Last synced: 3 months ago
JSON representation

Instructions for managing my dotfiles

Awesome Lists containing this project

README

        

# snth/dotfiles

I now use chezmoi to manage my dotfiles.

## Install

### Set up the user

# add the user
adduser snth

# grant sudo privileges
usermod -aG sudo snth
visudo
# snth ALL=(ALL:ALL) ALL

### Omakub

wget -qO- https://raw.githubusercontent.com/snth/omakub/main/boot.sh | bash

### Set up ssh

# disable password ssh authentication
TBC

# copy ssh key and config
ssh-copy-id -i ~/.ssh/snth_id_ed25519 snth@.
scp ~/.ssh/config snth@localhost:~/.ssh/

### chezmoi config

chezmoi init --apply snth

## Install other utilities

Below are the old instructions for manual installation but these are now all
covered by my Omakub clone.

### Atuin

# install
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

# set up sync
atuin register -u -e

# check the key
atuin key

# syncing
atuin sync

# login
atuin login -u

### Chezmoi

sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init --apply [email protected]:/snth/dotfiles.git

### Starship

curl -sS https://starship.rs/install.sh | sh

### Luarocks (required by Neovim)

sudo apt install build-essential libreadline-dev unzip
# Ubuntu 20.04 LTS
sudo apt install lua5.1 liblua5.1-dev
cd /tmp
wget https://luarocks.github.io/luarocks/releases/luarocks-3.11.1.tar.gz
tar xvzf luarocks
./configure --with-lua-include=/usr/include
make
sudo make install

### Neovim

# Prerequisites
sudo apt-get install software-properties-common

# Neovim
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim

# Python Prerequisites
sudo apt-get install python-dev python-pip python3-dev python3-pip

### LazyVim

git clone https://github.com/LazyVim/starter ~/.config/nvim
nvim

### tmux

sudo apt instal tmux

### Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

### Python with uv

curl -LsSf https://astral.sh/uv/install.sh | sh

### Garage S3

# download the garage binary
wget -O ~/.local/bin/garage https://garagehq.deuxfleurs.fr/_releases/v1.0.0/x86_64-unknown-linux-musl/garage
mv -v garage ~/.local/bin/
chmod +x ~/.local/bin/garage

# create the required directories
mkdir -v -p /data/garage/{meta,data}
mkdir -v -p /var/log/garage/

# generate the config
cat > /etc/garage.toml < /var/log/garage/server.log &

# create the cluster layout
garage layout assign -z dc1 -c 1G
garage layout show
garage layout apply --version

# create a bucket
garage bucket create test-bucket

# check the bucket
garage bucket list
garage bucket info test-bucket

# create an API key
garage key create test-key

garage key list
garage key info test-key

# allow a key to access a bucket
garage bucket allow \
--read \
--write \
--owner \
test-bucket \
--key test-key

garage bucket info test-bucket

## install and configure awscli
uv tool install awscli

cat > ~/.awsrc < /var/log/juicefs/myjfs.log &