Pangolin 安装和使用示范 前提条件 为了跟随视频中的操作和配置教学,以下条件是可选的。 视频内容: https://www.bilibili.com/video/BV1cAJHz8EAj/ 一台有独立公网IP地址的云服务器 一个域名 一台在本地局域网中运行的Linux服务器 (博主的是Ubuntu 20.0.1) 一台运行Ollama / Deepseek 的Windows电脑 保持微笑 图: 简单的图示 简介 Project: https://docs.fossorial.io/overview Fossorial 系统以 Pangolin 为核心,是一个自托管的隧道反向代理,具有身份和访问管理功能,旨在通过运行在用户空间的加密 WireGuard 隧道安全地公开私有资源。想象一下自托管的 Cloudflare 隧道。 Pangolin 在底层使用 Traefik 进行实际的 HTTP 代理。Badger 插件提供了一种使用 Pangolin 验证每个请求的方法。第二个服务 Gerbil 提供了一个 WireGuard 管理服务器,Pangolin 可以使用它来创建对等体进行连接。最后,还有 Newt,这是一个 CLI 工具和 Docker 容器,它完全在用户空间通过 WireGuard 连接到 Newt 和 Gerbil,并代理您的本地资源。这意味着您无需运行特权进程或容器即可公开您的服务! 图: Fossorial system Diagram 开始 在腾讯云服务器下载 Pangolin 服务端 的安装脚本 ## 下载并执行 wget -O installer "https://github.com/fosrl/pangolin/releases/download/1.2.0/installer_linux_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')" && chmod +x ./installer 添加DNS 记录 注意:需要关闭Proxy ( 图: Cloudflare DNS Records 云服务器安全组开放端口 TCP 80 , 443 UDP 51820 访问Pangolin 管理界面进行配置 你在安装Pangolin服务端时配置的管理域名 例如:https://pangolin.example.com 输入你设置的 Pangolin管理员帐户密码 创建ORG 创建Site 连接隧道 创建资源 添加 目标和授权 开始通过子域名访问内网服务 小结 总结: Pangolin的安装过程简单便捷,无需复杂配置,通过 Docker 容器化 部署,独立运行且不影响其他服务。 在使用过程中,能在很短的时间内公开内网的服务,且不需要在内网的目标服务器安装任何程序;同时提供灵活的权限控制,便于管理用户访问与操作权限,总的来说,Pangolin兼顾了易用性、效率与安全性需求。

May 30, 2025 0comments 113hotness 0likes Read all

ERPNext 在 Ubuntu 24.04 LTS 中的安装笔记 Step by Step 文章目录 | Table of Contents ERPnext 简介 先决条件 安装步骤 总结 & 引用 先决条件 | Prerequisites 系统环境要求 Ubuntu 24.04 A user with sudo privileges Python 3.11+ pip 20+ MariaDB 10.3.x Node.js 18 Yarn 1.12+ 硬件要求 2 Process 2 Core 4GB ram 40GB Storage Intenet 安装步骤 | Installtion Steps 包升级和创建新用户 Update and Upgrade Packages sudo apt-get update -y && sudo apt-get upgrade -y Create a New user sudo adduser **Your-user-name** #Fill in the information as prompted sudo usemod -aG sudo **Your-user-name** su **Your-user-name** #Enter your password cd ~ 安装环境需要的包 sudo bench setup production **erp-user** 将 ERPNext 配置为生产模式。 该命令会: 配置 Gunicorn(用于处理 Python 请求的 WSGI 服务器)。 配置 Supervisor(用于管理后台进程)。 确保站点在生产环境中以最佳性能运行。 [**erp-user**] 是运行 Frappe/ERPNext 的系统用户(通常为 frappe)。 bench setup nginx 配置 Nginx 作为反向代理服务器。 Nginx 负责处理外部请求并将其转发给 Gunicorn。 该命令会自动生成 Nginx 配置文件并启用站点。 sudo supervisorctl restart all 重启所有由 Supervisor 管理的进程。 确保所有服务(如 Gunicorn、后台工作进程等)使用最新的配置。 sudo bench setup production **erp-user**(重复) 再次运行以确保所有生产配置已正确应用。 访问站点 在生产模式下,ERPNext 通过 Nginx 提供服务,默认使用 HTTP(80 端口)或 HTTPS(443 端口)。 你可以直接通过服务器的 IP 地址或域名访问站点,无需指定端口号(如 http://your-server-ip)。 总结 和 引用 | Conclusion & References References: How to Install ERPNext Version 15 on Ubuntu 24.04: A Step-by-Step Guide - https://syncbricks.com/how-to-install-erpnext-version-15-on-ubuntu-24-04-a-step-by-step-guide/ Youtube - Chat GPT & DeepSeek

March 5, 2025 0comments 286hotness 0likes Read all

故障现象 Proxmox 性能显示界面无数据,且时间为1970-01-01 解决方法 同步系统时间和硬件时间: 先确保系统时间和硬件时间是正确且同步的: # 设置正确的系统时间(例如:2025-01-13 10:00:00) date -s "2025-01-13 10:00:00" 1. 同步系统时间到硬件时钟 hwclock -w 1. 检查硬件时钟时间 hwclock 重启 PVE 服务: 修改时间后,重启相关服务以确保正常运行: systemctl restart pve-cluster systemctl restart pveproxy systemctl restart pvedaemon 清理 rrd 数据缓存(可选): 如果时间错乱严重,可能需要清理并重建 RRD 数据: systemctl stop pve-cluster rm -rf /var/lib/rrdcached/db/pve2-node/ rm -rf /var/lib/rrdcached/db/pve2-storage/ rm -rf /var/lib/rrdcached/db/pve2-vm/ systemctl start pve-cluster 验证 NTP 配置: 使用 NTP 服务确保系统时间自动同步: apt update apt install ntp systemctl enable ntp systemctl start ntp ntpq -p 如果不需要 NTP,可以手动设置时间,但建议保持系统和硬件时钟同步。 刷新 Web 界面: 重新登录 Proxmox 的 Web UI,查看内存图表是否恢复正常。

February 2, 2025 0comments 1214hotness 0likes Read all

VMware Station 遷移到 Proxmox PVE 筆記 必要條件 VMware Station 中有VMS VMware Station宿主機和Proxmox 服務器有足夠的磁盤空間 一些基本的Linux命令知識 當前的軟件版本 VMware Station: VMware® Workstation 17 Pro 17.0.0 build-20800274 Proxmox : Proxmox Virtual Environment 8.3.0 操作步驟 從VMware Station 導出VMS ,文件為*.ovf 將VMware Station 導出的*.ovf 下載到Proxmox 節點中 執行導入命令 新增網絡設備,複製MAC地址 Step by Step 從VMware Station 導出VMS 點擊導出按鈕 導出文件到目錄 等待導出到目錄 通過Shell下載ovf 和vmdk文件 mf 在宿主服務器中建立HFS服務,將導出的ovf文件和vmdk文件添加到HFS服務中 在Proxmox 服務器中下載文件 wget http://10.253.253.100/Windwos10_wechat.ovf #依次將其下載到proxmox服務器中 Ubuntu ID: 100 Windows 10 導入到Proxmox root@pve:qm importovf <vmid> <manifest> <storage> [OPTIONS] #Create a new VM using parameters read from an OVF manifest #https://pve.proxmox.com/pve-docs/qm.1.html 參數說明: "vmid:" 虛擬機在PVE 中的ID,Proxmox 中初始第一台VM的ID 為100, 這個100就是VMID "manifest:" ovf格式文件,從VMware Station中導出的虛擬機文件 "storage:" PVE的存儲池, 例如 'local-lvm' "[OPTOPNS]:" ---format qcow2 | raw | vmdk Target format 詳細請參考: https://pve.proxmox.com/pve-docs/qm.1.html 示例: qm importovf 101 'Windows10_wechat.ovf' local-lvm --format vmdk 執行完該命令等待數據轉移,完成之後會自動回到命令執行界面,如下圖 轉換完成,在Proxmox 控制台中即可看到這台VM 添加新的網絡設備 注意: 記得將原來的MAC地址複製到新的網絡設備中 其它 如果是Windows操作系統,卡在 “booting from Hard Disk” 無法啟動,請先將VM停止, 再將BIOS 改成"UEFI"即可 檢查核對Proxmox 的時區、時間同步 基本的安全設置 總結 之前一直用的VMWare Station 和 ESXi,猶豫這次換了聯想Staiton S30 ,就開始使用Proxmox。在Windows上使用VMWare Station 和單獨的服務器使用 ESXi , 就算是上M2和 SSD 效率和啟動速度不如Proxmox;遠程虛擬主機(windows) 操作起來比VMWare 的流暢, 已經能滿足日常辦公使用了。 在易用性方面,ESXi 和 Sation 會比Proxmox 好一些(對於沒有Linux 基礎的人來說); Renfrence vmware-VM迁移至Proxmox VE教程https://foxi.buduanwang.vip/virtualization/375.html/ pve documenthttps://pve.proxmox.com/pve-docs/qm.1.html

January 13, 2025 0comments 321hotness 0likes Read all

Linux 真好用 与Windows 相比, Linux 的效率实在太好了。为了避免自己忘记用过的命令,避免手忙脚乱又到处去找,特意写一下笔记。最近在忙别的~ 11月好快,就要过完了,所以及时来水一篇。 Vim 配置 以下命令可以对齐VIM编辑器,会高亮输入光标 sudo echo set nu ts=2 et sw=2 cuc autoindent > ~/.vimrc 修改root 密码 sudo passwd root #之后根据提示输入2次密码即可 网络配置 #显示网卡 nmcli con show #修改网卡IP地址 nmcli con mod "Wire connection 1" ipv4.method manual ipv4.address 172.25.250.100/24 ipv4.gateway 172.25.250.254 ipv4.dns 172.25.250.250 autoconnect yes #禁用和启用网卡 nmcli con down "Wire connection 1" nmcli con up "Wire connection 1" #修改 允许root 访问 ssh sudo echo "PermitRootLogin yes" >> /etc/ssh/sshd_config.d/01-permitrootlogin sudo systemd restart sshd 进程管理 #查找名为qcloud 的进程 ps aux | grep qcloud #根据进程ID 强制杀死进程 kill -9 1588

November 22, 2024 0comments 1238hotness 0likes Read all

Setting Up SMB Service on Ubuntu 18.04 Table of Contents Install SMB and enable the SMB server and restart it. Add an SMB user. Edit the SMB configuration file. Permission configuration: Read (R) Read/Write (RW) Firewall configuration. Visit the SMB server on your local network. Install SMB server sudo apt update sudo apt install samba sudo systemctl enable smbd sudo systemctl restart smbd Add an SMB user sudo smbpasswd -a username Edit the SMB configuration file sudo vim /etc/samb/smb.conf [WiKiFolder_for_Client] comment = Shared Folder path = /home/username/wiki browseable = yes valid users = @username [WiKiFolder_for_Client]: The name of the shared folder being defined. comment = Shared Folder: Description of the shared folder. path = /home/username/wiki: Specifies the path of the shared folder. browseable = yes: Allows the shared folder to be visible on the network. valid users = @username: Specifies that only users belonging to the username group can access the shared folder. [WiKiFolder_for_Client] comment = Shared Folder path = /home/ccdcam/wiki browseable = yes valid users = ccdcam writable = yes valid users = username: Specifies that only users belonging to the username group can access the shared folder. writable = yes: Allows users to write to the shared folder. Firewall configuration Allowed th 445/tcp sudo ufw allow 444/tcp Accessing the SMB Share on your local network For Windows: Enter \\<serverIPaddress> in the file explorer's address bar, then proceed to log in. Viewing the SMB User List Using the pdbedit Command: To list the users in Samba, enter the following command in the terminal: sudo pdbedit -L -v This will…

July 25, 2024 0comments 432hotness 0likes Read all

Flash OpenIPC firmware onto SigmaStar SSC335 SoC and Sony IMX307 IPC module. Requirements IPC module USB to TTL cable Windows laptop or computer Running a TFTP server on your Windows computer Results IPC module specifications Flash:GD25Q64CSIG: https://www.digikey.cn/zh/products/detail/gigadevice-semiconductor-hk-limited/GD25Q64CSIG/9484942 Soc:SigmaStar SSC335https://linux-chenxing.org/infinity6/ssc335_pb_v03.pdf Sensor: 1/2.8" 2MP CMOS Sony IMX307 LAN Windows computer TFTP SERVER directory structure The "bin" directory serves as the current directory for the TFTP server, used to store firmware files. Disable the firewall on the Windows computer and run tftp64.exe. Step 1: Welding the UART interface. Here is the TTL connection. Step 2: Connect the IPC module to your Windows computer using a USB to TTL cable. Connect the IPC module to your computer using a USB to TTL cable. Open PuTTY. Configure the serial port information. Restart the IPC module. In the PuTTY window, continuously press the "Enter" key on the keyboard. Step 3: Enter the following command in the PuTTY window # Enter commands line by line! Do not copy and paste multiple lines at once! setenv ipaddr 192.168.8.200; setenv serverip 192.168.8.250 mw.b 0x21000000 0xff 0x800000 tftpboot 0x21000000 openipc-ssc335-lite-8mb.bin #如果上面的命令执行不成功,请执行下面的。sf lock 0; 会提示失败, 不过没关系,继续下面的 1. if there is no tftpboot but tftp then run this instead tftp 0x21000000 openipc-ssc335-lite-8mb.bin sf probe 0; sf lock 0; sf erase 0x0 0x800000; sf write 0x21000000 0x0 0x800000 reset Note If you cannot input in serial port mode, please close the serial port first. Before re-entering, turn off flow control.

July 18, 2024 0comments 379hotness 0likes Read all

In this article, I will share with you about my second time installing CUPS on Ubuntu. Requriement Ubuntu 18.04 LTS Install on an Old Computer Canon E410 Series Printer Internet CUPS Installation and Configuration Step by Step Install CUPS on your system #install cups sudo apt-get install cups cups-pdf cups-bsd Back up the configuration file #copy configuration file sudo cp /etc/cups/cupsd.conf cupsd.conf.bak Editing the CUPS configuration file #add user simith to lpadmin group sudo usermod -aG lpadmin simith #edit cupsd.conf sudo vim cupsd.conf Edited cupsd.conf contents.(Configuration options not mentioned should be left as default.) #allow access port Port 63100 LogLevel warn PageLogFormat MaxLogSize 200 1. Show shared printers on the local network. Browsing on BrowseLocalProtocols dnssd 1. Web interface setting... WebInterface Yes 1. Restrict access to the server... <Location /> Order Allow,deny Allow @LOCAL Allow From 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to the admin pages... <Location /admin> #access user simith can visit admin page Require user simith Order Allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to log files... <Location /admin/log> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 192.168.0.0/16 </Location> Restart CUPS service and add to starup sudo systemctl restart cups sudp systemctl enable cups End Finally, you can visit the Ubuntu IP address and configuration Example: " http:// ubuntu ip address:63100 " Another article 打印服务器cups安装笔记https://www.itiohub.com/log/413.html

June 16, 2024 0comments 136hotness 0likes Read all

因为Frp client 之前是使用批处理启动的,所以每次电脑重启之后,需要等到登录之后才能启动。目的是要操作系统启动之后就直接启动Frp client。为了解决这个问题,所以使用nssm来将Frp client安装到windows的服务,使它作为服务启动。这样就可以实现当电脑启动之后就可以直接启动。 目录 先决条件 安装过程 验证和引用 先决条件 Frp 服务端 与客户端https://github.com/fatedier/frp nssm 程序https://nssm.cc/download 根据Frp服务端的信息配置好相对应的Frp客户端信息 安装过程 Step 1 在Windows操作系统下配置好Frp 的客户端信息之后,使用命令行进入nssm目录,如下图:注:请根据你的实际情况,进入相对应的目录; Step 2 通过命令行 安装服务 nssm install MyFirstService #### Step 3当你在命令行中输入step2的命令,系统会跳出nssm 的gui让你填写程序的相关信息。这个时候,你只要在Nssm gui中填入服务的相关信息即可。如下图所示: 程序路径 程序工作目录 额外参数然后顶部的"Details"就是服务的相关详细描述和设置了。这个大家可以自己去尝试。在填完1-3步骤中的信息之后, 服务就算安装完成了。 (记得使用管理模式运行nssm) 验证和应用 在windows 的命令行输入“services.msc” 打开windows 的服务管理窗口 通过上图就可以判断 服务已经添加成功。 另外你还可以在frp 根目录下查看frp运行的日志。 引用 Frp 服务端 与客户端https://github.com/fatedier/frp nssm 程序https://nssm.cc/download 这就是使用nssm 在windows下,快速的创建服务的简单使用笔记。

June 2, 2024 0comments 228hotness 0likes Read all

使用iKuai的Docker 安装Uptime 监控网络状况并设置通知提醒 Uptime Kuma 简介 我爱开源 Uptime Kuma 是一个开源项目,它的项目地址是在这里https://github.com/louislam 开发者是以为香港Coder, 该项目已经有了43.4k star. 大家再给他多一些星星吧! 缘由 有时候有些服务器因为某些原因离线了,忘记检查了。 然后造成服务器无法正常服务。于是就有了想法在iKuai的 Docker 中安装Uptime 来监控服务器和网络设备的在线状态 先决条件 路由器要有空闲磁盘来存储Docker数据, 不然无法正常安装Docker插件 iKuai 版本要在3.5以上 在iKuai云平台绑定设备,并安装好Docker插件 安装步骤 在路由器的USB口插入一张USB磁盘并在"系统设置" - " 磁盘管理- 磁盘分区中" 将磁盘分区并挂载 绑定业务选择" 普通存储" 即可 在云平台的" 插件应用 " 插件市场中选择要安装docker的设备 在云平台 "插件管理" 检查插件安装状态, 显示安装成功则可以进行下一步操作 回到路由器中的"高级应用" - "插件管理" 点击蓝色的 "docker" (需要在云平台安装好docker插件成功才能看到) - " 服务设置 " 将镜像库URL 设置为微软的https://mcr.microsoft.com/ 点击确认保存 回到Docker 界面 点击 "镜像管理" 点击添加, 选择"镜像库下载" 在搜索框中输入Uptime 选择: louislam/uptime-kuma 下载, 然后等待提示下载成功下载时间取决于您的网络状况和磁盘速度 回到Docker 界面 点击 "接口管理" 添加新的接口 如下图:(可以根据您的自身需求设置,但是不可以与路由器本身的LAN地址冲突) 回到Docker 界面, 点击"容器列表" 添加新的容器如下图 添加完容器之后启动即可 容器端口映射 端口映射只要将容器的3001端口映射出去就可以使用外网地址访问了 参考: https://www.ikuai8.com/zhic/ymgn/lyym/2019-12-13-06-35-05/2021-03-08-07-27-41.html 基本使用 Uptime Kuma 自带多国语言 配置简单 使用方便 , 大大减低了运维人员的学习成本. 总的来说, uptime的基本使用分为4部分 创建管理员账号 添加需要监控的设备或者服务 创建状态页面给非运维人员查看 若有需求,可以设置通知渠道进行提醒 更高级的API功能就大家自己去研究啦 基本使用如图所示 通知提醒设置 请参考设置页面中的链接, 有具体文档, 其中本人是使用的Telegram Bot , 因为Telegram Bot 是最简单,最方便的. 最后感谢 感谢张品正同学的分享, 感谢iKuai的产品. 是因为他们我才想到把它部署到iKuai并完成我的需求.

December 29, 2023 0comments 165hotness 0likes Read all