Script após instalação

Publicado por Messias Manoel da Silva Junior 16/03/2009

[ Hits: 5.832 ]

Download Meu_Shell.sh




Depois de sempre fazer as mesmas tarefas nos computadores de clientes e amigos após a instalação da distro (K)ubuntu resolvi criar esse script para automatizar minhas tarefas.

Este só servirá para a v. 8.04 já que usam os repositórios hardy. Ele irá instalar fontes (arial, times new roman, verdana...) que é um dos maiores problemas na exportação de documentos, trabalhos feito no office da M.$, skype, codecs e  pluguins (java, flash player), adobe reader PDF, picasa, ver DVDs de outras regiões...

  



Esconder código-fonte

#!/bin/bash
##############################################################################################
#
# Autor: Messias Manoel da Silva Junior
# Data: 20/02/2009
# Script: Implementacao de utilitarios basicos do Kubuntu 8.04
# Blog: http://juniormj.wordpress.com
#
# Script escrito por Messias Junior para implantacao do Sistema operacional GNU/Linux 
# distro Kubuntu para automatizar tarefas realizadas apos instalacao do sistema abordando 
# fontes (arial, times new roman, verdana...) e um dos maiores problemas na exportacao de 
# documentos, trabalhos feito no office da microsoft, skype, icones, codecs e  pluguins 
# (java, flash player), adobe reader PDF, picasa, ver DVDs de outras regiao, 
#
# Este script foi baseado em partes de um artigo do Eduardo Morimoto no site guiadohardware, 
# com algumas implementacoes minha. 
#
##############################################################################################

##############################################################################################
#               D e f i n i n d o   a l g u m a s   c o i s a s   b a s i c a s :            #
##############################################################################################

# Declaracao de algumas variaveis
VERSAO_SCRIPT="0.1.0 - Juniormj 20/02/09, Escrito por Messias Manoel da Silva Junior. juniormj1@globo.com"

clear
echo -e "Esse script ira fazer algumas implementacoes como instalacao de codecs, pluguins, fonts e outros..."
echo -e ""
echo -e "So lembrando que esse script esta em fase de teste, caso queira continuar e por sua conta."
echo -e ""
echo "Versao: $VERSAO_SCRIPT"
echo -e ""
echo -e "Precione ENTER para continuar ou CTRL+C para abortar o script"
read p


echo -e "Estou inserindo alguns repositorios no /etc/apt/sources.list ... Agurade"
#cp /etc/apt/sources.list /etc/apt/sources.list.bkp

#cat << EOF > /etc/apt/sources.list
deb http://br.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy main restricted
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb http://br.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy universe
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb http://br.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://archive.ubuntu.com/ubuntu hardy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy universe multiverse
EOF

##############################################################################################


##############################################################################################
#      C o n f i g u n d o    e    I n s t a l a n d o    o s    U t i l i t a r i o s       #
##############################################################################################


echo -e "Atualizando a lista de pacotes disponiveis, isso pode demorar um pouco, dependendo da velocidade de sua conexão à internet"
aptitude update
wget http://www.medibuntu.org/sources.list.d/hardy.list O /etc/apt/sources.list.d/medibuntu.list
aptitude update
aptitude install medibuntu-keyring
aptitude update

# Instalacoes dos pacotes
echo -e "Preparando para as instalacoes dos pacotes... Aguarde"
echo -e "Instalando as fontes pra compatibilidade com documentos do Microsoft Office."
aptitude install msttcorefonts
echo -e "Vou abrir a caixa de configuracao de fontes, responda nesta mesma ordem: Autohinter, Sempre, Nao".
dpkg-reconfigure fontconfig-config

echo -e "Instalando alguns utilitarios, isso pode demorar um pouco dependendo de sua conexao com a internet... Aguarde o termino da instalacao."
aptitude install unrar firefox mplayer mozilla-mplayer sun-java6-jre sun-java6-plugin w32codecs libdvdcss2 


# Instalando o Skype e o Picasa
cd /tmp
wget http://ubuntuchina.googlecode.com/files/skype-debian_2.0.0.72-1_i386.deb
dpkg -i skype-debian_2.0.0.72-1_i386.deb

wget http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_i386.deb
dpkg -i picasa_3.0-current_i386.deb

echo -e "As instalacoes foi concluidas com sucessos !!!"
echo -e "Agora enjoy"
echo -e ""

Scripts recomendados

Instalador do Nagios no Fedora 14 e CentOS 5

Script em Dialog pesquisa nome do banco no mysql

Instalação de programas em Debian-like

Monitorar pppe-server, radius e proxy (estilo fastfood)

Montador de disquete


  

Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário