1 / 8

Basics of Initial CentOS /RHEL 6.x Server Configuration

Basics of Initial CentOS /RHEL 6.x Server Configuration. Warren Myers BGLUG 4 Aug 2014. Create a Server. Digital Ocean Sign in/up (http://bit.ly/ 1ukcuUK) Create Droplet (VM) VirtualBox Create new VM Mount OS ISO Boot and install. First Steps Post Build. Turn off unnecessary services

bena
Download Presentation

Basics of Initial CentOS /RHEL 6.x Server Configuration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basics of Initial CentOS/RHEL 6.x Server Configuration Warren Myers BGLUG 4 Aug 2014

  2. Create a Server • Digital Ocean • Sign in/up (http://bit.ly/1ukcuUK) • Create Droplet (VM) • VirtualBox • Create new VM • Mount OS ISO • Boot and install

  3. First Steps Post Build • Turn off unnecessary services • chkconfig --list | grep ‘:on’ • chkconfig <servicename> off • Install any updated packages • yum -y upgrade • Basic sanity on ssh • Create a new user • Give user sudo privileges • visudo • Enable wheel group • Add user to wheel • Disallow password authentication for root

  4. Second Steps Post Build • Add swap (if you didn’t during install) • Do you “need” swap? • Yes! • No! • Maybe! • Partition or swapfile? • As root • dd if=/dev/zero of=/swapfilebs=8096 count=524288 • mkswap /swapfile • swapon /swapfile • Add to /etc/fstab • /swapfile swap swap defaults 0 0

  5. Third Steps Post Build • User management • Configure postfix (or exim or …) • Install apps/services you want/need • Apache/Nginx • PHP • ftp • ftp access should be highly limited • Install helpful utilities • yum -y install screen emacs

  6. What About RHEL/CentOS 7? • Pros • Kernel now on 3.x series • Better virtualization support • Lots of updated packages • Cons • chkconfig doesn’t manage most services • Seemingly-small changes bigger than in previous version upgrades

  7. What About My Favorite Distro? • Ubuntu / Debian / Mint • Configs similar • Uses update-rc.d instead of chkconfig • Mint isn’t a server distro! • Slackware • Many configs similar • No standard tool like chkconfig • SuSE • Configs similar-ish … but more “European” • Also uses chkconfig • Everything else (Arch, *BSD, etc) • <shrug/>

  8. What About Desktops/Workstations?

More Related