Debian Apt Cheatsheet

Tags:

Download and build source package apt-get -b source
Download and install dependencies for source package apt-get build-dep
Download source package apt-get source
Install package "on demand" auto-apt run
List contents of a package apt-file list
List installed packages dpkg -l
Remove package and configuration files apt-get --purge remove
Search for Debian Packages http://www.debian.org/distrib/packages
Search for packages apt-cache search
Show package dependencies apt-cache depends
Show package information apt-cache show
Show package that supplies a given file apt-file search
Show package that supplies a given file COLUMNS=132 dpkg -S
Show source package information apt-cache showsrc
Update `apt-file and auto-apt database apt-file update

Heartbeat 2 cheatsheet

Tags:

Commands

List cluster resources. crm_resource -L
Dump cluster configuration as xml to stdout. cibadmin -Q
Place node in standby (maintenance mode). Technically this is adding the standby property. crm_standby -U -v true
Place local node in standby. crm_standby -v true
Place node online or remove the standby property. crm_standby -D -U
Place local node online or remove standby property. crm_standby -D
View cluster status. One time to stdout. crm_mon -1
View cluster status. Refresh every 3s. crm_mon -i3
One line simple output. crm_mon -s
Show inactive resources. crm_mon -r
Stop resource. crm_resource -r -p target_role -v stopped
Start resource. crm_resource -r -p target_role -v started
Clear failed resource. crm_resource -C -H -r
Query running cluster for current state (STDOUT). cibadmin -Q --obj_type resources

Choosing a host naming convention

Tags:

Hello, my name is Dns

Whether realizing it or not every organization goes through the process of selecting a naming convention. Often this is done without much forward planing resulting in unwieldy host and service names. In the worst cases host names are dropped completely and either by habit or lack of a proper DNS service only ip addresses are used.

Continue reading Choosing a host naming convention...