Outils pour utilisateurs

Outils du site


bsd:bsfb

SERVICES X

Méthode rapide


pkg install bash nano mc fr-freebsd-doc xorg gnome3 gnome-menus firefox gedit vlc terminator

svnlite checkout https://svn0.eu.freebsd.org/base/releng/11.2 /usr/src
mkdir /root/nvidia-340
cd /root/nvidia-340
fetch http://fr.download.nvidia.com/XFree86/FreeBSD-x86_64/340.107/NVIDIA-FreeBSD-x86_64-340.107.tar.gz
tar xzf NVIDIA-FreeBSD-x86_64-340.107.tar.gz && cd NVIDIA-FreeBSD-x86_64-340.107 && make install
mkdir -p /compat/linux/dev/shm
nano /etc/fstab
fdesc    /dev/fd               fdescfs    rw                  0       0
proc     /proc                 procfs     rw                  0       0
tmpfs    /compat/linux/dev/shm tmpfs      rw,mode=1777        0       0
nano /etc/rc.conf
linux_enable="YES"
dbus_enable="YES"
dbus_hald="YES"
gnome_enable="YES"
gdm_enable="YES"
nano /boot/loader.conf
nvidia_load="YES"
nvidia_name="nvidia"
nvidia_modeset_load="YES"
nvidia_modeset_name="nvidia-modeset"
linux_load="YES"

nano /usr/local/etc/X11/xorg.conf.d/20-nvidia.conf

20-nvidia.conf.zip

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/local/lib/xorg/modules"
    FontPath     "/usr/local/share/fonts/misc/"
    FontPath     "/usr/local/share/fonts/TTF/"
    FontPath     "/usr/local/share/fonts/OTF/"
    FontPath     "/usr/local/share/fonts/Type1/"
    FontPath     "/usr/local/share/fonts/100dpi/"
    FontPath     "/usr/local/share/fonts/75dpi/"
    FontPath     "/usr/local/share/fonts/dejavu/"
    FontPath     "/usr/local/share/fonts/bitstream-vera/"
EndSection

Section "Module"
    Load  "glx"
    Load "freetype"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/sysmouse"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
    ### <percent>: "<f>%"
    ### [arg]: arg optional
    #Option     "ShadowFB"                  # [<bool>]
    #Option     "DefaultRefresh"            # [<bool>]
    #Option     "ModeSetClearScreen"        # [<bool>]
    Identifier  "Card0"
   #Driver      "vesa"
    Driver      "nvidia"
    BusID       "PCI:2:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
            Viewport   0 0
            Depth     1
    EndSubSection
    SubSection "Display"
            Viewport   0 0
            Depth     4
    EndSubSection
    SubSection "Display"
            Viewport   0 0
            Depth     8
    EndSubSection
    SubSection "Display"
            Viewport   0 0
            Depth     15
    EndSubSection
    SubSection "Display"
            Viewport   0 0
            Depth     16
    EndSubSection
    SubSection "Display"
            Viewport   0 0
            Depth     24
    EndSubSection
EndSection
reboot

:-D

INSTALLER XORG


pkg install xorg
Xorg -configure
cp xorg.conf.new /usr/local/etc/X11/xorg.conf.d/20-nvidia.conf

- on vérifie que le module freetype est chargé dans le fichier xorg.conf en rajoutant à la:
section “Modules”

Load "freetype"

section “Files”

FontPaht "/usr/local/share/fonts/dejavu/"

Info:
- si on utilise XFree86 le fichier de configuration sera: /etc/X11/XF86Config
- si on utilise X.Org le fichier de configuration sera: /etc/X11/xorg.conf

Problémes

GDM clavier en layout us

Dans Gnome:

setxkbmap -query
rules:      base
model:      pc105
layout:     be,us
variant:    ,


xorg.conf détails


Section ServerLayout
Dans cette section sont réunis les périphériques d'entrées et les écrans afin de former un système totalement opérationnel.
Dans le cas d'une configuration multi-têtes (avec plusieurs écrans) c'est ici qu'est indiquée la position relative des différents écrans.
Cette section doit au minimum posséder les entrées Identifier et Screen.

Un exemple de section ServerLayout:

Section "ServerLayout" 
   Identifier     "single head configuration" 
   Screen      0  "Screen0" 0 0 
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard" 
EndSection

Dans cet exemple, le ServerLayout est composé de l'écran Screen0, de la souris Mouse0 et du clavier Keyboard0.

Section Files
Cette section indique les chemins des ressources utilisées par X.org, ces chemins peuvent être introduit de trois manières:

  • FontPath: qui décrit le chemin vers les polices de caractères.
  • RgbPath: pointe vers le répertoire de fichiers de définition de couleurs.
  • ModulePath: qui désigne les répertoires d'installation des modules.

Exemple d'une section Files:

Section "Files"
   RgbPath     "/usr/share/X11/rgb"
   FontPath    "/usr/lib/X11/fonts/misc/"
   ModulePath  "/usr/X11R6/lib/modules"
EndSection

Section Module
Cette section contient la liste des modules du noyau à charger lorsque le serveur X démarre.
Il existe deux façons de charger les modules dans cette section:

La première se fait à l'aide de Load, suivi du nom du module entre guillemets:

Section "Module"
   Load "dri"
EndSection

La seconde manière se fait en intégrant une sous-section à la section Module, ceci permet d'ajouter des options au module à charger, par exemple:

Section "Module"
  SubSection "extmod"
   Option "omit X.org-DGA"
  EndSubSection
EndSection

Dans cet exemple, on charge le module extmod sans l'option X.org-DGA.

Section InputDevice
Cette section représente les différents périphériques d'entrée, comme la clavier, la souris, les écrans tactiles, les manettes, etc…
Elle possède deux entrées obligatoires: Identifier et Driver qui désignent respectivement le nom du périphérique et le pilote à utiliser pour son fonctionnement.
Les autres entrées de cette section sont optionnelles.

Exemple d'une section InputDevice:

Section "InputDevice" 
   Identifier  "Keyboard0" 
   Driver      "kbd" 
   Option      "XkbModel" "macintosh" 
   Option      "XkbLayout" "fr" 
EndSection 

Ici, le clavier Keyboard0 utilise le pilote kbd, les options indiquent qu'il est de type Macintosh et qu'il faut utiliser le layout fr.

Section Monitor
Cette section contient la description et les options spécifiques à un moniteur, ainsi que les informations sur le mode vidéo (ces derniers peuvent aussi être décrits dans la section Modes).
Elle possède une seule entrée obligatoire: Identifier, afin de pouvoir la nommer.

Exemple d'une section Monitor:

Section "Monitor"
   Identifier   "Monitor0"
   ModelName    "LCD Panel 1680x1050"
   HorizSync    31.5 - 90.0
   VertRefresh  59.9 - 60.1
EndSection

ModelName indique des informations sur le moniteur, tandis que HorizSync nous fournit la plage de fréquences de synchronisation horizontale (dont les valeurs numériques sont par défaut en kHz) et VertRefresh la page de fréquence de rafraichissement verticale (avec des valeurs par défaut en Hz).

Section Device
Cette partie contient les informations matérielles de la carte graphique.
Tout comme la section InputDevice, elle nécessite au moins deux entrées: Identifier et Driver, les autres entrées sont aussi optionnelles.

Exemple d'une section Device:

Section "Device"
   Identifier  "Videocard0" 
   Driver      "fglrx"
   Option      "BusType" "PCI" 
EndSection

Dans cet exemple, Videocard0 est une carte graphique ATI, qui utilise le pilote fglrx, l'option indique que la carte est connectée via un bus PCI.

Section Screen
Cette section est définie par un moniteur et une carte graphique, afin de pouvoir permettre l'affichage, c'est aussi ici que le mode vidéo utilisé est choisi parmi les modes que l'ordinateur peut gérer.
Elle possède deux entrées obligatoires: Identifier et Device.
Elle est souvent composée d'une sous-section Display possédant au moins une entrée Depth, informant sur la profondeur des couleurs à utiliser.

Exemple d'une section Screen:

Section "Screen" 
   Identifier "Screen0" 
   Device     "Videocard0" 
   Monitor    " Monitor0" 
   SubSection "Display" 
      Viewport   0 0 
      Depth     24 
   EndSubSection 
EndSection

L'écran Screen0 est composé de la carte graphique Videocard0 et du moniteur Monitor0.
La sous-section indique que la profondeur des couleurs des de 24 bits et l'entrée Viewport initialise le haut gauche de l'écran comme origine.



Activer les librairies Linux 64 et ensuite seulement installer nvidia

https://www.freebsd.org/doc/handbook/linuxemu.html#linuxemu-synopsis

kldstat Id Refs Address Size Name 1 4 0xffffffff80200000 2036810 kernel 2 1 0xffffffff82421000 2328 ums.ko


Installation des drivers nvidia avec le driver du site officiel et de Gnome3


Récupération des sources

svnlite checkout https://svn0.eu.freebsd.org/base/releng/11.2 /usr/src

cd /root
mkdir nvidia
mv NVIDIA-FreeBSD-x86_64-340.107.tar.gz nvidia
fetch http://fr.download.nvidia.com/XFree86/FreeBSD-x86_64/340.107/NVIDIA-FreeBSD-x86_64-340.107.tar.gz
tar xzf NVIDIA-FreeBSD-x86_64-340.107.tar.gz && cd NVIDIA-FreeBSD-x86_64-340.107 && make install
nano /etc/rc.conf
linux_enable="YES"
nano /boot/loader.conf
nvidia_load="YES"
nvidia_name="nvidia"
nvidia_modeset_load="YES"
nvidia_modeset_name="nvidia-modeset"
linux_load="YES"
nano /etc/fstab 
tmpfs    /compat/linux/dev/shm	tmpfs	rw,mode=1777	0	0
nano /usr/local/etc/X11/xorg.conf.d/20-nvidia.conf
Section "ServerLayout"
      Identifier     "X.org Configured"
      Screen      0  "Screen0" 0 0
      InputDevice    "Mouse0" "CorePointer"
      InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
      ModulePath   "/usr/local/lib/xorg/modules"
      FontPath     "/usr/local/share/fonts/misc/"
      FontPath     "/usr/local/share/fonts/TTF/"
      FontPath     "/usr/local/share/fonts/OTF/"
      FontPath     "/usr/local/share/fonts/Type1/"
      FontPath     "/usr/local/share/fonts/100dpi/"
      FontPath     "/usr/local/share/fonts/75dpi/"
      FontPath     "/usr/local/share/fonts/dejavu/"
      FontPath     "/usr/local/share/fonts/bitstream-vera/"
EndSection

Section "Module"
      Load  "glx"
      Load "freetype"
EndSection

Section "InputDevice"
      Identifier  "Keyboard0"
      Driver      "kbd"
EndSection

Section "InputDevice"
      Identifier  "Mouse0"
      Driver      "mouse"
      Option      "Protocol" "auto"
      Option      "Device" "/dev/sysmouse"
      Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
      Identifier   "Monitor0"
      VendorName   "Monitor Vendor"
      ModelName    "Monitor Model"
EndSection

Section "Device"
      ### Available Driver options are:-
      ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
      ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
      ### <percent>: "<f>%"
      ### [arg]: arg optional
      #Option     "ShadowFB"                  # [<bool>]
      #Option     "DefaultRefresh"            # [<bool>]
      #Option     "ModeSetClearScreen"        # [<bool>]
      Identifier  "Card0"
     #Driver      "vesa"
      Driver      "nvidia"
      BusID       "PCI:2:0:0"
EndSection

Section "Screen"
      Identifier "Screen0"
      Device     "Card0"
      Monitor    "Monitor0"
      SubSection "Display"
              Viewport   0 0
              Depth     1
      EndSubSection
      SubSection "Display"
              Viewport   0 0
              Depth     4
      EndSubSection
      SubSection "Display"
              Viewport   0 0
              Depth     8
      EndSubSection
      SubSection "Display"
              Viewport   0 0
              Depth     15
      EndSubSection
      SubSection "Display"
              Viewport   0 0
              Depth     16
      EndSubSection
      SubSection "Display"
              Viewport   0 0
              Depth     24
      EndSubSection
EndSection
pkg install gnome3 gnome-menus firefox gimp gedit vlc terminator
nano /etc/rc.conf
dbus_enable="YES"
dbus_hald="YES"
gnome_enable="YES"
gdm_enable="YES"

reeboot
kldstat
Id Refs Address            Size     Name
1   26 0xffffffff80200000 2036810  kernel
2    2 0xffffffff82238000 134fe98  nvidia.ko
3    3 0xffffffff83588000 a4ab8    linux.ko
4    3 0xffffffff8362d000 92c0     linux_common.ko
5    1 0xffffffff83637000 171e98   nvidia-modeset.ko
6    1 0xffffffff83821000 1820     fdescfs.ko
7    1 0xffffffff83823000 2328     ums.ko
8    1 0xffffffff83826000 31e50    linux64.ko
9    1 0xffffffff83858000 6fc4     tmpfs.ko



Flashplayer


pkg install nspluginwrapper-1.4.4_7
pkg install flashplayer-24.0

The nspluginwrapper is installed on a per user basis. All of the commands can be run as an unprivileged user.

To install all the plugins from their default locations: nspluginwrapper -v -a -i

To install a specific plugin: nspluginwrapper -i path/to/plugin.so

To remove a specific plugin: nspluginwrapper -r path/to/plugin.so

To view all currently installed plugins: nspluginwrapper -l


Kde


pkg install kde gtk-oxygen-engine kde-gtk-config

nano /etc/rc.conf
dbus_enable="YES"
hald_enable="YES"
kdm4_enable="YES"

nano /etc/fstab
proc   /proc    procfs  rw  0  0

$ nano ~.xinitrc
exec /usr/local/bin/startkde

ou

# nano .xinitrc
exec /usr/local/bin/startkde
cp .xinitrc  /home/aiko/
chown aiko:aiko home/aiko/.xinitrc

To be able to play audio and video streams with Phonon-GStreamer, you'll need to have the appropriate GStreamer plugins installed. multimedia/gstreamer-plugins-core will install a standard set, while multimedia/gstreamer-plugins-all will let you choose among all of them.

Chromium

pkg install chromium-56.0.2924.87_1
nano /etc/sysctl.conf
sysctl kern.ipc.shm_allow_removed=1

Le son

nano /boot/loader.conf
snd_hda_load="YES"

ERREURS


gnome-tweak-tool ne veut pas démarrer

  1. il ne trouve pas l'envirronement pyton
  2. il ne trouve pas le module gtweak

- on fait un lien symbolique dans /usr/local/bin

ln -s python2.7 python

- on exporte environnement

/usr/bin/env python

- le probléme gtweak se passe lorsque l'on utilise le pyton3.5


Extension Dash to dock

Suivre ce Tuto

mkdir ~/.local/share/gnome-shell/extensions/
wget https://extensions.gnome.org/review/download/8039.shell-extension.zip
unzip 8039.shell-extension.zip -d dash-to-dock@micxgx.gmail.com

On redémarre l'interface de Gnome3
ALT + F2
r puis touche Enter

;-)


How To BSD
FreeBSD post-install
Services Réseaux

bsd/bsfb.txt · Dernière modification : de 127.0.0.1