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