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 5: Line 5:
<source lang=bash>
<source lang=bash>
#!/bin/bash
#!/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
export LC=ALL_C
#installeerin ntp teenuse, vastated promptides yes
sudo apt-get -y install ntp
sudo apt-get -y install ntp
#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
service ntp restart </code>
service ntp restart

Revision as of 11:59, 19 February 2014

Quest 1 (5p)

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

  1. !/bin/bash
  2. installeerin ntp teenuse, vastated promptides yes
  3. Lisan "server ntp.eenet.ee" ntp confi faili lõppu
  4. teeb teenusele restardi

export LC=ALL_C sudo apt-get -y install ntp echo "server ntp.eenet.ee" >> /etc/ntp.conf service ntp restart