User:ILebedev: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Quest 1 (5p) | Quest 1 (5p) | ||
Line 12: | Line 11: | ||
echo "server ntp.eenet.ee" >> /etc/ntp.conf | echo "server ntp.eenet.ee" >> /etc/ntp.conf | ||
service ntp restart | service ntp restart | ||
</ | </source> |
Revision as of 12:02, 19 February 2014
Quest 1 (5p)
Loo skript, mis paigaldab ntp teenuse ja seab serveriks ntp.eenet.ee
#!/bin/bash
#installeerin ntp teenuse, vastated promptides yes
#Lisan "server ntp.eenet.ee" ntp confi faili lõppu
#teeb teenusele restardi
export LC=ALL_C
sudo apt-get -y install ntp
echo "server ntp.eenet.ee" >> /etc/ntp.conf
service ntp restart