Accueil : Différence entre versions

De TARENTINO
Aller à la navigationAller à la recherche
Ligne 1 : Ligne 1 :
<strong>MediaWiki a été installé.</strong>
+
* #!/bin/bash
 
+
* if [ ! -d "/root/.config" ]; then
Consultez le [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents Guide de l’utilisateur] pour plus d’informations sur l’utilisation de ce logiciel de wiki.
+
* mkdir /root/.config
 
+
* fi
== Pour démarrer ==
+
* if [ ! -d "/root/.config/nautilus" ]; then
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Liste des paramètres de configuration]
+
* mkdir /root/.config/nautilus
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/fr Questions courantes sur MediaWiki]
+
* fi
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Liste de discussion sur les distributions de MediaWiki]
+
* if [ ! -f "/root/.Xauthority" ]; then
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Adaptez MediaWiki dans votre langue]
+
* touch /root/.Xauthority
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Apprendre comment lutter contre le pourriel dans votre wiki]
+
* fi
 +
* DATE_NOW=`date +"%Y%m%d_%H%M%S"`
 +
* logs="/root/Logs_Install.txt"
 +
* rm -f $logs
 +
* touch "$logs"
 +
*
 +
* # Repository
 +
* echo "Installation Repository" | tee -a "$logs"
 +
* add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" -y | tee -a "$logs"
 +
* apt-add-repository 'deb http://liveusb.info/multisystem/depot all main' -y | tee -a "$logs"
 +
* z="unit193/encryption yannubuntu/boot-repair gwendal-lebihan-dev/cinnamon-stable simonschneegans/testing twodopeshaggy/jarun pmcenery/ppa gezakovacs/ppa"
 +
* IFS=" "
 +
* for i in $(echo "$z")
 +
* do
 +
* echo "--------------------------> $i" | tee -a "$logs"
 +
* ii=$(echo "$i" | cut -d "/" -f1)
 +
* ok=$(ls /etc/apt/sources.list.d/*$ii* 2>/dev/null)
 +
* if [ "$ok" == "" ]; then
 +
* echo "On installe $i dans les sources" | tee -a "$logs"
 +
* add-apt-repository ppa:$i -y | tee -a "$logs"
 +
* else
 +
* echo "$result déjà dans les sources" | tee -a "$logs"
 +
* fi
 +
* done
 +
* if [ "$(which aptitude)" == "" ]; then
 +
* apt-get install aptitude -y | tee -a "$logs"
 +
* fi
 +
* if [ "$(which snapd)" == "" ]; then
 +
* aptitude install snapd -y | tee -a "$logs"
 +
* fi
 +
* if [ "$(which snapd-xdg-open)" == "" ]; then
 +
* aptitude install snapd -y | tee -a "$logs"
 +
* fi
 +
* sudo apt update | tee -a "$logs"
 +
* z="unetbootin libcanberra-gtk-module libcanberra-gtk3-module synaptic cairo-dock gparted apturl fonts-symbola boot-repair chrome-gnome-shell brasero gpaint lmms vim veracrypt zram-config whois filezilla fslint openssh-client openssh-server multisystem testdisk rawtherapee darktable nmon iftop iptraf-ng glances fdupes rmlint gimp net-tools preload prelink localepurge xdotool phototonic nemo nemo-fileroller clamav imagemagick gnome-pie graphviz ffdiaporama findimagedupes wine chrome-gnome-shell rox-filer mount.cifs xclip lynx adobe-flashplugin ubuntu-restricted-extras adobe-flash-properties-gtk dos2unix googler python-flask numlockx xbindkeys xvkbd"
 +
* IFS=" "
 +
* for i in $(echo "$z")
 +
* do
 +
* echo "--------------------------> $i" | tee -a "$logs"
 +
* if [ "$(which ${i})" == "" ]; then
 +
* echo "On installe $i" | tee -a "$logs"
 +
* aptitude install "$i" -y | tee -a "$logs"
 +
* else
 +
* echo "$result déjà installé" | tee -a "$logs"
 +
* fi
 +
* done
 +
* sudo apt -f install -y
 +
* sudo apt-get update -y
 +
* sudo service zram-config start
 +
* # APTURL
 +
* logs="/root/Logs_Install.txt"
 +
* z="nautilus-emblems flashplugin-installer xmacro pcmanfm dconf-editor bleachbit gwenview pcmanfm synfig synfigstudio"
 +
* IFS=" "
 +
* for i in $(echo "$z")
 +
* do
 +
* echo "--------------------------> $i" | tee -a "$logs"
 +
* if [ -z $(which $i) ];then
 +
* retour=$(dpkg -l | grep "$i" )
 +
* if [ "$retour" == '' ]; then
 +
* echo 'KO, On installe' | tee -a "$logs"
 +
* i='apt://'$i
 +
* apturl "$i" &
 +
* sleep 2
 +
* xdotool keydown key Tab
 +
* sleep 2
 +
* xdotool key Return
 +
* sleep 7
 +
* else
 +
* echo 'OK, Installe' | tee -a "$logs"
 +
* fi
 +
* else
 +
* echo 'OK, Installe' | tee -a "$logs"
 +
* fi
 +
* done
 +
*
 +
* # SNAP
 +
* echo "********" | tee -a "$logs"
 +
* echo "* SNAP *" | tee -a "$logs"
 +
* echo "********" | tee -a "$logs"
 +
* sudo snap install notepad-plus-plus | tee -a "$logs"
 +
* sudo snap connect notepad-plus-plus:process-control | tee -a "$logs"
 +
* sudo snap connect notepad-plus-plus:removable-media | tee -a "$logs"
 +
* sudo snap connect notepad-plus-plus:hardware-observe | tee -a "$logs"
 +
* sudo snap connect notepad-plus-plus:cups-control | tee -a "$logs"
 +
* echo "--" | tee -a "$logs"
 +
*
 +
* # WGET
 +
* echo "********" | tee -a "$logs"
 +
* echo "* WGET *" | tee -a "$logs"
 +
* echo "********" | tee -a "$logs"
 +
* wget -P /tmp -q http://liveusb.info/multisystem/depot/multisystem.asc -O- | sudo apt-key add -
 +
* cd /tmp; apt-get --assume-yes install multisystem -y; cd -
 +
* z="https://download.teamviewer.com/download/linux/teamviewer_amd64.deb http://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb http://launchpadlibrarian.net/206807840/python-glade2_2.24.0-4ubuntu1_amd64.deb https://launchpad.net/disk-manager/1.1/1.1.1/+download/disk-manager_1.1.1-1_all.deb"
 +
* reps="/root"
 +
* IFS=" "
 +
* for i in $(echo "$z")
 +
* do
 +
* echo "--------------------------> $i" | tee -a "$logs"
 +
* occ=$(occurences "$i" "/" d | cut -d" " -f2-)
 +
* occ=$(echo $occ | cut -d" " -f2-)
 +
* occ2=$occ
 +
* occ=$(echo "$(echo "$occ" | cut -d" " -f3)" | sed 's/....$//' | cut -d"_" -f1)
 +
* echo "--------------- ($occ2)" | tee -a "$logs"
 +
* if [ -z $(which "$occ") ];then
 +
* retour=$(dpkg -l | grep "$occ")
 +
* if [ "$retour" == '' ]; then
 +
* echo 'KO, On installe' | tee -a "$logs"
 +
* #wget -P /tmp "$i" | tee -a "$logs"
 +
* wget -P "$reps" "$i" | tee -a "$logs"
 +
* encoursdpkg=$(ps -edf | grep dpkg | grep -v grep)
 +
* while [[ $(ps -edf | grep dpkg | grep -v grep) != "" ]]
 +
* do
 +
* echo "dpkg en cours...."
 +
* done
 +
* dpkg -i "$reps/${occ2}" | tee -a "$logs"
 +
* ls -l "$reps/${occ2}"
 +
* else
 +
* echo 'OK, Installe' | tee -a "$logs"
 +
* fi
 +
* else
 +
* echo 'OK, Installe' | tee -a "$logs"
 +
* fi
 +
* done
 +
* rm -f "$reps/${occ2}"
 +
* rm -f "$reps/${occ2}.?"
 +
* apt -f install
 +
* apt-get update
 +
*
 +
* # Divers
 +
* echo "**********" | tee -a "$logs"
 +
* echo "* Divers *" | tee -a "$logs"
 +
* echo "**********" | tee -a "$logs"
 +
* cp -v /usr/share/applications/cairo-dock.desktop /home/a/.config/autostart/cairo-dock.desktop | tee -a "$logs"
 +
* sed -i 's/PRELINKING=unknown/PRELINKING=yes/' /etc/default/prelink
 +
* echo 'DPkg::Post-Invoke {"echo Pré-raccordement des bibliothèques en cours, veuillez patienter...;/etc/cron.daily/prelink";}'|tee -a /etc/apt/apt.conf.d/98prelink
 +
* xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
 +
* sed -i "/^# deb .*partner/ s/^# //" /etc/apt/sources.list
 +
* cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
 +
* chmod a-w /etc/ssh/sshd_config.original
 +
* echo >> /home/$user/.bashrc
 +
* echo export LS_OPTIONS='--color=auto' >> /home/$user/.bashrc
 +
* #echo eval "`dircolors`" >> /home/$user/.bashrc
 +
* echo alias ls='ls $LS_OPTIONs' >> /home/$user/.bashrc
 +
*  
 +
* # EXTENSIONS FIREFOX
 +
* firefox "https://addons.mozilla.org/fr/firefox/addon/video-downloadhelper/" &
 +
* firefox "http://get.adobe.com/fr/flashplayer/about/" &
 +
* firefox "https://www.mozilla.org/fr/firefox/new/?scene=2" &
 +
* firefox "https://nautilus-image-converter.fr.uptodown.com/ubuntu/telecharger" &
 +
* firefox "http://blog.roozeec.fr/2007/09/05/tagphoto-script-nautilus-pour-mettre-date-et-heure-sur-vos-photos/" &
 +
* firefox "https://addons.mozilla.org/fr/firefox/addon/bookmark-dupes/" &
 +
* echo "**********************" | tee -a "$logs"
 +
* echo "* EXTENSIONS FIREFOX *" | tee -a "$logs"
 +
* echo "**********************" | tee -a "$logs"
 +
* z="https://addons.mozilla.org/firefox/downloads/file/744266/video_downloadhelper-6.3.3-fx.xpi https://addons.mozilla.org/fr/firefox/addon/adblock-plus"
 +
* reps="/root"
 +
* cd $reps
 +
* IFS=" "
 +
* for i in $(echo "$z")
 +
* do
 +
* wget "$i"
 +
* /usr/bin/firefox -install-global-extension "$i"
 +
* done
 +
* cd -
 +
* exit 0
 +
* #
 +
* #FLASH
 +
* #    URLs
 +
* #
 +
* #    SAUVEGARDES
 +
* #
 +
* #
 +
* #
 +
* #    UTILISATEUR
 +
* #
 +
* #
 +
* #
 +
* #    DESINSTALLATIONS
 +
* #
 +
* # Dans le cas où le Pc n est pas un portable, désactivation de la gestion des touches bleus.
 +
* #
 +
* #sudo update-rc.d -f hotkey-setup remove
 +
* #
 +
* #Batterie
 +
* #
 +
* #sudo update-rc.d -f laptop-mode remove
 +
* #
 +
* #Gestion du Raid
 +
* #
 +
* #sudo update-rc.d -f mdadm remove
 +
* #sudo update-rc.d -f mdadm-raid remove
 +
* #
 +
* #Modem
 +
* #
 +
* #sudo update-rc.d -f dns-clean remove
 +
* #
 +
* #    Redémarrage des services
 +
* #
 +
* #sudo systemctl restart sshd.service
 +
* #
 +
* #    COMPLEMENTS
 +
* #
 +
* #Avec une clé SSH, effectuer en plus...
 +
* #
 +
* #Générer une clé
 +
* # ssh-keygen -t rsa
 +
* #Copier le fichier id_rsa.pub sur l'hôte distant et l'ajouter à ~/.ssh/authorized_keys
 +
* # ssh-copy-id identifiant@hôte
 +
* #
 +
* #sed -i 's/geteuid/getppid/' /usr/bin/vlc
 +
* #
 +
* #sudo apt-get update
 +
* #sudo apt-get upgrade
 +
* #sudo apt-get install libimobiledevice-utils
 +
* #idevicepair unpair
 +
* #idevicepair pair
 +
* #idevicepair validate
 +
* #
 +
* # Fond d'ecran en terminal:
 +
* #http://www.billyboylindien.com/ubuntu/ubuntu-devilspie.html
 +
* #https://www.torproject.org/fr/download/
 +
* #
 +
* # APT
 +
* #

Version du 11 août 2019 à 11:08

Array
  • #!/bin/bash
  • if [ ! -d "/root/.config" ]; then
  • mkdir /root/.config
  • fi
  • if [ ! -d "/root/.config/nautilus" ]; then
  • mkdir /root/.config/nautilus
  • fi
  • if [ ! -f "/root/.Xauthority" ]; then
  • touch /root/.Xauthority
  • fi
  • DATE_NOW=`date +"%Y%m%d_%H%M%S"`
  • logs="/root/Logs_Install.txt"
  • rm -f $logs
  • touch "$logs"
  • # Repository
  • echo "Installation Repository" | tee -a "$logs"
  • add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" -y | tee -a "$logs"
  • apt-add-repository 'deb http://liveusb.info/multisystem/depot all main' -y | tee -a "$logs"
  • z="unit193/encryption yannubuntu/boot-repair gwendal-lebihan-dev/cinnamon-stable simonschneegans/testing twodopeshaggy/jarun pmcenery/ppa gezakovacs/ppa"
  • IFS=" "
  • for i in $(echo "$z")
  • do
  • echo "--------------------------> $i" | tee -a "$logs"
  • ii=$(echo "$i" | cut -d "/" -f1)
  • ok=$(ls /etc/apt/sources.list.d/*$ii* 2>/dev/null)
  • if [ "$ok" == "" ]; then
  • echo "On installe $i dans les sources" | tee -a "$logs"
  • add-apt-repository ppa:$i -y | tee -a "$logs"
  • else
  • echo "$result déjà dans les sources" | tee -a "$logs"
  • fi
  • done
  • if [ "$(which aptitude)" == "" ]; then
  • apt-get install aptitude -y | tee -a "$logs"
  • fi
  • if [ "$(which snapd)" == "" ]; then
  • aptitude install snapd -y | tee -a "$logs"
  • fi
  • if [ "$(which snapd-xdg-open)" == "" ]; then
  • aptitude install snapd -y | tee -a "$logs"
  • fi
  • sudo apt update | tee -a "$logs"
  • z="unetbootin libcanberra-gtk-module libcanberra-gtk3-module synaptic cairo-dock gparted apturl fonts-symbola boot-repair chrome-gnome-shell brasero gpaint lmms vim veracrypt zram-config whois filezilla fslint openssh-client openssh-server multisystem testdisk rawtherapee darktable nmon iftop iptraf-ng glances fdupes rmlint gimp net-tools preload prelink localepurge xdotool phototonic nemo nemo-fileroller clamav imagemagick gnome-pie graphviz ffdiaporama findimagedupes wine chrome-gnome-shell rox-filer mount.cifs xclip lynx adobe-flashplugin ubuntu-restricted-extras adobe-flash-properties-gtk dos2unix googler python-flask numlockx xbindkeys xvkbd"
  • IFS=" "
  • for i in $(echo "$z")
  • do
  • echo "--------------------------> $i" | tee -a "$logs"
  • if [ "$(which ${i})" == "" ]; then
  • echo "On installe $i" | tee -a "$logs"
  • aptitude install "$i" -y | tee -a "$logs"
  • else
  • echo "$result déjà installé" | tee -a "$logs"
  • fi
  • done
  • sudo apt -f install -y
  • sudo apt-get update -y
  • sudo service zram-config start
  • # APTURL
  • logs="/root/Logs_Install.txt"
  • z="nautilus-emblems flashplugin-installer xmacro pcmanfm dconf-editor bleachbit gwenview pcmanfm synfig synfigstudio"
  • IFS=" "
  • for i in $(echo "$z")
  • do
  • echo "--------------------------> $i" | tee -a "$logs"
  • if [ -z $(which $i) ];then
  • retour=$(dpkg -l | grep "$i" )
  • if [ "$retour" == ]; then
  • echo 'KO, On installe' | tee -a "$logs"
  • i='apt://'$i
  • apturl "$i" &
  • sleep 2
  • xdotool keydown key Tab
  • sleep 2
  • xdotool key Return
  • sleep 7
  • else
  • echo 'OK, Installe' | tee -a "$logs"
  • fi
  • else
  • echo 'OK, Installe' | tee -a "$logs"
  • fi
  • done
  • # SNAP
  • echo "********" | tee -a "$logs"
  • echo "* SNAP *" | tee -a "$logs"
  • echo "********" | tee -a "$logs"
  • sudo snap install notepad-plus-plus | tee -a "$logs"
  • sudo snap connect notepad-plus-plus:process-control | tee -a "$logs"
  • sudo snap connect notepad-plus-plus:removable-media | tee -a "$logs"
  • sudo snap connect notepad-plus-plus:hardware-observe | tee -a "$logs"
  • sudo snap connect notepad-plus-plus:cups-control | tee -a "$logs"
  • echo "--" | tee -a "$logs"
  • # WGET
  • echo "********" | tee -a "$logs"
  • echo "* WGET *" | tee -a "$logs"
  • echo "********" | tee -a "$logs"
  • wget -P /tmp -q http://liveusb.info/multisystem/depot/multisystem.asc -O- | sudo apt-key add -
  • cd /tmp; apt-get --assume-yes install multisystem -y; cd -
  • z="https://download.teamviewer.com/download/linux/teamviewer_amd64.deb http://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb http://launchpadlibrarian.net/206807840/python-glade2_2.24.0-4ubuntu1_amd64.deb https://launchpad.net/disk-manager/1.1/1.1.1/+download/disk-manager_1.1.1-1_all.deb"
  • reps="/root"
  • IFS=" "
  • for i in $(echo "$z")
  • do
  • echo "--------------------------> $i" | tee -a "$logs"
  • occ=$(occurences "$i" "/" d | cut -d" " -f2-)
  • occ=$(echo $occ | cut -d" " -f2-)
  • occ2=$occ
  • occ=$(echo "$(echo "$occ" | cut -d" " -f3)" | sed 's/....$//' | cut -d"_" -f1)
  • echo "--------------- ($occ2)" | tee -a "$logs"
  • if [ -z $(which "$occ") ];then
  • retour=$(dpkg -l | grep "$occ")
  • if [ "$retour" == ]; then
  • echo 'KO, On installe' | tee -a "$logs"
  • #wget -P /tmp "$i" | tee -a "$logs"
  • wget -P "$reps" "$i" | tee -a "$logs"
  • encoursdpkg=$(ps -edf | grep dpkg | grep -v grep)
  • while grep dpkg | grep -v grep) != ""
  • do
  • echo "dpkg en cours...."
  • done
  • dpkg -i "$reps/${occ2}" | tee -a "$logs"
  • ls -l "$reps/${occ2}"
  • else
  • echo 'OK, Installe' | tee -a "$logs"
  • fi
  • else
  • echo 'OK, Installe' | tee -a "$logs"
  • fi
  • done
  • rm -f "$reps/${occ2}"
  • rm -f "$reps/${occ2}.?"
  • apt -f install
  • apt-get update
  • # Divers
  • echo "**********" | tee -a "$logs"
  • echo "* Divers *" | tee -a "$logs"
  • echo "**********" | tee -a "$logs"
  • cp -v /usr/share/applications/cairo-dock.desktop /home/a/.config/autostart/cairo-dock.desktop | tee -a "$logs"
  • sed -i 's/PRELINKING=unknown/PRELINKING=yes/' /etc/default/prelink
  • echo 'DPkg::Post-Invoke {"echo Pré-raccordement des bibliothèques en cours, veuillez patienter...;/etc/cron.daily/prelink";}'|tee -a /etc/apt/apt.conf.d/98prelink
  • xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
  • sed -i "/^# deb .*partner/ s/^# //" /etc/apt/sources.list
  • cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
  • chmod a-w /etc/ssh/sshd_config.original
  • echo >> /home/$user/.bashrc
  • echo export LS_OPTIONS='--color=auto' >> /home/$user/.bashrc
  • #echo eval "`dircolors`" >> /home/$user/.bashrc
  • echo alias ls='ls $LS_OPTIONs' >> /home/$user/.bashrc
  • # EXTENSIONS FIREFOX
  • firefox "https://addons.mozilla.org/fr/firefox/addon/video-downloadhelper/" &
  • firefox "http://get.adobe.com/fr/flashplayer/about/" &
  • firefox "https://www.mozilla.org/fr/firefox/new/?scene=2" &
  • firefox "https://nautilus-image-converter.fr.uptodown.com/ubuntu/telecharger" &
  • firefox "http://blog.roozeec.fr/2007/09/05/tagphoto-script-nautilus-pour-mettre-date-et-heure-sur-vos-photos/" &
  • firefox "https://addons.mozilla.org/fr/firefox/addon/bookmark-dupes/" &
  • echo "**********************" | tee -a "$logs"
  • echo "* EXTENSIONS FIREFOX *" | tee -a "$logs"
  • echo "**********************" | tee -a "$logs"
  • z="https://addons.mozilla.org/firefox/downloads/file/744266/video_downloadhelper-6.3.3-fx.xpi https://addons.mozilla.org/fr/firefox/addon/adblock-plus"
  • reps="/root"
  • cd $reps
  • IFS=" "
  • for i in $(echo "$z")
  • do
  • wget "$i"
  • /usr/bin/firefox -install-global-extension "$i"
  • done
  • cd -
  • exit 0
  • #
  • #FLASH
  • # URLs
  • #
  • # SAUVEGARDES
  • #
  • #
  • #
  • # UTILISATEUR
  • #
  • #
  • #
  • # DESINSTALLATIONS
  • #
  • # Dans le cas où le Pc n est pas un portable, désactivation de la gestion des touches bleus.
  • #
  • #sudo update-rc.d -f hotkey-setup remove
  • #
  • #Batterie
  • #
  • #sudo update-rc.d -f laptop-mode remove
  • #
  • #Gestion du Raid
  • #
  • #sudo update-rc.d -f mdadm remove
  • #sudo update-rc.d -f mdadm-raid remove
  • #
  • #Modem
  • #
  • #sudo update-rc.d -f dns-clean remove
  • #
  • # Redémarrage des services
  • #
  • #sudo systemctl restart sshd.service
  • #
  • # COMPLEMENTS
  • #
  • #Avec une clé SSH, effectuer en plus...
  • #
  • #Générer une clé
  • # ssh-keygen -t rsa
  • #Copier le fichier id_rsa.pub sur l'hôte distant et l'ajouter à ~/.ssh/authorized_keys
  • # ssh-copy-id identifiant@hôte
  • #
  • #sed -i 's/geteuid/getppid/' /usr/bin/vlc
  • #
  • #sudo apt-get update
  • #sudo apt-get upgrade
  • #sudo apt-get install libimobiledevice-utils
  • #idevicepair unpair
  • #idevicepair pair
  • #idevicepair validate
  • #
  • # Fond d'ecran en terminal:
  • #http://www.billyboylindien.com/ubuntu/ubuntu-devilspie.html
  • #https://www.torproject.org/fr/download/
  • #
  • # APT
  • #