Projet

Général

Profil

SOP 002-Environnement informatique » Historique » Version 135

Patrice Nadeau, 2023-02-24 21:20

1 85 Patrice Nadeau
# SOP 002-Environnement informatique
2 1 Patrice Nadeau
3 122 Patrice Nadeau
Ce SOP explique comment configurer un poste avec le système d’exploitation *openSUSE* pour :
4 1 Patrice Nadeau
* la programmation (C)
5
* le désign de circuits électroniques
6
7
---
8
9
{{toc}}
10
11 85 Patrice Nadeau
## Matériel
12 1 Patrice Nadeau
13 85 Patrice Nadeau
### Ordinateur
14 1 Patrice Nadeau
15
* Processeur
16 95 Patrice Nadeau
    * 64 bits
17 1 Patrice Nadeau
* Mémoire
18 95 Patrice Nadeau
    * 2 Mo
19 1 Patrice Nadeau
* Disque
20
* Port série ou convertisseur USB/série (communication série et programmeur AVR)
21
* Port USB 2.0 ou plus (sonde Logic et programmeur AVR)
22
23 85 Patrice Nadeau
### Écran
24 1 Patrice Nadeau
25
* Résolution minimal de 1690x900 (VIM 2 x 80 colonnes + taglist)
26 131 Patrice Nadeau
27 1 Patrice Nadeau
28 85 Patrice Nadeau
### Programmeur
29 1 Patrice Nadeau
30
Pour le transfert des programmes vers les uC AVR.
31
32
Les programmeur suivants ont été testés :
33 88 Patrice Nadeau
34 1 Patrice Nadeau
* Atmel STK500
35
* Atmel STK600
36
* Atmel AVRISP mkII
37
38 85 Patrice Nadeau
## Logiciels
39 1 Patrice Nadeau
40 85 Patrice Nadeau
### Système d'exploitation
41 1 Patrice Nadeau
42 98 Patrice Nadeau
openSUSE Leap 15 avec interface graphique
43 1 Patrice Nadeau
44 85 Patrice Nadeau
### Navigateur Web
45 1 Patrice Nadeau
46
Pour l’accès à Redmine
47
48 85 Patrice Nadeau
#### Firefox 
49 1 Patrice Nadeau
50
Dictionnaire français
51
52 85 Patrice Nadeau
### Suite bureautique
53 1 Patrice Nadeau
54
LibreOffice
55
56 85 Patrice Nadeau
### Autres
57 1 Patrice Nadeau
58
Document viewer (Evince)
59
60 85 Patrice Nadeau
### Éditeur
61 1 Patrice Nadeau
62 97 Patrice Nadeau
L’éditeur [VIM](http://www.vim.org) est utilisé. 
63 1 Patrice Nadeau
Plusieurs compléments sont installés et une personnalisation est appliquée.
64
65 93 Patrice Nadeau
```bash
66 109 Patrice Nadeau
sudo zypper install gvim vim-data vim-plugin-a vim-plugin-NERDtree vim-plugin-fugitive
67 93 Patrice Nadeau
```
68 1 Patrice Nadeau
69 117 Patrice Nadeau
Plugin de <http://www.vim.org/>
70 1 Patrice Nadeau
71
* tagbar
72
73
Ctags
74
75 93 Patrice Nadeau
```bash
76
sudo zypper install ctags
77
```
78 1 Patrice Nadeau
79
#### Personnalisation
80 98 Patrice Nadeau
81 115 Patrice Nadeau
1. Utilisation de la police de caractère **Hack**
82 98 Patrice Nadeau
83 115 Patrice Nadeau
    ```bash
84
    wget https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.zip
85
    unzip Hack*.zip
86
    sudo cp ttf/* /usr/share/fonts
87
    rm -rf ttf
88
   ```
89 1 Patrice Nadeau
90 115 Patrice Nadeau
1. Copier les gabarits
91
   > TODO : gabarits Vim
92
   ```bash
93
   mkdir ~/Documents/projects
94
   ...
95
   ```
96 1 Patrice Nadeau
97 115 Patrice Nadeau
1. Créer des liens symboliques pour :
98 1 Patrice Nadeau
99 115 Patrice Nadeau
    ```bash
100
    ln -s ~/Documents/projects/vim/vimrc ~/.vimrc
101
    ln -s~/Documents/projects/vim/vim ~/.vim
102
    ln -s~/Documents/projects/linux/ctags ~/.ctags
103
    ```
104 85 Patrice Nadeau
105 115 Patrice Nadeau
1. Créer un raccourci pour l’application
106 1 Patrice Nadeau
107 115 Patrice Nadeau
    ```bash
108
    gvim –cmd:cd /home/repertoire_projets
109
    ```
110 1 Patrice Nadeau
111
### Unison
112 85 Patrice Nadeau
113 1 Patrice Nadeau
Synchronisation de données
114
115 93 Patrice Nadeau
```bash
116
sudo zypper install unison
117
```
118 16 Patrice Nadeau
119 1 Patrice Nadeau
### Minicom
120
121
Logiciel de terminal sous GNU/Linux
122
123
Installation
124
125 93 Patrice Nadeau
```bash
126
sudo zypper install minicom
127
```
128 85 Patrice Nadeau
129 1 Patrice Nadeau
Personnalisation
130
Ajouter l’utilisateur dans le groupe *dialout*.
131
132 93 Patrice Nadeau
```bash
133
sudo usermod --groups dialout username
134
```
135 85 Patrice Nadeau
136 41 Patrice Nadeau
L’usager doit se reloguer.
137 1 Patrice Nadeau
138
### XƎTEX
139 85 Patrice Nadeau
140
Installation
141
142 93 Patrice Nadeau
```bash
143 100 Patrice Nadeau
sudo zypper install texlive-latex texlive-listing texlive-fancyhdr texlive-graphics texlive-todo texlive-siunitx texlive-beamer texlive-context-fullpage texlive-lastpage texlive-polyglossia texlive-lstaddons
144 93 Patrice Nadeau
```
145 1 Patrice Nadeau
146
## Programmation
147 85 Patrice Nadeau
148 1 Patrice Nadeau
Le langage _C_ est celui utilisé pour les systèmes embarqués.
149
150
### Éditeur
151
152
Ajouts supplémentaire à VIM
153
154 111 Patrice Nadeau
* Police **Hack**
155
156 85 Patrice Nadeau
### Compilateur C
157 1 Patrice Nadeau
158 85 Patrice Nadeau
#### gcc
159 17 Patrice Nadeau
160 93 Patrice Nadeau
```bash
161
sudo zypper install gcc make
162
```
163 1 Patrice Nadeau
164
#### splint
165 86 Patrice Nadeau
166 1 Patrice Nadeau
Vérificateur de syntaxe C
167
168 93 Patrice Nadeau
```bash
169
sudo zypper install splint
170
```
171 86 Patrice Nadeau
172
### Doxygen
173 1 Patrice Nadeau
174 132 Patrice Nadeau
Outil de documentation a partir du code source
175
176
> La version 1.8.14 contient un [bogue](https://github.com/doxygen/doxygen/issues/6769)
177 1 Patrice Nadeau
178
Installation
179 86 Patrice Nadeau
180 93 Patrice Nadeau
```bash
181 134 Patrice Nadeau
sudo zypper install doxygen texlive-latex texlive-xtab texlive-multirow texlive-sectsty texlive-tocloft texlive-tabu texlive-hanging
182 93 Patrice Nadeau
```
183 1 Patrice Nadeau
184 135 Patrice Nadeau
La dernière version « binary » est disponible au <https://www.doxygen.nl/download.html>
185
186 1 Patrice Nadeau
### Git
187
188
Système de contrôle de version
189 92 Patrice Nadeau
190
Installation
191
192 1 Patrice Nadeau
```bash
193 86 Patrice Nadeau
sudo zypper install git
194
```
195 1 Patrice Nadeau
196
### Atmel AVR
197 86 Patrice Nadeau
198 124 Patrice Nadeau
Pour la programmation des micro-contrôleur Atmel AVR 8 bits (Microchip).
199 1 Patrice Nadeau
200
#### GNU toolchain
201 89 Patrice Nadeau
202 112 Patrice Nadeau
1. Télécharger du site <https://www.microchip.com/en-us/tools-resources/develop/microchip-studio/gcc-compilers>
203 123 Patrice Nadeau
1. Copier les fichiers décompressés dans `/opt`
204
1. Créer un lien symbolique
205
206
    ````bash
207
    sudo ln --symbolic /opt/avr-toolchain/bin/∗ /usr/bin
208
    ```
209 106 Patrice Nadeau
210 1 Patrice Nadeau
#### Avrdude
211 103 Patrice Nadeau
> Version 6.3
212 1 Patrice Nadeau
213
Logiciel de transfert pour AVR.
214
215 118 Patrice Nadeau
1. Installer les modules suivants :
216 90 Patrice Nadeau
217 118 Patrice Nadeau
    ```bash
218
    sudo zypper install avrdude libusb-compat-devel
219
    ```
220
1. Ajouter l'utilisater au groupe **dialout** (permissions USB/série)
221 90 Patrice Nadeau
222 118 Patrice Nadeau
    > *USER* étant le nom de l'utilisateur
223
    ```bash
224
    sudo usermod --groups dialout USER
225
    ```
226
1. L’usager doit se reloguer.
227 55 Patrice Nadeau
228 120 Patrice Nadeau
### BeagleBone
229 119 Patrice Nadeau
TODO
230 56 Patrice Nadeau
231 86 Patrice Nadeau
## Simulation
232 55 Patrice Nadeau
233 1 Patrice Nadeau
Simulation de circuit électronique.
234 91 Patrice Nadeau
235
### GNUCap
236
237 86 Patrice Nadeau
```bash
238 130 Patrice Nadeau
sudo zypper install gnucap
239 86 Patrice Nadeau
````
240 1 Patrice Nadeau
241 86 Patrice Nadeau
## CAD
242 72 Patrice Nadeau
243 1 Patrice Nadeau
### KiCAD
244 129 Patrice Nadeau
245
Logiciel de conception de circuit électroniques.
246
247 113 Patrice Nadeau
> Version 5.1
248 91 Patrice Nadeau
249
#### Installation
250
251 86 Patrice Nadeau
```bash
252 1 Patrice Nadeau
sudo zypper install kicad
253 13 Patrice Nadeau
```
254 86 Patrice Nadeau
255 87 Patrice Nadeau
#### Personnalisation
256
257 104 Patrice Nadeau
Les fichiers gabarit d'un "nouveau" projet sont :
258 87 Patrice Nadeau
259
* Global (system wide) : **/usr/share/kicad/template/kicad.pro**.
260
* Utilisateur courant : **~/noname.pro**
261
262 1 Patrice Nadeau
Comme les libraires fournis proviennent de source divers et que je ne contrôle pas, je ne travaille qu’avec mes propres libraires, j’enlève donc les librairies de KiCad et j'ajoute les miennes.
263 86 Patrice Nadeau
264 1 Patrice Nadeau
* Fichier **~/noname.pro** (2 lignes à modifier) :
265 125 Patrice Nadeau
* *LibDir* : **~/Documents/projects/cad/libraries/kicad/**
266 1 Patrice Nadeau
267
## Autres
268
269
### Logic
270
271
Analyseur logique
272 128 Patrice Nadeau
> Version 2.4.3
273 31 Patrice Nadeau
274 126 Patrice Nadeau
1. Téléchargement à partir de <http://www.saleae.com/downloads>
275 127 Patrice Nadeau
1. Exécuter le fichier
276 126 Patrice Nadeau
1. Installer la règle `udev` comme affiché a l’écran
277
1. Brancher l'analyseur.