VLAN Setup on Ubuntu 12.04

Ran into a situation recently where I needed to set up provider_vlan within OpenStack as well as configure the VLANs on the underlying hosts. This being the first time I’ve done this in Ubuntu it needs to be written down: apt-get update && apt-get install -y vlan modprobe 8021q vconfig add bond0 100 vconfig add[…]

DD with Progress Bar

Had to do some ISO to USB image making today. Besides being slow going, there was nothing that indicated how much time I had left to get a coffee. Without further adieu: (pv -n ./startfile.iso | dd of=/output.file) 2>&1 | dialog –gauge “Running dd please wait…” 10 70 0 That will produce something like this:[…]

Ubuntu 12.04, DNS, and Static IPs

Having stumbled on the new /etc/resolv.conf methods of Ubuntu 12.04 a number of times, I hope this is useful for you as well. The contents of /etc/resolv.conf in Ubuntu are now controlled by “dns-nameservers #.#.#.#” in your /etc/network/interfaces file, like this: # The primary network interfaceauto eth0iface eth0 inet static    address 10.0.191.100    netmask 255.255.255.0    network[…]