Compare commits

...

5 Commits

Author SHA1 Message Date
c40de6ca03 fix stable diffusion webui docs
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 16m0s
2024-12-12 15:08:53 -05:00
953fb6d96d initialize borg 2024-12-12 15:08:37 -05:00
1f5b817156 dnf automatic fix for fedora-server 2024-12-12 15:07:58 -05:00
3c29e2816f updates to fedora-kinoite 2024-12-12 15:07:44 -05:00
dea3c514ae add pandoc for markdown to pdf conversion to arch toolbox 2024-12-12 15:07:24 -05:00
5 changed files with 59 additions and 20 deletions

View File

@@ -52,7 +52,15 @@ RUN pacman -S --noconfirm \
flatpak \
net-tools \
glances \
networkmanager
networkmanager \
pandoc \
texlive-latex \
texlive-latexextra \
texlive-latexrecommended \
texlive-binextra \
texlive-fontsrecommended \
texlive-fontsextra
########################
##### Extra Apps #####

View File

@@ -72,7 +72,11 @@ podman run --rm ghcr.io/containers/podlet --install --description "Local AI" \
-v ollama:/root/.ollama \
-p 11434:11434 \
--name ollama \
docker.io/ollama/ollama > ~/.config/systemd/user/ollama.service
--restart always \
docker.io/ollama/ollama > ~/.config/containers/systemd/ollama.container
# Verify the service (Note the filename:service, this is required! You will get "Failed to prepare filename" without it)
systemd-analyze verify ~/.config/containers/systemd/ollama.container:ollama.service
# Start the service
systemctl --user daemon-reload
@@ -153,6 +157,17 @@ Password manager.
```bash
flatpak install com.bitwarden.desktop
# Fix wayland scaling issues
cp /var/lib/flatpak/exports/share/applications/com.bitwarden.desktop.desktop ~/.local/share/applications
# Add `--socket=wayland` and `--ozone-platform=wayland` to the correct locations in the "Exec" field
sed \
-ri 's/(Exec=.* run )(.*)(com.bitwarden.desktop)/\1--socket=wayland \2\3 --ozone-platform=wayland/g' \
~/.local/share/applications/com.bitwarden.desktop.desktop
# Validate desktop database and reload
desktop-file-validate ~/.local/share/applications/com.bitwarden.desktop.desktop
update-desktop-database
```
### MPV

View File

@@ -122,7 +122,7 @@ On the server:
```bash
dnf install dnf-automatic -y
systemctl enable --now dnf-automatic-install.timer
systemctl enable --now dnf-automatic.timer
```
Edit the configuration to only do security updates.
@@ -157,6 +157,7 @@ Firewalld will be on and blocking by default. You can check the zone and allowed
```bash
firewall-cmd --zone=public --list-ports
firewall-cmd --zone=public --list-services
```
Allow Cockpit with

View File

@@ -0,0 +1,22 @@
# Borg Backup
## Install
```bash
dnf install -y borgbackup
```
## Server Setup
```bash
btrfs sub create /backups
btrfs prop set /backups ro true
```
Mount the backup folder over nfs
/etc/fstab
```conf
10.1.2.10:/mnt/backup2/borg0 /backups nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0
```

View File

@@ -2,16 +2,7 @@
## Web UI
<https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs#arch-specific-dependencies>
```bash
python3.10 -m ensurepip --upgrade
# Check https://download.pytorch.org/whl/nightly/ for versions
# Specifically you want the "rocm" versions for AMD
pip install torch==2.6.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly
pip install torchvision==0.20.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly
```
<https://github.com/lllyasviel/stable-diffusion-webui-forge>
```bash
sudo pacman -S python-pytorch-rocm
@@ -20,17 +11,19 @@ git clone https://aur.archlinux.org/python-torchvision-rocm.git
cd python-torchvision-rocm
makepkg -si
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
cd stable-diffusion-webui
python3.10 -m venv venv --system-site-packages
source venv/bin/activate
# Check https://download.pytorch.org/whl/nightly/ for versions
# Specifically you want the "rocm" versions for AMD
pip install torch==2.6.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly
pip install torchvision==0.20.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly
pip install -r requirements.txt
# We need to replace the torch/pytorch versions with amd compatible ones.
# Check https://download.pytorch.org/whl/nightly/torch/ for versions
# Specifically you want the "rocm" versions for AMD
# Just copy the "torch-2.6.0.dev20241205+rocm6.2.4" part
pip install torch==2.6.0.dev20241205+rocm6.2.4 --index-url https://download.pytorch.org/whl/nightly
pip install torchvision==0.20.0.dev20241207+rocm6.2.4 --index-url https://download.pytorch.org/whl/nightly
./webui.sh
```
@@ -61,4 +54,4 @@ htpasswd -c /etc/nginx/.htpasswd yourusername
sudo useradd -m -s /bin/bash nginx
sudo certbot --nginx -d reesimulate.reeseapps.com
```
```