Skip to content

Commit

Permalink
cool
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanwahab committed Oct 19, 2024
1 parent 9c65a07 commit abcf19d
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 121 deletions.
113 changes: 113 additions & 0 deletions scripts/_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@
#caddy
#portainer
#immich
# Gitea
# meilisearch
# matrix synpase -> irc (discord + slack ) -dont need apps
# pii
# paperless-ngx

#observable not grafana

# make yoyrown

# bookstack
# zulip
# huginn
# authelia
#

# divide - install.sh + bootstrap.sh -blah;adlgapsdok
# merge scripts - make them good -> infra -> levels + shipfast jam stack shit
Expand Down Expand Up @@ -439,3 +453,102 @@ install_portainer() {
# Call the functions to install Portainer and configure Caddy
install_portainer




# run this on jetson to install hashirama platform

#sudo apt-get install -y nvidia-container-toolkit
#git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
###~/.config/emacs/bin/doom install
#sudo apt-get install -y nvidia-container-toolkit
#sudo ln -s /home/adnan/hashirama/infra/caddy/Caddyfile /etc/caddy/Caddyfile
#immich

# sudo apt update
# sudo apt install docker.io
# sudo systemctl start docker
# sudo systemctl enable docker
# sudo usermod -aG docker $USER
# passowrd nviida

#Update Docker's daemon.json to set the default runtime to nvidia
if [ -f /etc/docker/daemon.json ]; then
sudo jq '. + {"runtimes": {"nvidia": {"path": "nvidia-container-runtime", "runtimeArgs": []}}, "default-runtime": "nvidia"}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json.tmp
sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
else
echo '{"runtimes": {"nvidia": {"path": "nvidia-container-runtime", "runtimeArgs": []}}, "default-runtime": "nvidia"}' | sudo tee /etc/docker/daemon.json
fi


# Add data-root configuration to Docker's daemon.json
if [ -f /etc/docker/daemon.json ]; then
sudo jq '. + {"data-root": "/mnt/docker"}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json.tmp
sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
else
echo '{"data-root": "/mnt/docker"}' | sudo tee /etc/docker/daemon.json
fi


# Restart Docker to apply changes

git clone https://github.com/dusty-nv/jetson-containers

sudo systemctl restart docker
bash jetson-containers/install.sh


hello() {
echo "hello"
curl -fsSL https://bun.sh/install | bash
source /home/adnan/.bashrc

}

install_rustdesk() {
# Update package list and install dependencies
sudo apt-get update
sudo apt-get install -y wget gdebi-core

# Download the RustDesk .deb package
wget https://github.com/rustdesk/rustdesk/releases/download/1.1.9/rustdesk-1.1.9.deb

# Install the RustDesk package
sudo gdebi -n rustdesk-1.1.9.deb

# Clean up the downloaded .deb file
rm rustdesk-1.1.9.deb

echo "RustDesk installation completed."
}

# Call the function to install RustDesk
install_rustdesk


#sudo docker run --runtime nvidia -it --rm --network=host dustynv/l4t-pytorch:r36.2.0

#et
#tailscale

#nix ??
#_wahab

#mkdir unreal
# wget ->
# unzip
#
# https://zed.dev/docs/remote-development adnan@jetson-orin:~$ zed

# bootstraps a server like tailscale, ollama, etc

# docker pull ollama/ollama
# docker run -it --gpus all ollama/ollama
sudo apt-get update && sudo apt-get install v4l2loopback-dkms


# adnan@jetson-orin:~$ docker run --runtime nvidia --rm -it \
# --gpus all \
# --device /dev/video0 \
# --device /dev/video1 \
# dustynv/jupyterlab:r36.2.0
96 changes: 0 additions & 96 deletions scripts/bootstrap.sh

This file was deleted.

47 changes: 22 additions & 25 deletions scripts/infra/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,25 @@ hashirama.blog {
}
}

#
# jupyter.hashirama.blog {
# tls {
# dns cloudflare {env.CLOUDFLARE_API_TOKEN}
# resolvers 1.1.1.1
# }
# #respond "hi world"
# header Access-Control-Allow-Origin *
# header Access-Control-Allow-Methods "GET, POST, OPTIONS"
# header Access-Control-Allow-Headers "Content-Type"
# reverse_proxy localhost:8888
# }
# llama-tools.com {
# # tls {
# # dns cloudflare {env.CLOUDFLARE_API_TOKEN}
# # resolvers 1.1.1.1
# # }
# #respond "hi world"
# # header Access-Control-Allow-Origin *
# # header Access-Control-Allow-Methods "GET, POST, OPTIONS"
# # header Access-Control-Allow-Headers "Content-Type"
# # reverse_proxy localhost:8080
# #reverse_proxy localhost:8080
# respond "hi world"
# }
jupyter.hashirama.blog {
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
resolvers 1.1.1.1
}

header Access-Control-Allow-Origin *
header Access-Control-Allow-Methods "GET, POST, OPTIONS"
header Access-Control-Allow-Headers "Content-Type"
reverse_proxy localhost:8888
}

llama-tools.com {
tls {
dns porkbun pk1_db81d4b3634b90e44327d0d42d7fd5f46e3ca439a2ffe2587cd6a91ff9835aa3 sk1_dedb9466f623f54c717975473ac5c14a8a544f0a07b2f1266de20e55ffeafc70
}

header Access-Control-Allow-Origin *
header Access-Control-Allow-Methods "GET, POST, OPTIONS"
header Access-Control-Allow-Headers "Content-Type"

}respond "hello world"

0 comments on commit abcf19d

Please sign in to comment.