Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | Prochaine révisionLes deux révisions suivantes | ||
installfreebsd [2019/02/24 13:36] – cyrille | installfreebsd [2019/03/09 18:41] – cyrille | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Recuperer les infos pkg | + | Francisation |
+ | Editer le fichier / | ||
- | <code bash> pkg info -D zsh</ | ||
+ | | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | Ajouter | ||
+ | : | ||
+ | : | ||
+ | Le recharger | ||
+ | cap_mkdb /etc /login.conf | ||
- | <code bash>$ su - | + | AJOUTER un user |
- | root@dellfp15: | + | # adduser |
+ | L’inclure dans les groupes : wheel operator video | ||
- | |||
+ | Gestion du son | ||
+ | #kldload snd_driver | ||
+ | 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. | ||
- | Post-configuration | + | #sysrc kld_list+=snd_hda |
- | Connaitre le matériel à configurer | + | |
- | dmesg | grep "no driver attached" | + | |
- | Reconfigurer le réseau | + | drm-kmod |
- | bsdinstall netconfig | + | pkg install drm-kmod |
+ | sysrc kld_list+="/ | ||
+ | kldload / | ||
+ | kldstat -v | grep i915 | ||
- | $ pkg | ||
- | Installation / initialisation de l' | ||
- | $ pkg install nano | + | X11 / XFCE |
- | Editeur plus simple que VI | + | |
- | pkg bash bash-completion | + | pkg install xorg xfce xfce4-goodies xfce4-mixer xfce4-volumed xf86-video-intel file-roller |
- | Installation de bash et l'auto-completion | + | |
- | pkg install sudo | ||
- | Editer / | ||
- | | + | Pour activer le suspend et resume |
+ | 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): | ||
- | your_user ALL=(ALL) ALL | + | polkit.addRule(function (action, subject) { |
+ | if ((action.id | ||
+ | action.id == " | ||
+ | && subject.isInGroup(" | ||
+ | return polkit.Result.YES; | ||
+ | } | ||
+ | }); | ||
+ | For those who have working suspend/ | ||
- | nano /etc/rc.config | + | polkit.addRule(function (action, subject) { |
- | Ajouter | + | if (action.id == "org.freedesktop.consolekit.system.suspend" |
- | dbus_enable=" | + | && |
- | hald_enable=" | + | return polkit.Result.YES; |
+ | } | ||
+ | }); | ||
- | Rebooter pour prise en charge de dbus | ||
- | pkg install xorg | ||
- | Installation du serveur X | ||
- | Système en français | ||
- | nano / | ||
- | french|French Users Accounts: | + | Démarrer xfce |
- | : | + | |
- | : | + | |
- | : | + | |
- | Commenter la section " | + | |
- | prise en compte | + | Lancer dbus |
+ | Pkg install dbus | ||
+ | service dbus onestart | ||
+ | Créer dans le Home un .xinitrc | ||
- | # cap_mkdb /etc/login.conf | + | # SET PROPER locale |
+ | export LANG=" | ||
+ | export LC_ALL=" | ||
+ | export LC_MESSAGES=" | ||
+ | # Clavier français | ||
+ | setxkbmap fr & | ||
+ | # Lancer xfce | ||
+ | / | ||
- | Puis éditer le fichier de mot de passe par la commande vipw. , Et rechercher votre login : | + | Lier xinitrc et xsession |
+ | ln -s ~/.xinitrc ~/.xsession | ||
- | # vipw | ||
- | olivier: | ||
- | Il faut ajouter «french» entre les ::, ce qui va donner : | + | anti-aliasing avec la police Helvetica |
+ | Editer | ||
+ | <?xml version=' | ||
+ | < | ||
+ | < | ||
- | olivier: | + | < |
- | | + | |
- | Drivers vidéo KRM-DMS (Intel i915, AMD GPU, Radeon) | + | <!-- do not use the embedded bitmap instead of the outline |
+ | < | ||
+ | < | ||
+ | < | ||
+ | <match target=" | ||
+ | <edit name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
- | À partir de FreeBSD 11.2 uniquement, vous pouvez installer le meta-package drm-kmod qui va selectionner la meilleure version des drivers | + | <!-- prefer outline e.g. TrueType instead of bitmap fonts |
+ | < | ||
+ | <https:// | ||
+ | <match target=" | ||
+ | <edit name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
- | pkg install | + | < |
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <patelt name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <patelt name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | Paramétrage de Xorg | ||
+ | |||
+ | # cat / | ||
+ | Section " | ||
+ | Identifier " | ||
+ | Driver " | ||
+ | Option " | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | |||
+ | # cat / | ||
+ | Section " | ||
+ | Identifier " | ||
+ | Driver " | ||
+ | Option " | ||
+ | Option " | ||
+ | EndSection | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Diminuer le timeout du menu du boot loader à 2 secondes | ||
+ | sysrc -f / | ||
+ | Accélération de chiffrement des processeurs modernes | ||
+ | #echo ' | ||
+ | Module à charger dans /boot et non etcrc.conf pour un chargement plus rapide | ||
+ | |||
+ | |||
+ | On commence par optimiser le scheduler pour un usage desktop: | ||
+ | |||
+ | sysrc -f / | ||
+ | |||
+ | Pour activer la réponse «yes» aux questions de fsck au démarrage: | ||
+ | |||
+ | sysrc fsck_y_enable=YES | ||
+ | |||
+ | Utiliser micro codes CPU | ||
+ | pkg install | ||
+ | service microcode_update enable | ||
+ | service microcode_update start | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | sysrc kld_list+=coretemp | ||
+ | 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 | ||
+ | # pkg install git | ||
+ | # git clone https:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Initialisation des ports | ||
+ | (nécessaires pour compiler exfat-utils/ | ||
+ | |||
+ | # portsnap fetch | ||
+ | # portsnap extract | ||
+ | |||
+ | |||
+ | # cd / | ||
+ | # make install clean | ||
+ | Accepter la licence et toutes les options par défaut | ||
+ | |||
+ | # cd / | ||
+ | # make install clean | ||
+ | Même procédure | ||
+ | |||
+ | Installer le reste des dépendances via pkg | ||
+ | # pkg install fusefs-ntfs fusefs-ext4fuse fusefs-hfsfuse fusefs-lkl fusefs-simple-mtpfs zenity | ||
- | Et demander leur chargement automatique, | ||
- | sysrc kld_list+="/ | ||
- | kldload / | ||
- | Après un reboot, vérifier que le module du package (/ | ||
- | olivier@x220: | ||
- | | ||
+ | Détarer automount-1.6.1.tar.gz , entrez dans le dossier | ||
+ | # cp automount.conf | ||
- | networkmanager | + | Editer ce fichier de cette façon |
- | pkg install networkmgr | + | $ cat / |
+ | USERUMOUNT=YES | ||
+ | ATIME=NO | ||
+ | REMOVEDIRS=YES | ||
+ | FM=" | ||
+ | USER=ragnarok | ||
+ | ENCODING=fr_FR.UTF-8 | ||
+ | CODEPAGE=cp850 | ||
- | $ cat / | ||
- | 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 :wheel cmd wpa_supplicant | ||
+ | # cp automount_devd.conf / | ||
+ | # cp automount | ||
+ | # chmod +x / | ||
+ | # / | ||
+ | Et hop, ça fonctionne…... |