Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites". Attention, le forum rencontre actuellement quelques difficultés. En cas d'erreur 502, il ne faut pas re-valider l'envoi d'un message ou l'ouverture d'une discussion, au risque de créer un doublon.

La section divers se réorganise ! De nouvelles sous-sections à venir. (plus d'infos + donner son avis)

nombre réponses : 2

#0 Re : -1 »  Bee (lightweight desktop environment) » Le 21/05/2011, à 21:32

catal
Réponses : 1281
caspual a écrit :

Salut

j'ai envoyé un email à Clément pour lui demander l'autorisation de prendre la suite, il me l'a donnée.
Donc je vais prochainement faire un site avec les versions Maverick, puis Natty. Laisse-moi un message si tu rencontres une erreur à l'utilisation du script.

Bonjour,

Tu en es où dans ton projet? Je bidouille un peu et j'ai modifié le script debian pour l'adapter sur la testing :

#!/bin/bash

# +------------------------------------------------------------+
# | Bee Desktop Environment 0.7
# | Dist : Debian GNU/Linux 6.0 (Wheezy)
# | Arch : x86
# | Last update : 21-05-2011
# +------------------------------------------------------------+

# +------------------------------------------------------------+
# | Copyright 2008 Clément GILLARD | sleeper[at]kowazy[dot]be
# |
# | This program is free software; you can redistribute it and/or
# | modify it under the terms of the GNU General Public License
# | as published by the Free Software Foundation; either version
# | 3 of the License, or (at your option) any later version.
# | 
# | This program is distributed in the hope that it will be useful,
# | but WITHOUT ANY WARRANTY; without even the implied warranty
# | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# | See the GNU General Public License for more details.
# |
# | You should have received a copy of the GNU General Public
# | License along with this program; if not, write to the
# | Free Software Foundation, Inc., 51 Franklin St,
# | Fifth Floor, Boston, MA  02110-1301  USA
# +------------------------------------------------------------+

# +------------------------------------------------------------+
# | Acknowledgements
# +------------------------------------------------------------+
# | Di@bl@l
# | Thuban
# +------------------------------------------------------------+

# +------------------------------------------------------------+
# | Check Version
# +------------------------------------------------------------+
DEBIAN="/etc/debian_version"

if test ! -e $DEBIAN; then
aptitude -y --force-yes install base-files
fi

if grep -q "5" $DEBIAN; then VERSION="ok"
elif grep -q "lenny" $DEBIAN; then VERSION="ok"
else VERSION=`cat $DEBIAN`
fi
# +------------------------------------------------------------+
# | Var
# +------------------------------------------------------------+
USER=`grep 1000 /etc/passwd | awk -F: '{ print $1 }'`
DATE=`date "+%Y%m%d"`

BROOT="/root/bee-root"
BSKEL="/root/bee-root/skel"
BDIST="/root/bee-lenny"
BBACK="/home/$USER/Bee-$DATE"
BUPDA="/usr/share/bee/config/update"

DIALOG="/usr/share/bee/config/dialog"

# +------------------------------------------------------------+
# | Help
# +------------------------------------------------------------+
if [ "$1" = "" ] || [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
  echo "bee -h : help"
  echo "bee -i : install"
  echo "bee -r : remove"
  exit 0
fi

# +------------------------------------------------------------+
# | Bee Uninstall
# +------------------------------------------------------------+
if [ "$1" = "-r" ]; then
  # autostartx
  if test -e /etc/skel/.profile-backup; then
    cd /etc/skel/
    mv .profile-backup .profile
  fi
  # autologin
  if test -e /usr/sbin/autologin; then
    rm /usr/sbin/autologin
    cd /etc/
    mv inittab-backup inittab
  fi
  # sudoers
  if test -e /etc/sudoers-backup; then
    mv /etc/sudoers-backup /etc/sudoers
  fi
  # themes
  if test -e /usr/share/themes/Shiki-Human; then
    rm -r /usr/share/themes/Shiki-Human
  fi
  if test -e /usr/share/themes/Aurora-Midnight; then
    rm -r /usr/share/themes/Aurora-Midnight
  fi
  # panel
  if test -e /etc/skel/.fbpanel; then
    rm -r /etc/skel/.fbpanel
  fi
  if test -e /etc/skel/.pypanelrc; then
    rm /etc/skel/.pypanelrc
  fi
  # lns
  rm /root/.gtkrc-2.0
  rm /root/.themes
  rm /root/.icons
  rm /etc/skel/wallpapers
  # bin
  rm /usr/local/bin/bee-calendar
  rm /usr/local/bin/bee-mpd
  rm /usr/local/bin/bee-session
  rm /usr/local/bin/flv-to-mp3
  rm /usr/local/bin/gtk-runtheme
  rm /usr/local/bin/up-to-date
  # text
  rm /etc/skel/.xsession
  rm /etc/skel/.gtkrc-2.0
  rm /etc/skel/.gtk-runtheme
  rm /etc/skel/.mpdconf 2> /dev/null
  rm /usr/share/xsessions/bee.desktop
  rm /usr/share/applications/nitrogen.desktop
  # dir
  rm -r /etc/skel/Desktop
  rm -r /etc/skel/.config
  rm -r /etc/skel/.local
  # Ok
  echo "+------------------------------------------------------------+"
  echo "| Remove Bee [OK]"
  echo "+------------------------------------------------------------+"
  exit 0
fi

# +------------------------------------------------------------+
# | Bee Install
# +------------------------------------------------------------+
if [ "$1" = "-i" ] && [ $VERSION = "ok" ]; then
  
  # +------------------------------------------------------------+
  # | Update ?
  # +------------------------------------------------------------+
  
  if test -e $BUPDA
  then UPDATE="yes"
  fi
  
  # +------------------------------------------------------------+
  # | Installation
  # +------------------------------------------------------------+
  
  # Go to root directory
  cd
  # Download bee files
  wget http://download.tuxfamily.org/bee/dist/all/bee-root.tar.gz
  wget http://download.tuxfamily.org/bee/dist/wheezy/bee-wheezy.tar.gz
  # Uncompress bee files
  tar zxvf bee-root.tar.gz > /dev/null
  tar zxvf bee-lenny.tar.gz > /dev/null
  # Root files
  chown -R root:root bee-root/
  chown -R root:root bee-lenny/
  # Backup old sources.list
  mv /etc/apt/sources.list /etc/apt/sources.list-backup
  # Move new sources.list
  mv $BDIST/sources.list /etc/apt/
  # Copy apt preferences
  mv $BDIST/preferences /etc/apt/
  # Install keyring
  wget -O - http://backports.org/debian/archive.key | apt-key add -
  wget -O - http://debian-multimedia.org/gpgkey.pub | apt-key add -
  # Update repository
  aptitude update
  # Install bee-base
  aptitude -y --force-yes install xorg xterm dialog
  # Install bee-minimal
  aptitude -y --force-yes install openbox gdebi gmrun obconf obmenu synaptic nitrogen
  # Install bee-artwork
  aptitude -y --force-yes install openbox-themes gnome-themes bee-icons bee-wallpapers
  # Install bee-utils
  aptitude -y --force-yes install gnome-utils alsa-utils mesa-utils xarchiver unrar galternatives htop xfce4-taskmanager

  # +------------------------------------------------------------+
  # | MakeDir
  # +------------------------------------------------------------+
  
  mkdir -p /usr/share/bee/config # ne doit jamais etre supprime
  mkdir -p /etc/skel/Desktop
  mkdir -p /etc/skel/.config
  mkdir -p /etc/skel/.local
  
  # +------------------------------------------------------------+
  # | Start Function
  # +------------------------------------------------------------+
  
  # Install GDM
  function gdma (){
    aptitude -y --force-yes install gdm
  }
  
  # Install Autostartx
  function stax (){
    cd /etc/skel/
    mv .profile .profile-backup
    mv $BSKEL/profile /etc/skel/.profile
  }
  
  # Install Autologin + Autostartx
  function auto (){
    # Autologin
    cd $BROOT/sbin/
    sed -e "s/user/$USER/g" autologin > autologin.tmp && mv autologin.tmp autologin
    chmod +x autologin
    mv autologin /usr/sbin/
    cd /etc/
    cp inittab inittab-backup
    sed -e "s:38400 tty1:-n -l /usr/sbin/autologin 38400 tty1:g" inittab > inittab.tmp && mv inittab.tmp inittab
    # Autostartx
    stax # function
  }
  
  # Install Shiki-Human
  function shio (){
    aptitude -y --force-yes install gtk2-engines-murrine
    mv $BDIST/theme/gtk/Shiki-Human /usr/share/themes/
  }
  
  # Install Aurora-Midnight
  function amid (){
    aptitude -y --force-yes install gtk2-engines-aurora
    mv $BDIST/theme/gtk/Aurora-Midnight /usr/share/themes/
    cd $BSKEL && sed -e "s/Shiki-Human/Aurora-Midnight/g" gtkrc-2.0 > gtkrc-2.0.tmp && mv gtkrc-2.0.tmp gtkrc-2.0
  }
  
  # Install Fbpanel FR
  function fbpf (){
    aptitude -y --force-yes install fbpanel-fr
  }
  
  # Install Fbpanel EN
  function fbpe (){
    aptitude -y --force-yes install fbpanel
  }
  
  # Install Pypanel
  function pypa (){
    aptitude -y --force-yes install pypanel
  }
  
  # Install Network Manager
  function netm (){
    aptitude -y --force-yes install network-manager-gnome
    echo 'nm-applet --sm-disable &' >> $BSKEL/config/openbox/autostart
  }
  
  # Install Wicd
  function wicd (){
    aptitude -y --force-yes install wicd
    echo 'wicd-client &' >> $BSKEL/config/openbox/autostart
  }
  
  # Install Thunar
  function thun (){
    aptitude -y --force-yes install thunar thunar-archive-plugin mplayer-nogui
  }
  
  # Install PCman FM
  function pcma (){
    aptitude -y --force-yes install pcmanfm
  }
  
  # Install Firefox
  function fire (){
    aptitude -y --force-yes install iceweasel iceweasel-l10n-fr
  }
  
  # Install Leafpad
  function leaf (){
    aptitude -y --force-yes install leafpad
  }
  
  # Install Gpicview
  function gpic (){
    aptitude -y --force-yes install gpicview
  }
  
  # Install Evince
  function evin (){
    aptitude -y --force-yes install evince
  }
  
  # Install Xpdf
  function xpdf (){
    aptitude -y --force-yes install xpdf
  }
  
  # Install Brasero
  function bras (){
    aptitude -y --force-yes install brasero
  }
  
  # Install GNOME MPlayer
  function mpla (){
    aptitude -y --force-yes install mplayer-nogui gnome-mplayer mozilla-mplayer
  }
  
  # Install VLC
  function vlcl (){
    aptitude -y --force-yes install vlc
  }
  
  # Install Audacious
  function auda (){
    aptitude -y --force-yes install audacious audacious-plugins audacious-plugins-extra
  }
  
  # Install Sonata/mpd
  function sona (){
    aptitude -y --force-yes install sonata mpd bee-music
    # mpd not start in rc
    invoke-rc.d mpd stop
    update-rc.d -f mpd remove
    # copy config file
    mkdir -p /etc/skel/.config/bee/mpd/playlists
    mv $BSKEL/mpdconf /etc/skel/.mpdconf
    echo 'bee-mpd &' >> $BSKEL/config/openbox/autostart
  }
  
  # Install Pidgin
  function pidg (){
    aptitude -t lenny-backports -y --force-yes install pidgin
  }
  
  # Install Emesene
  function emes (){
    aptitude -y --force-yes install emesene
  }
  
  # Install The GIMP
  function gimp (){
    aptitude -y --force-yes install gimp
  }
  
  # Install Transmission
  function tran (){
    aptitude -y --force-yes install transmission
  }
  
  # Install Geany
  function gean (){
    aptitude -y --force-yes install geany
  }
  
  # Install LibreOffice
  function lo (){
    aptitude -y --force-yes install libreoffice.org-writer libreoffice.org-calc libreoffice.org-impress libreoffice.org-gtk libreoffice.org-l10n-fr libreoffice.org-help-fr
    # profile
    if test ! -e /etc/profile-backup; then
    cp /etc/profile /etc/profile-backup
    echo 'export OOO_FORCE_DESKTOP=gnome' >> /etc/profile
    fi
  }
  
  # Install GNOME Office
  function goff (){
    aptitude -y --force-yes install abiword abiword-plugins gnumeric
  }
  
  # Install GNOME Games
  function ggam (){
    aptitude -y --force-yes install gnome-games
  }
  
  # Install Wbar
  function wbar (){
    aptitude -y --force-yes install wbar bee-wbar
    echo 'sleep 6 && bee-wbar &' >> $BSKEL/config/openbox/autostart
  }
  
  # Install Java
  function java (){
    aptitude -y --force-yes install sun-java6-plugin
  }
  
  # Install MS Fonts
  function msfo (){
    aptitude -y --force-yes install msttcorefonts
  }
  
  # Install Codecs
  function code (){
    aptitude -y --force-yes install ffmpeg w32codecs libmp3lame0 gstreamer0.10-ffmpeg gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly libdvdcss2 libdvdnav4 libdvdread3
  }
  
  # Install Flash
  function flas (){
    aptitude -y --force-yes install flashplayer-mozilla
  }
  
  # Package status ( on = installed, off = not installed )
  function pstatus(){
    if dpkg-query -s "$1" 2> /dev/null | grep -q installed
    then echo "on"
    else echo "off"
    fi
  }
  
  # +------------------------------------------------------------+
  # | Stop Function
  # +------------------------------------------------------------+
  
  # Install Login
  dialog --backtitle "Bee Desktop Environment" --title "Session" \
  --ok-label "Valider" --cancel-label "Quitter" \
  --radiolist "Veuillez choisir le mode de connexion à votre session.\nServez vous de la barre d'espace et des flèches." 11 70 3 \
  "gdma" "GDM, gestionnaire de connexion graphique" off \
  "stax" "Auto startx après un login texte sur le TTY1" off \
  "auto" "Auto login, auto connexion sans taper le mot de passe" on 2> $DIALOG
  
  CONNEXION=`cat $DIALOG`
  
  case $CONNEXION in
  gdma) gdma ;;
  stax) stax ;;
  auto) auto ;;
  esac
  
  # Install Themes
  dialog --backtitle "Bee Desktop Environment" --title "Thèmes" \
  --ok-label "Valider" --cancel-label "Quitter" \
  --radiolist "Veuillez choisir le thème GTK2 désiré.\nServez vous de la barre d'espace et des flèches." 11 70 2 \
  "shio" "Shiki-Human (orange), thème mi-sombre (Murrine)" on \
  "amid" "Aurora-Midnight, thème sombre (Aurora)" off 2> $DIALOG
  
  THEMES=`cat $DIALOG`
  
  case $THEMES in
  shio) shio ;;
  amid) amid ;;
  esac
  
  # Install Panel
  dialog --backtitle "Bee Desktop Environment" --title "Panel" \
  --ok-label "Valider" --cancel-label "Quitter" \
  --radiolist "Installation de votre panel préféré.\nServez vous de la barre d'espace et des flèches." 12 70 4 \
  "fbpf" "Fbpanel FR, panel GTK avec menu d'applications." on \
  "fbpe" "Fbpanel EN, panel GTK avec menu d'applications." off \
  "pypa" "Pypanel, panel en Python sans menu d'applications." off \
  "nopa" "NoPanel, j'utilise un autre panel." off 2> $DIALOG
  
  PANEL=`cat $DIALOG`
  
  case $PANEL in
  fbpf) fbpf ;;
  fbpe) fbpe ;;
  pypa) pypa ;;
  esac
  
  # Install Network Manager
  dialog --backtitle "Bee Desktop Environment" --title "Réseaux" \
  --ok-label "Valider" --cancel-label "Quitter" \
  --radiolist "Veuillez choisir votre gestionnaire de connexion réseaux.\nServez vous de la barre d'espace et des flèches." 11 70 3 \
  "netm" "Network Manager, Filaire/Wifi DHCP/Fixe VPN" off \
  "wicd" "Wicd, Filaire/Wifi DHCP/Fixe" on \
  "nonm" "Aucun, vive le fichier /etc/network/interfaces" off 2> $DIALOG
  
  NETWORK=`cat $DIALOG`
  
  case $NETWORK in
  netm) netm ;;
  wicd) wicd ;;
  esac
  
  # Install Apps
  
  # --checklist texte hauteur largeur hauteur-de-liste [ marqueur1 item1 état] ...
  dialog --backtitle "Bee Desktop Environment" --title "Choix des applications" \
  --ok-label "Valider" --cancel-label "Quitter" \
  --checklist "Cochez vos applications préférées avec la barre d'espace." 20 70 15 \
  "thun" "Thunar, navigateur de fichiers (recommandé)" `if [ $UPDATE = "yes" ]; then pstatus thunar; else echo "on"; fi` \
  "pcma" "PCman FM, navigateur de fichiers avec onglets" `if [ $UPDATE = "yes" ]; then pstatus pcmanfm; else echo "off"; fi` \
  "fire" "Iceweasel (Firefox), navigateur Internet" `if [ $UPDATE = "yes" ]; then pstatus iceweasel; else echo "on"; fi` \
  "leaf" "Leafpad, éditeur de texte (bloc-notes)" `if [ $UPDATE = "yes" ]; then pstatus leafpad; else echo "on"; fi` \
  "gpic" "Gpicview, visionneur d'images" `if [ $UPDATE = "yes" ]; then pstatus gpicview; else echo "on"; fi` \
  "evin" "Evince, lecteur de fichiers PDF" `if [ $UPDATE = "yes" ]; then pstatus evince; else echo "on"; fi` \
  "xpdf" "Xpdf, suite d'outils pour les fichiers PDF" `if [ $UPDATE = "yes" ]; then pstatus xpdf; else echo "off"; fi` \
  "bras" "Brasero, gravure CD & DVD" `if [ $UPDATE = "yes" ]; then pstatus brasero; else echo "on"; fi` \
  "mpla" "GNOME MPlayer, lecteur multimédia suprême" `if [ $UPDATE = "yes" ]; then pstatus gnome-mplayer; else echo "on"; fi` \
  "vlcl" "VLC, lecteur multimédia" `if [ $UPDATE = "yes" ]; then pstatus vlc; else echo "off"; fi` \
  "auda" "Audacious, lecteur audio (winamp-like)" `if [ $UPDATE = "yes" ]; then pstatus audacious; else echo "on"; fi` \
  "sona" "Sonata/mpd, lecteur audio (audiothèque)" `if [ $UPDATE = "yes" ]; then pstatus sonata; else echo "off"; fi` \
  "pidg" "Pidgin, client messagerie multi-protocoles" `if [ $UPDATE = "yes" ]; then pstatus pidgin; else echo "on"; fi` \
  "emes" "Emesene, client messagerie MSN" `if [ $UPDATE = "yes" ]; then pstatus emesene; else echo "off"; fi` \
  "gimp" "The GIMP, éditeur d'images" `if [ $UPDATE = "yes" ]; then pstatus gimp; else echo "off"; fi` \
  "tran" "Transmission, client BitTorrent" `if [ $UPDATE = "yes" ]; then pstatus transmission; else echo "off"; fi` \
  "gean" "Geany, IDE rapide et léger" `if [ $UPDATE = "yes" ]; then pstatus geany; else echo "off"; fi` \
  "lo3" "LibreOffice.org 3, suite bureautique complète" off \
  "goff" "GNOME Office, Abiword + Gnumeric" `if [ $UPDATE = "yes" ]; then pstatus abiword; else echo "off"; fi` \
  "ggam" "GNOME Games, collection de 17 petits jeux '5 minutes'" `if [ $UPDATE = "yes" ]; then pstatus gnome-games; else echo "on"; fi` \
  "wbar" "Lanceur d'applications / dock, Wbar." `if [ $UPDATE = "yes" ]; then pstatus bee-wbar; else echo "off"; fi` \
  "java" "Sun Java(TM) 6 et son plugin" `if [ $UPDATE = "yes" ]; then pstatus sun-java6-plugin; else echo "off"; fi` \
  "msfo" "MS Fonts, les polices Microsoft (recommandé)" `if [ $UPDATE = "yes" ]; then pstatus msttcorefonts; else echo "on"; fi` \
  "code" "Les codecs ffmpeg w32codecs mp3 gstreamer" `if [ $UPDATE = "yes" ]; then pstatus w32codecs; else echo "on"; fi` \
  "flas" "Adobe Flash Plugin 10" `if [ $UPDATE = "yes" ]; then pstatus flashplayer-mozilla; else echo "on"; fi` 2> $DIALOG
  
  # traitement de la réponse
  for i in `cat $DIALOG`
  do
  case $i in
  \"thun\") thun ;;
  \"pcma\") pcma ;;
  \"fire\") fire ;;
  \"leaf\") leaf ;;
  \"gpic\") gpic ;;
  \"evin\") evin ;;
  \"xpdf\") xpdf ;;
  \"bras\") bras ;;
  \"mpla\") mpla ;;
  \"vlcl\") vlcl ;;
  \"auda\") auda ;;
  \"sona\") sona ;;
  \"pidg\") pidg ;;
  \"emes\") emes ;;
  \"gimp\") gimp ;;
  \"tran\") tran ;;
  \"gean\") gean ;;
  \"ooo3\") ooo3 ;;
  \"goff\") goff ;;
  \"ggam\") ggam ;;
  \"wbar\") wbar ;;
  \"java\") java ;;
  \"msfo\") msfo ;;
  \"code\") code ;;
  \"flas\") flas ;;
  esac
  done
  
  # What is your panel ?
  if test -e /usr/bin/pypanel; then
    mv $BSKEL/pypanelrc /etc/skel/.pypanelrc
    cd $BROOT/bin/ && sed -e "s/fbpanel/pypanel/g" bee-session > bee-session.tmp && mv bee-session.tmp bee-session
    chmod +x bee-session
  elif test -e /usr/bin/thunar; then
    mv $BSKEL/fbpanel/ /etc/skel/.fbpanel
  else
    cd $BSKEL/fbpanel/ && sed -e "s/thunar/pcmanfm/g" default > default.tmp && mv default.tmp default
    mv $BSKEL/fbpanel/ /etc/skel/.fbpanel
  fi
  
  # What is your files manager ?
  if test -e /usr/bin/thunar; then
    mv $BSKEL/config/* /etc/skel/.config/
    # thunar-video-thumbs
    mkdir -p /usr/lib/thumbnailers
    mv $BROOT/lib/mplayer-thumbnailer /usr/lib/thumbnailers/
    mkdir -p /usr/share/thumbnailers
    mv $BROOT/dotdesktop/video-thumbs.desktop /usr/share/thumbnailers/
  else
    cd $BSKEL/config/openbox/
    sed -e "s/thunar/pcmanfm/g" rc.xml > rc.xml.tmp && mv rc.xml.tmp rc.xml
    sed -e "s/thunar/pcmanfm/g" menu.xml > menu.xml.tmp && mv menu.xml.tmp menu.xml
    mv $BSKEL/config/* /etc/skel/.config/
  fi
  
  # Install Bee Files
  # dir
  mv $BSKEL/local/* /etc/skel/.local/
  # text
  echo "exec bee-session" > /etc/skel/.xsession
  mv $BSKEL/gtkrc-2.0 /etc/skel/.gtkrc-2.0
  mv $BSKEL/gtk-runtheme /etc/skel/.gtk-runtheme
  mv $BROOT/dotdesktop/bee.desktop /usr/share/xsessions/
  mv $BROOT/dotdesktop/nitrogen.desktop /usr/share/applications/
  # bin
  mv $BROOT/bin/* /usr/local/bin/
  mv $BDIST/bin/* /usr/local/bin/
  # lns
  ln -sf /usr/share/bee/wallpapers /etc/skel/
  ln -sf /home/$USER/.gtkrc-2.0 /root/
  ln -sf /home/$USER/.themes /root/
  ln -sf /home/$USER/.icons /root/
  
  # Sudoers
  if test ! -e /etc/sudoers-backup; then
    cp /etc/sudoers /etc/sudoers-backup
    echo "ALL ALL=NOPASSWD:/sbin/shutdown" >> /etc/sudoers
    # echo "ALL ALL=NOPASSWD:/usr/sbin/update-manager" >> /etc/sudoers
  fi
  
  # Make backup dir
  mkdir -p $BBACK
  echo -e "Ce dossier contient une copie de sauvegarde des fichiers de configuration qui ont été remplacé.\nFaites CTRL + H pour voir les fichiers caché." > $BBACK/readme
  
  # Backup config files
  cd /home/$USER
  # cp -r .[^.]* $BBACK/ # all config files
  cp -r .config/ $BBACK/ 2> /dev/null
  cp -r .fbpanel/ $BBACK/ 2> /dev/null
  cp -r .local/ $BBACK/ 2> /dev/null
  cp .gtkrc-2.0 $BBACK/ 2> /dev/null
  cp .mpdconf $BBACK/ 2> /dev/null
  cp .profile $BBACK/ 2> /dev/null
  cp .pypanelrc $BBACK/ 2> /dev/null
  mv .xsession $BBACK/ 2> /dev/null
  mv .bash_profile $BBACK/ 2> /dev/null # preventif
  
  # Copy skel to home 
  cd /etc/skel
  rm -f .bash_profile 2> /dev/null # preventif
  cp -r /etc/skel/. /home/$USER
  chown -R 1000:1000 /home/$USER
  
  # Clean
  rm $DIALOG
  cd
  rm -r bee-root/ bee-root.tar.gz
  rm -r bee-lenny/ bee-lenny.tar.gz
  rm bee-checklist 2> /dev/null # preventif temp
  cp bee /usr/local/bin/ 2> /dev/null # preventif temp
  
  cd /usr/share/xsessions/
  if test -e openbox.desktop; then
    rm openbox.desktop
  fi
  if test -e openbox-gnome.desktop; then
    rm openbox-gnome.desktop
  fi
  if test -e openbox-kde.desktop; then
    rm openbox-kde.desktop
  fi
  
  # Installation OK
  
  # Creation du fichier update si premiere installation
  if test ! -e $BUPDA; then
  touch $BUPDA
  fi
  
  echo "+------------------------------------------------------------+"
  echo "| Install Bee [OK]"
  echo "+------------------------------------------------------------+"
  
  if test -e /usr/sbin/gdm; then
    # GDM start
    invoke-rc.d gdm restart
  else
    # Login
    login -f $USER
  fi
  
  exit 0
  
else
  
  echo "+------------------------------------------------------------+"
  echo "| Bee ne peut s'installer pour une des raisons suivante :"
  echo "+------------------------------------------------------------+"
  echo "| 1° Il est tard et vous avez du mal à taper : bash bee -i"
  echo "| 2° Ce script est incompatible avec Debian $VERSION"
  echo "+------------------------------------------------------------+"
  
fi

Il y aura aussi le sources.list à modifier mais ce n'est pas le plus compliqué.

Je l'ai à peine modifier, par contre je suis effectivement d'avis de remplacer de gestionnaire de connection et mettre slim à la place.

Si il y a d'autres propositions... smile

#1 Re : -1 »  Bee (lightweight desktop environment) » Le 31/05/2011, à 13:46

catal
Réponses : 1281
caspual a écrit :

Salut à tous

Je comptais faire un site indépendant, mais je vois que le forum est très actif. Je vais tjrs faire le site, mais s'il y a des volontaires pour s'occuper de la partie Debian (comme Catal pour la testing Debian), et d'autres distributions, ça me ferait plaisir.

Bye

C'est pas un soucis si on m'accompagne. smile