005 - post-instalación de centos 6

Upload: diego-alvarado

Post on 05-Nov-2015

215 views

Category:

Documents


0 download

DESCRIPTION

una Pre instalacion de Centos 6.0 adecuandolo a las necesidades especificas

TRANSCRIPT

  • Post-Instalacin de CentosACTUALIZACIN TOTAL DEL SISTEMA

    yum -y update

    DESACTIVANDO SELINUX EN CENTOS

    vim /etc/selinux/config

    # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted

    GUARDANDO, DETENIENDO Y DESACTIVANDO FIREWALL CON IPTABLES

    service iptables saveservice iptables stopchkconfig iptables off

    service ip6tables saveservice ip6tables stopchkconfig ip6tables off

    DESACTIVANDO SERVICIOS INNECESARIOS

    service NetworkManager stopchkconfig NetworkManager off

    service postfix stopchkconfig postfix off

    service bluetooth stopchkconfig bluetooth off

  • service cups stopchkconfig cups off

    service nfslock stopchkconfig nfslock off

    INSTALANDO REPOSITORIOS OPCIONALES

    RPMFORGErpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

    rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

    EPELrpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

    REMIrpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

    IUSrpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm

    rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/i386/ius-release-1.0-13.ius.centos6.noarch.rpm

    EJEMPLOS DE INSTALACIN CON YUM, USANDO REPOS

    yum --enablerepo=remi install php-tcpdfyum --enablerepo=epel install filezillla

    CHEQUEANDO LISTAS DE REPOSITORIOS

    yum repolist

    CAMBIAR HORA Y FECHA DEL SISTEMA

    date --set "2007-05-27 17:27"

    CAMBIAR HORA Y FECHA DEL SISTEMA DEL BIOS

    hwclock --set --date="2007-05-27 17:27"hwclock --set --date="`date '+%D %H:%M:%S'`"

  • PROBARhwclock

    LOCALIZACIN

    Edite:vim /etc/sysconfig/i18n

    Busque LANG="es_ES.UTF-8":LANG="es_ES.UTF-8"

    Cambie LANG="es_ES.UTF-8" por LANG="es_PE.UTF-8":LANG="es_PE.UTF-8"

    Edite Grub:vim /boot/grub/menu.lst

    Cambie LANG=es_ES.UTF-8 por LANG=es_PE.UTF-8:

    grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/sda2# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenupassword --md5 $1$xU.tiAbo$5a88IZ2yKPvtdYG5ldAmi/title centos (2.6.32-279.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-279.el6.i686 ro root=UUID=09c6dc39-a62b-409e-8306-5344640cd104 rd_LVM_LV=Swap/LogVol00 rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=es_PE.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=la-latin1 crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-279.el6.i686.img

    Reinicie sistema para que surtan efecto los cambios:

    reboot

  • MODIFICANDO GRUB

    vim /boot/grub/menu.lst

    # grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/sda2# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=0timeout=60splashimage=(hd0,0)/grub/splash.xpm.gz#hiddenmenupassword --md5 $1$xU.tiAbo$5a88IZ2yKPvtdYG5ldAmi/title centos CURSO VIRTUAL (2.6.32-279.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-279.el6.i686 ro root=UUID=09c6dc39-a62b-409e-8306-5344640cd104 rd_LVM_LV=Swap/LogVol00 rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=es_ES.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=la-latin1 crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-279.el6.i686.img

    CAMBIANDO PLYMOUTH

    LISTANDO TEMAS

    plymouth-set-default-theme --list

    detailsfade-inringsscriptsolarspinfinitytext

    INSTALANDO Y ACTIVANDO EL TEMA SPINFINITYyum -y install plymouth-theme-spinfinity

    plymouth-set-default-theme spinfinity

    /usr/libexec/plymouth/plymouth-update-initrd

  • CAMBIAR RESOLUCION VGA EN GRUB

    vim /boot/grub/menu.lst

    # grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/sda2# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenupassword --md5 $1$xU.tiAbo$5a88IZ2yKPvtdYG5ldAmi/title centos (2.6.32-279.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-279.el6.i686 ro root=UUID=09c6dc39-a62b-409e-8306-5344640cd104 vga=0x317 rd_LVM_LV=Swap/LogVol00 rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=es_MX.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=la-latin1 crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-279.el6.i686.img

    Tipos de resoluciones: vga=0x315 (800x600) vga=0x317 (1024x768)vga= 0x344 (1280x1024)vga=0x36d (1440x900)vga=0x361 (1366x768)vga=0x34d (1600x900)x32vga= 0x792 (1024768)x240x360: 1366x768 (+1408), 8 bits0x361: 1366x768 (+2752), 16 bits0x362: 1366x768 (+5504), 24 bits0x363: 1600x900 (+1600), 8 bits0x364: 1600x900 (+3200), 16 bits0x365: 1600x900 (+6400), 24 bits0x366: 1920x1080 (+1920), 8 bits0x367: 1920x1080 (+3840), 16 bits0x368: 1920x1080 (+7680), 24 bits0x307: 1280x1024 (+1280), 8 bits0x31a: 1280x1024 (+2560), 16 bits0x31b: 1280x1024 (+5120), 24 bits0x305: 1024x768 (+1024), 8 bits0x317: 1024x768 (+2048), 16 bits0x318: 1024x768 (+4096), 24 bits0x314: 800x600 (+1600), 16 bits0x315: 800x600 (+3200), 24 bits0x303: 800x600 (+832), 8 bits

  • COMPLEMENTANDO UNA INSTALACIN MNIMA DE CENTOS 6yum -y install system-config-firewall-tui openssh-clients system-config-network-tui bind-utilsyum -y install policycoreutils-python selinux-policy-targeted selinux-policy-mls vim-enhanced wget yum -y install system-config-services system-config-date system-config-printer system-config-lvm yum -y install system-config-language system-config-keyboard cups-pk-helper policycoreutils-gui

    INSTALANDO GNOME EN UNA INSTALACIN MNIMA DE CENTOS 6yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" "GNOME Desktop Environment"

    yum -y groupinstall x11 basic-desktop general-desktop desktop-platform x11 fonts

    INSTALANDO MODO GRFICO XFCE

    yum groupinstall Xfce xorg-x11-fonts-Type1 xorg-x11-fonts-misc (con repo epel)

    startxfce4 (iniciando xfce)

    MULTIMEDIA CON CENTOS

    yum -y install compat-libstdc++-33 libdvdcss libdvdread libdvdplay libdvdnav lsdvd yum -y install libquicktime xvidcore svgalib mpg123 x264 libcdaudio lame libmpeg2 yum -y install flash-plugin gstreamer-ffmpeg libvdpau gstreamer-plugins-bad ffmpeg-libsyum -y install gstreamer-plugins-ugly gstreamer gstreamer-plugins-base libcaca yum -y install gstreamer-plugins-good gstreamer-plugins-bad-free esound-libs twolameyum -y install gstreamer-plugins-bad gstreamer-ffmpeg libmodplug mjpegtools

    INSTALANDO MPLAYERyum -y install mplayer

    INSTALANDO CODECS PARA MPLAYER EN CENTOS 6

    32BITS rpm -ivh www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpmrpm -ivh www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm

    64BITSrpm -ivh http://www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.x86_64.rpmrpm -ivh http://www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.x86_64.rpm

  • INSTALANDO VLC

    cd /etc/yum.repos.d/wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repoyum list *vlc*yum --enablerepo=linuxtech-release install *vlc*

    Editar el archivo /usr/bin/vlc

    vim /usr/bin/vlc

    Buscar geteuid y reemplazarla por getppid

    INSTALANDO ADOBE FLASH PLAYER

    Instalando repositorio Adobe Flash Player32bit (x86)

    rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpmrpm import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

    64bit (x86_64)

    rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpmrpm import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

    Instalando Adobe Flash Playeryum -y install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl