Wiki » Historique » Version 169
Patrice Nadeau, 2018-06-16 12:46
| 1 | 166 | Patrice Nadeau | # Installation d'un serveur openSUSE |
|---|---|---|---|
| 2 | 1 | Patrice Nadeau | |
| 3 | 74 | Patrice Nadeau | > Issue : #10 |
| 4 | 15 | Patrice Nadeau | |
| 5 | 123 | Patrice Nadeau | > Ce document explique une installation en mode _serveur_ avec la distribution openSUSE, en anglais. |
| 6 | 57 | Patrice Nadeau | > Ce document n’est pas un cours GNU/Linux. |
| 7 | 1 | Patrice Nadeau | |
| 8 | 166 | Patrice Nadeau | [openSUSE](http://www.opensuse.org) est une distribution GNU/Linux basée sur [SUSE Linux](https://www.suse.com/). |
| 9 | |||
| 10 | 100 | Patrice Nadeau | Les « release » sont disponibles environ aux huit mois. |
| 11 | 166 | Patrice Nadeau | |
| 12 | 123 | Patrice Nadeau | Une version est supporté pendant les 18 mois suivant sa sortie. Voir aussi https://en.opensuse.org/Lifetime |
| 13 | 99 | Patrice Nadeau | |
| 14 | 153 | Patrice Nadeau | {{lastupdated_at}} {{lastupdated_by}} |
| 15 | |||
| 16 | 54 | Patrice Nadeau | --- |
| 17 | 1 | Patrice Nadeau | |
| 18 | 54 | Patrice Nadeau | {{toc}} |
| 19 | |||
| 20 | 166 | Patrice Nadeau | ## Particularités |
| 21 | 54 | Patrice Nadeau | |
| 22 | 1 | Patrice Nadeau | openSUSE a quelques différences d’avec d’autres distributions. |
| 23 | |||
| 24 | Parmi celles ci : |
||
| 25 | 54 | Patrice Nadeau | |
| 26 | 166 | Patrice Nadeau | ### Syntaxe des services |
| 27 | 54 | Patrice Nadeau | |
| 28 | 166 | Patrice Nadeau | Une 3^e^ syntaxe pour l’utilisation des services : |
| 29 | |||
| 30 | 54 | Patrice Nadeau | * /etc/init.d/servicename |
| 31 | 1 | Patrice Nadeau | * service servicename |
| 32 | * rcservicename |
||
| 33 | |||
| 34 | 166 | Patrice Nadeau | ### Panneau de contrôle |
| 35 | 54 | Patrice Nadeau | |
| 36 | 169 | Patrice Nadeau | Le « panneau de contrôle » est appeler avec la commande *yast* (Yet another Setup Tool) (yast2 pour le mode graphique). |
| 37 | 54 | Patrice Nadeau | |
| 38 | 168 | Patrice Nadeau | ### Systemd |
| 39 | 1 | Patrice Nadeau | |
| 40 | 166 | Patrice Nadeau | Depuis la version 11.4, [systemd](http://en.wikipedia.org/wiki/Systemd) est utilisé au lieu de [init](http://en.wikipedia.org/wiki/Init). |
| 41 | 54 | Patrice Nadeau | |
| 42 | 166 | Patrice Nadeau | ### Zypper |
| 43 | 54 | Patrice Nadeau | |
| 44 | 1 | Patrice Nadeau | Le système de gestion de « packages » RPM est utilisé et amélioré avec _zypper_. |
| 45 | |||
| 46 | 166 | Patrice Nadeau | ### MariaDB |
| 47 | 54 | Patrice Nadeau | |
| 48 | Le logiciel _MariaDB_ remplace _MySQL_ pour les base de données (depuis 12.3). |
||
| 49 | |||
| 50 | 166 | Patrice Nadeau | ## Prérequis |
| 51 | 54 | Patrice Nadeau | |
| 52 | 1 | Patrice Nadeau | L’installation se fait facilement sur une machine ayant les caractéristiques minimales suivantes : |
| 53 | 99 | Patrice Nadeau | |
| 54 | 54 | Patrice Nadeau | Plateforme Intel/AMD |
| 55 | 166 | Patrice Nadeau | |
| 56 | 82 | Patrice Nadeau | * Processeur : PIII |
| 57 | 1 | Patrice Nadeau | * Mémoire : 512 MB |
| 58 | 82 | Patrice Nadeau | * Disque dur : 5 GB |
| 59 | 54 | Patrice Nadeau | |
| 60 | 82 | Patrice Nadeau | Plateforme ARM |
| 61 | 166 | Patrice Nadeau | |
| 62 | 129 | Patrice Nadeau | > Problème #36 |
| 63 | 166 | Patrice Nadeau | |
| 64 | 1 | Patrice Nadeau | * BeagleBone Black |
| 65 | 104 | Patrice Nadeau | * Carte MicroSD de 4 Go |
| 66 | 1 | Patrice Nadeau | |
| 67 | Idéalement, les enregistrements DNS suivants devraient être définis (interne et/ou externe) : |
||
| 68 | 166 | Patrice Nadeau | |
| 69 | 54 | Patrice Nadeau | * A : pour le serveur GNU/Linux lui-même |
| 70 | 1 | Patrice Nadeau | * CNAME : pour chacun des services (SMTP, POP, IMAP, FTP, WEB, etc). |
| 71 | 144 | Patrice Nadeau | * MX : pour l’envoi de courriels. |
| 72 | |||
| 73 | 1 | Patrice Nadeau | Il peut être nécessaire d'utiliser un nom de serveur différent de son utilisation. |
| 74 | 144 | Patrice Nadeau | Ceci évite des boucles en utilisant les servuers virtuelles avec Apache, surtout à partir d'internet avec une seule adresses IP publique. |
| 75 | 166 | Patrice Nadeau | |
| 76 | 99 | Patrice Nadeau | Ex. : Le service _drupal.domain.tld_ (CNAME) est installé sur le serveur _drupal1.domain.tld_ (A). |
| 77 | 1 | Patrice Nadeau | |
| 78 | 166 | Patrice Nadeau | ## Installation de base |
| 79 | 99 | Patrice Nadeau | |
| 80 | 166 | Patrice Nadeau | ### Intel/AMD |
| 81 | 83 | Patrice Nadeau | |
| 82 | 54 | Patrice Nadeau | Pour un serveur, la plupart du temps l’installation seras en mode texte seulement. |
| 83 | Ceci permet d’économiser les ressources (processeur, mémoire et espace disque). |
||
| 84 | 1 | Patrice Nadeau | Si le mode graphique est nécessaire, ne choisir qu’une installation avec X Window System, sans Gnome ou KDE. |
| 85 | Ceci permettra de pouvoir utiliser des programmes graphiques à distance via le protocole _ssh_. |
||
| 86 | 99 | Patrice Nadeau | |
| 87 | 166 | Patrice Nadeau | #### Source d’installation |
| 88 | 1 | Patrice Nadeau | |
| 89 | 112 | Patrice Nadeau | La dernière version du fichier « ISO » est disponible à http://software.opensuse.org/. |
| 90 | 113 | Patrice Nadeau | C'est un fichier « hybride » permettant de créer un DVD ou une clef USB. |
| 91 | 99 | Patrice Nadeau | |
| 92 | 166 | Patrice Nadeau | ##### USB |
| 93 | 54 | Patrice Nadeau | |
| 94 | 1 | Patrice Nadeau | La création d’une clé USB se fait avec l’utilitaire ImageWriter. |
| 95 | 166 | Patrice Nadeau | |
| 96 | 99 | Patrice Nadeau | * Linux : http://en.opensuse.org/SDB:Live_USB_stick |
| 97 | 83 | Patrice Nadeau | * Mac OS X : http://en.opensuse.org/SDB:Create_a_Live_USB_stick_using_Mac_OS_x |
| 98 | 1 | Patrice Nadeau | * Windows : http://en.opensuse.org/SDB:Create_a_Live_USB_stick_using_Windows |
| 99 | 83 | Patrice Nadeau | |
| 100 | 166 | Patrice Nadeau | ##### FTP |
| 101 | 1 | Patrice Nadeau | |
| 102 | Une installation via un serveur FTP local peux aussi être faite et est beaucoup plus simple et rapide pour le déploiement de plusieurs serveurs. |
||
| 103 | Sur un serveur FTP existant, copier le contenu du fichier ISO. |
||
| 104 | |||
| 105 | 166 | Patrice Nadeau | ### BeagleBone Black |
| 106 | 1 | Patrice Nadeau | |
| 107 | 134 | Patrice Nadeau | openSUSE peux être installé sur un BBB(BeagleBone Black). |
| 108 | 99 | Patrice Nadeau | L'utilisation idéale serait un « appliance », par exemple un système de surveillance avec _Nagios_. |
| 109 | 166 | Patrice Nadeau | |
| 110 | 1 | Patrice Nadeau | > L'installation est faite sur une carte microSD, la version en eMMC reste intacte. |
| 111 | |||
| 112 | 166 | Patrice Nadeau | #### Prérequis |
| 113 | 1 | Patrice Nadeau | |
| 114 | > Information provenant de http://en.opensuse.org/HCL:BeagleBone_Black |
||
| 115 | |||
| 116 | J'explique ici une installation à partir d'un poste openSUSE |
||
| 117 | Voici les prérequis : |
||
| 118 | 166 | Patrice Nadeau | |
| 119 | 1 | Patrice Nadeau | * Carte microSD de >= 4 Go |
| 120 | 166 | Patrice Nadeau | * [Câble série TTL à USB 3.3 volts](http://elinux.org/Beagleboard:BeagleBone_Black_Serial) |
| 121 | 146 | Patrice Nadeau | * Bloc d'alimentation 5 volts, >= 500 mA (ou un branchement via un concentrateur USB alimenté) |
| 122 | 1 | Patrice Nadeau | * Sur le poste de travail, les utilitaires : |
| 123 | 166 | Patrice Nadeau | * _xzcat_ |
| 124 | * _screen_ |
||
| 125 | 83 | Patrice Nadeau | |
| 126 | 166 | Patrice Nadeau | #### Préparation |
| 127 | 87 | Patrice Nadeau | |
| 128 | 83 | Patrice Nadeau | Brancher le câble série entre le BBB et le poste de travail. |
| 129 | 166 | Patrice Nadeau | |
| 130 | 1 | Patrice Nadeau | > Attention à la polarité du câble. |
| 131 | |||
| 132 | 83 | Patrice Nadeau | Afficher la liste des ports USB de type TTY |
| 133 | 166 | Patrice Nadeau | |
| 134 | ```bash |
||
| 135 | 83 | Patrice Nadeau | ls /dev/ttyUSB* |
| 136 | 166 | Patrice Nadeau | ``` |
| 137 | 1 | Patrice Nadeau | |
| 138 | Dans une session terminal (en tant que _root_ ou ayant les droits sur le « device » USB), lancer |
||
| 139 | 166 | Patrice Nadeau | |
| 140 | 83 | Patrice Nadeau | > Supposant que le câble est sur le « device » ttyUSB0 |
| 141 | 166 | Patrice Nadeau | |
| 142 | ```bash |
||
| 143 | 1 | Patrice Nadeau | screen /dev/ttyUSB0 115200 |
| 144 | 166 | Patrice Nadeau | ``` |
| 145 | |||
| 146 | 83 | Patrice Nadeau | > Les couleurs ne s'affichent pas |
| 147 | 166 | Patrice Nadeau | |
| 148 | 83 | Patrice Nadeau | > Les touches de fonctions F1 @ F12 ne fonctionnent pas |
| 149 | 166 | Patrice Nadeau | |
| 150 | 1 | Patrice Nadeau | > Quitter avec *CTRL-A k* |
| 151 | 125 | Patrice Nadeau | |
| 152 | 166 | Patrice Nadeau | ### Démarrage et installation. |
| 153 | 83 | Patrice Nadeau | |
| 154 | 1 | Patrice Nadeau | [[131|openSUSE 13.1]] |
| 155 | 121 | Patrice Nadeau | [[132|openSUSE 13.2]] |
| 156 | 114 | Patrice Nadeau | [[Leap 42.2|openSUSE Leap 42.2]] |
| 157 | |||
| 158 | 166 | Patrice Nadeau | ## Post-installation |
| 159 | 158 | Patrice Nadeau | |
| 160 | 166 | Patrice Nadeau | ### Spécifications par plate-forme |
| 161 | 139 | Patrice Nadeau | |
| 162 | 166 | Patrice Nadeau | #### Intel/AMD |
| 163 | 139 | Patrice Nadeau | |
| 164 | Rien pour le moment |
||
| 165 | 120 | Patrice Nadeau | |
| 166 | 166 | Patrice Nadeau | #### BeagleBone Black |
| 167 | 143 | Patrice Nadeau | |
| 168 | 101 | Patrice Nadeau | Installation des modules manquants |
| 169 | 166 | Patrice Nadeau | |
| 170 | 124 | Patrice Nadeau | > Leap 42.2 |
| 171 | 166 | Patrice Nadeau | |
| 172 | ```bash |
||
| 173 | 140 | Patrice Nadeau | # For 'zypper ps' |
| 174 | 159 | Patrice Nadeau | zypper install lsof |
| 175 | 166 | Patrice Nadeau | ``` |
| 176 | 101 | Patrice Nadeau | |
| 177 | 1 | Patrice Nadeau | Activation et démarrage du du pare-feu |
| 178 | 166 | Patrice Nadeau | |
| 179 | ```bash |
||
| 180 | 163 | Patrice Nadeau | yast firewall |
| 181 | 166 | Patrice Nadeau | ``` |
| 182 | 162 | Patrice Nadeau | |
| 183 | 167 | Patrice Nadeau | #### Configuration réseau |
| 184 | 124 | Patrice Nadeau | |
| 185 | 1 | Patrice Nadeau | Avec _yast network_, indiquer |
| 186 | 167 | Patrice Nadeau | |
| 187 | 1 | Patrice Nadeau | * _Hostname/DNS_ |
| 188 | 167 | Patrice Nadeau | * le nom d'hote |
| 189 | * le domaine |
||
| 190 | * le(s) serveur(s) DNS |
||
| 191 | * les nom de domaines à rechercher |
||
| 192 | 1 | Patrice Nadeau | * _Routing_ |
| 193 | 167 | Patrice Nadeau | * l'adresse du routeur |
| 194 | 142 | Patrice Nadeau | * _Overview_, choisi la carte réseau et indiquer : |
| 195 | 167 | Patrice Nadeau | * l'adresse IP |
| 196 | * le masque de sous-réseau |
||
| 197 | * le nom d’hôte (FQDN) |
||
| 198 | 142 | Patrice Nadeau | |
| 199 | 167 | Patrice Nadeau | #### Date et heure |
| 200 | 1 | Patrice Nadeau | |
| 201 | Par défaut, l’horloge interne utilise l'heure UTC. |
||
| 202 | |||
| 203 | 167 | Patrice Nadeau | ```bash |
| 204 | 124 | Patrice Nadeau | # Choisir le fuseau horaire (liste avec "yast timezone list") |
| 205 | 1 | Patrice Nadeau | yast timezone set timezone="America/Montreal" |
| 206 | 136 | Patrice Nadeau | # Ajuster la date et l'heure |
| 207 | 124 | Patrice Nadeau | date --set="2015-01-02 15:01:00" |
| 208 | 167 | Patrice Nadeau | ``` |
| 209 | 124 | Patrice Nadeau | |
| 210 | 167 | Patrice Nadeau | ### Noms réseau |
| 211 | 1 | Patrice Nadeau | |
| 212 | 139 | Patrice Nadeau | Vérifier le nom de la machine |
| 213 | 167 | Patrice Nadeau | |
| 214 | ```bash |
||
| 215 | 1 | Patrice Nadeau | hostname --fqdn |
| 216 | 167 | Patrice Nadeau | ``` |
| 217 | 56 | Patrice Nadeau | |
| 218 | 99 | Patrice Nadeau | Le nom du serveur ainsi que son domaine devrait s’afficher. |
| 219 | 56 | Patrice Nadeau | Si ce n’est pas le cas, réviser la configuration réseau (_yast dns_). |
| 220 | 128 | Patrice Nadeau | |
| 221 | 167 | Patrice Nadeau | ### CTRL-ALT-DEL |
| 222 | 139 | Patrice Nadeau | |
| 223 | 56 | Patrice Nadeau | Enlever le « symlink » _/usr/lib/systemd/system/ctrl-alt-del.target_ pointant sur _/usr/lib/systemd/system/reboot.target_. |
| 224 | 1 | Patrice Nadeau | |
| 225 | 167 | Patrice Nadeau | ### Mise à jours |
| 226 | 99 | Patrice Nadeau | |
| 227 | 1 | Patrice Nadeau | En étant _root_ : |
| 228 | 167 | Patrice Nadeau | |
| 229 | ```bash |
||
| 230 | 73 | Patrice Nadeau | # Voir les mise à jour disponibles |
| 231 | zypper lu |
||
| 232 | # Installer les mise à jours disponibles |
||
| 233 | 147 | Patrice Nadeau | zypper up |
| 234 | 167 | Patrice Nadeau | ``` |
| 235 | 1 | Patrice Nadeau | |
| 236 | 167 | Patrice Nadeau | #### Nouvelle version du noyau Linux pour un BBB |
| 237 | 1 | Patrice Nadeau | |
| 238 | > Problème #24 |
||
| 239 | |||
| 240 | Vérifier quel dans le répertoire _/boot_ les liens symboliques suivant pointent sur des fichiers existant : |
||
| 241 | 167 | Patrice Nadeau | |
| 242 | 1 | Patrice Nadeau | * _initrd_ |
| 243 | * _zImage_ |
||
| 244 | |||
| 245 | 167 | Patrice Nadeau | ## Linux Terminal Server Project |
| 246 | 1 | Patrice Nadeau | |
| 247 | [[LTSP]] |
||
| 248 | |||
| 249 | 167 | Patrice Nadeau | ## LAMP |
| 250 | 80 | Patrice Nadeau | |
| 251 | 1 | Patrice Nadeau | Un serveur LAMP signifie : |
| 252 | |||
| 253 | * Linux : le système d'exploitation |
||
| 254 | 80 | Patrice Nadeau | * [[Apache]] : le serveur web |
| 255 | 164 | Patrice Nadeau | * [[MySQL/MariaDB]] : la bases de données |
| 256 | 1 | Patrice Nadeau | * [[PHP]] : PHP |
| 257 | |||
| 258 | 167 | Patrice Nadeau | ```bash |
| 259 | 164 | Patrice Nadeau | zypper install patterns-opensuse-lamp_server |
| 260 | 167 | Patrice Nadeau | ``` |
| 261 | 164 | Patrice Nadeau | |
| 262 | 167 | Patrice Nadeau | ### [[Apache]] |
| 263 | 79 | Patrice Nadeau | |
| 264 | 167 | Patrice Nadeau | ### [[MySQL/MariaDB]] |
| 265 | 1 | Patrice Nadeau | |
| 266 | 167 | Patrice Nadeau | ### [[PHP]] |
| 267 | 54 | Patrice Nadeau | |
| 268 | 167 | Patrice Nadeau | ## [[FTP]] |
| 269 | 60 | Patrice Nadeau | |
| 270 | 167 | Patrice Nadeau | ## [[NTP]] |
| 271 | 60 | Patrice Nadeau | |
| 272 | 167 | Patrice Nadeau | ## [[DNS]] |
| 273 | 60 | Patrice Nadeau | |
| 274 | 167 | Patrice Nadeau | ## [[DHCP]] |
| 275 | 60 | Patrice Nadeau | |
| 276 | 167 | Patrice Nadeau | ## [[LDAP]] |
| 277 | 45 | Patrice Nadeau | |
| 278 | 167 | Patrice Nadeau | ## [[NFS]] |
| 279 | 81 | Patrice Nadeau | |
| 280 | 167 | Patrice Nadeau | ## [[Samba]] |
| 281 | 46 | Patrice Nadeau | |
| 282 | 167 | Patrice Nadeau | ## Courrier électronique |
| 283 | 47 | Patrice Nadeau | |
| 284 | 167 | Patrice Nadeau | ### [[Postfix]] |
| 285 | 1 | Patrice Nadeau | |
| 286 | 108 | Patrice Nadeau | > Serveur SMTP (MTA(Message Transfert Agent)) |
| 287 | |||
| 288 | 167 | Patrice Nadeau | ### [[SpamAssassin]] |
| 289 | 108 | Patrice Nadeau | |
| 290 | 167 | Patrice Nadeau | ### [[Dovecot]] |
| 291 | 108 | Patrice Nadeau | |
| 292 | 167 | Patrice Nadeau | ### [[SquirrelMail]] |
| 293 | 108 | Patrice Nadeau | |
| 294 | > Client Web |
||
| 295 | 68 | Patrice Nadeau | |
| 296 | 167 | Patrice Nadeau | ## [[ClamAV]] |
| 297 | 67 | Patrice Nadeau | |
| 298 | 167 | Patrice Nadeau | ## [[Webmin]] |
| 299 | 72 | Patrice Nadeau | |
| 300 | 167 | Patrice Nadeau | ## [[UPS]] |