Compare commits

..

4 Commits

Author SHA1 Message Date
mofeng-git
65874c6b43 fix: 修复 docker 版本VNC 服务权限问题 2025-09-30 23:53:35 +08:00
mofeng-git
67b943c151 fix: 修复 dnsmasq 软件包启动问题,解决引入的 DNS 解析 BUG 2025-09-30 23:53:28 +08:00
mofeng-git
593de19df5 fix: 更新网页部分文本 2025-09-30 21:32:35 +08:00
SilentWind
5296e61281 fix 2025-09-30 13:08:03 +08:00
10 changed files with 17 additions and 11 deletions

View File

@@ -110,6 +110,8 @@ RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.lis
/run/kvmd \
/tmp/kvmd-nginx \
&& touch /run/kvmd/ustreamer.sock \
&& groupadd kvmd-selfauth \
&& usermod -a -G kvmd-selfauth root \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/lib /tmp/wheel \

View File

@@ -352,7 +352,7 @@ config_onecloud_files() {
# 在 ustreamer 命令中添加 DRM 设备配置
echo "信息:为 Onecloud 添加 DRM 设备支持..."
run_in_chroot "sed -i \"/--device=\\/dev\\/video0/a\\ - \\\"--drm-device /dev/dri/card1\\\"\" /etc/kvmd/override.yaml"
run_in_chroot "sed -i \"/--device=\\/dev\\/video0/a\\ - \\\"--drm-device=/dev/dri/card1\\\"\" /etc/kvmd/override.yaml"
echo "信息Onecloud 特定配置完成。"
}

View File

@@ -194,6 +194,8 @@ configure_system() {
sed -i 's/8080/80/g' /etc/kvmd/override.yaml && \\
sed -i 's/4430/443/g' /etc/kvmd/override.yaml && \\
chown kvmd -R /var/lib/kvmd/msd/ && \\
rm /etc/resolv.conf && \\
printf '%s\\n' 'nameserver 1.1.1.1' 'nameserver 1.0.0.1' > /etc/resolv.conf && \
systemctl enable dnsmasq kvmd kvmd-otg kvmd-nginx kvmd-vnc kvmd-ipmi kvmd-webterm kvmd-janus kvmd-media kvmd-gostc && \\
systemctl disable nginx systemd-resolved && \\
rm -rf /One-KVM
@@ -331,6 +333,8 @@ apply_kvmd_tweaks() {
fi
fi
echo "信息KVMD 配置调整完成。"
run_in_chroot "apt remove -y --purge systemd-resolved"
}
# --- 整体安装流程 ---

View File

@@ -6,4 +6,4 @@
#
# NEVER use the same passwords for KVMD, IPMI and VNCAuth users.
admin
admin -> admin:admin

View File

@@ -657,7 +657,7 @@
</div>
</td>
<td>&nbsp;</td>
<td>Writable:
<td i18n="msd-rw-switch">Writable:
</td>
<td align="right">
<div class="switch-box">

View File

@@ -103,10 +103,10 @@ function __showKvmdInfo(info) {
if (info.meta !== null && info.meta.server && info.meta.server.host) {
$("kvmd-meta-server-host").innerText = info.meta.server.host;
document.title = `${info.meta.server.host} | PiKVM Index`;
document.title = `${info.meta.server.host} | One-KVM Index`;
} else {
$("kvmd-meta-server-host").innerHTML = "<i>Invalid meta</i>";
document.title = "PiKVM Index";
document.title = "One-KVM Index";
}
}

View File

@@ -118,7 +118,7 @@ export function Keyboard(__recordWsEvent) {
}
} else {
if (is_captured) {
title = "Keyboard captured, PiKVM offline";
title = "Keyboard captured, One-KVM offline";
}
}
$("hid-keyboard-led").className = led;

View File

@@ -169,7 +169,7 @@ export function Mouse(__getGeometry, __recordWsEvent) {
}
} else {
if (is_captured) {
title = "Mouse captured, PiKVM offline";
title = "Mouse captured, One-KVM offline";
}
}
$("hid-mouse-led").className = led;

View File

@@ -46,7 +46,7 @@ export function Streamer() {
var __init__ = function() {
__streamer = new MjpegStreamer(__setActive, __setInactive, __setInfo, __organizeHook);
$("stream-led").title = "No stream from PiKVM";
$("stream-led").title = "No stream from One-KVM";
tools.slider.setParams($("stream-quality-slider"), 5, 100, 5, 80, function(value) {
$("stream-quality-value").innerText = `${value}%`;
@@ -289,7 +289,7 @@ export function Streamer() {
var __setInactive = function() {
$("stream-led").className = "led-gray";
$("stream-led").title = "No stream from PiKVM";
$("stream-led").title = "No stream from One-KVM";
};
var __setControlsEnabled = function(enabled) {
@@ -317,7 +317,7 @@ export function Streamer() {
if (text.length > 0) {
title += text;
} else {
title += "No stream from PiKVM";
title += "No stream from One-KVM";
}
}
el_grab.innerText = el_info.innerText = title;

View File

@@ -166,7 +166,7 @@ export function MediaStreamer(__setActive, __setInactive, __setInfo, __organizeH
var __setupCodec = function(formats) {
__closeDecoder();
if (formats.h264 === undefined) {
let msg = "No H.264 stream available on PiKVM";
let msg = "No H.264 stream available on One-KVM";
__setInfo(false, false, msg);
__logInfo(msg);
return;