Advanced SLES 9 Administration: Installation, Network Services, and Server Hardening

Installation, Storage Partitioning, and Initial Configuration of SLES 9
  • Installation Media and Boot Options

    • Booting from CD/DVD presents options: Boot from Hard Disk, Installation, Installation - ACPI Disabled, Installation - Safe Settings, Manual Installation, Rescue System, and Memory Test.

    • Function keys control setup: F1 (Help), F2 (Display resolution, e.g., 1024×7681024 \times 768), F3 (Media source), F4 (Language), F5 (Output verbosity), and F6 (Driver update disk).

  • YaST Base Installation Workflow

    • Select system language and choose an installation mode (New installation, Update, Repair, or Boot installed system).

    • YaST generates an editable proposal covering System specs, Mode, Keyboard layout, Mouse, Partitioning, Software selection, Booting, and Time zone.

  • Partitioning Fundamentals and Guidelines

    • Partition Types: Disks support up to 4 primary partitions (or 3 primary and 1 extended holding multiple logical partitions).

    • Requirements & Sizing: Requires a swap and a root (/) partition. Recommended root sizes: 500 MB500\,MB (minimal), 700 MB700\,MB (minimal GUI), 1.5 GB1.5\,GB (default YaST), and 2.5 GB2.5\,GB (full).

    • Server Tailoring: File servers dedicate storage to shares; Web servers isolate web space; Compute servers spread multiple swap partitions across drives; Workstations isolate /home.

  • YaST Expert Partitioner and Storage Architectures

    • Filesystems: Supports Ext2, Ext3, ReiserFS, XFS, JFS, FAT, and Swap.

    • LVM: Groups Physical Volumes into a Volume Group (default name system, PE size 4 MB4\,MB) to allocate resizable Logical Volumes dynamically.

    • EVMS & RAID: EVMS treats volume groups as containers (transitioned to LVM). Software RAID natively supports levels 0, 1, and 5.

  • Software Selection and Bootloader (GRUB)

    • Software is organized into patterns (Minimal, Minimal Graphical, Default, Full) resolved via RPM packages and dependencies.

    • GRUB configures loader type, disk order, default/alternate kernel sections, and MBR settings. Installation takes 1515 to 45 minutes45\text{ minutes}.

  • Post-Installation Configuration

    • Configures the root superuser account and network drivers (written to /etc/modprobe.conf).

    • Supports local (/etc/passwd), NIS, and LDAP authentication schemes.

    • Hardware display configuration (resolution, color depth, multihead) is managed via SaX2.

  • Troubleshooting Common Issues

    • Media boot failure: Correct BIOS boot order or verify disk integrity.

    • Installer fails/hangs: Boot with ACPI disabled or Safe Settings; ensure at least 256 MB256\,MB RAM.

    • Display fails post-install: Switch to virtual console (Ctrl+Alt+F1), enter runlevel 3 (init 3), run sax2, and return to runlevel 5 (init 5).

Manual Network Device and Routing Configuration
  • **Network Inspection and Configuration via *ip*

    • View configurations with ip address show and interface link states with ip link show.

    • Performance metrics (errors, drops, collisions) are viewed via ip -s link show eth0.

    • Non-persistent updates: Assign IP addresses using ip address add <IP/prefix> dev <interface> and toggle states using ip link set <interface> up/down.

  • Persistent Interface and Route Management

    • Device configurations persist in /etc/sysconfig/network/ as ifcfg-eth-id-<MAC> files (defining BOOTPROTO='static' or 'dhcp').

    • Apply interface changes on demand with ifup <interface> and ifdown <interface>.

    • Routing tables are displayed using ip route show and configured persistently in /etc/sysconfig/network/routes.

  • Hostname, DNS Resolution, and Diagnostics

    • System FQDN is defined in /etc/HOSTNAME.

    • Resolver servers and search domains are configured in /etc/resolv.conf, while lookup sequence across files, NIS, and DNS is managed by /etc/nsswitch.conf.

    • Connection reachability and latency are validated using ping (options: -c count, -i interval, -f flood) and traceroute (packet path hop analysis via incremental TTL).

Enterprise Network Services Configuration
  • DNS Architecture and Server Types

    • Structured as an inverted tree starting at the root (.), cascading to TLDs, second-level domains, and hostnames.

    • Server Roles: Master (authoritative local database files), Slave (replicates master via zone transfers and NOTIFY updates), Caching-only (queries recursively and caches responses), and Forwarding (delegates lookups upstream).

  • BIND 9 Service Administration

    • Service managed using rcnamed {start|stop|restart} and enabled at boot with insserv named.

    • Main configuration file is /etc/named.conf; master zone files reside in /var/lib/named/master/.

    • Common resource records: SOA (authority/timers), NS (name servers), A (IPv4 address), PTR (reverse mapping), CNAME (aliases), and MX (mail exchange priority).

    • Client queries are executed via host or dig.

  • Apache HTTP Server

    • Managed via rcapache2 service scripts and validated with apache2ctl configtest.

    • Default DocumentRoot is located at /srv/www/htdocs/.

    • Configuration hierarchy under /etc/apache2/ uses default-server.conf for global settings and vhosts.d/*.conf for virtual host declarations.

    • Provides client access restrictions based on IP (allow/deny), basic user authentication (htpasswd2), and SSL/TLS transport encryption.