#!/bin/sh # Update pacman -Syu # Hwdetect pacman -S --noconfirm hwdetect # Sudo pacman -S --noconfirm sudo sed -i '/NOPASSWD/s/\# //' /etc/sudoers # OpenNTPd pacman -S --noconfirm openntpd sed -i 's/pool.ntp.org/br.pool.ntp.org/g' /etc/rc.d/openntpd start sed -i '/^DAEMONS/s/)/ @openntpd )/' /etc/rc.conf # NIS pacman -S --noconfirm yp-tools ypbind-mt domainname fiscomp echo "ypserver fiscomp" >> /etc/yp.conf sed -i "s/=\"\"/=\"fiscomp\"/" /etc/conf.d/nisdomainname echo "+::::::" >> /etc/passwd echo "+::::::::" >> /etc/shadow sed -i "s/passwd:/passwd: nis /;s/shadow:/shadow: nis /;s/netgroup:/netgroup: nis /" /etc/nsswitch.conf sed -i '/^DAEMONS/s/)/ rpcbind @ypbind )/' /etc/rc.conf /etc/rc.d/rpcbind restart /etc/rc.d/ypbind restart gpasswd -a tjpp wheel # NFS pacman -S --noconfirm nfs-utils autofs echo "/nfs /etc/autofs/auto.nfs" >> /etc/autofs/auto.master echo "fiscomp -rw,rsize=8192,wsize=8192,insecure fiscomp:/home" > /etc/autofs/auto.nfs for i in complex000 complex001 complex010 complex011 complex100 complex101 \ complex110 complex111 qomplex000; do echo "$i -rw,rsize=8192,wsize=8192 $i:/local" >> /etc/autofs/auto.nfs done mkdir /local mkdir /nfs ln -s /nfs/fiscomp /fiscomp sed -i '/^MODULES/s/)/autofs4 )/' /etc/rc.conf modprobe -a autofs4 /etc/rc.d/autofs start sed -i '/^DAEMONS/s/)/@autofs )/' /etc/rc.conf # Pacotes pacman -S --noconfirm vim pacman -S --noconfirm libstdc++5 mkdir compilers cd compilers scp tjpp@medawar:Arch/*pkg.tar.gz . pacman -U yaourt-0.9.2.5-1-x86_64.pkg.tar.gz linux_logo_archcustom-5.05-1-x86_64.pkg.tar.gz intel-compilers-common-11.0.083-2-x86_64.pkg.tar.gz icc-11.0.083-2-x86_64.pkg.tar.gz ifort-11.0.083-2-x86_64.pkg.tar.gz rstatd-4.0.1-1-x86_64.pkg.tar.gz echo "linux_logo -f -L 1 -b > /etc/issue" >> /etc/rc.local echo "linux_logo -f -L 1 -b -a > /etc/issue.net" >> /etc/rc.local sed -i '/^DAEMONS/s/)/@rstatd )/' /etc/rc.conf cd ~ # Pacotes para o X #pacman -S --noconfirm xorg ttf-dejavu ttf-bitstream-vera ttf-ms-fonts #pacman -S --noconfirm hal gamin dbus fakeroot #pacman -S --noconfirm gnome gnome-extra gdm #pacman -S --noconfirm mplayer #pacman -S --noconfirm firefox flashplugin mplayer-plugin #pacman -S --noconfirm brasero dvd+rw-tools #pacman -S --noconfirm openoffice-base openoffice-pt_br openoffice-spell-pt-br #pacman -S --noconfirm gimp inkscape jre pidgin pidgin-libnotify #sed -i '/^DAEMONS/s/)/hal @gamin/' /etc/rc.conf #sed -i '/^DAEMONS/s/)/@gdm )/' /etc/rc.conf