Posts

Showing posts from July, 2025

Starting comfyui as a service

See this link: https://marcqualie.com/blog/post/install-comfyui-on-ubuntu

Exposing Docker to portainer remotely

See this: https://docs.docker.com/engine/daemon/remote-access/ Configuring remote access with systemd unit file Use the command sudo systemctl edit docker.service to open an override file for docker.service in a text editor. Add or modify the following lines, substituting your own values. [Service] ExecStart= ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:2375 Save the file. Reload the systemctl configuration. sudo systemctl daemon-reload Restart Docker. sudo systemctl restart docker.service Verify that the change has gone through. sudo netstat -lntp | grep dockerd tcp 0 0 127.0.0.1:2375 0.0.0.0:* LISTEN 3758/dockerd Then in portainer, connect using docker-api

Comfyui

1. System Preparation: Python: Ensure Python 3.12 or higher is installed. Git: If you don't have Git, install it using: Code sudo apt update sudo apt install git python3 -m venv .venv source .venv/bin/activate 2. Install ComfyUI: Clone the repository. Code git clone https://github.com/comfyanonymous/ComfyUI cd ComfyUI Install dependencies. Code pip install -r requirements.txt 3. Configure GPU Support (if applicable): Nvidia (CUDA) pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 4. Launch ComfyUI: Activate the virtual environment: source .venv/bin/activate (if you closed it) Start ComfyUI: python main.py --listen 0.0.0.0 (Use --listen 0.0.0.0 to access from other devices on your network, or omit it for local access only) Access in your browser: Open your web browser and go to the address shown in the terminal (e.g., http://127.0.0.1:8188) https://www.google...

Expanding filesystem on ubuntu

mars@athena:~$ df -k Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 9640288 1728 9638560 1% /run efivarfs 128 48 76 39% /sys/firmware/efi/efivars /dev/mapper/ubuntu--vg-ubuntu--lv 102626232 97366968 0 100% / tmpfs 48201436 0 48201436 0% /dev/shm tmpfs 5120 0 5120 0% /run/lock /dev/nvme0n1p2 1992552 102956 1768356 6% /boot /dev/nvme0n1p1 1098632 6288 1092344 1% /boot/efi tmpfs 9640284 20 9640264 1% /run/user/1000 mars@athena:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL [sudo] password for mars: NAME FSTYPE SIZE MOUNTPOINT LABEL loop0 73.9M /snap/core22/2045 loop1 140.6M ...

Externally managed env pip

https://builtin.com/articles/error-externally-managed-environment

Install python on ubuntu

https://linuxcapable.com/install-python-3-12-on-ubuntu-linux/

Installing nvidia drivers on ubuntu

https://projectable.me/ubuntu-24-04-nvidia-drivers-ollama/

How to pull hugging face models in ollama

Salesforce/xLAM-1b-fc-r-gguf ollama run hf.co/Salesforce/xLAM-1b-fc-r-gguf ollama run hf.co/{username}/{repository}