diff --git a/ChangeLogs.txt b/ChangeLogs.txt index d1cb8358..d6013461 100644 --- a/ChangeLogs.txt +++ b/ChangeLogs.txt @@ -1,6 +1,9 @@ 更新日志 -- V0.53: 调整dts CPU频率和版本,添加H.264支持(来自群友 自.知 ) -- V0.52:[Build-Armbian]添加MSD内核补丁;完全使用hzyitc的uboot,减小boot分区从512M至128M,引导和分区表使用UUID,默认关闭线刷刷机;dtb切换为外围设备模式;led颜色修改,红色(UBoot)-紫色(内核)-绿色(完全启> +- V0.56:[Build-Armbian]:回退5.9内核版本(V0.52),目前运行最稳定的内核版本;支持docker;此前高内核的累积更新 +- V0.55: [build]使用lanlan Uboot,通电按重置键可进入线刷模式;HDM可用,WIFI模块已编译;预装armbian-config实用工具;Webterm和VNC修复(tighervnc存在兼容问题,可尝试使用uvnc viewer),添加状态信息显示 +- V0.54: [build]内核切换至xdarklight/linux/tree/meson-mx-integration-6.7-20231221,系统运行更加稳定;包含armbian-config等实用工具 +- V0.53: [build]修复高内核OTG拔插内核崩溃问题;切换至更新的Linux内核(6.6.15-current-meson);去除线刷镜像分区校验 +- V0.52:[Build-Armbian]添加MSD内核补丁;完全使用hzyitc的uboot,减小boot分区从512M至128M,引导和分区表使用UUID,默认关闭线刷刷机;dtb切换为外围设备模式;led颜色修改,红色(UBoot)-紫色(内核)-绿色(完全启动);调整dts CPU频率和版本,添加H.264支持(来自群友 自.知 ) - V0.51: [Build-Armbian]5.9内核构建,初步完成直刷镜像构建。 - V0.5:通过锁定CPU频率修复ustreamer mjpeg视频流异常的问题;屏蔽主程序找不到温度传感器的报错;优化中文翻译;更新VNC依赖;优化安装流程。 - V0.4:利用玩客云自动GPIO实现ATX开关机物理控制功能;初步建立飞书使用文档;制作一键安装脚本,优化安装流程。 diff --git a/README.md b/README.md index 22dc3796..c8e65e16 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ One-KVM是基于玩客云硬件和PiKVM软件的远控设备。通过移植PiKVM 该软件可以帮助用户通过得到控制设备的HDMI 画面和鼠标键盘,去远程管理服务器、工作站或个人PC等。 和基于软件的远程管理方式不同,无需在被控电脑安装任何软件,实现无侵入式控制。 -该项目基于PiKVM和Fruity PiKVM,提供了玩客云兼容PiKVM操作的自动处理脚本。 +该项目基于PiKVM,提供了玩客云兼容PiKVM操作的自动处理脚本。 ![image](https://github.com/mofeng-git/One-KVM/assets/62919083/ec7e049f-ca6c-426f-bfa4-314536965db0) @@ -25,7 +25,7 @@ One-KVM是基于玩客云硬件和PiKVM软件的远控设备。通过移植PiKVM **方式二:One-KVM脚本安装** -一键脚本适用于玩客云Armbian 22.11.0-trunk Jammy Linux onecloud 5.10.xxx(如5.10.149 5.10.158)镜像。如若使用此项目发布的Armbian基础镜像,需注释掉脚本尾部的两个函数`override-uboot` `change-device-tree`。 +一键脚本,对于非玩客云设备安装未作测试,适用于玩客云Armbian Jammy系统。 ```bash git clone https://github.com/mofeng-git/One-KVM.git @@ -51,6 +51,10 @@ docker run -itd -p443:443 -p80:80 --name pikvm-docker --device=/dev/ttyUSB0:/dev
+浩龙的电子嵌入式之路(赞助) + +Tsuki(赞助) + H_xiaoming 0蓝蓝0 @@ -68,10 +72,11 @@ Will 以及各位讨论交流的网友
+**更新日志** + +[One-KVM/ChangeLogs.txt](https://github.com/mofeng-git/One-KVM/blob/main/ChangeLogs.txt) + 本项目间接或直接使用了下下列开源项目: 1. [pikvm/pikvm: Open and inexpensive DIY IP-KVM based on Raspberry Pi (github.com)](https://github.com/pikvm/pikvm) 2. [hzyitc/armbian-onecloud: Armbian for onecloud. 玩客云用armbian (github.com)](https://github.com/hzyitc/armbian-onecloud/) 3. [jacobbar/fruity-pikvm: Install Pi-KVM on debian SBCs such as Orange Pi, Banana Pi, Mango Pi, etc (github.com)](https://github.com/jacobbar/fruity-pikvm) - - - diff --git a/install.sh b/install.sh index 62df56a8..a2e483ba 100755 --- a/install.sh +++ b/install.sh @@ -63,15 +63,18 @@ override-uboot(){ #安装依赖软件 install-dependencies(){ bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --source mirrors.tuna.tsinghua.edu.cn --updata-software false --web-protocol http && echo "换源成功!" - echo -e "\e[0;32m正在安装依赖软件patch iptables nginx tesseract-ocr tesseract-ocr-eng janus libevent-dev libgpiod-dev tesseract-ocr-chi-sim libjpeg-dev libfreetype6-dev......" - apt install -y patch iptables nginx tesseract-ocr tesseract-ocr-eng janus libevent-dev libgpiod-dev tesseract-ocr-chi-sim libjpeg-dev libfreetype6-dev + echo -e "\e[0;32m正在安装依赖软件python3.10 patch iptables nginx tesseract-ocr tesseract-ocr-eng janus libevent-dev libgpiod-dev tesseract-ocr-chi-sim libjpeg-dev libfreetype6-dev......" + apt install -y python3.10 python3-pip python3-dev patch iptables nginx tesseract-ocr tesseract-ocr-eng janus libevent-dev libgpiod-dev tesseract-ocr-chi-sim libjpeg-dev libfreetype6-dev armbian-config } #安装PiKVM install-pikvm(){ echo "正在安装PiKVM......" - dpkg -i ./fruity-pikvm_0.2_armhf.deb >> ./log.txt + dpkg -i ./fruity-pikvm_0.2_armhf.deb systemctl enable kvmd-vnc + systemctl disable nginx kvmd-janus + #rm -f /lib/systemd/system/nginx.service + #rm -f /lib/systemd/system/kvmd-janus.service && systemctl daemon-reload echo "PiKVM安装成功!" cd $CURRENTWD cp -f ./patch/long_press_gpio420 /usr/bin && cp -f ./patch/short_press_gpio420 /usr/bin @@ -101,9 +104,38 @@ add-patches(){ cp -f ./patch/chinese.patch /usr/share/kvmd/web/ && cd /usr/share/kvmd/web/ patch -s -p0 < chinese.patch echo -e "\e[0;32m中文补丁应用成功!" + pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/ + pip3 install -U Pillow } +fix-motd() { + #cd $CURRENTWD + if [ -e /etc/motd ]; then rm /etc/motd; fi + cat > /usr/bin/armbian-motd << EOF +#!/bin/sh +if [ -e /etc/update-motd.d/10-armbian-header ]; then /etc/update-motd.d/10-armbian-header; fi +if [ -e /etc/update-motd.d/30-armbian-sysinfo ]; then /etc/update-motd.d/30-armbian-sysinfo; fi + +printf " Welcome to One-KVM - Open Source IP-KVM installed on onecloud board + ____________________________________________________________________________ + + To prevent kernel messages from printing to the terminal use \"dmesg -n 1\". + + To change KVM password use command \"kvmd-htpasswd set admin\". + + Useful links: + * https://pikvm.org + * https://docs.pikvm.org + * https://github.com/mofeng-git/One-KVM + +" +EOF + chmod +x /usr/bin/armbian-motd /etc/update-motd.d/10-armbian-header /etc/update-motd.d/30-armbian-sysinfo + sed -i 's/cat \/etc\/motd/armbian-motd/g' /lib/systemd/system/kvmd-webterm.service + echo "fixed motd" +} + show-info(){ ipaddr=`ip addr | grep "scope global" | awk '{print $2}' |awk -F/ '{print $1}'` echo -e "\e[0;32m内网访问地址为:\nhttp://$ipaddr\nhttps://$ipaddr" @@ -163,17 +195,23 @@ EOF mkdir /usr/share/janus/javascript/ && cp -f ./web/adapter.js /usr/share/janus/javascript/ && cp -f ./web/janus.js /usr/share/janus/javascript/ cp -f ./patch/stream.sh /usr/share/kvmd/ && cp -f ./patch/stream_when_ustream_exists.sh /usr/share/kvmd/ && chmod +x /usr/share/kvmd/stream.sh /usr/share/kvmd/stream_when_ustream_exists.sh #启动服务 - systemctl enable kvmd-ffmpeg && systemctl enable kvmd-janus-static + #systemctl enable kvmd-ffmpeg && systemctl enable kvmd-janus-static #systemctl start kvmd-ffmpeg && systemctl start kvmd-janus-static } check-environment -override-uboot -change-device-tree + +#Only for onecloud Armbian with kernel 5.10,now this these two steps is deprecated! +#override-uboot +#change-device-tree + install-dependencies install-pikvm add-patches -kvmd-ffmpeg-h-264 +fix-motd + +#H.264 soft encoded video, default off, uncomment if needed +#kvmd-ffmpeg-h-264 show-info reboot