Linux

Configuration Management Tools

 * History of Dev Ops practices on Linux Journal


 * Critique of some tools


 * Ansible
 * ssh


 * Salt
 * Python


 * Puppet
 * Ruby


 * Chef


 * CFengine


 * KickStart

Forcing reboot
Based on http://major.io/2009/01/29/linux-emergency-reboot-or-shutdown-with-magic-commands/

echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger

HAProxy routing by domain name

 * 

Ubuntu 12.04

 * composite manager and compiz

Section "Screen" Identifier    "Default Screen" DefaultDepth  24 SubSection "Display" Viewport  0 0 Virtual  1920 1968 Depth    24 EndSubSection EndSection
 * Install ATI fglrx driver
 * Install proprietary driver via Ubuntu GUI
 * Update /etc/X11/xconf to change viewport

Section "Module" Load "glx" EndSection


 * enabling global menu for gvim
 * Multiple Workspaces by installing Tweak Ubuntu

Openstack cloud platform on Ubuntu Linux 12.04

 * http://www.hastexo.com/resources/docs/installing-openstack-essex-20121-ubuntu-1204-precise-pangolin

RAID on Linux
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdb1 missing mdadm -C /dev/md1 --level=raid1 --raid-devices=2 /dev/xvdc /dev/xvdd mdadm --detail --scan >> /etc/mdadm/mdadm.conf
 * make sure there is one and only one line of RAID config in /etc/mdadm/mdadm.conf, otherwise the system will not reboot.


 * To stop raid, you must stop the underlying LVM lv and vg:

lvchange -an /dev/{vgname}/{lvname} vgchange -an /dev/{vgname} mdadm -S /dev/md0


 * Resize a /dev/mdX partition

mdadm --grow /dev/md1 --size=max


 * Resize a PV

pvresize /dev/md1

mdadm --assemble /dev/md0 mdadm /dev/md0 --run mdadm --add /dev/md0 /dev/xvdg mdadm --detail --scan >> /etc/mdadm/mdadm.conf
 * Assembling a RAID array from a snapshot on amazon EC2

Evolution and Exchange 2010
http://www.petenetlive.com/KB/Article/0000378.htm

Open source vector software on Linux

 * Inkscape vs Illustrator
 * http://www.onextrapixel.com/2011/03/15/10-best-alternatives-to-adobe-illustrator/

SSD and Linux LVM
--Zhangguiyu (talk) 07:06, 21 November 2012 (UTC)

$ lsblk -D

Look for the line that has your drive, then look below that to the LVM name. If you see "0B" in both the DISC-GRAN and DISC-MAX columns then discard is not passing through to the LVM partition. If you see something besides 0B then discard is enabled.

--Zhangguiyu (talk) 05:55, 28 June 2012 (UTC)
 * DO NOT USE entire disk (/dev/sda) as PV, you must create a partition (/dev/sda1) aligned properly on 512MiB, otherwise grub-install and grub-setup will fail.
 * However, if you use /dev/md0 (RAID), then it is ok to use the entire /dev/md0 as a PV, grub understands that.
 * Alignment Tips for SSD (which I used)
 * [http://java-hamster.blogspot.sg/2012/04/aligning-partitions-lvm-and-encrypted.html More tips

moving away from a broken PV
http://ds9a.nl/lvm-howto/HOWTO/cvs/lvm-howto/output/lvm-howto-6.html

Open Source Router

 * Open Source Router Firmware DD-WRT
 * Buffalo WZR-HP-AG300H
 * supported devices WZR-HP-AG300H 	v1 	FDI-09101592 	Atheros AR7161@680 	128 	32 	Atheros AR9220 + AR9223 	a/b/g/n 	- 	1 	1 	4 LAN 1 WAN (Gb) 	12V 2A 	1 USB 2.0, 1000 BaseT (Gb) switch 	v24sp2 - build ? 	-
 * another open source firmware
 * Using WD Cavier Green Drives under Linux (disable park/8 sec)

Misc

 * Using you wired ethernet connected ubuntu notebook as a Wifi-AP
 * Original instructions
 * Discussion
 * Note that you need to install a dhcp server *and* configure it as mentioned in the discussion above sudo apt-get install isc-dhcp-server


 * Nagios on RAM disks
 * Nvdia's CUDA architecture


 * Adding CUDA to normal linux software
 * running CUDA under linux