User:ILebedev: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ilebedev (talk | contribs)
No edit summary
Ilebedev (talk | contribs)
No edit summary
Line 6: Line 6:
#!/bin/bash
#!/bin/bash
export LC=ALL_C
export LC=ALL_C
#installeerin ntp teenuse  
#installeerin ntp teenuse, vastated promptides yes
apt-get install ntp
apt-get -y install ntp
#Lisan "server ntp.eenet.ee" ntp confi faili lõppu
#Lisan "server ntp.eenet.ee" ntp confi faili lõppu
echo "server ntp.eenet.ee" >> /etc/ntp.conf
echo "server ntp.eenet.ee" >> /etc/ntp.conf
#teeb teenusele restardi
#teeb teenusele restardi
service ntp restart</code>
service ntp restart</code>

Revision as of 11:37, 19 February 2014

Quest 1 (5p)

Loo skript, mis paigaldab ntp teenuse ja seab serveriks ntp.eenet.ee <source lang=bash>

  1. !/bin/bash

export LC=ALL_C

  1. installeerin ntp teenuse, vastated promptides yes

apt-get -y install ntp

  1. Lisan "server ntp.eenet.ee" ntp confi faili lõppu

echo "server ntp.eenet.ee" >> /etc/ntp.conf

  1. teeb teenusele restardi

service ntp restart