update ReadMe.md

This commit is contained in:
SilentWind 2024-03-05 16:00:24 +00:00
parent f4c1dbe56e
commit ffebd2b484
3 changed files with 60 additions and 14 deletions

View File

@ -1,6 +1,9 @@
更新日志 更新日志
- V0.53: 调整dts CPU频率和版本添加H.264支持(来自群友 自.知 - V0.56[Build-Armbian]回退5.9内核版本V0.52目前运行最稳定的内核版本支持docker;此前高内核的累积更新
- V0.52[Build-Armbian]添加MSD内核补丁完全使用hzyitc的uboot减小boot分区从512M至128M引导和分区表使用UUID默认关闭线刷刷机dtb切换为外围设备模式led颜色修改红色UBoot-紫色(内核)-绿色(完全启> - 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.51: [Build-Armbian]5.9内核构建,初步完成直刷镜像构建。
- V0.5通过锁定CPU频率修复ustreamer mjpeg视频流异常的问题屏蔽主程序找不到温度传感器的报错优化中文翻译更新VNC依赖优化安装流程。 - V0.5通过锁定CPU频率修复ustreamer mjpeg视频流异常的问题屏蔽主程序找不到温度传感器的报错优化中文翻译更新VNC依赖优化安装流程。
- V0.4利用玩客云自动GPIO实现ATX开关机物理控制功能初步建立飞书使用文档制作一键安装脚本优化安装流程。 - V0.4利用玩客云自动GPIO实现ATX开关机物理控制功能初步建立飞书使用文档制作一键安装脚本优化安装流程。

View File

@ -8,7 +8,7 @@ One-KVM是基于玩客云硬件和PiKVM软件的远控设备。通过移植PiKVM
该软件可以帮助用户通过得到控制设备的HDMI 画面和鼠标键盘去远程管理服务器、工作站或个人PC等。 和基于软件的远程管理方式不同,无需在被控电脑安装任何软件,实现无侵入式控制。 该软件可以帮助用户通过得到控制设备的HDMI 画面和鼠标键盘去远程管理服务器、工作站或个人PC等。 和基于软件的远程管理方式不同,无需在被控电脑安装任何软件,实现无侵入式控制。
该项目基于PiKVM和Fruity PiKVM提供了玩客云兼容PiKVM操作的自动处理脚本。 该项目基于PiKVM提供了玩客云兼容PiKVM操作的自动处理脚本。
![image](https://github.com/mofeng-git/One-KVM/assets/62919083/ec7e049f-ca6c-426f-bfa4-314536965db0) ![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脚本安装** **方式二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 ```bash
git clone https://github.com/mofeng-git/One-KVM.git 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
<details> <details>
浩龙的电子嵌入式之路(赞助)
Tsuki赞助
H_xiaoming H_xiaoming
0蓝蓝0 0蓝蓝0
@ -68,10 +72,11 @@ Will
以及各位讨论交流的网友 以及各位讨论交流的网友
</details> </details>
**更新日志**
[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) 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/) 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) 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)

View File

@ -63,15 +63,18 @@ override-uboot(){
#安装依赖软件 #安装依赖软件
install-dependencies(){ 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 "换源成功!" 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......" 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 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 #安装PiKVM
install-pikvm(){ install-pikvm(){
echo "正在安装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 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安装成功" echo "PiKVM安装成功"
cd $CURRENTWD cd $CURRENTWD
cp -f ./patch/long_press_gpio420 /usr/bin && cp -f ./patch/short_press_gpio420 /usr/bin 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/ cp -f ./patch/chinese.patch /usr/share/kvmd/web/ && cd /usr/share/kvmd/web/
patch -s -p0 < chinese.patch patch -s -p0 < chinese.patch
echo -e "\e[0;32m中文补丁应用成功" 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(){ show-info(){
ipaddr=`ip addr | grep "scope global" | awk '{print $2}' |awk -F/ '{print $1}'` ipaddr=`ip addr | grep "scope global" | awk '{print $2}' |awk -F/ '{print $1}'`
echo -e "\e[0;32m内网访问地址为\nhttp://$ipaddr\nhttps://$ipaddr" 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/ 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 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 #systemctl start kvmd-ffmpeg && systemctl start kvmd-janus-static
} }
check-environment 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-dependencies
install-pikvm install-pikvm
add-patches add-patches
kvmd-ffmpeg-h-264 fix-motd
#H.264 soft encoded video, default off, uncomment if needed
#kvmd-ffmpeg-h-264
show-info show-info
reboot reboot