Outils pour utilisateurs

Outils du site


blog

Partition noatime

Linux kernel developer Ingo Molnár called atime perhaps the most stupid Unix design idea of all times. http://lwn.net/Articles/244829/

/etc/fstab

/dev/mapper/debian--vg-var /var            ext4    defaults        0       2
mount -o remount,noatime /var
2025/03/24 15:06

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
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki