I am writing a script to:
1 Install full multimedia support from packman and libdvdcss from vlc
2 Update the system.
#!/bin/bash
tput setaf 2; echo "Habilitando soporte multimedia"
tput setaf 5; echo ""
tput setaf 5; echo "################################"
tput setaf 2; echo "Habilitando repositorio packman"
tput setaf 5; echo "################################"
tput setaf 5; echo ""
zypper ar http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/ packman
tput setaf 5; echo ""
tput setaf 5; echo "######################################"
tput setaf 2; echo "Deshabilitando todos los repositorios"
tput setaf 5; echo "######################################"
tput setaf 5; echo ""
zypper mr -d -all
tput setaf 5; echo ""
tput setaf 5; echo "##################################################"
tput setaf 2; echo "Habilitando los repositorios Packman, OSS y Update"
tput setaf 5; echo "##################################################"
tput setaf 5; echo ""
zypper mr --enable packman repo-oss repo-update
tput setaf 5; echo ""
tput setaf 5; echo "#########################################"
tput setaf 2; echo "Habilitando el cache en los repositorios"
tput setaf 5; echo "#########################################"
tput setaf 5; echo ""
zypper mr -kr packman repo-oss repo-update
tput setaf 5; echo ""
tput setaf 5; echo "######################################"
tput setaf 2; echo "Cambiando prioridad a los repositorios"
tput setaf 5; echo "######################################"
tput setaf 5; echo ""
zypper mr -p 90 packman
zypper mr -p 95 repo-update
tput setaf 5; echo ""
tput setaf 5; echo "######################################"
tput setaf 2; echo "Refrescando repositorios"
tput setaf 5; echo "######################################"
tput setaf 5; echo ""
zypper refresh
tput setaf 5; echo ""
tput setaf 5; echo "##########################################"
tput setaf 2; echo "Instalado el soporte para DVD encriptados"
tput setaf 5; echo "##########################################"
tput setaf 5; echo ""
zypper --non-interactive --no-gpg-checks in http://download.videolan.org/pub/videolan/vlc/SuSE/Leap_42.1/x86_64/libdvdcss2-1.4.0-1.2.x86_64.rpm
tput setaf 5; echo ""
tput setaf 5; echo "######################################"
tput setaf 2; echo "Instalando el soporte full multimedia"
tput setaf 5; echo "######################################"
tput setaf 5; echo ""
zypper dup --from packman
tput setaf 5; echo ""
tput setaf 5; echo "######################################"
tput setaf 2; echo "Instalando todo el soporte multimedia"
tput setaf 5; echo "######################################"
tput setaf 5; echo ""
zypper --non-interactive in --no-recommends vlc devede ffmpeg mjpegtools mplayer xine-ui libxine2-codecs avidemux3 avidemux3-qt5 audacity pacpl kde4-pacpl-plugins smplayer mediainfo kde4-mediainfo isomaster transcode dvdrip asunder lame k3b k3b-codecs amarok libbluray-tools handbrake-gtk handbrake-cli phonon-backend-vlc
tput setaf 5; echo ""
tput setaf 5; echo "################################################"
tput setaf 2; echo "Instalando actualizaciones del sistema operativo"
tput setaf 5; echo "################################################"
tput setaf 5; echo ""
zypper up
tput setaf 5; echo ""
tput setaf 5; echo "######################################"
tput setaf 2; echo "Limpiando la cache de la instalacion"
tput setaf 5; echo "######################################"
tput setaf 5; echo ""
zypper clean
tput setaf 5; echo ""
tput setaf 5; echo "#####################"
tput setaf 2; echo "Instalacion Terminada"
tput setaf 5; echo "#####################"
tput setaf 5; echo ""
what do you think?
anything else to improve it?
thanks