25 3 月, 2025
本机跑Ollma很容易,分开跑同样很容易 ~ 也就是如下Topology:
MacBook pro(web) ——– (openwebui)synology 918+ ——–(ollama)MacStudio
为什么这么繁琐,主要是不想在Mac上安装docker,另外也不想把openwebui直接安装到host上,正好利用这种方式测试下交互,所以才有了这篇文章
Ollama设置 – Mac Studio
创建 launchd 配置文件
在下面文件夹中增加一个配置文件,默认应该没有这个文件夹,我是安装过NAS的drive应用,所以就不用新建了。确保ollama路径是正确的,通过which命令验证,以及打开局域网访问OLLAMA_HOST 0.0.0.0:
yong@yongdeMac-Studio ~ % more ~/Library/LaunchAgents/com.ollama.ollama.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.ollama.ollama</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/ollama</string>
<string>serve</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>EnvironmentVariables</key>
<dict>
<key>OLLAMA_HOST</key>
<string>0.0.0.0</string>
</dict>
<key>StandardOutPath</key>
<string>/tmp/ollama.log</string>
<key>StandardErrorPath</key>
<string>/tmp/ollama.err</string>
</dict>
</plist>
yong@yongdeMac-Studio ~ % which ollama
/usr/local/bin/ollama
加载并启用服务
完整阅读
17 11 月, 2021
修改WEB访问的端口
默认https的端口是443,某些情况下,443有可能被禁了,所以想用其他端口,此时可以直接在下面文件中修改端口,重启即可:
[root@localhost:~] more /etc/vmware/rhttpproxy/config.xml | grep 443
<httpsPort>443</httpsPort>
通过命令行启动虚机
重启ESXI主机后,如果发现重要的虚拟机忘记放入开启自启动了,此时还无法通过web页面访问ESXI,但SSH可以访问,此时就需要通过命令行来启动虚拟机,方法如下:
完整阅读
18 2 月, 2021
Some applications only working in same broadcast, so vpn feature is must have when access personal resource (e.g: NAS) from Internet. The artical only cover Wireguard, but not include theory.
Install APP
Follow up by the Github for synology-wireguard, not summarized again. Just put the spk that base on DSM7.0:
Follow base on DSM7.2:
完整阅读
26 7 月, 2020
At some times, we only have a qcow2 image, but ESXI(vCenter) only supports vmdk, how to do deploy? In the video guide, I will show how to convert img to vmdk from qcow2, then deploy by import exist hardware(vmdk).
Btw, xrv9k supports only 3 virtual interfaces: e1000, virtio, and VMXnet3. Please notices not support e1000e!
完整阅读
2 2 月, 2020
问题及解决
根据如下拓扑,用iphone和ipad查看nas的高清资源总是卡,低于5mbps码率的资源没问题,当网线连接时,50mbps码率的视频也没问题,所以严重怀疑wifi出了问题,但又不好查哪里的问题,我在AppStore上找了一圈,也没有一个像样的wifi 分析软件,即使收费也能接受呀。。。
Iphone/Ipad — <wifi 5g> — wrt1200ac —<GE>—918+
问题现在已经解决了,由于我的wrt1200ac刷的是OpenWRT,开源的wifi驱动不稳定,导致时不时的卡。我在918+上部署了docker版本的speedtest,从iphone/ipad上测试了下tcp性能,发现测不出问题,速率都挺正常(只给最终结果,无法显示平均还是最大),如下:
完整阅读