Tag: linux
-
Temporary mounting zpool from different OS
In case you have different zfs instances, and you need to read one from another, but without altering its metadata. It can be done like this (assuming that other zpool is named “zroot”): # make sure that /zroot exists, following command will mount# all but /ROOT/defaultzpool import -o readonly=on -f -R /zroot zroot# zroot/ROOT/default might…
-
Syslog message routing on Linux
Create new file (if needed) in /etc/rsyslog.d (file’s name should end in .conf). Make sure to add following line to it: if $programname == ‘PROGRAM_NAME’ then /var/log/debug.log if you don’t want this message to go anywhere else, add “& stop” in a separate line after it. If messages go to custom file, don’t forget to…
-
Basic linux firewall configuration (iptables)
Linux firewall divides all traffic into 3 groups First two are obvious, third group I guess also covers nat and similar features. Traffic is controlled by adding accept or reject rules to appropriate group – compared to OpenBSD’s pf iptables seems to be missing tables (weird choice for name, he he), all rules seem to…
-
How to install deb file on linux
dpkg -i filename.deb