Open main menu

CDOT Wiki β

Changes

Linux System Administration for Programmers

690 bytes added, 16:04, 18 February 2015
no edit summary
{{Chris Tyler Draft}}
This is a topic outline for teaching a future the upcoming "System Administration for Programmers" session.
Basics:* Assume a RHEL/CentOS/Fedora context == Screen Bash (or, "How to Start a Build at the End To Save Hours of Your Life on the DayCommand Line") ==
* GNU [[Screen]] commandBash tips 'n' tricks** Command editing*** ^Right, ^Left, Home, ^A, End, ^E, ^T*** Esc-BS, Ctl-W*** Esc-_** Command searching*** ^R*** !** Tab completion*** Non-file tab completion** Prompts** Aliases** cd shortcuts: using - and ~** Startup Scripts - .bashrc, .profile, etc** Environment Variables - especially PATH* One-Line Scripting** Common optionsLooping on the command line
== SSH (or, "Remote Access made Easy and Secure") ==
** Preventing direct root login
== LVM Screen (or, "How to Start a Build at the End of the Day") ==
* Using LVM for storage management (or, "Why Running out of Disk Space is No Big Deal")GNU [[Screen]] command** Concepts: PVs, VGs, LVs** <code>pvs, vgs, lvs</code>** <code>vgextend</code>** <code>lvextend -r</code>** <code>pvmove</code>Common options
== Bash == * Bash tips 'n' tricks** Aliases** cd shortcuts: using - X11 (or, "Why the Linux GUI Rocks and ~** Command editing*** ^Right, ^Left, Home, ^A, End, ^E, ^T*** Esc-BS, Ctl-W*** Esc-_** Command searching*** ^R*** !** Tab completion** Prompts == X11 No One Knows") ==
* Remote access
* Clipboard vs. Selection
* Fast-paste (middle mouse)
* Composed desktops
* Virtual desktops
== Using Root (or, "No Power in the 'Verse Can Stop Me") ==
* Via sudo
* Dangers
== Services ==* Systemd** enable and disable** start and stop** status** isolate** set default == Firewalls ==* firewalld* iptables == Networking ==* ip vs. ifconfig== Installing and Removing Software (or, "That Software is only a Yum Away") ==
On an RPM-based system
* repoquery basics (?)
* apt-get basics (As needed)
 
== LVM (or, "Why Running out of Disk Space is No Big Deal" or "Snapshots, Volumes, and Disk Errors, Oh My!") ==
 
* Using LVM for storage management
** Why?
** Concepts: PVs, VGs, LVs
** <code>pvs, vgs, lvs</code>
** <code>vgextend</code>
** <code>lvextend -r</code>
** <code>pvmove</code>
** LV snapshots