Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:time_protocol_archlinux

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
tachtler:time_protocol_archlinux [2020/12/31 11:29] – [Zeitserver überprüfen] klaustachtler:time_protocol_archlinux [2022/03/31 05:27] (aktuell) – [Installation] klaus
Zeile 20: Zeile 20:
  
 Zur Installation eines "Zeitservers" wird nachfolgendes Paket benötigt: Zur Installation eines "Zeitservers" wird nachfolgendes Paket benötigt:
-  * **''xinetd''** - ist im ''base''-Repository von [[https://www.archlinux.de/|ArchLinux]] enthalten+  * **''xinetd''** - ist im ''extra''-Repository von [[https://www.archlinux.de/|ArchLinux]] enthalten
 installiert werden. installiert werden.
  
Zeile 28: Zeile 28:
  
 Mit nachfolgendem Befehl, wird das Pakete **''xinetd''** installiert: Mit nachfolgendem Befehl, wird das Pakete **''xinetd''** installiert:
 +<code>
 +# pacman --noconfirm -S xinetd
 +</code> 
 +++++ Installationsverlauf |
 <code> <code>
 # pacman --noconfirm -S xinetd # pacman --noconfirm -S xinetd
Zeile 61: Zeile 65:
 ==> root: 20 ==> root: 20
 </code> </code>
 +++++
  
 Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''xinetd''** installiert wurden. Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''xinetd''** installiert wurden.
 +<code>
 +# pacman -Qil xinetd
 +</code> 
 +++++ Installierte Dateien |
 +<code>
 <code> <code>
 # pacman -Qil xinetd # pacman -Qil xinetd
Zeile 124: Zeile 134:
 xinetd /usr/share/man/man8/xinetd.8.gz xinetd /usr/share/man/man8/xinetd.8.gz
 </code> </code>
 +++++
  
 Mit nachfolgendem Befehl, wird das Pakete **''rdate''** installiert: Mit nachfolgendem Befehl, wird das Pakete **''rdate''** installiert:
 +<code>
 +# pikaur --noconfirm -S rdate
 +</code> 
 +++++ Installationsverlauf |
 +<code>
 <code> <code>
 # pikaur --noconfirm -S rdate # pikaur --noconfirm -S rdate
Zeile 137: Zeile 153:
  
 :: Starting the build: :: Starting the build:
-Running as unit: run-u82.service +... 
-Press ^] three times within 1s to disconnect TTY. +... 
-==> Making package: rdate 1.5-3 (Thu 31 Dec 2020 11:12:43 AM CET) +...
-==> Checking runtime dependencies... +
-==> Checking buildtime dependencies... +
-==> Retrieving sources... +
-  -> Downloading rdate-1.5.tar.gz... +
-  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current +
-                                 Dload  Upload   Total   Spent    Left  Speed +
-100   337  100   337    0       1348      0 --:--:-- --:--:-- --:--:--  1348 +
-100 83337  100 83337    0       153k      0 --:--:-- --:--:-- --:--:--  153k +
-==> Validating source files with sha256sums... +
-    rdate-1.5.tar.gz ... Passed +
-==> Extracting sources... +
-  -> Extracting rdate-1.5.tar.gz with bsdtar +
-==> Starting prepare()... +
-checking for a BSD-compatible install... /usr/bin/install -c +
-checking whether build environment is sane... yes +
-checking for gawk... gawk +
-checking whether make sets $(MAKE)... yes +
-checking for gcc... gcc +
-checking for C compiler default output file name... a.out +
-checking whether the C compiler works... yes +
-checking whether we are cross compiling... no +
-checking for suffix of executables...  +
-checking for suffix of object files... o +
-checking whether we are using the GNU C compiler... yes +
-checking whether gcc accepts -g... yes +
-checking for gcc option to accept ANSI C... none needed +
-checking for style of include used by make... GNU +
-checking dependency style of gcc... gcc3 +
-checking for a BSD-compatible install... /usr/bin/install -c +
-checking for gethostbyaddr... yes +
-checking for socket... yes +
-checking for logwtmp... no +
-checking for logwtmp in -lutil... yes +
-checking for getaddrinfo... yes +
-checking for getnameinfo... yes +
-checking for adjtime... yes +
-checking for sigaction... yes +
-checking return type of signal handlers... void +
-checking how to run the C preprocessor... gcc -E +
-checking for egrep... grep -E +
-checking for ANSI C header files... yes +
-checking for sys/types.h... yes +
-checking for sys/stat.h... yes +
-checking for stdlib.h... yes +
-checking for string.h... yes +
-checking for memory.h... yes +
-checking for strings.h... yes +
-checking for inttypes.h... yes +
-checking for stdint.h... yes +
-checking for unistd.h... yes +
-checking time.h usability... yes +
-checking time.h presence... yes +
-checking for time.h... yes +
-checking sys/time.h usability... yes +
-checking sys/time.h presence... yes +
-checking for sys/time.h... yes +
-checking libutil.h usability... no +
-checking libutil.h presence... no +
-checking for libutil.h... no +
-checking util.h usability... no +
-checking util.h presence... no +
-checking for util.h... no +
-checking utmp.h usability... yes +
-checking utmp.h presence... yes +
-checking for utmp.h... yes +
-checking for unistd.h... (cached) yes +
-checking for uint32_t... yes +
-checking for uint16_t... yes +
-checking for uint8_t... yes +
-configure: creating ./config.status +
-config.status: creating Makefile +
-config.status: creating src/Makefile +
-config.status: creating src/config.h +
-config.status: executing depfiles commands +
-Now type 'make' and then 'make install'+
-==> Starting build()... +
-Making all in src +
-make[1]: Entering directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-make  all-am +
-make[2]: Entering directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wunused -Wall -pipe -MT rdate.o -MD -MP -MF ".deps/rdate.Tpo" -c -o rdate.o rdate.c; \ +
-then mv -f ".deps/rdate.Tpo" ".deps/rdate.Po"; else rm -f ".deps/rdate.Tpo"; exit 1; fi +
-rdate.c: In function ‘rdate’: +
-rdate.c:271:34: warning: pointer targets in passing argument 3 of ‘rdate_tcp’ differ in signedness [-Wpointer-sign] +
-  271 |     result = rdate_tcp( fd, res, time_buf, sizeof(time_buf) ); +
-      |                                  ^~~~~~~~ +
-      |                                  | +
-      |                                  unsigned char * +
-rdate.c:141:50: note: expected ‘char *’ but argument is of type ‘unsigned char *’ +
-  141 | rdate_tcp( int fd, struct addrinfo* ainfo, char* buf, int buf_size ) +
-      |                                            ~~~~~~^~~ +
-rdate.c:273:34: warning: pointer targets in passing argument 3 of ‘rdate_udp’ differ in signedness [-Wpointer-sign] +
-  273 |     result = rdate_udp( fd, res, time_buf, sizeof(time_buf) ); +
-      |                                  ^~~~~~~~ +
-      |                                  | +
-      |                                  unsigned char * +
-rdate.c:181:50: note: expected ‘char *’ but argument is of type ‘unsigned char *’ +
-  181 | rdate_udp( int fd, struct addrinfo* ainfo, char* buf, int buf_size ) +
-      |                                            ~~~~~~^~~ +
-gcc  -g -O2 -Wunused -Wall -pipe   -o rdate  rdate.o  -lutil  +
-make[2]: Leaving directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-make[1]: Leaving directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-make[1]: Entering directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5' +
-make[1]: Nothing to be done for 'all-am'+
-make[1]: Leaving directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5' +
-==> Entering fakeroot environment... +
-==> Starting package()... +
-Making install in src +
-make[1]: Entering directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-make[2]: Entering directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-test -z "/usr/bin" || mkdir -p -- . "/var/cache/private/pikaur/build/rdate/pkg/rdate/usr/bin" +
-  /usr/bin/install -c 'rdate' '/var/cache/private/pikaur/build/rdate/pkg/rdate/usr/bin/rdate' +
-make[2]: Nothing to be done for 'install-data-am'+
-make[2]: Leaving directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-make[1]: Leaving directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5/src' +
-make[1]: Entering directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5' +
-make[2]: Entering directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5' +
-make[2]: Nothing to be done for 'install-exec-am'+
-test -z "/usr/share/man/man1" || mkdir -p -- . "/var/cache/private/pikaur/build/rdate/pkg/rdate/usr/share/man/man1" +
- /usr/bin/install -c -m 644 './rdate.1' '/var/cache/private/pikaur/build/rdate/pkg/rdate/usr/share/man/man1/rdate.1' +
-make[2]: Leaving directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5' +
-make[1]: Leaving directory '/var/cache/private/pikaur/build/rdate/src/rdate-1.5' +
-==> Tidying install... +
-  -> Removing libtool files... +
-  -> Purging unwanted files... +
-  -> Removing static library files... +
-  -> Stripping unneeded symbols from binaries and libraries... +
-  -> Compressing man and info pages... +
-==> Checking for packaging issues... +
-==> Creating package "rdate"... +
-  -> Generating .PKGINFO file... +
-  -> Generating .BUILDINFO file... +
-  -> Generating .MTREE file... +
-  -> Compressing package... +
-==> Leaving fakeroot environment. +
-==> Finished making: rdate 1.5-3 (Thu 31 Dec 2020 11:12:48 AM CET)+
 Finished with result: success Finished with result: success
 Main processes terminated with: code=exited/status=0 Main processes terminated with: code=exited/status=0
Zeile 307: Zeile 187:
 ==> root: 22 ==> root: 22
 </code> </code>
 +++++
  
 Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''rdate''** installiert wurden. Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''rdate''** installiert wurden.
 +<code>
 +# pikaur -Qil rdate
 +</code> 
 +++++ Installierte Dateien |
 <code> <code>
 # pikaur -Qil rdate # pikaur -Qil rdate
Zeile 341: Zeile 226:
 rdate /usr/share/man/man1/rdate.1.gz rdate /usr/share/man/man1/rdate.1.gz
 </code> </code>
 +++++
  
 ===== Konfiguration ===== ===== Konfiguration =====
Zeile 563: Zeile 449:
 <code> <code>
 # ss -taubpn | grep xinetd # ss -taubpn | grep xinetd
-udp   UNCONN 0      0                   *:37               *:    users:(("xinetd",pid=8332,fd=6))                                                +udp   UNCONN 0      0                   *:37               *:    users:(("xinetd",pid=8332,fd=6))
 tcp   LISTEN 0      64                  *:37               *:    users:(("xinetd",pid=8332,fd=5)) tcp   LISTEN 0      64                  *:37               *:    users:(("xinetd",pid=8332,fd=5))
 </code> </code>
tachtler/time_protocol_archlinux.1609410565.txt.gz · Zuletzt geändert: 2020/12/31 11:29 von klaus