Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
installfreebsd [2019/02/12 15:27] – cyrille | installfreebsd [2019/03/10 13:07] – [Démarrer xfce] cyrille | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Post-configuration | + | ======Installation de freeBSD 12====== |
- | Connaitre le matériel à configurer | + | |
- | dmesg | grep "no driver attached" | + | |
+ | Sur laptop, DELL Latitude E5430 et DELL Latitude E6410 | ||
- | Reconfigurer le réseau | + | ===== Installation ===== |
- | bsdinstall netconfig | + | |
+ | Récupérer l'iso de freeBSD. La graver sur une clef USB et booter dessus. | ||
+ | Suivre l' | ||
- | $ pkg | + | | {{ : |
- | Installation / initialisation | + | Faire attention au stade de configuration réseau |
+ | " | ||
- | $ pkg install nano | + | <WRAP center round important 60%> |
- | Editeur plus simple que VI | + | " |
+ | </ | ||
- | pkg bash bash-completion | ||
- | Installation de bash et l' | ||
- | pkg install sudo | + | Voici les options que j'ai choisies lors de **System Configuration** |
+ | {{ : | ||
- | Editer / | ||
- | | + | Rebooter sur freeBSD |
- | your_user ALL=(ALL) ALL | ||
+ | =====Francisation===== | ||
+ | Editer le fichier **/ | ||
- | nano / | ||
- | Ajouter | ||
- | dbus_enable=" | ||
- | hald_enable=" | ||
- | Rebooter | + | < |
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | |||
+ | Ajouter | ||
+ | <code bash> | ||
+ | : | ||
- | pkg install xorg | + | Le recharger |
- | Installation du serveur X | + | <code bash> |
- | Système en français | + | =====Initialisation de pkg===== |
- | nano /etc/login.conf | + | | {{ :img_3213.jpg? |
- | french|French Users Accounts:\ | ||
- | : | ||
- | : | ||
- | : | ||
- | Commenter la section " | ||
- | prise en compte | + | =====AJOUTER un user===== |
+ | <code bash># adduser</ | ||
+ | L’inclure dans les groupes : wheel operator video | ||
- | # cap_mkdb / | ||
- | Puis éditer le fichier de mot de passe par la commande vipw. , Et rechercher votre login : | + | =====Gestion du son===== |
- | # vipw | + | <code bash>#kldload snd_driver</ |
+ | <code bash>cat / | ||
+ | Installed devices: | ||
+ | pcm0: <IDT 92HD93BXX (Analog 2.0+HP/ | ||
+ | pcm1: <IDT 92HD93BXX (Analog)> | ||
+ | pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play) | ||
+ | pcm3: <Intel Panther Point (HDMI/DP 8ch)> (play) | ||
+ | pcm4: <Intel Panther Point (HDMI/DP 8ch)> (play) | ||
+ | No devices installed from userspace.</ | ||
- | olivier: | + | <code bash># |
- | Il faut ajouter «french» entre les ::, ce qui va donner : | ||
- | olivier:$1$00edYNK2$heBNRz65txD0j7bGtB40r.: | + | =====Affichage |
- | | + | Installer le paquet |
+ | <code bash>pkg install drm-kmod< | ||
- | Drivers vidéo KRM-DMS (Intel i915, AMD GPU, Radeon) | + | Initialisation au boot |
+ | <code bash> | ||
- | À partir de FreeBSD 11.2 uniquement, vous pouvez installer le meta-package drm-kmod qui va selectionner la meilleure version des drivers (legacy, stable, next, devel): | + | Le charger |
+ | <code bash> | ||
- | pkg install drm-kmod | + | Vérifier |
+ | <code bash> | ||
- | Et demander leur chargement automatique, | ||
- | sysrc kld_list+="/ | ||
- | kldload | + | =====X11 |
- | Après un reboot, vérifier que le module du package (/boot/ | + | <code bash>pkg install xorg xfce xfce4-goodies xfce4-mixer xfce4-volumed xf86-video-intel file-roller< |
- | olivier@x220: | ||
- | | ||
+ | ====Pour activer le suspend et resume ==== | ||
+ | Créer ces 2 fichiers | ||
+ | <code bash>pkg info -D xfce4-session | ||
+ | xfce4-session-4.12.1_4: | ||
+ | Always: | ||
+ | To be able to shutdown or reboot your system, you'll have to add .rules | ||
+ | files in / | ||
+ | like this (replace PUTYOURGROUPHERE by your group): | ||
- | networkmanager | + | polkit.addRule(function (action, subject) { |
- | pkg install networkmgr | + | if ((action.id == " |
+ | action.id == " | ||
+ | && subject.isInGroup(" | ||
+ | return polkit.Result.YES; | ||
+ | } | ||
+ | }); | ||
- | $ cat /usr/ | + | For those who have working suspend/resume: |
- | permit nopass keepenv :wheel cmd netcardmgr | + | |
- | permit nopass keepenv :wheel cmd detect-nics | + | |
- | permit nopass keepenv :wheel cmd detect-wifi | + | |
- | permit nopass keepenv :wheel cmd ifconfig | + | |
- | permit nopass keepenv :wheel cmd service | + | |
- | permit nopass keepenv | + | |
+ | polkit.addRule(function (action, subject) { | ||
+ | if (action.id == " | ||
+ | && subject.isInGroup(" | ||
+ | return polkit.Result.YES; | ||
+ | } | ||
+ | });</ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | =====Démarrer xfce==== | ||
+ | |||
+ | |||
+ | |||
+ | On aura besoin de dbus | ||
+ | <code bash>Pkg install dbus | ||
+ | service dbus onestart</ | ||
+ | |||
+ | On utilisera xinit pour le lacement de XFCE | ||
+ | Créer dans le Home un .xinitrc | ||
+ | |||
+ | <code bash># SET PROPER locale | ||
+ | export LANG=" | ||
+ | export LC_ALL=" | ||
+ | export LC_MESSAGES=" | ||
+ | |||
+ | # Clavier français | ||
+ | setxkbmap fr & | ||
+ | # Lancer xfce | ||
+ | / | ||
+ | |||
+ | |||
+ | Enfin lancer la session X | ||
+ | <code bash> | ||
+ | |||
+ | Lier xinitrc et xsession | ||
+ | <code bash> ln -s ~/.xinitrc ~/ | ||
+ | |||
+ | |||
+ | |||
+ | ====anti-aliasing avec la police Helvetica===== | ||
+ | Editer ce fichier ainsi | ||
+ | <code bash><? | ||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <match target=" | ||
+ | <edit name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <match target=" | ||
+ | <edit name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <patelt name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <patelt name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | =====Paramétrage de Xorg===== | ||
+ | ======Carte video====== | ||
+ | Créer ces 2 fichiers | ||
+ | <code bash># cat / | ||
+ | Section " | ||
+ | Identifier " | ||
+ | Driver " | ||
+ | Option " | ||
+ | Option | ||
+ | EndSection</ | ||
+ | |||
+ | ======Le clavier====== | ||
+ | <code bash># cat / | ||
+ | Section " | ||
+ | Identifier " | ||
+ | Driver " | ||
+ | Option " | ||
+ | Option " | ||
+ | EndSection</ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Diminuer le timeout du menu du boot loader à 2 secondes | ||
+ | <code bash> | ||
+ | Accélération de chiffrement des processeurs modernes | ||
+ | <code bash># | ||
+ | Module à charger dans /boot et non etcrc.conf pour un chargement plus rapide | ||
+ | |||
+ | |||
+ | On commence par optimiser le scheduler pour un usage desktop: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | Pour activer la réponse «yes» aux questions de fsck au démarrage: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | Utiliser micro codes CPU | ||
+ | <code bash>pkg install devcpu-data | ||
+ | service microcode_update enable | ||
+ | service microcode_update start</ | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | < | ||
+ | sysrc kld_list+=cpuctl</ | ||
+ | |||
+ | |||
+ | |||
+ | Monter les périphériques amovibles | ||
+ | Attention la version d’automount des repos ne permet pas de monter du FAT32. Utiliser cette procédure. | ||
+ | |||
+ | Installer git | ||
+ | <code bash># pkg install git | ||
+ | # git clone https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Initialisation des ports | ||
+ | (nécessaires pour compiler exfat-utils/ | ||
+ | |||
+ | <code bash># portsnap fetch | ||
+ | # portsnap extract | ||
+ | </ | ||
+ | |||
+ | Compilation de fusefs-exfat | ||
+ | <code bash># cd / | ||
+ | # make install clean</ | ||
+ | Accepter la licence et toutes les options par défaut | ||
+ | |||
+ | Compilation de exfat-utils | ||
+ | <code bash># cd / | ||
+ | # make install clean</ | ||
+ | Même procédure | ||
+ | |||
+ | Installer le reste des dépendances via pkg | ||
+ | <code bash># pkg install fusefs-ntfs fusefs-ext4fuse fusefs-hfsfuse fusefs-lkl fusefs-simple-mtpfs zenity | ||
+ | |||
+ | |||
+ | Détarer automount-1.6.1.tar.gz récupéré du git , entrez dans le dossier | ||
+ | |||
+ | Editer ce fichier de cette façon | ||
+ | <code bash>$ cat / | ||
+ | USERUMOUNT=YES | ||
+ | ATIME=NO | ||
+ | REMOVEDIRS=YES | ||
+ | FM=" | ||
+ | USER=ragnarok | ||
+ | ENCODING=fr_FR.UTF-8 | ||
+ | CODEPAGE=cp850</ | ||
+ | |||
+ | Installation manuelle d' | ||
+ | <code bash># cp automount.conf | ||
+ | # cp automount_devd.conf / | ||
+ | # cp automount | ||
+ | # chmod +x / | ||
+ | # / | ||
+ | Et hop, ça fonctionne…... |