Post thumbnail of Persistent Naming of a Block Device in Linux
18 April 2011
Continue reading Persistent Naming of a Block Device in Linux

Persistent Naming of a Block Device in Linux

Persistent naming of devices is important for instances such as booting where a particular hardware device needs to get mapped to the same name each time. To get the UUID of a block device, use scsi_id. To get the UUID of a file system for something like grub.conf, try blkid.

Post thumbnail of Custom udev rules and external program debugging
27 May 2010
Continue reading Custom udev rules and external program debugging

Custom udev rules and external program debugging

In udev rules, the %k, %b, %n variables are nice and all, but you can also use the variables you’re comparing and setting such as ID_FS_TYPE, KERNEL, SUBSYSTEM, PHYSDEVPATH, etc. When you run a command in a udev rule, there’s nothing stopping you from calling a shell and executing a few commands without actually calling a standalone script to do the dirty work. If you write out the array of environment variables from inside an external program, you can get a better understanding of just which part of the device discovery is matching your rule and getting processed.

Post thumbnail of Enable ethernet bridging through your firewall using iptables or sysctl.conf
23 November 2009
Continue reading Enable ethernet bridging through your firewall using iptables or sysctl.conf

Enable ethernet bridging through your firewall using iptables or sysctl.conf

Which is better? Which is faster? For a desktop system, I don’t think it really matters if you have to process a bunch of rules. How many can there be, and how much network traffic are you seeing anyway? It’s probably more efficient to modify your sysctl.conf, but it seems more organized to do it all with iptables.

Powered by Wordpress   |   Lunated designed by ZenVerse