MARTINBRANDA

Navigation
louis MARTINBRANDA
Author

louis MARTINBRANDA

Rechercher


  • Accueil
  • À propos de
  • Blog
  • Contact

  • CSS 2
  • Divers 1
  • HTML 9
  • JQuery 1
  • Linux 39
  • MacOSX 15
  • Network 1
  • PHP 3
  • Raspberry PI 2
  • SQL 3
  • Vmware 4
  • Windows 3

Étiquettes


.htaccess Annuaire LDAP Apache Backup cisco command css debian debian6 derniers erreur ESXi extension fichiers History html htop iftop LDAP Linux MAC modifiés Mysql ntp OSX pages d’erreurs password PHP pi Proftpd raspberry RewriteEngine router sarg server ssh switch tar terminal Trouver url Welcome Windows WWW / No-WWW zimbra

Copyright © MARTINBRANDA. 2023 • All rights reserved.

Hydra WordPress Theme by EckoThemes.

Published with WordPress.

Related Articles

Filter by Category

  • Linux(39)
  • MacOSX(15)
  • HTML(9)
  • Vmware(4)
  • PHP(3)
  • SQL(3)
  • Windows(3)
  • CSS(2)
  • Raspberry PI(2)
  • Divers(1)
  • JQuery(1)
  • Network(1)

Filter by Author

  • louis MARTINBRANDA louis MARTINBRANDA (70)
Back to Latest Articles
Linux

Serveur NTP

Installation des paquets apt-get install ntp ntpdate ntp-server (optionnel) Paramétrer la timezone sur la zone France tzselect Configuration du fichier /etc/ntp.conf #...

Posted on 14th novembre 2010 by louis MARTINBRANDA

SQL

Changer MDP Mysql

Linux mysqld_safe --skip-grant-tables --skip-networking & mysql mysql mysql> update user set password=password('aaaaaaaa') where user="root" and host="localhost"; mysql> exit...

Posted on 14th novembre 2010 by louis MARTINBRANDA

Linux

Raccourcis terminal

En général, les raccourcis clavier permettent aux utilisateurs de gagner beaucoup de temps. Voici donc une petite synthèse des raccourcis les plus importants pour le terminal en...

Posted on 14th novembre 2010 by louis MARTINBRANDA

Network

Réinitialiser cisco

Dans la plupart des cas, il faut effectuer un CTRL-BREAK pendant la séquence de boot. Voir cette page pour les séquences BREAK sur différents outils.

Posted on 14th novembre 2010 by louis MARTINBRANDA

Linux

Supprimer les doublons

Nom du fichier avec doublons : doublons.txt Nom du fichier de sortie : sans_doublons.txt cat doublons.txt | sort | uniq > sans_doublons.txt  

Posted on 14th novembre 2010 by louis MARTINBRANDA

Linux

Linux – Tar

Pour créer un fichier tar, tapez : tar -cvf filename.tar files/directories La saisie suivante créera un fichier tar en utilisant un nom d’accès absolu : tar -cvf foo.tar...

Posted on 14th novembre 2010 by louis MARTINBRANDA

Linux

LAMP Debian, Linux Apache Mysql PHP

Installation Avant de faire l’installation nous allons mettre notre systeme à jour: # apt-get update && apt-get upgrade MySQL Maintenant nous allons installer MySQL...

Posted on 14th novembre 2010 by louis MARTINBRANDA

CSS

Compresser css avec php

Créé un fichier php (style.php) en rentrer ce qui suit : body { color: red; } Ceci fait, appeler le fichier CSS  :  

Posted on 12th novembre 2010 by louis MARTINBRANDA

les pages d’erreurs
HTML

les pages d’erreurs

Messages d'erreur personnalisés

Posted on 12th novembre 2010 by louis MARTINBRANDA

WWW / No-WWW
HTML

WWW / No-WWW

Permettre la redirection vers www ou non depuis un fichier htaccess

Posted on 12th novembre 2010 by louis MARTINBRANDA

View Latest Posts
Linux

Serveur NTP


louis MARTINBRANDA
louis MARTINBRANDA
Serveur NTP
Posted on 14th novembre 2010 by louis MARTINBRANDA

Installation des paquets

apt-get install ntp ntpdate ntp-server (optionnel)

Paramétrer la timezone sur la zone France

tzselect

Configuration du fichier /etc/ntp.conf

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool:
#server 0.debian.pool.ntp.org iburst dynamic
#server 1.debian.pool.ntp.org iburst dynamic
#server 2.debian.pool.ntp.org iburst dynamic
#server 3.debian.pool.ntp.org iburst dynamic
server 0.fr.pool.ntp.org
server 1.fr.pool.ntp.org
server 2.fr.pool.ntp.org
server 3.fr.pool.ntp.org

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap
restrict 192.0.0.0 mask 255.0.0.0 nomodify notrap
restrict 172.0.0.0 mask 255.0.0.0 nomodify notrap

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient

Redémarrer le serveur

/etc/init.d/ntp restart

Vérifier la synchronisation

ntpq -p
date

 

louis MARTINBRANDA
louis MARTINBRANDA
  • Linux
  • ntp
  • server
  • Share Article:
Show Comments (0)

Comments

Cancel Reply

Connecter avec:
Facebook Google Twitter WordPress

Related Articles

Installer WGET sur Mac OS X
MacOSX

Installer WGET sur Mac OS X

WGET vous permet de récupérer des dossiers et fichiers sur internet. Il est surtout utilisé sur le systèmes Linux/Unix. Pour installer WGET sur Mac OS X vous aurez besoin...

Posted on 4th novembre 2013 by louis MARTINBRANDA

Subscribe to MARTINBRANDA

Subscribe to our email newsletter to receive useful articles and special offers.

We won't share your email address.