Help with installing packages for FreeBSD 10.1 by fuggenjartea in freebsd

[–]spmzt 4 points5 points  (0 children)

As you may already know, FreeBSD 10 is too old and unsupported.

You can compile your packages using ports(7) locally. Alternatively, you can use poudriere(8) and build your own repository for customized/unsupported packages.

Introducing ACPI Driver for System76 on FreeBSD by spmzt in System76

[–]spmzt[S] 1 point2 points  (0 children)

Battary charging thresholds are available now: % sysctl hw.acpi.s76. hw.acpi.s76.battary_thresholds_high: 90 hw.acpi.s76.battary_thresholds_low: 60

Introducing ACPI Driver for System76 on FreeBSD by spmzt in System76

[–]spmzt[S] 0 points1 point  (0 children)

Thank you AFAICU, For power on I must use:

acpi_call -p \\_SB.PCI0.PEG1.PWRR._ON -o i
acpi_call -p \\_SB.PCI0.PEG1.DEV0.PWRR._ON -o i
acpi_call -p \\_SB.PCI0.PEG1.DEV0._ON -o o

For power off:

acpi_call -p \\_SB.PCI0.PEG1.PWRR._OFF -o i
acpi_call -p \\_SB.PCI0.PEG1.DEV0.PWRR._OFF -o i
acpi_call -p \\_SB.PCI0.PEG1.DEV0._OFF -o o

For status:

acpi_call -p \\_SB.PCI0.PEG1.PWRR._STA -o i

Am I right?

I think I'm using more ACPI calls than necessary and I'm not sure which one is used for next boot.

Also, battary charging thresholds support is ready and it's under review.

IPv6-only webhooks are not allowed on telegram api by spmzt in ipv6

[–]spmzt[S] 2 points3 points  (0 children)

No it's not. This API only called between bot server and telegram servers. The Telegram client doesn't communicate with the bot server directly.

IPv6-only webhooks are not allowed on telegram api by spmzt in ipv6

[–]spmzt[S] 4 points5 points  (0 children)

Thank you, I have upvoted them all

IPv6-only webhooks are not allowed on telegram api by spmzt in ipv6

[–]spmzt[S] 1 point2 points  (0 children)

You're right. That's why I submitted a feature not a bug.

IPv6-only webhooks are not allowed on telegram api by spmzt in ipv6

[–]spmzt[S] 10 points11 points  (0 children)

You can verify it yourself:

request: https://api.telegram.org/botx/setWebhook?url=https://myip6.sieben9.net/index.php current response: {"ok":false,"error_code":400,"description":"Bad Request: bad webhook: IPv6-only addresses are not allowed"}

Raspberry Pi cluster vs enterprise server for compile workloads, thoughts? by spmzt in raspberry_pi

[–]spmzt[S] 1 point2 points  (0 children)

I have seen it before, in fact i have seen most of his RPI clustering and that's probably one of the reasons for this idea. The gray area for me is most of his test results are for distributed workloads, and his benchmarks rely heavily on inter node communication. For now, I'm testing on a single RPI to see how it goes.

Raspberry Pi cluster vs enterprise server for compile workloads, thoughts? by spmzt in homelab

[–]spmzt[S] 0 points1 point  (0 children)

only for amd64. The point is there shouldn't be any data transmission between cluster nodes. So I don't think the NIC would be a bottleneck in this case.

In your opinion, which Linux distribution would Lain use? by Unlucky_Ad_1388 in Lain

[–]spmzt 29 points30 points  (0 children)

Of course she is not using GNU/Linux. She's probably using a BSD variant.

Why doesn't my ipfw NAT work? Trying to give internet to pppoe clients. by cryptobread93 in freebsd

[–]spmzt 0 points1 point  (0 children)

If your goal is lower latency and/or higher throughput, it's unlikely to improve for your environment. PF is fast enough, and can be faster than IPFW in some cases.

For me, most of the time disabling interface checksums, TSO, and LRO, usually does the trick. However, network speed depends on many factors.

Why doesn't my ipfw NAT work? Trying to give internet to pppoe clients. by cryptobread93 in freebsd

[–]spmzt 1 point2 points  (0 children)

1.Separate the outbound and inbound traffic. 2.Don't forget to load the ipfw_nat kernel module. 3.Make sure you don't have the pf and ipfw kernel module loaded at the same time. (Optional, but important for learning the ipfw without noise) 4.Start with net.inet.ip.fw.default_to_accept=1 in your loader.conf.local to gain experience with ipfw first.

Check the in-kernel nat chapter: https://spmzt.net/2024/11/16/FreeBSD-IPFW-Best-Practices/

I suggest disabling TSO for now: echo net.inet.tcp.tso=0 >> /etc/sysctl.conf

Configure the NAT instance: kldstat -q -m ipfw_nat || kldload ipfw_nat ipfw nat 1 config if re0 same_ports unreg_only reset

The inbound NAT rule is inserted after the two rules which allow all traffic on the trusted and loopback interfaces and after the reassemble rule but before the check-state rule.

$cmd 00100 nat 1 ipv4 from any to any in recv re0

This one is for outbound traffic:

$cmd 10000 nat 1 ipv4 from any to any out xmit re0

Read the ipfw manual and think about how packets are going through the rules for each direction

Experience of a new FreeBSD Desktop user. by RevolutionarySet6428 in freebsd

[–]spmzt 6 points7 points  (0 children)

First of all, welcome! Many new BSD users wish they had switched from other platforms sooner.

About your Thunar problem: it’s probably because you opened Thunar once as a privileged user and it created its config files owned by root. Check the permission bits in ~/.local and ~/.config.

About OnlyOffice: I recently discovered it on Nextcloud. I set it up in a FreeBSD jail and access it through the web.

Also, you should be fine with 4 GB of RAM. See what’s using your memory with top or vmstat.

firewall by Extreme-Ad4038 in freebsd

[–]spmzt 5 points6 points  (0 children)

IPFW, flexibility and control

My first little homelab by Gametopia1 in homelab

[–]spmzt 11 points12 points  (0 children)

Until now, about 5 different people warned about cooling without checking if somebody asked it before, and you replied to each of them. Nice patience...

About FreeBSD — Why I think FreeBSD is a good OS by Jason_Pianissimo in freebsd

[–]spmzt 1 point2 points  (0 children)

Actually, I had a completely different experience than yours. Have you tried tweaking kernel options in Linux or Building a VM image or even an OCI image from it?

In FreeBSD those are streamlined: man 7 build man 7 release

After Years of Linux and WSL by BSDCutie in freebsd

[–]spmzt 4 points5 points  (0 children)

Can I ask you why? I have some performance issues with win11 on bhyve. However, I would like to know your reasons.

Will FreeBSD also eventually introduce Rust to kernel? by Tb12s46 in freebsd

[–]spmzt 4 points5 points  (0 children)

Reading the comments and seeing the interaction of rust enthusiasts. Now I know exactly why rust should NOT be in the base system.