如何安装开源新闻组软件inn@FreeBSD

在FreeBSD下安装

安装

复制代码
pkg install inn

安装完成显示:

Message from db5-5.3.28_9:

--

===> NOTICE:

The db5 port currently does not have a maintainer. As a result, it is

more likely to have unresolved issues, not be up-to-date, or even be removed in

the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing

--

===> NOTICE:

This port is deprecated; you may wish to reconsider installing it:

EOLd, potential security issues, maybe use db18 instead.

It is scheduled to be removed on or after 2022-06-30.

=====

Message from freebsd-uucp-1.07.4_4:

--

In order to run the periodic UUCP maintenance tasks, please add

the following to your /etc/periodic.conf.local file:

340.uucp

daily_uuclean_enable="YES" # Run uuclean.daily

410.status-uucp

daily_status_uucp_enable="YES" # Check uucp status

300.uucp

weekly_uucp_enable="YES" # Clean uucp weekly

in your sendmail.mc file you need to set the path:

define(`UUCP_MAILER_PATH', `/usr/local/bin/uux')dnl

=====

Message from freetype2-2.13.3:

--

The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as

the default, emulating a modern version of ClearType. This change inevitably

leads to different rendering results, and you might change port's options to

adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment

variable).

The environment variable "FREETYPE_PROPERTIES" can be used to control the

driver properties. Example:

FREETYPE_PROPERTIES=truetype:interpreter-version=35 \

cff:no-stem-darkening=1 \

autofitter:warping=1

This allows to select, say, the subpixel hinting mode at runtime for a given

application.

If LONG_PCF_NAMES port's option was enabled, the PCF family names may include

the foundry and information whether they contain wide characters. For example,

"Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at

run time with using pcf:no-long-family-names property, if needed. Example:

FREETYPE_PROPERTIES=pcf:no-long-family-names=1

How to recreate fontconfig cache with using such environment variable,

if needed:

env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv

The controllable properties are listed in the section "Controlling FreeType

Modules" in the reference's table of contents

(/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed).

=====

Message from python311-3.11.11:

--

Note that some standard Python modules are provided as separate ports

as they require additional dependencies. They are available as:

py311-gdbm databases/py-gdbm@py311

py311-sqlite3 databases/py-sqlite3@py311

py311-tkinter x11-toolkits/py-tkinter@py311

启动服务

复制代码
service innd onestart

调试

启动服务service innd onestart报错

service innd onestart

/usr/local/etc/rc.d/innd: WARNING: /usr/local/news/db/history.dir is not readable.

发现它需要的目录是:

required_files="/usr/local/news/db/history.dir"

发现有这个目录:

ls -la /usr/local/news/db/

total 56

drwxr-xr-x 2 news news 8 Feb 2 23:18 .

drwxr-xr-x 13 news news 13 Apr 17 2025 ..

-rw-rw-r-- 1 news news 225 Apr 17 2025 active

-rw-rw-r-- 1 news news 225 Apr 17 2025 active.sample

-rw-rw-r-- 1 news news 0 Apr 17 2025 active.times

-rw-rw-r-- 1 news news 0 Apr 17 2025 active.times.sample

-rw-rw-r-- 1 news news 333 Apr 17 2025 newsgroups

-rw-rw-r-- 1 news news 333 Apr 17 2025 newsgroups.sample

创建目录并改用户,问题解决

复制代码
mkdir  /usr/local/news/db/history.dir
chown news:news /usr/local/news/db/history.dir/

启动报错 hostname does not resolve or domain not set in inn.conf

service innd onestart

innconfval: hostname does not resolve or domain not set in inn.conf

innconfval: the FQDN of the server contains invalid characters not suitable for Message-IDs

innconfval: hostname does not resolve or domain not set in inn.conf

innconfval: the FQDN of the server contains invalid characters not suitable for Message-IDs

Starting innd.

innd: hostname does not resolve or domain not set in inn.conf

innd: the FQDN of the server contains invalid characters not suitable for Message-IDs

Scheduled start of /usr/local/news/bin/innwatch.

innconfval: hostname does not resolve or domain not set in inn.conf

innconfval: the FQDN of the server contains invalid characters not suitable for Message-IDs

修改文件 /usr/local/news/etc/inn.conf,加入三项内容

复制代码
server: your-server-name.domain.com
domain: domain.com
fromhost: your-server-name.domain.com

当然域名需要先在本地解析起来。

启动没报错,但是服务么有起来

service innd onestart

Starting innd.

Scheduled start of /usr/local/news/bin/innwatch.

查找/var/log/news/errlog 文件,发现报错:

innd: can't fopen history /usr/local/news/db/history No such file or directory

innd: SERVER can't open history /usr/local/news/db/history: No such file or directory

手工创建文件,is ok ?

相关推荐
m0_694845571 小时前
Dify部署教程:从AI原型到生产系统的一站式方案
服务器·人工智能·python·数据分析·开源
冬奇Lab3 小时前
一天一个开源项目(第67篇):OpenClaw-Admin - AI Agent 网关的可视化管理驾驶舱
人工智能·开源·资讯
AI成长日志5 小时前
【GitHub开源项目专栏】深度拆解:LangChain智能体系统架构设计与实现原理
langchain·开源·github
Bigger7 小时前
搞了个整活项目:我把 GitHub Copilot 塞进了一个在屏幕上乱跑的桌面宠物里
开源·app·ai编程
IvorySQL7 小时前
PostgreSQL 技术日报 (4月7日)|内核开发新动态,多项功能优化落地
数据库·postgresql·开源
IvorySQL7 小时前
PostgreSQL 技术日报 (4月6日)|内核补丁与性能优化速递
数据库·postgresql·开源
IvorySQL7 小时前
PostgreSQL 技术日报 (4月5日)|六大核心补丁进展,生产环境必看
数据库·postgresql·开源
IvorySQL7 小时前
走进高校,走近开源|IvorySQL 社区即将亮相应急管理大学开源学术报告会
数据库·postgresql·开源
2301_8227032010 小时前
开源鸿蒙跨平台Flutter开发:FASTA 格式解析进阶:序列校验与异常处理机制实现
flutter·华为·开源·鸿蒙
海兰11 小时前
【AI网关】阿里开源的Higress(OpenAPI-to-MCP工具)
人工智能·架构·开源·银行系统