Compare commits
5 Commits
395d064c37
...
c40de6ca03
| Author | SHA1 | Date | |
|---|---|---|---|
| c40de6ca03 | |||
| 953fb6d96d | |||
| 1f5b817156 | |||
| 3c29e2816f | |||
| dea3c514ae |
@@ -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 #####
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
22
systemd/incubating/borg/borg.md
Normal file
22
systemd/incubating/borg/borg.md
Normal 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
|
||||
```
|
||||
@@ -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
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user