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 14:00] – [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 ~/ | ||
+ | |||
+ | Pour démarrer la session de XFCE, j'ai choisi la façon manuelle sinon on peut passer, entre autre par SLIM. | ||
+ | J'ai donc créer cet alias | ||
+ | <code bash> | ||
+ | et la commande **x** suffit au démarrage de XFCE | ||
+ | |||
+ | Sinon : jeter un oeil à SLIM : [[https:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====anti-aliasing avec la police Helvetica===== | ||
+ | Editer ce fichier ainsi | ||
+ | <code bash><? | ||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <match target=" | ||
+ | <edit name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <match target=" | ||
+ | <edit name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <patelt name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <patelt name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Gestionnaire WIFI | ||
+ | Bien que par défaut, on n'en a pas besoin. On peut vouloir utiliser un outil style Gestionnaire Wifi | ||
+ | <code bash>pkg install wifimgr</ | ||
+ | |||
+ | Sinon la(es) connexion(s) se gère(nt) via : | ||
+ | <code bash> cat / | ||
+ | |||
+ | |||
+ | =====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</ | ||
+ | |||
+ | |||
+ | |||
+ | =====Configuration spécifique===== | ||
+ | ====timeout boot==== | ||
+ | Diminuer le timeout du menu du boot loader à 2 secondes | ||
+ | <code bash> | ||
+ | |||
+ | ====Acc. chiffr.==== | ||
+ | Accélération de chiffrement des processeurs modernes | ||
+ | <code bash># | ||
+ | Module à charger dans /boot et non / | ||
+ | |||
+ | ====Scheduler==== | ||
+ | Configuration pour une utilisation pour desktop/ | ||
+ | <code bash> | ||
+ | |||
+ | Pour activer la réponse «yes» aux questions de fsck au démarrage: | ||
+ | <code bash> | ||
+ | ====Micro codes CPU==== | ||
+ | Utiliser micro codes CPU | ||
+ | <code bash>pkg install devcpu-data | ||
+ | service microcode_update enable | ||
+ | service microcode_update start</ | ||
+ | |||
+ | ==== ACPI ==== | ||
+ | === CPU et TEMP === | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | < | ||
+ | sysrc kld_list+=cpuctl</ | ||
+ | |||
+ | ==== Fn Keys : DELL latitude E5430 ==== | ||
+ | |||
+ | Ai rencontré un soucis avec les touches **Fn + brightness** seulement sur le Latitude E5430. Avec le Latitude E6410 pas de soucis. | ||
+ | |||
+ | Les touches** FN et luminosité -up/down** ne fonctionnent pas. De plus **xbindkeys** ne retourne aucun code avec l' | ||
+ | |||
+ | Solution adoptée. | ||
+ | |||
+ | Installer : | ||
+ | <code bash>pkg install xbindkeys intel-backlight</ | ||
+ | |||
+ | |||
+ | Fichier de configuration : | ||
+ | <code bash>cat .xbindkeysrc | ||
+ | # PERSONNAL XBINDKEYS | ||
+ | " | ||
+ | Alt + Down | ||
+ | |||
+ | " | ||
+ | Alt + Up | ||
+ | </ | ||
+ | |||
+ | Lancer xbindkeys au démarrage de la session **~/ | ||
+ | |||
+ | Ajouter cette section avant le démarrage de XFCE dans | ||
+ | <code bash># Démarrer xbindkeys | ||
+ | / | ||
+ | |||
+ | ==== XFCE / FLAUXBOX / OPENBOX ==== | ||
+ | Pour avoir le choix entre plus Windows Manager : ici fluxbox, openbox | ||
+ | |||
+ | <code bash>pkg install openbox openbox-themes obconf fluxbox fluxbox-tenr-styles-pack icewm wmakerconf windowmaker blackbox | ||
+ | |||
+ | Modifier le fichier **~/ | ||
+ | |||
+ | <code bash># GESTIONNAIRE X | ||
+ | DEFAULT_SESSION=startxfce4 | ||
+ | |||
+ | case $1 in | ||
+ | o) | ||
+ | exec openbox | ||
+ | ;; | ||
+ | f) | ||
+ | exec fluxbox | ||
+ | ;; | ||
+ | i) | ||
+ | icewmbg & | ||
+ | icewmtray & | ||
+ | exec icewm | ||
+ | ;; | ||
+ | w) | ||
+ | exec wmaker | ||
+ | ;; | ||
+ | b) | ||
+ | exec blackbox | ||
+ | ;; | ||
+ | *) | ||
+ | exec $DEFAULT_SESSION | ||
+ | ;; | ||
+ | esac | ||
+ | </ | ||
+ | |||
+ | Dans votre shell, créer l' | ||
+ | <code bash> | ||
+ | A la connexion, un **x** lancer xfce, **x o** openbox **x b** blackbox.... | ||
+ | |||
+ | =====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…... | ||
+ | |||
+ | |||
+ | ====Sources==== | ||
+ | Je n'ai pas pondu tout cela tout seul, j'ai lu pas mal de docs et les forums BSD. | ||
+ | Voici les sources indispensables à mon avis : | ||
+ | *[[http:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | |||
+ | |||
+ | Et surtout | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// |