====== Administration System ====== [[/informatique/system_admin/erreurs|Les erreurs de l'administrateur système]]. [[/informatique/system_admin/dns|DNS]], [[/glossaire/NIDS]], [[/glossaire/IDS]], [[/informatique/system_admin/rsyslog|rsyslog]], [[/informatique/system_admin/journalctl|journalctl]] ===== Archives archéologiques ===== [[cyrille:informatique:system_admin:install_serveur_evote_ovh|Install serveur Ovh]] (evote) [[/informatique/system_admin/install_proxmox_VM_centos-5.5-minimal_5.5_i386]] ===== sur l'Oueb ===== Guide avancé d'écriture des scripts Bash par Mendel Cooper. En français.\\ http://www.bsdbooks.net/shells/scripting/fr/ Le Wiki de Sos-Admin :\\ http://wiki.sos-admin.com/wiki/Accueil ===== Outils ===== * [[informatique/system_admin/shell|Shell]] * [[informatique/system_admin/ColorizeTail]] Tail avec coloration (script PHP). ==== Network service ==== * [[/informatique/Apache| Apache (httpd)]] * [[/informatique/Réseau/SSH|SSH]] * [[/informatique/Réseau/DNS|DNS]] * [[/informatique/Réseau/FTP|/informatique/Réseau/FTP]] * [[/informatique/Réseau/QMail|QMail]] * [[/informatique/Réseau/NTP|NTP]] * [[/informatique/Réseau/Postfix|Postfix]] ==== Server monitoring ==== Voir [[/informatique/system_admin/server_monitoring]] ==== Backup ==== [[/informatique/sauvegarde]] ===== Stockage / Storage ===== ==== Replication, snapshot, synchronisation ==== File Storage: * ZFS * DRBD * CEPH [[https://docs.ceph.com/en/latest/rbd/|block storage]] * GlusterFS * [[/informatique/GlusterFS|GlusterFS]] * https://docs.gluster.org/en/latest/Administrator-Guide/ * protocoles pour les clients: Gluster (via Fuse), NFS, Samba, CIFS, Swift (Object storage) * SSL/TLS * [[https://www.octopuce.fr/glusterfs-systeme-de-fichier-reseau-synchronise-redondant/|GlusterFS, système de fichier réseau synchronisé & redondant]] par Octopuce * [[https://www.scaleway.com/en/docs/how-to-configure-storage-with-glusterfs-on-ubuntu/|Configure a High-Availability Storage with GlusterFS on Ubuntu 18.04 LTS]] par Scaleway * NFS v4 Object storage: * CEPH [[https://docs.ceph.com/en/latest/radosgw/|Object Storage]] * [[https://min.io|MINIO]] Synchronisation: * with [[https://axkibe.github.io/lsyncd/|Lsyncd]] Live Syncing (Mirror) Daemon (using [[/informatique/rsync|Rsync]] or [[https://www.cis.upenn.edu/~bcpierce/unison/|Unison]] * [[https://linoxide.com/setup-lsyncd-sync-directories/|How to Synchronize Directories Using Lsyncd in Linux]] * [[https://bartsimons.me/sync-folders-and-files-on-linux-with-rsync-and-inotify/|Sync folders and files on Linux with rsync and inotify]] * https://bindfs.org/ Discussions: * [[https://www.reddit.com/r/sysadmin/comments/9onemk/ceph_vs_glusterfs/|Ceph VS GlusterFS?]] * [[https://computingforgeeks.com/ceph-vs-glusterfs-vs-moosefs-vs-hdfs-vs-drbd/|Ceph vs GlusterFS vs MooseFS vs HDFS vs DRBD]] ==== Disque dur ==== [[/informatique/harddrive]] ===== Tips ===== ==== Change hostname ==== La commande 'hostname', mais ça ne suffit pas. # hostname toto.internet.net # hostname toto.internet.net === Debian === Modifier le fichier /etc/hostname pour que le changement de hostname soit permanent. Ensuite: * Reboot (ma solution) * /etc/init.d/hostname.sh restart (pas essayé) === RedHat/CentOS === Les fichier dans '/etc' où l'on trouve le 'hostname': * /etc/sysconfig/network * /etc/ssh/ssh_host_dsa_key.pub * /etc/rc.d/init.d/qmail * /etc/ncftpd/domain.cf * /etc/motd * /etc/issue * /etc/hosts j'ai opéré ces 2 changements (sur une RedHat) : * /etc/sysconfig/network * hostname zeuhost.zeudomain.com Et après reboot j'ai bien # hostname zeuhost.zeudomain.com Il ne reste te plus qu'à faire les changements (éventuellement) pour les applis (Apache, Qmail, ...). ==== command line email attachment ==== Ajouter une pièce jointe à un mail en ligne de commande # -s – specifies the message subject. # -A – helps to attach a file. $ echo "Message Body Here" | mail -s "Subject Here" user@example.com -A backup.zip