ServerSetupFedora22: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<pre> | = Immediate post install steps = | ||
# <pre>sudo yum install etckeeper fail2ban</pre> | |||
</pre> | |||
# Disable root login via ssh | # Disable root login via ssh | ||
## Add TCP22/0 to IPTables | ## Add TCP22/0 to IPTables | ||
# Enable sudo | # Enable sudo | ||
# yum remove unneeded software | # yum remove unneeded software | ||
# yum update | # yum update | ||
Line 17: | Line 9: | ||
# Extend days of sysstat logging | # Extend days of sysstat logging | ||
= Install rest of software = | |||
<pre> | |||
# yum install man screen wget strace rsync mailx mutt fdupes sendmail-cf logwatch \ | |||
OpenIPMI ipmitool sysstat clamav clamav-update nfs-utils iscsi-initiator-utils samba openvpn \ | |||
mod_auth_pam mod_auth_shadow php-pecl-apc phpMyAdmin \ | |||
lm_sensors hddtemp smartmontools apcupsd apcupsd-cgi | |||
# java-1.6.0-openjdk.x86_64 nss-mdns | |||
</pre> | |||
= Configure system, monitoring, mail, AV, and VPN = | |||
# Configure GRUB serial console redirection | # Configure GRUB serial console redirection | ||
# Configure kdump for system panics | # Configure kdump for system panics | ||
Line 36: | Line 37: | ||
# Configure OpenVPN | # Configure OpenVPN | ||
= Configure RAID and filesharing = | |||
# Mount raid array | # Mount raid array | ||
# Configure md alerts | # Configure md alerts | ||
Line 50: | Line 51: | ||
= Setup cron jobs = | |||
# Keep anacron from waking me up at night! | |||
<pre># vi /etc/anacrontab // START_HOURS_RANGE</pre> | |||
= Configure Web Services = | |||
# Configure MythTV / MythWeb | # Configure MythTV / MythWeb | ||
## Add TCP443/0 to IPTables | ## Add TCP443/0 to IPTables | ||
Line 59: | Line 61: | ||
# Configure DrewWiki / WebDAV | # Configure DrewWiki / WebDAV | ||
= Completing / Wrap-up = | |||
# Verify all log files in /var/log are not giving any errors or notifications | # Verify all log files in /var/log are not giving any errors or notifications | ||
# Check logs for whats growing! <pre># ls -alR /var/log | grep ^- | awk {'print $5" "$8'} | sort -k 2| sort -n</pre> | # Check logs for whats growing! <pre># ls -alR /var/log | grep ^- | awk {'print $5" "$8'} | sort -k 2| sort -n</pre> | ||
# Create MondoRescue restore image | # Create MondoRescue restore image | ||
Revision as of 12:34, 9 January 2013
Immediate post install steps
sudo yum install etckeeper fail2ban
- Disable root login via ssh
- Add TCP22/0 to IPTables
- Enable sudo
- yum remove unneeded software
- yum update
- Enable SElinux
- Extend days of sysstat logging
Install rest of software
# yum install man screen wget strace rsync mailx mutt fdupes sendmail-cf logwatch \ OpenIPMI ipmitool sysstat clamav clamav-update nfs-utils iscsi-initiator-utils samba openvpn \ mod_auth_pam mod_auth_shadow php-pecl-apc phpMyAdmin \ lm_sensors hddtemp smartmontools apcupsd apcupsd-cgi # java-1.6.0-openjdk.x86_64 nss-mdns
Configure system, monitoring, mail, AV, and VPN
- Configure GRUB serial console redirection
- Configure kdump for system panics
- Configure lm-sensors, hddtemp, and SMARTmon for temperature alerts.
- Configure apcupsd for UPS alerts
- Configure Time Server for local network access
- Add UDP123/24 to IPTables
- Configure rsyslog for network clients
- Add UDP514/24 to IPTables
- Setup mail relay
- Remove 127.0.0.1 /etc/mail/sendmail.mc
# echo drew > /root/.forward; echo "andrew: drew" >> /etc/aliases; newaliases; echo "root: drew" >> /etc/aliases; newaliases
- Add TCP25/0 to IPTables
- Configure smartd/hddtemp for disk monitoring
- ^ Configure thermal alerts for server
- Configure logwatch
- Setup clamav virus protection for Samba and weekly scan
- Configure OpenVPN
Configure RAID and filesharing
- Mount raid array
- Configure md alerts
- Enable NFS
- Add TCP2049/24 to IPTables
- Disable NFSv2/3 /etc/sysconfig/nfs
- Enable samba
- Add TCP139,445/24 to IPTables
# chkconfig smb on; chkconfig nmb on;
- Enable iSCSI
- Add TCP3260/24
- ^ Configure bacula and web interface
Setup cron jobs
- Keep anacron from waking me up at night!
# vi /etc/anacrontab // START_HOURS_RANGE
Configure Web Services
- Configure MythTV / MythWeb
- Add TCP443/0 to IPTables
- Configure mod_auth_pam / mod_auth_shadow / pecl-php-apc / phpMyAdmin
- Configure DrewWiki / WebDAV
Completing / Wrap-up
- Verify all log files in /var/log are not giving any errors or notifications
- Check logs for whats growing!
# ls -alR /var/log | grep ^- | awk {'print $5" "$8'} | sort -k 2| sort -n
- Create MondoRescue restore image