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 #...
Filter by Category
Filter by Author
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 by louis MARTINBRANDA
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 by louis MARTINBRANDA
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 by louis MARTINBRANDA
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 by louis MARTINBRANDA
Nom du fichier avec doublons : doublons.txt Nom du fichier de sortie : sans_doublons.txt cat doublons.txt | sort | uniq > sans_doublons.txt
Posted by louis MARTINBRANDA
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 by louis MARTINBRANDA
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 by louis MARTINBRANDA
Créé un fichier php (style.php) en rentrer ce qui suit : body { color: red; } Ceci fait, appeler le fichier CSS :
Posted by louis MARTINBRANDA
Messages d'erreur personnalisés
Posted by louis MARTINBRANDA
Permettre la redirection vers www ou non depuis un fichier htaccess
Posted 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
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...
Subscribe to our email newsletter to receive useful articles and special offers.
We won't share your email address.