cheatsheet

Unorganized commands and snippets that i came across and i don’t want to forget.

December 12, 2023 · 1 min · 88 words · Diogo Fernandes

Enable ping on rootless containers

When you run the ping command inside a container it returns Operation not permitted. root@debian:/# ping example.com bash: /usr/bin/ping: Operation not permitted You “must verify that the UID of the user is part of the range in the /proc/sys/net/ipv4/ping_group_range file.” “To change its value the administrator can use a call similar to: sysctl -w "net.ipv4.ping_group_range=0 1000".” Then, if ping its not yet available, you need to add NET_RAW capability to the container:...

December 12, 2023 · 1 min · 143 words · Diogo Fernandes

python

Python commands and snippets that i came across and i don’t want to forget.

December 12, 2023 · 1 min · 71 words · Diogo Fernandes

hello world!

hlab.pt Hosted on Raspberry Pi 4.

December 12, 2023 · 1 min · 6 words · Diogo Fernandes