User Tools

Site Tools


computing:linux:minimal_centos_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:linux:minimal_centos_install [2014/05/10 14:59]
gcooper
— (current)
Line 1: Line 1:
-====== Minimal CentOS Install ====== 
- 
-See also **[[networking:linux:static_ip_addr|Static IP Address]]** 
- 
-This is generally for slim server installations. 
- 
-===== Centos 6 ===== 
- 
-Release Notes: http://wiki.centos.org/Manuals/ReleaseNotes/ 
- 
-==== Netinstall ==== 
- 
-:!: Use netinstall method for Xen paravirtualized installs. 
- 
-Netinstall URLs: 
- 
-<file> 
-http://mirrors.easynews.com/linux/centos/6/os/i386/ 
- 
-http://mirrors.easynews.com/linux/centos/6/os/x86_64/ 
-</file> 
- 
-ISOs: 
- 
-<file> 
-http://mirrors.easynews.com/linux/centos/6/isos/ 
-</file> 
- 
-==== Installation ==== 
- 
-  * Use netinstall or CD#1 
-  * Use text-mode installer 
-  * De-select all packages 
-     * Hold down ''-'' key 
-  * Select "customize package selection" 
-  * De-select all packages 
-     * Hold down ''-'' key 
- 
-Install some important packages after the install: 
- 
-<file> 
-yum install openssh-server perl crontabs vixie-cron which wget vim-enhanced bind-utils \ 
-setuptool system-config-network-tui system-config-firewall-tui system-config-securitylevel-tui 
-</file> 
- 
-Enable the ''cron'' daemon: 
- 
-<file> 
-chkconfig crond on 
-service crond start 
-</file> 
- 
-Update and reboot the new system: 
- 
-<file> 
-yum update -y 
-reboot 
-</file> 
- 
-===== CentOS 5 ===== 
- 
-:!: Important note: During a netinstall of the latest Centos 5.9, these instructions don't install ''yum'' BE SURE TO SELECT YUM TO BE INSTALLED. 
- 
-:!: Also consider selecting ''openssh-server'', especially if you are installing remotely. 
- 
-http://www.owlriver.com/tips/tiny-centos/ 
- 
-http://codeghar.wordpress.com/2007/11/28/centos-5-post-install-customization/ 
- 
-  - Boot to CD 1 
-  - Type in "linux text" to get the text installation setup 
-  - Proceed normally with the installation until it asks which packages to install 
-  - Deselect all of the packages and then click on the "customize package selection" check box 
-  - Hold down the "-" key, which scrolls through all of the package options, and deselects them all 
-  - Finish the install 
-  - Do a "yum update" to get latest 
-  - Do a "yum install <package>" for what ever packages needed but not installed during installation. 
- 
-Install some important packages after the install (adjust as necessary): 
- 
-<file> 
-yum install openssh-server perl crontabs vixie-cron wget which vim-enhanced bind-utils 
-chkconfig crond on 
-service crond start 
-</file> 
- 
-=== Minimizing After the Fact === 
- 
-<file> 
-echo "Administration Tools 
-Authoring and Publishing 
-Beagle 
-Cluster Storage 
-Clustering 
-Development Libraries 
-Development Tools 
-Emacs 
-Engineering and Scientific 
-FreeNX and NX 
-GNOME Desktop Environment 
-GNOME Software Development 
-Games and Entertainment 
-Graphical Internet 
-Graphics 
-Horde 
-Java 
-Java Development 
-KDE (K Desktop Environment) 
-KDE Software Development 
-KVM 
-Legacy Software Development 
-Legacy Software Support 
-Mono 
-Office/Productivity 
-OpenFabrics Enterprise Distribution 
-PostgreSQL Database 
-Printing Support 
-Ruby 
-Sound and Video 
-Tomboy 
-Windows File Server 
-X Software Development 
-X Window System 
-XFCE-4.4" | while read group; do yum -y groupremove "$group"; done 
- 
-pkg="xorg-x11-libs xorg-x11-Mesa-libGL libtiff up2date system-config-mouse bind-utils \ 
-bind-libs ypbind yp-tools htmlview pinfo ppp rp-pppoe wvdial redhat-lsb mdadm portmap \ 
-nfs-utils irda-utils isdn4k-utils pcmcia-cs NetworkManager pam_smb dos2unix samba-common \ 
-ghostscript system-config-printer xorg-x11-xfs xorg-x11-font-utils VFlib2 urw-fonts \ 
-ghostscript-fonts hpijs chkfontpath samba-client ghostscript-fonts libgnomeui \ 
-startup-notification libwnck libbonoboui gnome-python2 usermode-gtk qt arts kdelibs gd pango \ 
-gtk2 xorg-x11-xauth system-config-samba system-config-nfs system-config-services \ 
-system-config-users system-logviewer system-config-date  system-config-printer-gui samba \ 
-gnome-python2-bonobo gnome-python2-canvas gnome-python2-gtkhtml2 system-config-httpd \ 
-system-config-network system-config-packages system-config-lvm tora webalizer libglade2 pygtk2 \ 
-GConf2 gnome-keyring libgnomecanvas gail gtkhtml2 gnome-python2-bonobo gnome-python2-canvas \ 
-gnome-python2-gtkhtml2 pygtk2-libglade system-config-securitylevel system-config-language \ 
-system-config-rootpassword system-config-soundcard gnome-vfs2 libgnome authconfig-gtk \ 
-firstboot gnome-mount gnome-python2-gnomevfs  system-config-display  pirut setroubleshoot \ 
-system-config-kdump gnome-mount metacity notification-daemon gnome-python2-gconf \ 
-gnome-python2-gnomevfs bluez-gnome bluez-utils sabayon notify-python libnotify \ 
-system-config-keyboard gtk2-engines xsri cups-libs xorg-x11-fonts-base gnome-python2-extras \ 
-paps redhat-artwork cups xorg-x11-server-Xnest xorg-x11-server-Xorg sabayon-apply \ 
-xorg-x11-drv-void xorg-x11-drv-evdev xorg-x11-drv-keyboard xorg-x11-drv-vesa rhpxl \ 
-xorg-x11-drv-mouse Deployment_Guide-en-US" 
- 
-for x in $pkg; do yum remove -y $x; done 
- 
-yum clean all 
-</file> 
- 
-===== Securing ===== 
- 
-http://bkraft.fr/articles/Securing_CentOS_6_installation/ 
- 
-==== Enable EPEL Repo ==== 
- 
-[[computing:linux:epel|Enable the EPEL Repo]], if not already done. 
- 
-==== Unneeded Services ==== 
- 
-You can use a command similar to this to remove unnecessary services.  This may increase security and performance. 
- 
-<file> 
-for i in rpcbind nfslock lldpad fcoe rpcidmapd; do service $i stop; chkconfig $i off; done 
-</file> 
- 
-==== Fail2Ban ==== 
- 
-**[[networking:linux:fail2ban|Fail2Ban]]** is a tool to monitor log files and take action against attackers.  It uses IPtables firewall commands to block access. 
- 
  
computing/linux/minimal_centos_install.1399755559.txt.gz · Last modified: 2014/05/10 14:59 by gcooper