[Howto] start X without systemd requirement
situtation: debian’s X-Server requires a systemd-session to work. problem: If you haven’t installed systemd, you aren’t able to start the xserver, because the xserver can’t connect to an systemd session. (EE) systemd-logind: failed to get session: The name org.freedesktop.login1 was not provided … Continued
[Howto] resolve LaTeX error message “Cannot determine size of graphic xxx (no BoundingBox)”
problem: LaTeX-Compiler can’t determine the graphic-size, because there is no such information in the graphics-file. Error messages like: “Cannot determine size of graphic <picture> (no BoundingBox)” solution: use a graphic fileformat, which saves picture-size information, e.g. *.eps OR use … Continued
[Howto] dhcpd and DDNS Update without hostname: expression to create a hostname
ISC dhcpd 4.3.6 ISC bind 9.10.6-p1 Problem: dhcpd requires a client-hostname to update the DNS zone dynamically (=DDNS). If the client doesn’t send a hostname (or the hostname is empty), dhcpd can’t add an DNS entry dynamically in the … Continued
[Howto] rc.d start script examples in FreeBSD
FreeBSD v11.1 service control: #to start, stop, restart, reload config or show status of a service execute: service <name> start service <name> stop service <name> restart service <name> reload service <name> status create the following scripts in the … Continued
[Howto] IPv4 TCP communication in C (minimal example)
the server-program sends the string “TestTestTest”. the client-programm receives the string and prints it on terminal. server-program: #include <unistd.h> #include <stdio.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> int main(int argc, char *argv[]) { int listenfd = 0; int connfd … Continued
[Howto] solve freebsd-update invalid signature error
check, if you have a working /usr/bin/openssl /usr/bin/openssl version file /usr/bin/openssl ldd /usr/bin/openssl check, if you have a valid signature-file for freebsd-update /var/db/freebsd-update/pub.ssl (you can safely remove it, because a new run of freebsd-update fetches it again) After … Continued
[Howto] merge solids in FreeCAD
FreeCAD v0.16 create two cutting solids select both solids click “boolean operation” → select “merge” → ok now both solids became unvisible and a new fusion is created select the newly created fusion menu → part → refine shape
[Howto] project lines from volume to sketch in FreeCAD
FreeCAD version 0.16 create a new sketch close the newly created sketch select a face in the modell click in the toolbar the button “assign sketch to face” choose the newly created sketch from the displayed drop-down-list click ok, done … Continued
[Howto] SAMBA and Windows XP
you must set the following parameters to get a working authentification: SAMBA Server (version 4.6.7) #smb.conf server min protocol = NT1 Windows XP #regedit.exe HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\lmcompatibilitylevel = 3
[Howto] read the search-path for building-tools (cpp, gcc, ld)
c-preprocessor (GNU cpp) environment-variable: $CPATH #cpp -v /usr/include compiler (GNU cc) environment-variable: $CPATH #gcc -E -Wp,-v – /usr/include linker (GNU ld) environment-variable: $LIBRARY_PATH #ld –verbose | grep -i ‘search_dir’ SEARCH_DIR(“/lib”); SEARCH_DIR(“/usr/lib”); SEARCH_DIR(“/usr/local/lib”)