YOCTO 上的 CUPS 网页界面 [英] CUPS web interface on YOCTO

查看:40
本文介绍了YOCTO 上的 CUPS 网页界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 yocto 图像,其中包含了 CUPS 包(使用 IMAGE_INSTALL_append).

I have a yocto image into which I have included the CUPS package (using IMAGE_INSTALL_append).

在运行操作系统时,我在 /etc/init.d 中找不到 cups 文件.

While running the OS, I couldn't find the cups file in /etc/init.d.

我开始使用 cupsd 制作杯子.当我尝试使用 localhost:631 访问 Web 界面时,出现 not found 错误.控制台显示它无法加载任何这些 URL 上的资源:

I started cups using cupsd. When I tried accessing the web interface using localhost:631, I got a not found error. The console shows that it is not able to load resources on any of those URLS:

http://localhost:631/cups.css

http://localhost:631/

http://localhost:631/favicon.ico

html 和相关文件似乎列在 cups.inc 文件.在进行 YOCTO 构建或 CUPS 设置之前,是否需要进行其他配置更改?

The html and related files seem to be listed in the cups.inc file. Are there additional configuration changes that need be made before doing the YOCTO build or on the CUPS setup?

由于我对 yocto 非常陌生并且在 linux 环境中进行开发,所以我不确定我是否遗漏了一些明显的东西.

Since I am very new to yocto and developing in a linux environment, I am not sure if I am missing something obvious.

推荐答案

您针对配方进行了很好的研究,实际上已经接近找到解决方案了.

You made good research pointing to the recipe and were actually close to find the solution.

在食谱中,您可以阅读:

# Remove sysinit script and symlinks if sysvinit is not in DISTRO_FEATURES
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then
    rm -rf ${D}${sysconfdir}/init.d/
    rm -rf ${D}${sysconfdir}/rc*
fi

sysvinit 是否在您的 DISTRO_FEATURES 中?

如果你不知道你可以做

bitbake cups -e | grep "^DISTRO_FEATURES="

这篇关于YOCTO 上的 CUPS 网页界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆