Στο ψητό : θα μπορουσα να φτιαξω όλες τις γραμμες απο εδω http://forum.ubuntu-gr.org/viewtopic.php?f=9&t=32 Εγκατάσταση codec και εφαρμογών πολυμέσων στο 10.04, 10.10, 9.10 για να παίζουν τα "πάντα" σε ένα εκτελέσιμο??
Συντονιστής: konnn

#!/bin/bash
####################################################################################################
# #
# Ένα απλό scriptακι για την εγκατάσταση των codec στο Ubuntu #
# #
# #
# Περισσότερα για τους codec #
# μπορείτε να δείτε εδώ : http://forum.ubuntu-gr.org/viewtopic.php?f=9&t=32 #
# #
# #
# Περιλαμβάνει τις εκδόσεις: #
# ------------------- #
# -- Ubuntu Karmic Koala 9.10 (i386 και amd64) #
# -- Ubuntu Lucid Lynx 10.04 LTS (i386 και amd64) #
# -- Ubuntu Maverick Meerkat 10.10 (i386 και amd64) #
# #
# #
####################################################################################################
t=0
while [ $t = "0" ]
do
zenity --entry --title="Password" --text="Enter your Password:" --entry-text "" --hide-text | sudo -S echo "ok"
if [ $? != "0" ]; then
zenity --question --title="Wrong Password" --text="Wrong Password\n Try Again?"
if [ $? != "0" ]; then exit 0; fi
else
t=1
fi
done
# Εγκατάσταση codec (Ubuntu Karmic 9.10)
if [ "$(cat /etc/lsb-release | grep DISTRIB_CODENAME)" = "DISTRIB_CODENAME=karmic" ]; then
(
echo "# Install codec\n\Please wait..." ; sleep 1
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install ubuntu-restricted-extras
sudo wget http://www.medibuntu.org/sources.list.d/karmic.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get -y install medibuntu-keyring
sudo apt-get update && sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install non-free-codecs w32codecs
sudo apt-get -y install medibuntu-keyring && sudo apt-get update
) |
zenity --progress \
--width=400 \
--title="Install codec for Ubuntu Karmic 9.10" \
--percentage=0 \
--pulsate \
--auto-close
fi
# Εγκατάσταση codec (Ubuntu Lucid 10.04 LTS)
if [ "$(cat /etc/lsb-release | grep DISTRIB_CODENAME)" = "DISTRIB_CODENAME=lucid" ]; then
(
echo "# Install codec\n\Please wait..." ; sleep 1
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install ubuntu-restricted-extras
sudo wget http://www.medibuntu.org/sources.list.d/lucid.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get -y install medibuntu-keyring
sudo apt-get update && sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install non-free-codecs w32codecs
sudo apt-get -y install medibuntu-keyring && sudo apt-get update
) |
zenity --progress \
--width=400 \
--title="Install codec for Ubuntu Lucid 10.04 LTS" \
--percentage=0 \
--pulsate \
--auto-close
fi
# Εγκατάσταση codec (Ubuntu Maverick 10.10)
if [ "$(cat /etc/lsb-release | grep DISTRIB_CODENAME)" = "DISTRIB_CODENAME=maverick" ]; then
(
echo "# Install codec\n\Please wait..." ; sleep 1
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install ubuntu-restricted-extras
sudo wget http://www.medibuntu.org/sources.list.d/maverick.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get -y install medibuntu-keyring
sudo apt-get update && sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install non-free-codecs w32codecs
sudo apt-get -y install medibuntu-keyring && sudo apt-get update
) |
zenity --progress \
--width=400 \
--title="Install codec for Ubuntu Maverick 10.10" \
--percentage=0 \
--pulsate \
--auto-close
fi
zenity --info --text "Install complete succesfull!"
exit 0
fi


clepto έγραψε:πολύ καλό vagrale13!!!συγχαρητήρια...

the_eye έγραψε:Ακόμα μπορείς να βάλεις το ubuntu restricted πακέτο.


the_eye έγραψε:Αναφερόμουνα στο Clouzo, για να μην ψάχνει τους codecs.

