DEBIAN Desktop

:info:

Voir la dernière version Buster


Télécharger : https://cdimage.debian.org/images/unofficial/non-free/images-including-firmware/

Je conseille la version Debian gnome non-free car elle contient des firmware pour cartes WIFI non libres, et c'est toujours compliqué si on a pas un câble ethernet à portée de main

En partant d'une installation Debian STABLE serveur et qu'il vous manque le bureau graphique alors :

sudo apt install task-gnome-desktop # DEBIAN GNOME-SHELL

sudo -i

  • install debian-9.x.x-gnome-nonfree #yes I know, however it helps having wireless chip properly detected
    • root password ⇒ empty !
    • pavé tactile :
      • clic ON
      • défilement naturel OFF

partitions

  • / 30G
  • swap = RAM, ex: 4G
  • /home le reste

Debian repositories

  • sudo -i
  • cd /etc/apt/preferences.d
cat <<EOF > stable.pref
Package: *
Pin: release a=stable
Pin-Priority: 800
EOF
cat <<EOF > testing.pref
Package: *
Pin: release a=testing
Pin-Priority: 400
EOF
cat <<EOF > unstable.pref
Package: *
Pin: release a=unstable
Pin-Priority: 50
EOF
  • rm /etc/apt/sources.list
  • rm /etc/apt/sources.list.d/base.list
cat <<EOF > /etc/apt/sources.list
deb http://security.debian.org/ stretch/updates contrib non-free main
deb http://security.debian.org/ testing/updates main contrib non-free

deb http://ftp.fr.debian.org/debian/ stretch-updates contrib non-free main
deb http://ftp.fr.debian.org/debian/ testing-updates contrib non-free main

deb http://ftp.fr.debian.org/debian/ stretch main contrib non-free
deb http://ftp.fr.debian.org/debian/ testing main contrib non-free
deb http://ftp.fr.debian.org/debian/ unstable main contrib non-free
EOF
  • apt update && apt dist-upgrade -y
  • apt install -y bash-completion htop nethogs vim curl wget git gir1.2-gtop-2.0 gir1.2-networkmanager-1.0 samba nautilus-share
  • apt install -yt unstable firefox
  • apt remove firefox-esr

addons

  • cd /usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
  • rm * -rf
  • wget https://addons.mozilla.org/firefox/downloads/file/1086463 -O uBlock0@raymondhill.net.xpi
  • cd

flash

snippet.bash
apt install -y flashplugin-nonfree
wget `curl 'https://get.adobe.com/flashplayer/download/?installer=FP_32.0_for_Linux_64-bit_(.tar.gz)_-_NPAPI&sType=7564&standalone=1' | grep location\.href | cut -d "'" -f2`
tar xvf flash_player_npapi_linux.x86_64.tar.gz
cp libflashplayer.so /usr/lib/flashplugin-nonfree/libflashplayer.so
chmod 644 /usr/lib/flashplugin-nonfree/libflashplayer.so
chown root:root /usr/lib/flashplugin-nonfree/libflashplayer.so
update-alternatives --quiet --install /usr/lib/mozilla/plugins/flash-mozilla.so flash-mozilla.so /usr/lib/flashplugin-nonfree/libflashplayer.so 50
  • [ `whoami` != 'root' ] || exit
  • gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop','firefox.desktop','org.gnome.Software.desktop']"
  • gsettings set org.gnome.settings-daemon.peripherals.keyboard remember-numlock-state true
  • gsettings set org.gnome.desktop.interface clock-show-date true
  • gsettings set org.gnome.nautilus.preferences click-policy 'single'

automated extensions

  • [ `whoami` != 'root' ] || exit
  • # DEAL with gnome-shell-extensions, normal user
    • mkdir ~/.bin
    • echo 'PATH=$HOME/.bin:$PATH' >> ~/.bashrc
    • source ~/.bashrc
    • cd ~/.bin
    • wget https://github.com/brunelli/gnome-shell-extension-installer/raw/master/gnome-shell-extension-installer
    • chmod +x gnome-shell-extension-installer
    • sudo rm -rf /usr/share/gnome-shell/extensions/*
    • gnome-shell-extension-installer 104 111 112 120 277 307 --yes
    • sudo cp ~/.local/share/gnome-shell/extensions/*@*/schemas/org.gnome.shell.extensions.*.gschema.xml /usr/share/glib-2.0/schemas/ && sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
    • # configuration
      • gsettings set org.gnome.shell.extensions.dash-to-dock apply-custom-theme true
      • gsettings set org.gnome.shell.extensions.dash-to-dock autohide true
      • gsettings set org.gnome.shell.extensions.dash-to-dock autohide-in-fullscreen false
      • gsettings set org.gnome.shell.extensions.dash-to-dock require-pressure-to-show true
      • gsettings set org.gnome.shell.extensions.dash-to-dock animation-time 0.10
      • gsettings set org.gnome.shell.extensions.dash-to-dock hide-delay 0.10
      • gsettings set org.gnome.shell.extensions.dash-to-dock show-delay 0.15
      • gsettings set org.gnome.shell.extensions.net.gfxmonk.impatience speed-factor 0.25
      • gsettings set org.gnome.shell.extensions.system-monitor show-tooltip true
      • gsettings set org.gnome.shell.extensions.system-monitor cpu-show-text false
      • gsettings set org.gnome.shell.extensions.system-monitor cpu-graph-width 60
      • gsettings set org.gnome.shell.extensions.system-monitor memory-display false
      • gsettings set org.gnome.shell.extensions.system-monitor net-display false
      • gsettings set org.gnome.shell.extensions.system-monitor icon-display false
      • gsettings set org.gnome.shell.extensions.netspeed show-sum true
      • gsettings set org.gnome.shell.overrides dynamic-workspaces false
      • gsettings set org.gnome.desktop.wm.preferences num-workspaces 1
      • gsettings set org.gnome.mutter overlay-key 'Super_L'
      • gnome-shell --replace &

allow-hotplug en0

  • sudo sed -i 's/auto eth0/allow-hotplug eth0/' /etc/network/interfaces.d/setup

boot F2 to hide all..

  • # silent boot
  • sudo nano /etc/default/grub
[...] # remplacer les lignes par :
GRUB_TIMEOUT=1
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash console=tty3 earlyprintk=tty3"
  • sudo update-grub

optional: DVD

  • sudo echo "\ndeb https://download.videolan.org/pub/debian/stable/ /" >> /etc/apt/sources.list
  • wget -O - https://download.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -
  • sudo apt install apt-transport-https
  • sudo apt update && sudo apt install libdvdcss2 libdvdread4