Wednesday, February 5, 2025

Black Magic

Here's some tidbits about it's setup.



VNC:
Install tigervncserver. Don't bother making a service, 
just run them from the @reboot in the crontab. 
For each user:
     run tigervncserver and set the password
     replace .vnc/config with this:
        session=mate-session
        geometry=1920x1080
        localhost
        alwaysshared
     run crontab -e add a line, but with a different number at the end
        @reboot tigervncserver -xstartup /usr/bin/mate-session -geometry 1920x1080 -localhost no :4

AI:
Ollama:
mkdir ai
cd ai
python3 -m venv pyenv
source pyenv/bin/activate
curl -fsSL https://ollama.com/install.sh > install.sh
sh install.sh 
ollama run DeepSeek-R1
ollama run llama3.3
ollama run LLaVA
ollama run vincentg/llama3.2-fluxassistant

Open-WebUI 

pyenv/bin/pip3 install open-webui

StableDiffusionWebUI

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui/
source venv/bin/activate venv/bin/pip3 install -r requirements.txt  
export COMMANDLINE_ARGS="--skip-torch-cuda-test --use-cpu=all --no-half"
./webui.sh 


Black Magic

Here's some tidbits about it's setup. VNC: Install tigervncserver. Don't bother making a service, just run them from the @rebo...