su ### installation depuis une debian classique setxkbmap -layout "fr, fr" -option "grp:menu_toggle" && sudo -i su ### installation depuis une clé usb debian live apt-get install aptitude \ && aptitude install gparted debootstrap \ && gparted DVERSION=jessie && DARCH=amd64 && DHD=/dev/sdx && DPART=/dev/sdxX ### amd64, arm64, armel, armhf, i686-pae, i686, mips, mipsel, powerpc, ppc64el ou s390x. && mkdir -p /mnt/debinst \ && mount $DPART /mnt/debinst \ && debootstrap --arch $DARCH $DVERSION /mnt/debinst http://ftp.fr.debian.org/debian \ && cd /mnt/debinst \ && mount -t proc proc proc/ \ && mount -t sysfs sys sys/ \ && mount -o bind /dev dev/ \ && LANG=C.UTF-8 chroot /mnt/debinst /bin/bash ###chroot DVERSION=jessie && DARCH=amd64 && DHD=/dev/sdx && DPART=/dev/sdxX ###renouveler les variables suite au chroot... export TERM=xterm-color \ && apt-get install aptitude \ && aptitude install makedev \ && mount none /proc -t proc \ && cd /dev \ && MAKEDEV generic \ && echo "#utiliser blkid pour trouver l'UUID de $DPART si nécessaire, puis de /home et du swap..." >> /etc/fstab \ && echo "# / was on $DPART during installation" >> /etc/fstab \ && echo "UUID=`blkid -o value $DPART | grep -` / ext4 defaults 0 2" >> /etc/fstab \ && echo "" >> /etc/fstab \ && echo "UUID= /home ext4 defaults 0 2" >> /etc/fstab \ && echo "" >> /etc/fstab \ && echo "UUID= none swap sw 0 0" >> /etc/fstab \ && nano /etc/fstab \ && mount -t proc proc /proc \ && nano /etc/adjtime \ && dpkg-reconfigure tzdata \ && nano /etc/network/interfaces \ && nano /etc/resolv.conf \ && echo $DVERSION > /etc/hostname \ && echo "127.0.0.1 $VERSION" >> /etc/hosts \ && nano /etc/hosts \ && echo "deb http://ftp.fr.debian.org/debian $DVERSION main contrib non-free" > /etc/apt/sources.list \ && echo "deb-src http://ftp.fr.debian.org/debian $DVERSION main contrib non-free" >> /etc/apt/sources.list \ && echo "deb http://ftp.fr.debian.org/debian $DVERSION-updates main contrib non-free" >> /etc/apt/sources.list \ && echo "deb-src http://ftp.fr.debian.org/debian $DVERSION-updates main contrib non-free" >> /etc/apt/sources.list \ && echo "deb http://ftp.fr.debian.org/debian $DVERSION-backports main contrib non-free" >> /etc/apt/sources.list \ && echo "deb-src http://ftp.fr.debian.org/debian $DVERSION-backports main contrib non-free" >> /etc/apt/sources.list \ && echo "deb http://security.debian.org/ $DVERSION/updates main contrib non-free" >> /etc/apt/sources.list \ && echo "deb-src http://security.debian.org/ $DVERSION/updates main contrib non-free" >> /etc/apt/sources.list \ && echo "deb-src http://ftp.fr.debian.org/debian sid main contrib non-free" >> /etc/apt/sources.list \ && nano /etc/apt/sources.list \ && aptitude update \ && aptitude install locales \ && dpkg-reconfigure locales \ && aptitude install console-setup \ && dpkg-reconfigure keyboard-configuration \ && aptitude install linux-image-$DARCH ### Selections obtenues avec la commande: dpkg --get-selections > selection.debian.txt ### Choisir la sélection appropriée sur http://deben.loloetben.fr DSELECTION=selection.debian.txt \ && cd /root \ && wget http://deben.loloetben.fr/$DSELECTION \ && aptitude install $(cat /root/$DSELECTION | awk '{print $1}') \ && aptitude purge gnome-keyring pulseaudio pulseaudio-utils xscreensaver xscreensaver-data xscreensaver-data-extra software-properties-gtk unattended-upgrades OU Chercher le driver wifi avec '# lspci' et https://wiki.debian.org/WiFi cd /root \ && aptitude install unzip git samba-client smbnetfs file-roller gvfs-backends moc vlc gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly cifs-utils xfce4 xfce4-terminal gnome-keyring seahorse lightdm network-manager network-manager-gnome pk-update-icon $DRIVER-WIFI\ && aptitude purge pulseaudio pulseaudio-utils xscreensaver xscreensaver-data xscreensaver-data-extra software-properties-gtk unattended-upgrades \ && echo "search home" > /etc/resolv.conf \ && echo "nameserver 192.168.1.1" >> /etc/resolv.conf ###important: une fois logué, lancer seahorse et modifier le mot de passe du trousseau contenant la connection wifi pour mettre un mot de passe vide. cela permet de ne pas avoir à entrer le mot de passe à chaque reboot... Pour acceder à samba, lancer "smbnetfs ~/samba", puis se rendre dans le répertoire ~/samba pour fermer l'accès, 'fusermount -u ~/samba' aptitude install gtk2-engines-murrine murrine-themes dmz-cursor-theme \ && wget https://github.com/shimmerproject/Numix/archive/master.zip \ && unzip master.zip \ && mv Numix-master /usr/share/themes/Numix \ && git clone https://labo.olivierdelort.net/colmaris/numix-colmaris.git \ && mv numix-colmaris/.icons/Numix /usr/share/icons/ \ && mv numix-colmaris/.icons/Numix-Circle /usr/share/icons/ ###INUTILE DESORMAIS CAR INCLUS DANS JEESIE-BACKPORTS-> backport de pk-update-icon pour remlacer update-notifier (supprimé pour jessie) et afficher une notification d'updates dans xfce... aptitude build-dep pk-update-icon \ && apt-get -b source pk-update-icon \ && dpkg -i apt-config-auto-update_1.0.0-3_all.deb \ && dpkg -i pk-update-icon_1.0.0-3_amd64.deb ### Si nécessaire entrer 'Y ou I  : installer la version du responsable du paquet' pour apt-config-auto-update_1.0.0-3_all.deb passwd \ && adduser public \ && usermod -G lp,lpadmin,cdrom,floppy,audio,dip,video,plugdev,netdev,scanner,bluetooth,wireshark public nano /etc/lightdm/lightdm.conf [SeatDefaults] autologin-user=public autologin-user-timeout=0 cat << 'EOF' > /lib/udev/rules.d/10-benudev.rules # usbfs-like devices SUBSYSTEM=="usb", MODE="0666", GROUP="plugdev" EOF cd /usr/bin && wget http://deben.loloetben.fr/benvol+ && chmod +x /usr/bin/benvol+ && chmod 755 /usr/bin/benvol+ \ && cd /usr/bin && wget http://deben.loloetben.fr/benvol- && chmod +x /usr/bin/benvol- && chmod 755 /usr/bin/benvol- \ && cd /usr/bin && wget http://deben.loloetben.fr/benandroidmtp && chmod +x /usr/bin/benandroidmtp && chmod 755 /usr/bin/benandroidmtp \ && cd /usr/bin && wget http://deben.loloetben.fr/benmountbackup && chmod +x /usr/bin/benmountbackup && chmod 755 /usr/bin/benmountbackup \ && cd /usr/bin && wget http://deben.loloetben.fr/benmountsecure && chmod +x /usr/bin/benmountsecure && chmod 755 /usr/bin/benmountsecure ###remplacer systemd par sysvinit############################################################# aptitude install sysvinit-core sysvinit-utils choisir la deuxième opion (supprimer systemd-sysv et installer systemd-shim) ###fuse######################################################## nano /etc/fuse.conf décommenter user_allow_other ###imprimante samsung############################################# mkdir -p /usr/lib/cups/filter && cd /usr/lib/cups/filter \ && wget http://deben.loloetben.fr/rastertosamsungspl && chmod +x rastertosamsungspl \ && mkdir -p /usr/share/ppd/samsung && cd /usr/share/ppd/samsung \ && wget http://deben.loloetben.fr/scx4500w.ppd ###nvidia################################################### mkdir -p /etc/X11/xorg.conf.d \ && cat << 'EOF' > /etc/X11/xorg.conf.d/20-nvidia.conf Section "Device" Identifier "My GPU" Driver "nvidia" EndSection EOF ###alsa################################################################ $ nano .asoundrc pcm.usb { type hw card U0x46d0x8ad } pcm.!default { type asym playback.pcm { type plug slave.pcm "dmix" } capture.pcm { type plug slave.pcm "usb" } } ###alsausbmidi (pour utiliser un clavier usb avec pianoteq par ex.)############################################### apt install midisport-firmware echo snd-usb-audio >> /etc/modules echo snd-seq-midi >> /etc/modules ###sdr############################################################################################ apt install gnuradio gr-osmosdr rtl-sdr gr-fosphor gqrx-sdr ###kxstudio########################################################## aptitude install apt-transport-https software-properties-common wget \ && wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_9.2.2~kxstudio1_all.deb \ && dpkg -i kxstudio-repos_9.2.2~kxstudio1_all.deb \ && aptitude update && aptitude upgrade && aptitude install midori qjackctl lmms carla-git kxstudio-meta-audio-plugins-vst ###jackd################################################## # aptitude install qjackctl pour un démarrage automatique (dans le cas d'un daw par ex.) ajouter dans "session et demarrage" de xfce: /usr/bin/jackd -v -dalsa -dhw:0 -r48000 -p1024 -n2 -i2 -o2 Attention: alsa et jackd sont incompatibles, dans le cas d'un daw utiliser Midori comme navigateur internet principal pour bénéficier du son via jack. Firefox et Chrome sont icompatibles nativement avec jack... Pour rendre vlc compatible avec jack: # aptitude install vlc-plugin-jack puis sélectionner le greffon de sortie audio « jack » dans le menu des préférences de vlc et redémarrer vlc. ###pulseaudio#################################################### nano /home/public/pulse2jack #!/bin/bash echo autospawn = no > $HOME/.config/pulse/client.conf pulseaudio --kill rm $HOME/.config/pulse/client.conf #/usr/bin/jackd -v -dalsa -dhw:0 -r48000 -p1024 -n2 -i2 -o2 jack_control start #sudo schedtool -R -p 20 `pidof jackdbus` jack_control eps realtime true jack_control ds alsa jack_control dps device hw:0 jack_control dps rate 48000 jack_control dps nperiods 2 jack_control dps period 64 sleep 10 /usr/bin/a2jmidid -e & #sleep 10 #qjackctl & #sleep 10 #qmidiroute ~/All2MIDI1.qmr & #sleep 10 #yoshimi -S & #sleep 10 chmod +x /home/public/pulse2jack nano /home/public/jack2pulse #!/bin/bash jack_control stop pulseaudio -D chmod +x /home/public/jack2pulse ###special debian testing################################################ apt install pk-update-icon gvfs-backends dbus-user-session apt purge gnome-keyring ###service auto-upgrade spécifique####################################### nano /usr/bin/benupgrade.sh #!/bin/bash apt update && apt install --only-upgrade -y google-chrome-stable firefox-esr firefox-esr-l10n-fr chmod +x /usr/bin/benupgrade.sh nano /etc/systemd/system/benupgrade.service [Unit] Description=Service d'auto-upgrade After=tlp-init.service [Service] Type=oneshot RemainAfterExit=no ExecStart=/usr/bin/benupgrade.sh [Install] WantedBy=multi-user.target systemctl start benupgrade.service systemctl stop benupgrade.service systemctl enable benupgrade.service systemctl disable benupgrade.service systemctl status benupgrade.service systemctl is-enabled benupgrade.service systemctl kill benupgrade.service ### améliorer les fonts ################################################# nano ~/.fonts.conf ajouter true true rgb false hintslight lcddefault ### Ne fonctionne pas -> sert à corriger le bug systemd/alsa-store sous jessie pendant le shutdown... systemctl mask alsa-restore.service alsa-store.service ### ne pas faire immédiatement si l'on souhaite tester d'abord... aptitude install grub-pc \ && grub-install $DHD \ && update-grub exit update-grub ### hors chroot pour tester depuis l'ancien bootloader... Vérifier après reboot sous xfce que polkit est bien activé dans le menu 'Paramètres'/'Session et démarrage'/'Démarrage automatique', pour obtenir les droits lors d'une maj par ex. ###utilitaires de base###################################################### aptitude -y install p7zip-full p7zip-rar mlocate ntp apt-show-versions bash-completion vim mc #vifm (vifm bug sur certain noms de fichiers ex: avec des espaces entre caractères) aptitude install nut nut-usb # gestion onduleur EATON ###xfce4#################################################################### aptitude -y install slim numlockx xfce4 gnome-system-tools gnome-system-log gconf-editor xfce4-volumed thunar-thumbnailers murrine-themes xfce4-battery-plugin update-notifier #xfce4-power-manager xfce4-power-manager-data ne sont pas installés car gdm3 installe gnome-power-manager par défaut... aptitude -y install hddtemp libtagc0 squeeze thunar-archive-plugin thunar-media-tags-plugin xfburn xfce4-artwork xfce4-clipman xfce4-clipman-plugin #ristretto mousepad aptitude -y install xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin xfce4-fsguard-plugin aptitude -y install xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-places-plugin aptitude -y install xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-sensors-plugin xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-timer-plugin aptitude -y install xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-xkb-plugin xfprint4 xfce4-notifyd file-roller gdebi unetbootin unetbootin-translations #aptitude -y install -t testing notify-osd :installe notify-osd (nécessite de supprimer notification-daemon ou notification-daemon-xfce) #aptitude -y purge notification-daemon ###java##################################################################### aptitude -y install openjdk-6-jdk #sert à forcer l'installation d'openjdk sur sun-java6-jdk qui n'est plus maintenu... ###imprimante/scanner######################################################## aptitude -y install cups system-config-printer system-config-printer-udev simple-scan ###réseaux################################################################### aptitude -y install openssh-client transmission rsync filezilla #gftp grsync aptitude -y install empathy xchat vinagre gigolo liferea #aptitude -y install -t sid iceweasel iceweasel-l10n-fr chromium-browser chromium-browser-l10n chromium-browser-inspector flashplugin-nonfree aptitude -y install iceweasel iceweasel-l10n-fr flashplugin-nonfree #icedtea6-plugin icedtea6-plugin est le plugin java openjdk pour navigateur web... #aptitude -y install chromium-browser chromium-browser-l10n chromium-browser-inspector aptitude -y install google-chrome firefox ###firmwares################################################################ aptitude -y install zd1211-firmware libertas-firmware firmware-ralink firmware-linux-nonfree firmware-linux-free firmware-linux firmware-iwlwifi atmel-firmware aptitude -y install b43-fwcutter firmware-b43-installer firmware-intelwimax firmware-bnx2x firmware-bnx2 firmware-qlogic firmware-realtek linux-wlan-ng-firmware ixp4xx-microcode aptitude install firmware-ipw2x00 ###multimedia############################################################### aptitude -y install gthumb inkscape gimp blender aptitude -y install soundconverter brasero f-spot totem asunder dvd95 ripit # ogmrip goobox exaile xfburn vlc k9copy, sound-juicer est retiré car trop de bugs aptitude -y install gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-lame gstreamer0.10-ffmpeg ffmpeg #libdvdcss2 est dispo sur deben.loloetben.fr... aptitude -y install -t $version-backports lame ###bureautique############################################################## aptitude -y install gcalctool galculator chmsee aptitude -y install -t $version-backports libreoffice libreoffice-l10n-fr libreoffice-help-fr #abiword gnumeric #wget http://katana.oooninja.com/f/software/odf-converter-integrator_strawberry_0.2.3-2_i386.deb #dpkg -i --force-all odf-converter-integrator_strawberry_0.2.3-2_i386.deb ###jeux/divertissements##################################################### #aptitude -y install lsb-core ia32-libs-gtk nvidia-glx-ia32 googleearth-package #privilégier le téléchargement du paquet compilé depuis deben.loloetben.fr aptitude -y install gnuchess pychess pokerth gnome-games ###sciences############################################################# aptitude -y install stellarium scilab ###développement########################################################### aptitude -y install ktechlab geda electric aptitude -y install geany eclipse gdb aptitude -y install wine lib32nss-mdns #permet d'installer ensuite ltspice ###sécurité################################################################## aptitude -y install gdb hexedit # analyse de programmes aptitude -y install nmap snort wireshark # audit de réseau, ajouter snort-mysql ou snort-pgsql pour que snort puisse logger dans une bdd... aptitude -y install wine lib32nss-mdns #permet d'installer ensuite ollydbg et idapro5 (idapro6 fonctionne nativement sous linux mais est payant...) aptitude -y install secure-delete #effacer de façon définitive un fichier (on peut aussi utiliser la commande 'shred' contenue dans le paquet coreutils) # pour détruire toutes les données d'un disque, utiliser 'dban' (le graver sur un cd puis booter dessus). Cet utilitaire ne fait pas partie de debian. aptitude -y install testdisk # ce paquet contient les utilitaires testdisk (restauration de partitions) et photorec (restauration de fichiers) aptitude -y install chkrootkit rkhunter unhide # recherche de rootkits aptitude -y install clamav-freshclam clamav # antivirus aptitude -y install openvas-client openvas-server # audit de vulnérabilités (fork open source de nessus) ### préparation installation de metasploit aptitude -y install build-essential subversion ruby libruby irb rdoc libyaml-ruby libzlib-ruby libopenssl-ruby libdl-ruby libreadline-ruby libiconv-ruby rubygems sqlite3 libsqlite3-ruby libsqlite3-dev ### laptop aptitude -y install wireless-tools acpi-support cpufrequtils acpi powertop acpid apmd pcmciautils pm-utils anacron avahi-autoipd bluetooth ###waon (wav to midi)####################################################### aptitude install fftw-dev libsndfile1-dev libfftw3-dev libsamplerate0-dev sox timidity musescore récupérer les sources sur: http://waon.sourceforge.net/ et compiler ! ###nettoyage################################################################# aptitude -y purge pidgin squeeze gnome-screensaver gnome-power-manager xscreensaver-gl aumix xarchiver # ristretto (entraine la suppression de xfce4-goodies...) aptitude -y purge xscreensaver xscreensaver-data xscreensaver-data-extra notification-daemon gnome-keyring