Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/snth/dotfiles

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

Last synced: 24 days ago
JSON representation

Instructions for managing my dotfiles

Awesome Lists containing this project

README

        

# snth/dotfiles

I now use chezmoi to manage my dotfiles.

## Set up the user

# add the user
adduser snth

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

# 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/

## Install

### Omakub

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

### 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 [email protected]:/snth/dotfiles.git --apply

### Starship

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

### 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 &