إعـــــــلان

تقليص
لا يوجد إعلان حتى الآن.

## سكربت و plugins للـ Compiz Fusion للاصدار 8 جديد ##

تقليص
X
 
  • تصفية - فلترة
  • الوقت
  • عرض
إلغاء تحديد الكل
مشاركات جديدة

  • [شرح] ## سكربت و plugins للـ Compiz Fusion للاصدار 8 جديد ##

    .. السلام عليكم ورحمه الله وبركاته ..



    :argeeleh:
    Twitter
    : @Linux4SA


  • #2
    ====================================

    الدرس : [ تركيب وتفعيل الاضافات التجربية للكمبيز فيوشن الاصدار x ـ 8 ]
    الكاتب : [ BAD3R ALOTAIBI ]
    التوزيعه : [ 9 LINUX MINT ]
    نوع الدرس : تركيب + تحديثات + اوامر
    المستوي : متوسط
    الساعه : 6:00 مغرب
    اليوم : الاثنين
    المزاج :
    تاريخ الدرس : 2010\6\7
    الايميل : ME2[at]hotmail[dot]com
    الموقع : www .linuxAC. org
    ====================================

    [×] سوف اقوم بختصار الكثير ونكتفي بالزبده . الموضوع الرسمي فى المنتدى الرسمي .


    * اليوم كنت ابحث فى الموقع الرسمي للكمبيز عن اضافات جديده وبالاخص البلقنز . اضافات اليوم رايح تكون شغاله على الاصدارات من توزيعات ليونكس UB 9.04 - 10.04, غيرها ماجربت الا على توزيعه الـ Mint 9 .. وكان التجربه فعاله وناجحه ..
    * الاصدار للكمبيز فوشن هو الـ 8x .
    *لمعرفه ذالك اتبع الامر التالي لمعرفه اصدار البرنامج لديك :

    كود PHP:
    compiz --version 
    [×] أذا كان الـ كمبيوز فيوشن لديك من الاصدارات القديمة تستطيع upgrade من خلال زيارتك للموضوع ( اضغط هنا )

    [×] تنبيه : لا نتحمل مسؤولية التركيب خلال استخدامك الاصدرات السابقه يجب عليك الترقية .. وايضاً لا نتحمل مسؤولية الذين لايعرفون ماذا يفعلون . ( يعني لا يجي احد مضفى النور ويطبق ويقول الكمبيز عملي مشاكل وخرب وحذفتو ) .


    [×] شروط البداء فى العمل والتركيب :

    * أن يكون لديك اصدار جديد من عائله ( Ubuntu ) ..
    * أن يكون مثبت عندك الـ compiz والاصدار ( 0 . 8 ) ..
    * أذا كنت تواجهه مشاكل فى الكروت التي لديك يمكنك الاطلاع على المناسب لك ( Hardware ) ..
    * أن تقوم الدخول كـ ( root ) . وعمل " Ubdate & Upgrade "

    --

    [×] نقوم بعمل ملف لسكربت من التالي :



    Create Document : Empty File


    [×] ونضع داخل هذا الملف السكربت التالي : ولكن المنتدى يحتوي تشفير بعض الكلمات لذا تم رفعه ( اضغط هنا لتحميل )
    كود PHP:
    #!/bin/bash

    # compiz-plugins-experimental-0.8.x
    # A script to install additional compiz plugins not included in the official plugin sets

    # Dependencies:
    # These are the dependencies necessary to install all plugins on Ubuntu Jaunty, Karmic and Lucid
    # This script should work on other distributions provided the dependencies are met

    # compiz-fusion-bcop compiz-dev compizconfig-settings-manager build-essential libtool
    # libglu1-mesa-dev libxss-dev libcairo2-dev libpango1.0-dev git-core

    # Variables

    anaglyph_url=git://anongit.compiz.org/users/wodor/anaglyph
    atlantis_url=git://anongit.compiz.org/compiz/plugins/atlantis
    cubemodel_url=git://anongit.compiz.org/compiz/plugins/cubemodel
    dialog_url=git://anongit.compiz.org/users/rcxdude/dialog
    elements_url=git://anongit.compiz.org/users/pat/elements
    extra_animations_url=git://anongit.compiz.org/users/kdubois/extra-animations
    fakeargb_url=git://anongit.compiz.org/compiz/plugins/fakeargb
    fireflies_url=git://anongit.compiz.org/inactive/users/smspillaz/fireflies
    freewins_url=git://anongit.compiz.org/users/warlock/freewins
    ghost_url=git://anongit.compiz.org/users/rcxdude/ghost
    icons_url=http://sites.google.com/site/oreaus/icons-experimental.tar.gz
    mswitch_url=git://anongit.compiz.org/compiz/plugins/mswitch
    photowheel_url=git://anongit.compiz.org/users/b0le/photowheel
    putplus_url=git://anongit.compiz.org/users/edgurgel/putplus
    screensaver_url=git://anongit.compiz.org/users/pafy/screensaver
    simple_animations_url=git://anongit.compiz.org/users/smspillaz/simple-animations
    smartput_url=git://anongit.compiz.org/users/edgurgel/smartput
    snow_url=git://anongit.compiz.org/fusion/plugins/snow
    snowglobe_url=git://anongit.compiz.org/users/metastability/snowglobe
    stackswitch_url=git://anongit.compiz.org/compiz/plugins/stackswitch
    stars_url=git://anongit.compiz.org/inactive/users/smspillaz/stars
    static_url=http://www.efaref.net/git/compiz/plugins/static.git
    swap_url=git://anongit.compiz.org/users/edgurgel/swap
    tile_url=git://anongit.compiz.org/compiz/plugins/tile
    toggle_decoration_url=git://anongit.compiz.org/users/edgurgel/toggle-decoration
    wizard_url=http://oreaus.googlepages.com/wizard.tar
    workspacenames_url=git://anongit.compiz.org/users/maniac/workspacenames

    SRC_DIR=$HOME/src/compiz/plugins
    TMP_DIR
    =/tmp
    ICON_DIR
    =/usr/share/ccsm/icons/hicolor/scalable/apps

    # Make sure we're being ran in bash

    if [[ -"$BASH_VERSION]]; then
       
    echo "Please run this script in a bash environment as /path/to/********** or ./********** from the directory where it is located."
       
    exit 1
    fi

    # Don't run it as root

    if [[ "$EUID]]; then
       
    echo "Run as user, without sudo and not as root."
       
    exit 1
    fi

    plugin_list
    =(anaglyph atlantis cubemodel dialog elements extra-animations fakeargb fireflies freewins ghost photowheel putplus screensaver simple-animations smartput snow snowglobe stackswitch stars static swap tile toggle-decoration wizard workspacenames)
    # Plugins already ported to compiz-0.9 need to checkout the 0.8 version
    cpp_list=(atlantis cubemodel fakeargb stackswitch tile)

    dep_list=(compiz compiz-fusion-bcop compiz-dev compizconfig-settings-manager build-essential libtool libglu1-mesa-dev libxss-dev libcairo2-dev libdecoration0-dev libpango1.0-dev git-core)

    # Functions

    help ()      {
       echo 
    "Compiz Addons - for compiz v0.8"
       
    echo "A script to install additional compiz plugins not included in the traditional plugin set."
       
    echo "Note: After using this script, restart compiz and ccsm for changes to take effect."
       
    echo "Run this script as user with ./********** or /path/to/**********, without 'sh' or 'sudo'!"
       
    echo
       echo 
    "Usage: compiz-addons [OPTION] [TARGET]"
       
    echo "Options:"
       
    echo
       echo 
    "install <target>          : Installs plugin <target>"
       
    echo "uninstall <target>        : Uninstalls plugin <target>"
       
    echo "--list                    : List of available targets"
       
    echo
       echo 
    "--help                    : Displays this usage screen"
       
    exit 0
    }

    download () {

       
    local url="${1//-/_}_url"
       
    if isin "$1" "${cpp_list[@]}"then
          git 
    clone "${!url}"
          
    cd $SRC_DIR/$1
          git checkout 
    --track -b compiz-0.8 origin/compiz-0.8
          cd $SRC_DIR
       elif 
    [[ "$1" "ghost" ]]; then
          git 
    clone "${!url}"
          
    cd $SRC_DIR/$1
          git checkout 30b482c506354c95bab9feb5a40b9c9f0ea4de50
          cd $SRC_DIR
       elif 
    [[ "$1" "icons" ]]; then
          wget 
    -O $TMP_DIR/$1-experimental.tar.gz "${!url}"
       
    else
          
    git clone "${!url}"
       
    fi
    }

    validate_plugin ()   {
       cd 
    $SRC_DIR
       if [[ ! -d 
    $SRC_DIR/$1 ]]; then
          download $1
       else
          echo "
    Existing source for $1 detected."
       fi
       if [[ -d 
    $SRC_DIR/$1 ]]; then
          cd 
    $SRC_DIR/$1
       fi
    }

    install ()   {
       validate_plugin $1
       if [[ ! -d 
    $SRC_DIR/$1 ]]; then
          echo "
    Error occuredPlease see http://forum.compiz.org/viewtopic.php?f=114&t=12012 and report any problems."
       
    else
          echo 
    "Building $1.."
          
    make clean
          make
          
    echo "Installing.."
          
    make install
          local icon
    ="$(grep PLUGIN plugin.info|sed '/^PLUGIN[ =]/s/^[^=]* *= *//p;d')"
          
    if [[ ! -"$icon]] && [[ "$icon!= "snow" ]] && [[ "$icon!= "screensaver" ]]; then
             icon
    ="plugin-${icon}.svg"
             
    if [[ ! -e $ICON_DIR/$icon ]]; then
                
    echo "Installing icon for $1.."
                
    if [[ ! -e $TMP_DIR/icons-experimental.tar.gz ]]; then
                   download icons
                fi
                
    echo "Password may be required to install $icon to $ICON_DIR"
                
    sudo tar -xzf $TMP_DIR/icons-experimental.tar.gz -C $ICON_DIR --strip 1 icons-experimental/$icon
                
    echo "Installed $icon to $ICON_DIR"
             
    fi
          fi
       fi
    }

    uninstall ()   {
       
    validate_plugin $1
       
    echo "Removing $1"
       
    make uninstall
       
    # Don't worry about removing the icons since leaving them is harmless
    }

    purge () {
       echo 
    "Purging source files.."
       
    for dir in "${plugin_list[@]}"; do
          if [[ -
    d $SRC_DIR/$dir ]]; then
             
    echo "Deleting $SRC_DIR/$dir/"
             
    rm -rf $SRC_DIR/$dir
          fi
       done
       
    echo "Purging plugins.."
       
    echo "Removing $HOME/.compiz/"
       
    rm -rf $HOME/.compiz/
       echo 
    "Removing /tmp/icons-experimental.tar.gz"
       
    rm /tmp/icons-experimental.tar.gz
       quit
    }

    single_plugin ()   {
    #   validate_plugin $2
       
    $$2
       quit
    }

    do_all ()   {
       $
    $2
       
    continue
    }

    skip ()   {
       echo 
    "Skipping $1."
    }

    quit ()   {
       echo 
    "Done."
       
    echo "Don't forget to restart compiz and ccsm after installing or removing any plugin. $(tput setaf 4)E$(tput setaf 1)n$(tput setaf 3)j$(tput setaf 4)o$(tput setaf 2)y$(tput setaf 1)!$(tput sgr0) :-)"
       
    exit 0
    }

    test ()   {
          if [[ 
    "$1" "q" ]]; then
             tput sgr0
             quit

             elif 
    [[ "$1" "s" ]]; then
                tput sgr0
                skip $dir
             elif 
    [[ "$1" "i" ]]; then
                tput sgr0
                install $dir
             elif 
    [[ "$1" "u" ]]; then
                tput sgr0
                uninstall $dir
             elif 
    [[ "$1" "a" ]]; then
                tput sgr0
                
    echo "Installing all remaining without prompting.."
                
    dont_prompt=1
                do_all install $dir
             
    else
                echo 
    "Invalid option.\'$1\'"
                
    quit
          fi
    }

    isin () {
       
    local key="$1" value
       shift
       
    for value; do
       [[ 
    "$value"$key]] && return
       
    done
       
    return 1
    }

    init_deps () {
    for 
    dep in "${dep_list[@]}"; do
       if ! 
    dpkg --get-selections "$dep2>/dev/null grep -qE '\<install$' > /dev/nullthen
          
    echo "Installing dependencies.."
          
    sudo apt-get install "${dep_list[@]}"
          
    break
       
    fi
    done

    mkdir 
    -p $SRC_DIR
    }

    do_loop () {

    init_deps

    if [[ ! $dont_prompt ]]; then
       
    echo "$(tput setaf 2)i$(tput sgr0) = $(tput setaf 2)Install$(tput setaf 3) s$(tput sgr0) = $(tput setaf 3)Skip$(tput setaf 6) u$(tput sgr0) = $(tput setaf 6)Uninstall$(tput setaf 5) a$(tput sgr0) = $(tput setaf 5)Install all remaining without prompting$(tput setaf 1) q$(tput sgr0) = $(tput setaf 1)Quit$(tput sgr0)"
    fi

    for dir in "${plugin_list[@]}"; do
       
    tput sgr0

       
    if [[ $dont_prompt ]]; then
          
    if [[ -"$1" ]]; then
             do_all install $dir
          
    else
             
    do_all $1 $dir
          fi
       fi

       read 
    -"What would you like to do for $(tput setaf 3)$dir$(tput sgr0)? $(tput setaf 2)i$(tput sgr0)/$(tput setaf 3)s$(tput sgr0)/$(tput setaf 6)u$(tput sgr0)/$(tput setaf 5)a$(tput sgr0)/$(tput setaf 1)q$(tput sgr0): " response
       test $response

       tput sgr0

    done
    quit
    }


    # Main

    case "$1" in
       
    -| --help )
          
    help ;;
       --list )
       echo 
    "Valid targets are:"
       
    for i in "${plugin_list[@]}"; do
          echo 
    "$i"
       
    done
       
    echo "all (Performs <action> for all plugins)"
       
    exit ;;
       
    install   )
          if [[ -
    "$2" ]]; then
             
    echo "This command requires a target. See --list for a list of valid targets."
             
    quit
          elif isin 
    "$2" "${plugin_list[@]}"then
             init_deps
             single_plugin 
    $$2
          elif 
    [[ "$2" "all" ]]; then
             tput sgr0
             
    echo "$(tput setaf 2)Installing all plugins without prompting.$(tput sgr0)"
             
    dont_prompt=1
             do_loop 
    $1
             quit
          
    else
             echo 
    "Invalid target. See --list for a list of valid targets."
             
    quit
          fi 
    ;;
       
    uninstall )
          if [[ -
    "$2" ]]; then
             
    echo "This command requires a target. See --list for a list of valid targets."
             
    quit
          elif isin 
    "$2" "${plugin_list[@]}"then
             
    echo "Uninstalling $2.."
             
    single_plugin $$2
          elif 
    [[ "$2" "all" ]]; then
             tput sgr0
             
    echo "$(tput setaf 6)Uninstalling all plugins.$(tput sgr0)"
             
    dont_prompt=1
             do_loop 
    $1
             quit
          
    else
             echo 
    "Invalid target. See --list for a list of valid targets."
             
    quit
          fi 
    ;;
       
    purge )
          
    purge   ;;
       * )
          if [[ ! -
    "$1" ]]; then
             
    echo "Invalid option \"$1\""
             
    help
          fi
    esac

    do_loop

    exit 
    [×] مثال لوضع السكربت ثم اعمل " SAVE "


    [×] بعد عملية وضع السكربت فى الملف واغلاقه وحفظه كلك يمين على الملف نفسه وبزر الفاره الايمين نختار " Properties > Permissions "


    [×] سيتغير شكل ايقونه الملف الى التالي :


    [×] سنقوم الان بالضغط "دبل كلك " على الملف وسوف ينتم الشكل التالي ونشغله بـ :


    * ستظهر هذي الرساله بعد الضغط على الملف ونواصل بكتابة الحرف ( a ) لتنزيل جميع الاضافات سوف يقوم السكربت بمعالجه جميع الاضافات بدون تدخل منك ثم سيقوم بعملية الاغلاق للـ ترمنال ..

    [×] ثم قم بأغلاق الكمبيز وتشغيله من جديد وسوف تلاحظ الاضافات الجديده .
    ملاحظه ( لا اذكر الاضافات لكثرتها ولكن يوجد الكثير حين العمل منك ) .

    * لمعاينة بعض الصور والاضافات انظر التالي :

    -- -- --

    --
    فمان الله
    :argeeleh:
    Twitter
    : @Linux4SA

    تعليق


    • #3
      السلام عليكم
      أولا اشكرك على الشرح الذي لا محالة سيطرب هواة الكمبيز لكن لاحظت ان
      الصور الاربع الاخيرة اخي بدر اصغر من ان ينتفع بها الاعضاء خلافا للاولى

      اعلم ان انها صغيرة من المصدر ، يمكن التقاطها من جهازك ورفعها كما فعلت في الصور الاولى فهي واضحة وقايلة للتكبير من خلال العرض الفردي او المستمر

      تعليق


      • #4
        افتقدنا هذه النوعيه من الشروح يابدر ....والله لها وحشه .......ولك ايضا يابو الشباب ^_^
        •°o.O islamux O.o°•
        أنا إن عشت لنفسي عشت حقيرًهزيلا :::ومهما تعلمت لا أزال جهولا
        "يَوْمَ تَجِدُ كُلُّ نَفْسٍ مَا عَمِلَتْ مِنْ خَيْرٍ مُحْضَرا..الايه(آل عمران:30)

        *****
        إذَا لَمْ تَسْتَطِعْ شيئًا فدَعْهُ = وجاوِزْهُ إلى مَا تَستَطِيعُ
        تلميح اليوم

        FreeBSD في كبسولة !
        لا يطلب العلم مستحي ولا مستكبر
        اللهم اجعل عملنا خالصا لوجهك الكريم.
        فان تجد عيبا فسدَ الخللا ****** جلَ من لا عيب فيه وعلا
        كل مشاركاتي في المجتمع وقف لله تعالى
        Tweeter

        تعليق


        • #5
          وعليكم السلام ورحمة الله وبركاته

          mint+compiz=BAD3R
          ابداع x ابداع

          واخيراً الشروحات المميزه ,,, صدقنى اخى بدر لم افرح بنتيجة التطبيق كسعادتى بشرحك الماتع

          ( افتقدت خفة ظلك المعتاده لعل المانع خير )

          أخوك محمد نور

          اضافه بعد اذنك

          المشاركة الأصلية بواسطة عبـيدات مشاهدة المشاركة
          السلام عليكم
          أولا اشكرك على الشرح الذي لا محالة سيطرب هواة الكمبيز لكن لاحظت ان
          الصور الاربع الاخيرة اخي بدر اصغر من ان ينتفع بها الاعضاء خلافا للاولى

          اعلم ان انها صغيرة من المصدر ، يمكن التقاطها من جهازك ورفعها كما فعلت في الصور الاولى فهي واضحة وقايلة للتكبير من خلال العرض الفردي او المستمر
          الصور من جهازى بعد تطبيق الشرح










          سبحانك اللهم وبحمدك.أشهد أن لا اله الا أنت.أستغفرك وأتوب اليك
          facebook
          أرجو الدعاء لمصر وشعبها

          تعليق


          • #6
            الله يعطيك العافيه يارب
            روعه تنظيمك للشرح

            عاد ما نزلت الموضوع الا وقت ما رحت للدوام < المجاهد خخ

            ربي يوفقك

            تعليق


            • #7
              المشاركة الأصلية بواسطة عبـيدات مشاهدة المشاركة
              السلام عليكم
              أولا اشكرك على الشرح الذي لا محالة سيطرب هواة الكمبيز لكن لاحظت ان
              الصور الاربع الاخيرة اخي بدر اصغر من ان ينتفع بها الاعضاء خلافا للاولى

              اعلم ان انها صغيرة من المصدر ، يمكن التقاطها من جهازك ورفعها كما فعلت في الصور الاولى فهي واضحة وقايلة للتكبير من خلال العرض الفردي او المستمر
              وعليكم السلام ..

              ماقصر ابو يوسف وضع الصور والتحديثات للاضافات .
              وعدم وضعي لصوره بجودتها الكبيره عشان ما تثقل الموضوع تستطيع زيارتها من هنا : 1 - 2 - 3 - 4 - ..
              :argeeleh:
              Twitter
              : @Linux4SA

              تعليق


              • #8
                المشاركة الأصلية بواسطة محمد نور الدين مشاهدة المشاركة
                وعليكم السلام ورحمة الله وبركاته

                mint+compiz=BAD3R
                ابداع x ابداع

                واخيراً الشروحات المميزه ,,, صدقنى اخى بدر لم افرح بنتيجة التطبيق كسعادتى بشرحك الماتع

                ( افتقدت خفة ظلك المعتاده لعل المانع خير )

                أخوك محمد نور

                اضافه بعد اذنك



                الصور من جهازى بعد تطبيق الشرح










                الله يوفقك يابو سف دائماً ردودك مميزه .. ومشاركاتك وتطبيقاتك فى الصميم ..
                بالنسبه لاسلوبي تبع الموضوع كنت اكتب واسناني تعورني
                :argeeleh:
                Twitter
                : @Linux4SA

                تعليق


                • #9
                  المشاركة الأصلية بواسطة BAD3R مشاهدة المشاركة
                  الله يوفقك يابو سف دائماً ردودك مميزه .. ومشاركاتك وتطبيقاتك فى الصميم ..
                  بالنسبه لاسلوبي تبع الموضوع كنت اكتب واسناني تعورني
                  من اسباب وجع الأسنان


                  ألف سلامه عليك ,,, وبالهناء والشفاء
                  سبحانك اللهم وبحمدك.أشهد أن لا اله الا أنت.أستغفرك وأتوب اليك
                  facebook
                  أرجو الدعاء لمصر وشعبها

                  تعليق


                  • #10
                    شكرا لك بدر فاقدين مواضيعك في الـــــــــــبــــــــــــــــوابــــــــــــــة لي عودة بعد التجربة ...
                    الحمد لله رب العالمين حصلت على وظيفة contract مع شركة أرامكو السعودية عن طريقة شركة الحوطي المحدودة

                    تعليق


                    • #11
                      تمت التجربة واجهتني مسكلة بسيطة واضطريت احذف الكومبيز اي حلول ؟؟

















                      قاعد اغث بدر ﻻ التجربة تمام التمام تشكر على مجهودك بصراحة من كثر الحركات خليت كل شيء random

                      عشان اجربها كلها



                      شكرا مرة اخرى
                      الحمد لله رب العالمين حصلت على وظيفة contract مع شركة أرامكو السعودية عن طريقة شركة الحوطي المحدودة

                      تعليق


                      • #12
                        المشاركة الأصلية بواسطة الصفحي مشاهدة المشاركة
                        شكرا لك بدر فاقدين مواضيعك في الـــــــــــبــــــــــــــــوابــــــــــــــة لي عودة بعد التجربة ...
                        المشاركة الأصلية بواسطة الصفحي مشاهدة المشاركة
                        تمت التجربة واجهتني مسكلة بسيطة واضطريت احذف الكومبيز اي حلول ؟؟











                        قاعد اغث بدر ﻻ التجربة تمام التمام تشكر على مجهودك بصراحة من كثر الحركات خليت كل شيء random

                        عشان اجربها كلها



                        شكرا مرة اخرى


                        حيا الله الصحفي بغيت اقول خير وش الي ما عرفته

                        بالتوفيق لك عزيزي
                        :argeeleh:
                        Twitter
                        : @Linux4SA

                        تعليق

                        يعمل...
                        X
                        😀
                        🥰
                        🤢
                        😎
                        😡
                        👍
                        👎