Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
linux:custom_mint [2017/02/24 15:41] minimilinux:custom_mint [2020/02/27 15:21] (Version actuelle) – [Ajout] minimi
Ligne 12: Ligne 12:
 cp linuxmint-18.1-mate-32bit.iso mylivecd/ cp linuxmint-18.1-mate-32bit.iso mylivecd/
 cd mylivecd cd mylivecd
-mkdir tmp+mkdir mnt
 sudo mount -o ro,loop linuxmint-18.1-mate-32bit.iso  mnt/ sudo mount -o ro,loop linuxmint-18.1-mate-32bit.iso  mnt/
 sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ extracted sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ extracted
Ligne 33: Ligne 33:
 export HOME=/root export HOME=/root
 export LC_ALL=C</code> export LC_ALL=C</code>
 +
 +Mettre des sources FR de ubuntu.
 +
 +Modifier /etc/apt/sources.list.d/official-package-repositories.list. "fr.archive"
 +
 +<code>
 +deb http://fr.archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
 +deb http://fr.archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
 +deb http://fr.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
 +</code>
 +
 +mettre à jour la cache
 +
 +<code>
 +apt-get update
 +</code>
  
 Customiser l'environnement  Customiser l'environnement 
Ligne 83: Ligne 99:
 ajouter (fr pour archive ubuntu) + adapter mirroir  ajouter (fr pour archive ubuntu) + adapter mirroir 
 <code> <code>
-deb http://fr.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse +deb http://fr.archive.ubuntu.com/ubuntu bionic main restricted universe multiverse 
-deb http://fr.archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse +deb http://fr.archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse 
-deb http://fr.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse+deb http://fr.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
 </code> </code>
  
Ligne 104: Ligne 120:
 </file> </file>
  
-Suppr +==== Suppr ==== 
-<code>aptitude remove --purge hexchat pidgin pidgin-libnotify</code>+<code>aptitude purge hexchat </code> 
 + 
 +  * hexchat : messagerie instantanée 
 +  *  
 + 
 +==== Ajout ====  
 +<code>aptitude install vlc ttf-mscorefonts-installer libdvd-pkg libreoffice-l10n-fr firefox-locale-fr</code> 
 + 
 +  * vlc media player 
 +  * ttf-mscorefonts-installer : polices microsoft pour la compatibilité 
 +  * ttf-ancient-fonts : polices emoji 
 +  * ttf-ubuntu-font-family ttf-dejavu ttf-dejavu-extra ttf-liberation : autres polices 
 +  * libdvd-pkg : lecture des dvd 
 +  * numlockx : pour activer le pavé numérique au démarrage (config lightdm à modifier après installation) 
 +  * "compiz" : compiz compiz-core compiz-gnome compiz-plugins compiz-plugins-default compizconfig-settings-manager python-compizconfig libcompizconfig0 
 +  * "flatpak & Snap" : flatpak xdg-desktop-portal xdg-desktop-portal xdg-desktop-portal-gtk 
 + 
 + 
 + 
 +===== Configurations ===== 
 + 
 +** Caja ** 
 +Désactiver la suppression directe dans caja 
 +<code>gsettings set org.mate.caja.preferences enable-delete false</code> 
 + 
 +** MintUpdate ** 
 + 
 +/usr/share/glib-2.0/schemas/com.linuxmint.updates.gschema.xml 
 + 
 +Cacher mintupdate après maj 
 +<code>gsettings set com.linuxmint.updates hide-window-after update true</code> 
 + 
 +Ne montrer l'icone qu'en cas de maj ou d'erreurs (garder false, sinon "trou" dans la barre des tâches) 
 +<code>gsettings set com.linuxmint.updates hide-systray false</code> 
 + 
 +** Ne pas poser la question des dépôts locaux ** 
 +<code>gsettings set com.linuxmint.updates default-repo-is-ok true</code> 
 + 
 +** Activer la mise à jour automatique (journalière par défaut) ** 
 +<code>mintupdate-automation upgrade enable</code> 
 + 
 +** Activer nettoyage des vieux noyaux ** 
 +<code>mintupdate-automation autoremove enable</code> 
 + 
 +==== Activer canaux européen wifi ==== 
 +<code>sudo iw reg set FR</code> 
 + 
 +==== L’accellération matérielle pour Firefox ==== 
 + 
 +Sous Linux, l’accellération matérielle est désactivée. Pour l’activer (dans firefox) il faut aussi le permettre au niveau du système. Ici on dit au serveur graphique de laisser Firefox utiliser l’accellération matérielle : 
 + 
 +<code>sudo bash -c "echo export MOZ_USE_OMTC=1 >> /etc/X11/Xsession.d/90environment"</code> 
 + 
 +Ensuite, on l’active au sein de Firefox en mettant ces deux options à true dans le about:config : 
 + 
 +<code>layers.acceleration.force-enabled 
 +layers.offmainthreadcomposition.enabled</code>
  
-Ajout 
-<code>aptitude install vlc ttf-mscorefonts-installer</code> 
  
  
-Changer fond écran 
 <code>gsettings set org.mate.background picture-filename /usr/share/backgrounds/linuxmint-serena/anieto2k_hot_balloon_trip.jpg</code> <code>gsettings set org.mate.background picture-filename /usr/share/backgrounds/linuxmint-serena/anieto2k_hot_balloon_trip.jpg</code>
 ou modifier /usr/share/backgrounds/linuxmint/linuxmint.jpg ou modifier /usr/share/backgrounds/linuxmint/linuxmint.jpg
Ligne 138: Ligne 207:
  
 /usr/lib/linuxmint/mintMenu/applications.list pour modifier les favoris par défaut /usr/lib/linuxmint/mintMenu/applications.list pour modifier les favoris par défaut
 +
 +Désactiver le verouillage écran en cas de veille 
 +
 +<code>
 +dconf write /org/mate/screensaver/idle-activation-enabled false
 +dconf write /org/mate/screensaver/lock-enabled false
 +</code>
  
 Sortir du Chroot Sortir du Chroot
Ligne 146: Ligne 222:
 rm -rf /etc/resolv.conf rm -rf /etc/resolv.conf
 rm -rf /etc/hosts rm -rf /etc/hosts
 +#ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf
 +cd /etc
 +ln -sf ../run/systemd/resolve/stub-resolv.conf
 rm -rf /root rm -rf /root
 mkdir /root mkdir /root
Ligne 161: Ligne 240:
 xhost -</code> xhost -</code>
  
-(unmount /proc ...) //ignore warning in this command 
-(exit) //if fails try exit 0 
-(sudo umount edit/dev)  //ignore error/warning in this command 
  
  
 Iso en fr Iso en fr
 +
 <code>echo "fr" | sudo tee extracted/isolinux/lang</code> <code>echo "fr" | sudo tee extracted/isolinux/lang</code>
  
 +
 +
 +
 +==== Regenerate manifest (ignore any warning) ====
 +<code>
 +su -i 
 +cd CHEMIN
 +</code>
 +
 +<code>
 +chmod +w extracted/casper/filesystem.manifest
 +chroot edit dpkg-query -W --showformat='${Package} ${Version}\n' > extracted/casper/filesystem.manifest
 +cp extracted/casper/filesystem.manifest extracted/casper/filesystem.manifest-desktop
 +sed -i '/ubiquity/d' extracted/casper/filesystem.manifest-desktop
 +sed -i '/casper/d' extracted/casper/filesystem.manifest-desktop
 +</code>
 +
 +==== Compress ====
 +<code>
 +rm extracted/casper/filesystem.squashfs
 +mksquashfs edit extracted/casper/filesystem.squashfs -comp xz
 +</code>
 +
 +==== Update some required files ====
 + 
 +<code>
 +printf $(sudo du -sx --block-size=1 edit | cut -f1) > extracted/casper/filesystem.size
 +</code>
 +
 +open extracted/README.diskdefines file with a text editor and change the name of the disk.
 +
 +Remove old md5sum and calculate new md5sums:
 +
 +<code>
 +cd extracted
 +rm MD5SUMS
 +find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee MD5SUMS
 +</code>
 +
 +==== Create the ISO image ====
 +
 +<code>
 +mkisofs -D -r -V "LinuxMint Custom" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../tmp.iso .
 +exit
 +</code>
 +
 +
 +<code>sudo chmod 777 ~/mylivecd/Linux-Mint-cinnamon-x64_custom.iso</code>
 +
 +==== Test the ISO image ====
 + 
 +
 +You can use qemu, kvm, virtualbox for a test run of the iso or you can use your physical computer for testing (making a live usb or burning the iso to cd or dvd). If everything is satisfactory then you can make this  a final release of your new custom Linux Mint dristro.