Ubuntu 管理心得

搜尋此網誌

2026年5月24日 星期日

Configure Sudo Without Password on Ubuntu 26.04

 cf: https://linuxconfig.org/how-to-configure-sudo-without-password-on-ubuntu-26-04

 

$ sudo visudo -f /etc/sudoers.d/chiao-nopasswd
chiao ALL=(ALL) NOPASSWD: ALL 
$ sudo chmod 0440 /etc/sudoers.d/chiao-nopasswd 


2026年5月9日 星期六

Open WebUI: Server Connection Error

cf: https://github.com/open-webui/open-webui#troubleshooting

 

Open WebUI: Server Connection Error

If you're experiencing connection issues, it’s often due to the WebUI docker container not being able to reach the Ollama server at 127.0.0.1:11434 (host.docker.internal:11434) inside the container . Use the --network=host flag in your docker command to resolve this. Note that the port changes from 3000 to 8080, resulting in the link: http://localhost:8080.

Example Docker Command:

docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

2026年5月8日 星期五

yt-dlp subtitle 字幕

yt-dlp --embed-subs --sub-langs "zh-Hant,zh-TW" --write-subs -o <output fname> -f 'bestaudio+bv' --merge-output-format mp4 <https://some/web> 

 

網誌存檔