ad-468x60

terça-feira, 28 de abril de 2009

O meu script pós instalação do Xubuntu Jaunty

Atenção que este script REMOVE DIVERSOS PACOTES INSTALADOS por defeito com o Xubuntu, para além de instalar muitos mais pacotes novos, inclusivé uns especificos para o meu netbook Asus eee 1000. Para utiliza-lo na plenitude devem abilitar os repositóriso universe e multiverse e tambem o medibuntu.

Para habilitar o medibuntu colem a linha que se segue na consola:
sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

#!/bin/bash
#
# Asus eee PC - Xubuntu
# _______________________
#
#
# Nickname...........: FreeAtMind
# Licenciado sobre...: GPL v3 - http://www.gnu.org/licenses/gpl.txt
#
# Data criação...........: 03 ABR 2009
# Data da ultima revisão.: 27 ABR 2009
#
####################################################################
#
AMARELO="\033[1;33m"
VERMELHO="\033[0;31m"
FIMCOR="\033[0m"
echo
if [ $USER != root ]; then
echo -e $VERMELHO" ERRO: Tem que estar autenticado como root (digite o comado: sudo -i)"
echo
echo -e $AMARELO"Depois execute o script de novo..."$FIMCOR
exit 0
fi
echo
clear
echo
echo -e $AMARELO" _____ Asus eee - Xubuntu _____"$FIMCOR
echo
echo
echo -e $AMARELO" [* Preparação 1 de 5] Actualizações dos pacotes dos repositórios"$FIMCOR
echo
sudo update-usbids && sudo aptitude update && sudo aptitude -y --allow-untrusted install conky localepurge medibuntu-keyring medit wvdial
echo
echo -e $AMARELO" [* Preparação 2 de 5] Pacotes para indicados para o Asus eee"$FIMCOR
echo
sudo aptitude -y --allow-untrusted install linux-netbook-eeepc
echo
echo -e $AMARELO" [* Preparação 3 de 5] A remover pacotes desnecessarios"$FIMCOR
echo # sudo aptitude purge orage
#
sudo aptitude -y remove abiword-common app-install-data app-install-data-commercial apparmor apparmor-utils apport apturl bogofilter-common brasero cdparanoia dvd+rw-tools fglrx-modaliases gigolo gnome-app-install gnome-accessibility-themes gnome-games gnome-cards-data gnome-system-monitor gnumeric-common gnumeric-doc gucharmap jockey-common min12xxw mozilla-thunderbird nvidia-173-modaliases nvidia-180-modaliases nvidia-71-modaliases nvidia-96-modaliases onboard openssh-client pcmciautils pidgin-data pulseaudio pulseaudio-module-hal pulseaudio-module-zeroconf pulseaudio-esound-compat pulseaudio-module-gconf pulseaudio-utils rss-glx scim scim-gtk2-immodule scim-modules-socket seahorse-plugins splix ssh-askpass-gnome thunderbird totem-common totem-gstreamer ttf-arabeyes ttf-arphic-uming ttf-dustin ttf-indic-fonts-core ttf-kochi-gothic ttf-lao ttf-kochi-mincho ttf-sazanami-gothic ttf-sazanami-mincho ttf-unfonts-core ttf-thai-tlwg ubufox ufw vim-runtime vinagre wodim xfce4-appfinder xfce4-battery-plugin xfce4-clipman-plugin xfce4-dict xfce4-dict-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-screenshooter-plugin xfce4-smartbookmark-plugin xfce4-verve-plugin xfce4-xkb-plugin xfswitch-plugin xubuntu-docs
#
### Essenciais do Xubuntu - Após a remoção de pacotes
# notify-osd
sudo aptitude -y --allow-untrusted install alsa-base catfish cups e2fsprogs evince file-roller firefox flashplugin-installer gconf-editor gimp gksu gdm gtk2-engines-xfce language-selector mobile-broadband-provider-info network-manager-gnome popularity-contest sqlite3 synaptic thunar-archive-plugin thunar-thumbnailers thunar-volman ubuntu-standard update-manager update-notifier xfce4 xfce4-governor-plugin xfce4-mixer xfce4-notifyd xfce4-places-plugin xfce4-taskmanager xfce4-terminal xorg
echo
echo -e $AMARELO" [* Preparação 4 de 5] Xubuntu - Aparencia"$FIMCOR
echo
sudo aptitude -y --allow-untrusted install community-themes gnome-themes-ubuntu human-icon-theme human-theme tangerine-icon-theme tango-icon-theme tango-icon-theme-extras ubuntu-gdm-themes xfce4-artwork xfce4-icon-theme xfce4-theme-brushedchrome xubuntu-artwork
echo
echo
#####################################################################
#| |#
#| Pacotes essenciais: |#
#___________________________________________________________________#
#####################################################################
echo
echo -e $AMARELO" [* Preparação 5 de 5] Pacotes essenciais"$FIMCOR
echo
sudo aptitude -y --allow-untrusted install alsa-oss aria2 conky emesene file-roller deborphan dontzap flashplugin-installer gparted gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly hardinfo libdvdcss2 localepurge lxde medit network-manager network-manager-gnome obconf openbox openbox-themes p7zip-full p7zip-rar powertop smplayer ttf-droid wvdial
echo
#####################################################################
#| #
#| Pacotes gerais: #
#___________________________________________________________________#
#####################################################################
echo
echo -e $AMARELO" [1 de 11] Sistema"$FIMCOR
echo # computer-janitor-gtk parcellite
sudo aptitude -y --allow-untrusted install bleachbit dkms gnochm gnome-specimen hardinfo hotkey-setup laptop-detect mesa-utils mtools powernowd preload readahead screen-resolution-extra startupmanager unetbootin usb-creator xdg-user-dirs-gtk
echo
echo -e $AMARELO" [2 de 11] Ferramentas de administração"$FIMCOR
echo # partitionmanager
sudo aptitude -y --allow-untrusted install clonezilla partimage
echo
echo -e $AMARELO" [3 de 11] Codecs e plugins"$FIMCOR
echo
sudo aptitude -y --allow-untrusted install build-essential checkinstall faac faad ffmpeg flashplugin-installer lame libdvdcss2 mkisofs mpg321 p7zip-full p7zip-rar ttf-dejavu ttf-liberation ttf-mscorefonts-installer vorbis-tools unrar x264
echo
echo -e $AMARELO" [4 de 11] Multimedia"$FIMCOR
echo # aqualung quodlibet
sudo aptitude -y --allow-untrusted install avidemux cheese exaile gnome-alsamixer gpicview listen mirage mpg123 smplayer soundconverter vlc
echo
echo -e $AMARELO" [5 de 11] Internet"$FIMCOR
echo # nicotine
sudo aptitude -y --allow-untrusted install amule aria2 axel deluge emesene flashplugin-installer xchat
echo
echo -e $AMARELO" [6 de 11] Jogos"$FIMCOR
#echo
# sudo aptitude -y --allow-untrusted install fb-music-low frozen-bubble gbrainy lbreakout2 pychess vertris
echo
echo -e $AMARELO" [7 de 11] Máquina virtual (Virtualbox)"$FIMCOR
#echo
# sudo aptitude -y install dkms virtualbox-ose
echo
echo -e $AMARELO" [8 de 11] Programação"$FIMCOR
# echo
# sudo aptitude -y --allow-untrusted install bluefish kompozer
echo
echo -e $AMARELO" [9 de 11] Escritório"$FIMCOR
echo # cups-pdf gtodo osmo tasque tomboy
sudo aptitude -y --allow-untrusted install hplip-gui openoffice.org-gtk openoffice.org-writer openoffice.org-calc openoffice.org-impress orage ttf-droid vym
echo
echo -e $AMARELO" [10 de 11] Linguagem pt_PT"$FIMCOR
echo
sudo aptitude -y --allow-untrusted install language-pack-gnome-pt language-support-writing-pt language-support-translations-pt language-support-writing-en language-pack-gnome-en myspell-pt-pt openoffice.org-help-pt openoffice.org-l10n-pt
echo
echo -e $AMARELO" [11 de 11] Vários (Obrigatório aceitar licença antes de instalar)"$FIMCOR
echo
sudo aptitude -y --allow-untrusted install googleearth sun-java6-jre sun-java6-plugin sun-java6-fonts
echo
echo -e $AMARELO" [* Pós instalação 1 de 1] A efectuar uma pequena limpeza."$FIMCOR
echo
#
### Remover configurações de pacotes já removidos.
sudo dpkg --list|grep ^rc
for i in `dpkg --list|grep ^rc|awk '{ print $2 }'`;do dpkg -P $i;done
#
sudo aptitude autoclean
echo
echo -e $AMARELO" FIM... do script."$FIMCOR
echo

Para salvar o script guardem-no num ficheiro de texto e alterem as permissões para executarem o ficheiro como script.

Façam bom uso do script, adaptem-no para as vossas necessidades.

Sem comentários:

Enviar um comentário