Outils pour utilisateurs

Outils du site


blog

Debian Jessie désactiver la session graphique gnome GDM au démarrage

Les joies de systemd.

En théorie, il faudrait faire :

systemctl disable gdm
systemctl disable gdm3

Mais ça ne marche pas.

Solution

unlink /lib/systemd/system/gdm3.service

Pour réactiver la session graphique au boot

ln -s /lib/systemd/system/gdm.service /lib/systemd/system/gdm3.service
2025/03/24 15:06

Debian Gnome minimal

source : https://mike632t.wordpress.com/2016/05/25/installing-gnome-3-jessie/

Install Server X

apt-get install --no-install-recommends xserver-xorg xserver-xorg-core xfonts-base xinit

Install Gnome

apt-get install --no-install-recommends libgl1-mesa-dri x11-xserver-utils gnome-session \
 gnome-shell gnome-themes gnome-terminal gnome-control-center nautilus \
 gnome-icon-theme

Install gestionnaire de session

# apt-get install --no-install-recommends lightdm
apt-get install --no-install-recommends gdm3 
2025/03/24 15:06

Debian dépôts exemple de source.list

exemple :

/etc/apt/sources.list

deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main

deb http://ftp.fr.debian.org/debian wheezy main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://ftp.u-picardie.fr/mirror/debian/ wheezy main non-free contrib
deb-src http://ftp.u-picardie.fr/mirror/debian/ wheezy main non-free contrib

#Third Parties Repos
#Debian Multimedia
#deb http://www.las.ic.unicamp.br/pub/debian-multimedia/ wheezy main
#deb-multimedia.org
deb http://www.deb-multimedia.org wheezy main non-free
#Imprimante
deb http://www.bchemnet.com/suldr/ debian extra
#jeux
deb http://boisson.homeip.net/debian lenny lineo
#TOR
deb http://deb.torproject.org/torproject.org wheezy main

#E18
#deb http://packages.enlightenment.org/debian wheezy main extras

# TESTING
deb http://ftp.fr.debian.org/debian testing main contrib non-free
deb http://ftp.debian.org/debian/ testing-updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free

deb http://ftp.u-picardie.fr/mirror/debian/ testing main non-free contrib
deb-src http://ftp.u-picardie.fr/mirror/debian/ testing main non-free contrib

#Third Parties Repos
#Debian Multimedia
#deb http://www.las.ic.unicamp.br/pub/debian-multimedia/ testing main
#deb-multimedia.org
deb http://www.deb-multimedia.org testing main non-free
#Imprimante
deb http://www.bchemnet.com/suldr/ debian extra
#jeux
deb http://boisson.homeip.net/debian lenny lineo
#TOR
deb http://deb.torproject.org/torproject.org testing main

#E18
#deb http://packages.enlightenment.org/debian testing main extras

# unstable
deb http://ftp.fr.debian.org/debian unstable main contrib non-free
deb http://ftp.debian.org/debian/ unstable-updates main contrib non-free
deb http://security.debian.org/ unstable/updates main contrib non-free
deb-src http://security.debian.org/ unstable/updates main contrib non-free

deb http://ftp.u-picardie.fr/mirror/debian/ unstable main non-free contrib
deb-src http://ftp.u-picardie.fr/mirror/debian/ unstable main non-free contrib

#Third Parties Repos
#Debian Multimedia
#deb http://www.las.ic.unicamp.br/pub/debian-multimedia/ unstable main
#deb-multimedia.org
deb http://www.deb-multimedia.org unstable main non-free
#Imprimante
deb http://www.bchemnet.com/suldr/ debian extra
#jeux
deb http://boisson.homeip.net/debian lenny lineo
#TOR
deb http://deb.torproject.org/torproject.org unstable main

#E18
#deb http://packages.enlightenment.org/debian unstable main extras

== Pinning-Debian

    création de /etc/apt/preferences.d/00source

touch /etc/apt/preferences.d/00source

    modification du fichier

nano /etc/apt/preferences.d/00source

###/etc/apt/preferences.d/00sources###

Package: iceweasel
Pin: release a=unstable
Pin-Priority: 900

Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release a=stable
Pin-Priority: 100

Package: *
Pin: release a=unstable
Pin-Priority: 10

Package: *
Pin: release a=experimental
Pin-Priority: 10

###Path : /etc/apt/sources.list### #non-free pour ajouter les dépôts des sources non libres

## Debian experimental - dépôts officiels

deb http://ftp.fr.debian.org/debian/ experimental main contrib non-free

## Debian unstable - dépôts officiels (sécurité au fil de l'eau par les devs)

deb http://ftp.fr.debian.org/debian/ unstable main contrib non-free

## Debian testing - dépôts officiels

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

## Debian stable - dépôts officiels

deb http://ftp.fr.debian.org/debian/ stable main contrib non-free
deb http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free

Dépôt depuis une copie du DVD

Voir : https://www.unixmen.com/setup-local-apt-repository-using-installation-media-in-debian-8/

find /media/cdrom/pool/ -name "*.deb" -exec cp {} /var/www/html/packages/amd64 \;
cd /var/www/html/packages/amd64/
#dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
dpkg-scanpackages . /dev/null | pigz -9c > Packages.gz

Local

/etc/apt/sources.list

deb file:/var/www/html/packages/amd64/ /

Sur un serveur web

/etc/apt/sources.list
deb http://192.168.21.4/debian93 /
Autres

update-repo.sh

#!/bin/bash
 
#dpkg-scanpackages -m . | gzip -f9 > Packages.gz
dpkg-scanpackages -m . | pigz -f9 > Packages.gz
2025/03/24 15:06

Quand 2 paquets Debian fournissent un fichier même nom, même arborescence.

Deux paquets .deb (apt:moreutils et apt:parallel) fournissent un fichier /usr/bin/parallel

apt-file search /usr/bin/parallel |grep '/usr/bin/parallel$'

moreutils: /usr/bin/parallel parallel: /usr/bin/parallel

apt-get update && apt-get install moreutils
ls -ld $(dpkg -L moreutils | sed -e '1d') | grep '^-'|awk '{print $9}' | grep -v parallel | cpio -ov --format=ustar |gzip > moreutils.tar.gz
apt-get remove moreutils
cd /
tar xzvf moreutils.tar.gz -C '/'
apt-get install parallel

FIXME C'est pour l'exemple avec cpio. Mais c'est pas très propre. Il contraindrait d'utiliser dpkg-divert

2025/03/24 15:06

Debian apt-get downgrade

Exemple 1

apt-get clean
apt-get update
apt-cache policy perl-base
apt-cache show perl-base |grep ^Version
apt-get install --reinstall --allow-downgrades perl-base=5.24.1-3+deb9u4
 
#apt-show-versions -i
#apt-get install $(apt-show-versions | grep -P 'newer than version in archive' | awk -F: '{print $1"/jessie"}')
#apt-get install -V $(apt-show-versions | grep -F 'newer than version in archive' | awk -F: '{print $1"/'$(lsb_release -cs)'"}')

Exemple 2

# apt-get install install libopencv-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package install
root@BGX-deb98:/home/process# apt-get install libopencv-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libopencv-dev : Depends: libopencv-objdetect-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libopencv-highgui-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libopencv-legacy-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libopencv-contrib-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libopencv-videostab-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libopencv-superres-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libopencv-ocl-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libcv-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libhighgui-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
                 Depends: libcvaux-dev (= 2.4.9.1+dfsg1-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# aptitude install libopencv-dev
...
The following packages have unmet dependencies:
 libglib2.0-bin : Depends: libglib2.0-0 (= 2.50.3-2) but 2.50.3-2+deb9u2 is installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.50.3-2) but 2.50.3-2+deb9u2 is installed
 libicu-dev : Depends: libicu57 (= 57.1-6+deb9u2) but 57.1-6+deb9u4 is installed
...
apt-get install --allow-downgrades libglib2.0-0=2.50.3-2 libicu57=57.1-6+deb9u2
2025/03/24 15:06
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki