Projet

Général

Profil

SOP 002-Environnement informatique » Historique » Version 156

Patrice Nadeau, 2025-03-27 21:21

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 142 Patrice Nadeau
* La programmation (C)
5
* La conception de circuits électroniques
6 1 Patrice Nadeau
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 143 Patrice Nadeau
### Analyseur logique
39
40
* Remplacé par le modèle [Saleae Logic 8](https://cad.saleae.com/products/saleae-logic-8)
41
42 85 Patrice Nadeau
## Logiciels
43 1 Patrice Nadeau
44 85 Patrice Nadeau
### Système d'exploitation
45 1 Patrice Nadeau
46 98 Patrice Nadeau
openSUSE Leap 15 avec interface graphique
47 1 Patrice Nadeau
48 85 Patrice Nadeau
### Navigateur Web
49 1 Patrice Nadeau
50
Pour l’accès à Redmine
51
52 85 Patrice Nadeau
#### Firefox 
53 1 Patrice Nadeau
54
Dictionnaire français
55
56 85 Patrice Nadeau
### Suite bureautique
57 1 Patrice Nadeau
58
LibreOffice
59
60 85 Patrice Nadeau
### Autres
61 1 Patrice Nadeau
62
Document viewer (Evince)
63
64 144 Patrice Nadeau
### Vim
65
Éditeur de texte
66 97 Patrice Nadeau
67 1 Patrice Nadeau
Plusieurs compléments sont installés et une personnalisation est appliquée.
68
69 93 Patrice Nadeau
```bash
70 109 Patrice Nadeau
sudo zypper install gvim vim-data vim-plugin-a vim-plugin-NERDtree vim-plugin-fugitive
71 93 Patrice Nadeau
```
72 1 Patrice Nadeau
73 117 Patrice Nadeau
Plugin de <http://www.vim.org/>
74 1 Patrice Nadeau
75 93 Patrice Nadeau
* tagbar
76 1 Patrice Nadeau
77
#### Personnalisation
78 98 Patrice Nadeau
79 115 Patrice Nadeau
1. Utilisation de la police de caractère **Hack**
80 98 Patrice Nadeau
81 115 Patrice Nadeau
    ```bash
82
    wget https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.zip
83
    unzip Hack*.zip
84
    sudo cp ttf/* /usr/share/fonts
85
    rm -rf ttf
86
   ```
87 1 Patrice Nadeau
88 115 Patrice Nadeau
1. Copier les gabarits
89
   > TODO : gabarits Vim
90
   ```bash
91
   mkdir ~/Documents/projects
92
   ...
93
   ```
94 1 Patrice Nadeau
95 115 Patrice Nadeau
1. Créer des liens symboliques pour :
96 1 Patrice Nadeau
97 115 Patrice Nadeau
    ```bash
98
    ln -s ~/Documents/projects/vim/vimrc ~/.vimrc
99
    ln -s~/Documents/projects/vim/vim ~/.vim
100 1 Patrice Nadeau
    ln -s~/Documents/projects/linux/ctags ~/.ctags
101
    ```
102
103
1. Créer un raccourci pour l’application
104
105
    ```bash
106 115 Patrice Nadeau
    gvim –cmd:cd /home/repertoire_projets
107
    ```
108 144 Patrice Nadeau
109
### Ctags
110
111
```bash
112
sudo zypper install ctags
113
```
114 1 Patrice Nadeau
115
### Minicom
116
117
Logiciel de terminal sous GNU/Linux
118
119
Installation
120
121 93 Patrice Nadeau
```bash
122
sudo zypper install minicom
123
```
124 85 Patrice Nadeau
125 1 Patrice Nadeau
Personnalisation
126
Ajouter l’utilisateur dans le groupe *dialout*.
127
128 93 Patrice Nadeau
```bash
129
sudo usermod --groups dialout username
130
```
131 85 Patrice Nadeau
132 41 Patrice Nadeau
L’usager doit se reloguer.
133 1 Patrice Nadeau
134
### XƎTEX
135 85 Patrice Nadeau
136
Installation
137
138 93 Patrice Nadeau
```bash
139 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
140 93 Patrice Nadeau
```
141 1 Patrice Nadeau
142 147 Patrice Nadeau
### gcc
143
GNU Compiler Collection
144 17 Patrice Nadeau
145 93 Patrice Nadeau
```bash
146 1 Patrice Nadeau
sudo zypper install gcc make
147 93 Patrice Nadeau
```
148 1 Patrice Nadeau
149 147 Patrice Nadeau
### splint
150 86 Patrice Nadeau
151 1 Patrice Nadeau
Vérificateur de syntaxe C
152
153 93 Patrice Nadeau
```bash
154
sudo zypper install splint
155
```
156 86 Patrice Nadeau
157
### Doxygen
158 1 Patrice Nadeau
159 136 Patrice Nadeau
Outil de documentation à partir du code source
160 1 Patrice Nadeau
161 151 Patrice Nadeau
> XƎTEX doit déjà être installé
162
163 136 Patrice Nadeau
* Installation à partir d'openSUSE
164
    > La version 1.8.14 contient un [bogue](https://github.com/doxygen/doxygen/issues/6769)
165 1 Patrice Nadeau
    ```bash
166 151 Patrice Nadeau
    sudo zypper install doxygen texlive-xtab texlive-multirow texlive-sectsty texlive-tocloft texlive-tabu 
167 136 Patrice Nadeau
    ```
168 1 Patrice Nadeau
169 136 Patrice Nadeau
* Installation a partir du « binary » 
170 156 Patrice Nadeau
    > Version 1.13.2
171 1 Patrice Nadeau
172 156 Patrice Nadeau
1. Télécharger la dernière version à partir de <https://www.doxygen.nl/download.html>
173
1. xxx
174 136 Patrice Nadeau
    ```bash
175 156 Patrice Nadeau
    wget https://www.doxygen.nl/files/doxygen-1.13.2.linux.bin.tar.gz
176 136 Patrice Nadeau
    tar -xf doxygen-1.9.6.linux.bin.tar.gz
177
    cd doxygen-1.9.6
178 1 Patrice Nadeau
    sudo make
179 136 Patrice Nadeau
    sudo make install
180 151 Patrice Nadeau
    sudo zypper install texlive-xtab texlive-multirow texlive-sectsty texlive-tocloft texlive-hanging
181 136 Patrice Nadeau
    ```
182 1 Patrice Nadeau
183
### Git
184 92 Patrice Nadeau
185
Système de contrôle de version
186 1 Patrice Nadeau
187 148 Patrice Nadeau
* Installation
188 86 Patrice Nadeau
189 148 Patrice Nadeau
    ```bash
190
    sudo zypper install git
191
    ```
192 86 Patrice Nadeau
193 124 Patrice Nadeau
### Atmel AVR
194 1 Patrice Nadeau
195
Pour la programmation des micro-contrôleur Atmel AVR 8 bits (Microchip).
196 89 Patrice Nadeau
197 112 Patrice Nadeau
#### GNU toolchain
198 152 Patrice Nadeau
Version 3.7.0
199 123 Patrice Nadeau
200
1. Télécharger du site <https://www.microchip.com/en-us/tools-resources/develop/microchip-studio/gcc-compilers>
201 152 Patrice Nadeau
1. Décompresser et créer un lien symbolique
202
    ```bash
203
    sudo tar -C /opt -xvf ~/Downloads/avr8-gnu-toolchain-3.7.0.1796-linux.any.x86_64.tar.gz
204
    sudo ln --symbolic /opt/avr8-gnu-toolchain-linux_x86_64/bin/* /usr/bin
205 1 Patrice Nadeau
    ```
206 103 Patrice Nadeau
207 1 Patrice Nadeau
#### Avrdude
208 154 Patrice Nadeau
> Version 7.1
209 1 Patrice Nadeau
210 118 Patrice Nadeau
Logiciel de transfert pour AVR.
211 90 Patrice Nadeau
212 154 Patrice Nadeau
1. Instaler les modules suivants :
213 118 Patrice Nadeau
214
    ```bash
215
    sudo zypper install avrdude libusb-compat-devel
216 90 Patrice Nadeau
    ```
217 154 Patrice Nadeau
1. Ajouter l’utilisateur au groupe **dialout** (permissions USB/série)
218 118 Patrice Nadeau
219
    > *USER* étant le nom de l'utilisateur
220
    ```bash
221
    sudo usermod --groups dialout USER
222 55 Patrice Nadeau
    ```
223 120 Patrice Nadeau
1. L’usager doit se reloguer.
224 119 Patrice Nadeau
225 91 Patrice Nadeau
### GNUCap
226 139 Patrice Nadeau
Simulation de circuit électronique.
227 130 Patrice Nadeau
228 86 Patrice Nadeau
```bash
229 1 Patrice Nadeau
sudo zypper install gnucap
230 86 Patrice Nadeau
````
231 72 Patrice Nadeau
232 129 Patrice Nadeau
### KiCAD
233
234 113 Patrice Nadeau
Logiciel de conception de circuit électroniques.
235 91 Patrice Nadeau
236 153 Patrice Nadeau
Utiliser la version *Flatpack*
237 87 Patrice Nadeau
238 153 Patrice Nadeau
#### Personalisation
239 87 Patrice Nadeau
240 150 Patrice Nadeau
Les fichiers gabarit d'un « nouveau » projet sont :
241 87 Patrice Nadeau
242
* Global (system wide) : **/usr/share/kicad/template/kicad.pro**.
243 1 Patrice Nadeau
* Utilisateur courant : **~/noname.pro**
244 86 Patrice Nadeau
245 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.
246 125 Patrice Nadeau
247 1 Patrice Nadeau
* Fichier **~/noname.pro** (2 lignes à modifier) :
248
* *LibDir* : **~/Documents/projects/cad/libraries/kicad/**
249
250
### Logic
251 128 Patrice Nadeau
252 31 Patrice Nadeau
Analyseur logique
253 155 Patrice Nadeau
> Version 2.4.22
254 127 Patrice Nadeau
255 126 Patrice Nadeau
1. Téléchargement à partir de <http://www.saleae.com/downloads>
256 155 Patrice Nadeau
1. Rendre le fichier exécutable et l’exécuter
257
1. Instaler la règle `udev` comme affiché a l’écran
258 1 Patrice Nadeau
1. Brancher l'analyseur.