[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”)
[Howto] Low Level Discovery (LLD) of disks with Zabbix and FreeBSD
you have to create a user parameter, which starts a “disk-search”-script on the host. This script searches for the disks and outputs a list (in json notification). #discovery-disks.sh #!/bin/sh disks=`ls -l /dev/*da* | awk ‘{print $NF}’ | awk -F … Continued
[Howto] monitor ZFS and S.M.A.R.T. with Zabbix and FreeBSD
You have to create user parameters (see the zabbix documentation for explanations/examples). #zabbix_agentd.conf UserParameter = zpool.health[*], zpool list -H -p -o health $1 UserParameter = zpool.size[*], zpool list -H -p -o size $1 UserParameter = zpool.capacity[*], zpool list -H -p … Continued
[Howto] move mouse / press key automatically in X
you have to install the package xautomation apt-get install xautomation now you can customize or script your automation #move the mouse cursor relative x+1 and y+1 xte ‘mousermove 1 1’ #press and release the left shift button xte ‘key … Continued
[Howto] color calibration with argyllcms + X11 + Spyder 5 Pro
ArgyllCMS is the preferred Color-Managment-System for Linux. Short summary: 1) xset dpms 0 0 0 #disable energy-saving 2) dispcal -yl -qm -t6500 -G2.2 -F file #create calibration-file 3) dispwin file.cal #active calibration-file 4) dispread -yl -F -r #test calibration … Continued
[Howto] resolve pam-systemd login error
Debian error message (/var/log/auth.log) pam_systemd(login:session): pam-systemd initializing Jun 28 02:53:26 debian login[3173]: pam_systemd(login:session): Asking logind to create session: uid=1000 pid=3173 service=login type=tty class=user desktop= seat= vtnr=0 tty=/dev/tty1 display= remote=no remote_user= remote_host= Jun 28 02:53:26 debian systemd: PAM no modules loaded … Continued
[Howto] enable Auto-Updates in WordPress
default setting: only minor updates (4.7.1 → 4.7.2) are applied automatically major updates (4.7 → 4.8) must bei applied manually #edit your wp-config.php and insert the following: #to enable major-release updates define(‘WP_AUTO_UPDATE_CORE’, true)
[Howto] enable renewable HEIMDAL Kerberos 5 tickets
Heimdal Kerberos Version 7.3.0 at first you have to check if your principal has renewable-tickets allowed: #serverside login into kerberos-database kadmin -l #list attributes (the attribute-section of the output should not contain something like ‘disallow-renewable’) kadmin> list -l <principal> … Continued
[Howto] redirect URL with Apache httpd without mod_rewrite
Apache httpd supports PCRE (=perl compatible regular extensions). Be careful of the syntax, because the regex must be enclosed by “/” and you have to use “=~” to enable pcre. This example redirects “<any>.olddomain.<any>” to “http://www.newdomain.com” <If “%{HTTP_HOST} =~ … Continued
[Howto] Epson ET-3600 and Debian 9.0 Linux
today there aren’t any specific ET-3600 linux drivers. However, you can use the ET-4550 driver for the ET-3600 printer and it work’s fine. download the linux ET-4550 driver Epson ESC/P-R Driver v1.6.3 from http://download.ebz.epson.net/dsc/search/01/search/ install the prerequisites: (lsb-Package) apt-get … Continued