Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


alix_voyage_linux_ntp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
alix_voyage_linux_ntp [2015/01/06 08:46] – [Compile NTP] adminalix_voyage_linux_ntp [2015/02/13 14:33] admin
Line 2: Line 2:
 ~~TOC~~ ~~TOC~~
  
-=====PC Engines Alix 1E - NTP Server=====+=====PC Engines Alix 1E - Hopf NTP Server=====
  
 ====Create device symlinks==== ====Create device symlinks====
Line 25: Line 25:
  
 ====Compile NTP==== ====Compile NTP====
-  * Remove old ntp software: <code>apt-get remove ntp</code> +<code> 
-  * Mark official packages to not update<code>apt-mark hold ntp ntp-doc</code> +(apt-get remove ntp) 
-  * Install tools and depedencies:<code>apt-get install pps-tools</code> + 
-  * Download newest source from ntp.org. +cd /root 
-  * Extract source code:<code>tar zxvf ntp-4.2.8.tar.gz</code> +apt-get install dpkg-dev dialog devscripts fakeroot pps-utils 
-  * Create user and group:<code>groupadd -g 87 ntp && +   
-useradd -c "Network Time Protocol" -d /var/lib/ntp -u 87 \ +apt-get source ntp && apt-get build-dep ntp 
-        -g ntp -s /bin/false ntp</code  +   
-  * Configure:<code>./configure --prefix=/usr         \ +cd ntp<directory
-            --bindir=/usr/sbin    \ +   
-            --sysconfdir=/etc     \ +debuild -us -uc 
-            --enable-linuxcaps    \ +   
-            --with-lineeditlibs=readline \ +dpkg --install ntp....deb 
-            --docdir=/usr/share/doc/ntp-4.2.8</code> +</code>  
-  * Compile:<code>make</code> +
-  * Test:<code>make check</code> +
-  * Install:<code>make install && +
-install -v -o ntp -g ntp -d /var/lib/ntp</code>+
  
 ====Configuration==== ====Configuration====
   * Allow write to drift file, edit **/etc/default/voyage-util**. <code>VOYAGE_SYNC_DIRS="var/lib/ntp"</code>   * Allow write to drift file, edit **/etc/default/voyage-util**. <code>VOYAGE_SYNC_DIRS="var/lib/ntp"</code>
-  * Set hwclock, edit **/etc/default/hwclock**. <code>HCTOSYS_DEVICE=rtc0</code>+  * Set hwclock, edit **/etc/default/hwclock**. <code>HCTOSYS_DEVICE=rtc</code>
   * Load module rtc. <code>#vi /etc/modules   * Load module rtc. <code>#vi /etc/modules
 rtc</code> rtc</code>