Outils pour utilisateurs

Outils du site


installfreebsd

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
Prochaine révisionLes deux révisions suivantes
installfreebsd [2019/03/24 11:07] – [Démarrer xfce] cyrilleinstallfreebsd [2019/03/24 20:12] – [Devices ; permissions] cyrille
Ligne 3: Ligne 3:
 Sur laptop, DELL Latitude E5430 et DELL Latitude E6410 Sur laptop, DELL Latitude E5430 et DELL Latitude E6410
  
 +
 +Attention si en parallèle d'un linux, laisser le Linux gérer le grub via le MBR et rajouter une entrée dans le grub. 
 +
 +Exemple : 
 +<code bash>cat /etc/grub.d/40_custom
 +#!/bin/sh
 +exec tail -n +3 $0
 +# This file provides an easy way to add custom menu entries.  Simply type the
 +# menu entries you want to add after this comment.  Be careful not to change
 +# the 'exec tail' line above.
 +menuentry "FreeBSD 12" {
 +    set root='(hd0,3)'
 +    kfreebsd /boot/loader
 +}</code>
 +
 +Si que freesbd sur le disque, utiliser <code bash>GPT</code> et non MBR
 ===== Installation ===== ===== Installation =====
  
Ligne 142: Ligne 158:
  
 <code bash> pkg install  wifimgr</code> <code bash> pkg install  wifimgr</code>
 +===== Devices : permissions =====
 +Permettra en autres l'accès aux périphériques amovibles (CDR,DVD). Nécessaire pour xfburner par exemple.
 +
 +<code bash>cat /etc/devfs.conf
 +
 +    # Allow all users to access optical media
 +    perm    /dev/acd0       0666
 +    perm    /dev/acd1       0666
 +    perm    /dev/cd0        0666
 +    perm    /dev/cd1        0666
 +     
 +    # Allow all USB Devices to be mounted
 +    perm    /dev/da0        0666
 +    perm    /dev/da1        0666
 +    perm    /dev/da2        0666
 +    perm    /dev/da3        0666
 +    perm    /dev/da4        0666
 +    perm    /dev/da5        0666
 +     
 +    # Misc other devices
 +    perm    /dev/pass0      0666
 +    perm    /dev/xpt0       0666
 +    perm    /dev/uscanner0  0666
 +    perm    /dev/video0     0666
 +    perm    /dev/tuner0     0666
 +    perm    /dev/dvb/adapter0/demux0    0666
 +    perm    /dev/dvb/adapter0/dvr       0666
 +    perm    /dev/dvb/adapter0/frontend0 0666
 +</code>
 +
 +<code bash>cat /etc/devfs.rules
 +
 +    [devfsrules_common=7]
 +    add path 'ad[0-9]\*' mode 666
 +    add path 'ada[0-9]\*' mode 666
 +    add path 'da[0-9]\*' mode 666
 +    add path 'acd[0-9]\*' mode 666
 +    add path 'cd[0-9]\*' mode 666
 +    add path 'mmcsd[0-9]\*' mode 666
 +    add path 'pass[0-9]\*' mode 666
 +    add path 'xpt[0-9]\*' mode 666
 +    add path 'ugen[0-9]\*' mode 666
 +    add path 'usbctl' mode 666
 +    add path 'usb/\*' mode 666
 +    add path 'lpt[0-9]\*' mode 666
 +    add path 'ulpt[0-9]\*' mode 666
 +    add path 'unlpt[0-9]\*' mode 666
 +    add path 'fd[0-9]\*' mode 666
 +    add path 'uscan[0-9]\*' mode 666
 +    add path 'video[0-9]\*' mode 666
 +    add path 'tuner[0-9]*'  mode 666
 +    add path 'dvb/\*' mode 666
 +    add path 'cx88*' mode 0660
 +    add path 'cx23885*' mode 0660 # CX23885-family stream configuration device
 +    add path 'iicdev*' mode 0660
 +    add path 'uvisor[0-9]*' mode 0660</code>
 +    
 +Mettre à jour le **/etc/rc.conf** avec cette entrée
 +
 +<code bash>devfs_system_ruleset="devfsrules_common"</code>
 +
 +Prendre en compte les modifications sans rebooter
 +<code bash>/etc/rc.d/devfs restart</code>
 +
 +
 +
 =====X11 / XFCE===== =====X11 / XFCE=====
  
Ligne 702: Ligne 784:
  
 ===== Bash ===== ===== Bash =====
 +
 +==== bash comme shell par défaut ====
 +
 +
 +<WRAP center round important 60%>
 +Attention ne pas changer le shell du root
 +</WRAP>
 + 
 +
  
 <code bash># chsh -s /usr/local/bin/bash {username}</code> <code bash># chsh -s /usr/local/bin/bash {username}</code>
Ligne 715: Ligne 806:
 fdesc  /dev/fd  fdescfs  rw 0 0</code> fdesc  /dev/fd  fdescfs  rw 0 0</code>
  
 +
 +==== Autocomplétion ====
 <code bash>add the following to your ~/.bashrc or ~/.bash_profile file: <code bash>add the following to your ~/.bashrc or ~/.bash_profile file:
 [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
Ligne 722: Ligne 815:
 <code bash># pkg install bash-completion</code> <code bash># pkg install bash-completion</code>
  
 +==== Alias ====
 +Créer un fichier **.bash_aliases**
 + touch .bash_aliases
 +Et y mettre ses alias. Si non fait,  insérer cette section dans le .bashrc 
 +<code bash># Alias definitions.
 +# You may want to put all your additions into a separate file like
 +# ~/.bash_aliases, instead of adding them here directly.
 +# See /usr/share/doc/bash-doc/examples in the bash-doc package.
 +if [ -f ~/.bash_aliases ]; then
 +    . ~/.bash_aliases
 +fi
 +</code>
  
 =====Sources===== =====Sources=====
Ligne 732: Ligne 837:
   *[[https://www.tecmint.com/things-to-do-after-installing-freebsd/|Post installation freeBSD laptop]]   *[[https://www.tecmint.com/things-to-do-after-installing-freebsd/|Post installation freeBSD laptop]]
   *[[https://www.cyberciti.biz/faq/freebsd-bash-installation/|FreeBSD Install BASH Shell Using pkg command]]   *[[https://www.cyberciti.biz/faq/freebsd-bash-installation/|FreeBSD Install BASH Shell Using pkg command]]
- +  *[[https://cooltrainer.org/a-freebsd-desktop-howto/|A FreeBSD 11 Desktop How-to]]
 Et surtout Et surtout
   *[[https://www.freebsd.org/| Site FreeBSD]]   *[[https://www.freebsd.org/| Site FreeBSD]]
   *[[https://forums.freebsd.org/|Forums FreeBSD]]   *[[https://forums.freebsd.org/|Forums FreeBSD]]
   *[[https://www.freebsd.org/doc/fr/books/handbook/|HandBook Français de FreeBSD]]   *[[https://www.freebsd.org/doc/fr/books/handbook/|HandBook Français de FreeBSD]]
installfreebsd.txt · Dernière modification : 2020/06/06 17:12 de cyrille