smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

请问怎么在Debian13里面安装官方的web ui

Open Fr33raNg3r opened this issue 4 months ago • 20 comments

在新安装的Debian13上安装的smartdns,现在不知道怎么安装webui,到处都没找到教程。麻烦哪位大师提供一下,万分感谢。

Fr33raNg3r avatar Aug 29 '25 07:08 Fr33raNg3r

参考这个 https://www.liguangchun.cn/post/debian-install-smartdns-ui/

PikuZheng avatar Aug 29 '25 10:08 PikuZheng

看到了这篇文章的,但是这个是非官方的webui,用起来有点担心。

Fr33raNg3r avatar Aug 29 '25 15:08 Fr33raNg3r

https://github.com/pymumu/smartdns/issues/1917 1楼下载解压libsmartdns_ui.so,https://github.com/pymumu/smartdns-webui 下载解压 wwwroot。把这两样文件随便放到哪个有权文件夹里。配置文件添加对应配置参考https://github.com/pymumu/smartdns/issues/1917#issuecomment-2763019669

PikuZheng avatar Aug 29 '25 15:08 PikuZheng

#1917 1楼下载解压libsmartdns_ui.so,https://github.com/pymumu/smartdns-webui 下载解压 wwwroot。把这两样文件随便放到哪个有权文件夹里。配置文件添加对应配置参考#1917 (comment)

大佬可以编译ubuntu debian系列带webui的deb包吗?用你仓库里的动态文件,起不来

PrestarLin avatar Sep 01 '25 04:09 PrestarLin

#1917 1楼下载解压libsmartdns_ui.so,https://github.com/pymumu/smartdns-webui 下载解压 wwwroot。把这两样文件随便放到哪个有权文件夹里。配置文件添加对应配置参考#1917 (comment)

大佬可以编译ubuntu debian系列带webui的deb包吗?用你仓库里的动态文件,起不来

增加了 deb打包(注:需要安装依赖 musl,但Gemini建议不要这样做,“但是,这样做可能会引入其他未知的问题,因为它不是 Debian 的标准配置。”

PikuZheng avatar Sep 01 '25 14:09 PikuZheng

#1917 1楼下载解压libsmartdns_ui.so,https://github.com/pymumu/smartdns-webui 下载解压 wwwroot。把这两样文件随便放到哪个有权文件夹里。配置文件添加对应配置参考#1917 (comment)

大佬可以编译ubuntu debian系列带webui的deb包吗?用你仓库里的动态文件,起不来

增加了 deb打包(注:需要安装依赖 musl,但Gemini建议不要这样做,“但是,这样做可能会引入其他未知的问题,因为它不是 Debian 的标准配置。”

安装了,启动smartdns报错 [2025-09-01 22:37:56,980][ERROR][ smartdns.c:693 ] init plugin failed. [2025-09-01 22:37:59,707][NOTICE][ smartdns.c:633 ] smartdns starting...(Copyright (C) Nick Peng [email protected], build: 1.2025.v46.1.75) [2025-09-01 22:37:59,732][ERROR][ dns_plugin.c:201 ] load plugin /usr/local/lib/smartdns/smartdns_ui.so failed: Error loading shared library libgcc_s.so.1: No such file or directory (needed by /usr/local/lib/smartdns/smartdns_ui.so) [2025-09-01 22:37:59,732][ERROR][ smartdns.c:693 ] init plugin failed.

PrestarLin avatar Sep 01 '25 14:09 PrestarLin

#1917 1楼下载解压libsmartdns_ui.so,https://github.com/pymumu/smartdns-webui 下载解压 wwwroot。把这两样文件随便放到哪个有权文件夹里。配置文件添加对应配置参考#1917 (comment)

大佬可以编译ubuntu debian系列带webui的deb包吗?用你仓库里的动态文件,起不来

增加了 deb打包(注:需要安装依赖 musl,但Gemini建议不要这样做,“但是,这样做可能会引入其他未知的问题,因为它不是 Debian 的标准配置。”

[2025-09-01 23:04:23,811][ERROR][ dns_plugin.c:201 ] load plugin /usr/local/lib/smartdns/smartdns_ui.so failed: Error relocating /usr/lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found [2025-09-01 23:04:23,811][ERROR][ smartdns.c:693 ] init plugin failed.

PrestarLin avatar Sep 01 '25 15:09 PrestarLin

可以自己下载代码编译

cd package ./build-pkg.sh --platform debian --arch x86-64 --with-ui

pymumu avatar Sep 01 '25 15:09 pymumu

[2025-09-01 23:04:23,811][ERROR][ dns_plugin.c:201 ] load plugin /usr/local/lib/smartdns/smartdns_ui.so failed: Error relocating /usr/lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found [2025-09-01 23:04:23,811][ERROR][ smartdns.c:693 ] init plugin failed.

这会儿把libgcc_s.so.1也包进去了,希望能好用

PikuZheng avatar Sep 01 '25 23:09 PikuZheng

[2025-09-01 23:04:23,811][ERROR][ dns_plugin.c:201 ] load plugin /usr/local/lib/smartdns/smartdns_ui.so failed: Error relocating /usr/lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found [2025-09-01 23:04:23,811][ERROR][ smartdns.c:693 ] init plugin failed.

这会儿把libgcc_s.so.1也包进去了,希望能好用

最新的好使了

PrestarLin avatar Sep 01 '25 23:09 PrestarLin

可以自己下载代码编译

cd package ./build-pkg.sh --platform debian --arch x86-64 --with-ui

感谢,成功编译,这个编译的不需要musl即可启动

PrestarLin avatar Sep 01 '25 23:09 PrestarLin

#1917 1楼下载解压libsmartdns_ui.so,https://github.com/pymumu/smartdns-webui 下载解压 wwwroot。把这两样文件随便放到哪个有权文件夹里。配置文件添加对应配置参考#1917 (comment)

大佬可以编译ubuntu debian系列带webui的deb包吗?用你仓库里的动态文件,起不来

增加了 deb打包(注:需要安装依赖 musl,但Gemini建议不要这样做,“但是,这样做可能会引入其他未知的问题,因为它不是 Debian 的标准配置。”

我用豆包查了似乎musl是一个轻量库,debian,ubuntu本身有完整库,混用可能会出现问题,我用这个仓库编译带ui的似乎不需要musl包,能否优化掉这个依赖?

PrestarLin avatar Sep 02 '25 00:09 PrestarLin

我用豆包查了似乎musl是一个轻量库,debian,ubuntu本身有完整库,混用可能会出现问题,我用这个仓库编译带ui的似乎不需要musl包,能否优化掉这个依赖?

不能(因为我自己所有环境都是musl,包括openwrt

PikuZheng avatar Sep 02 '25 00:09 PikuZheng

可以自己下载代码编译

cd package ./build-pkg.sh --platform debian --arch x86-64 --with-ui

Image 为何我自己编译会报错?

Fr33raNg3r avatar Sep 05 '25 09:09 Fr33raNg3r

可以自己下载代码编译

cd package ./build-pkg.sh --platform debian --arch x86-64 --with-ui

Image 为何我自己编译会报错?

安装编译环境,下载最新代码

pymumu avatar Sep 05 '25 10:09 pymumu

可以自己下载代码编译 cd package ./build-pkg.sh --platform debian --arch x86-64 --with-ui

Image 为何我自己编译会报错?

没有make.....去去执行 apt install make ;当然可能还会缺编译环境

yuhongwei380 avatar Sep 05 '25 14:09 yuhongwei380

我是编译了一个通用linux版本的: 你可以试试,我也编译了一个deb版本,但是GitHub这边上传不了,你直接下载这个通用版本的吧,然后解压缩,安装;

smartdns.1.2025.09.05-1525.x86-64.tar.gz

tar -xzvf  smartdns.1.2025.09.05-1525.x86-64.tar.gz
cd  smartdns
./install -i 

yuhongwei380 avatar Sep 05 '25 15:09 yuhongwei380

我是编译了一个通用linux版本的: 你可以试试,我也编译了一个deb版本,但是GitHub这边上传不了,你直接下载这个通用版本的吧,然后解压缩,安装;

smartdns.1.2025.09.05-1525.x86-64.tar.gz

tar -xzvf  smartdns.1.2025.09.05-1525.x86-64.tar.gz
cd  smartdns
./install -i 

非常感谢,最好是教教我怎么编译,今后就不用再麻烦大家了。

Fr33raNg3r avatar Sep 11 '25 14:09 Fr33raNg3r

看到了这篇文章的,但是这个是非官方的webui,用起来有点担心。

里面文件来自 https://github.com/pymumu/smartdns/issues/1917#issue-2870737146 提供的!

Debian13提示的错误应该是 libsmartdns_ui.so 是在Debian12环境上编译的才导致13用不了的

dtapps avatar Sep 12 '25 03:09 dtapps

Image Debian12上也是一堆报错,看不懂,求老师们指点,感谢。

Fr33raNg3r avatar Sep 20 '25 00:09 Fr33raNg3r