mastodon.online is one of the many independent Mastodon servers you can use to participate in the fediverse.
A newer server operated by the Mastodon gGmbH non-profit

Server stats:

11K
active users

#command

6 posts6 participants0 posts today

在 command line 等 network-online.target 成功後再繼續執行

INN 看起來會在啟動的時候讀 /etc/resolv.conf 決定 DNS server,但我的機器是 PPPoE 取得網路資訊,在 user cron 用下面的方式跑會造成啟動的時候讀到空的 resolv.conf: @reboot ~/bin/rc.news > /dev/null 2>&1 這會導致後續在接受時的 DNS 反解會失敗... 在不改 code 的前提下,第一個想到的方法是直接寫死 DNS servers (像是 168.95.192.1 + 168.95.1.1),但感覺不太好... 後來想到的解法是改用 systemd 的 Wants= 與 After=,在 ne…

blog.gslin.org/archives/2025/0

Gea-Suan Lin's BLOG · 在 command line 等 network-online.target 成功後再繼續執行INN 看起來會在啟動的時候讀 /etc/resolv.conf 決定 DNS server,但我的機器是 PPPoE 取得網路資訊,在 user cron 用下面的方式跑會造成啟動的時候讀到空的 resolv.conf: @reboot ~/bin/rc.

Linux Sed Tutorial: Learn Text Editing with Syntax and Examples

This article was adapted from its original version on NixCraft. Sed is an acronym for “stream editor.” A stream refers to a source or destination for bytes. In other words, sed can read its input from standard input (stdin), apply the specified edits to the stream, and automatically output the results to standard output (stdout). Sed syntax allows an input file to be specified on the command line. However, the syntax does not directly support output file specification; this can be […]

ubuntu-server.com/tutorials/li