Kerya techblog

Most Read Posts

  • Gentoo mail (postfix + postfixadmin + dovecot + amavisd-new + roundcube)
  • Zabbix - no such instance currently exists at this oid
  • LVM cant Boot - ALERT /dev/mapper/ubuntu--vg-root does not exist DROPPING to Shell -
  • liquidsoap-1.1.1 gentoo install
  • Laravel manual user register
  • Gentoo: php 5.6.0 + pecl-memcached 2.2.0 install script
  • Zabbix APC Smart UPS monitoring on FreeBSD with snmp
  • Squid 3.4 debian 7 install script
  • Подключение Foxgate S6224-S2 Ubuntu minicom
  • Abills
  • exim+dovecot+postfixadmin+clamav+spamassassin on FreeBSD
  • Openmeetings 2.1.1 Ubuntu 12.04.2 installation
  • libtool version mismatch pecl gentoo
  • Securing NTP
  • FreeBSD 9 ossec setup errors fix
  • Mikrotik no-ip ddns update script
  • Скопировать права mysql gentoo
  • fix for - corrupted record for package (pkgdep line without argument), ignoring
  • mysql backup scripts
  • snmpd less verbose log FreeBSD (Connection from UDP messages)
  1. Вы здесь:  
  2. Home
  • Home
  • Все статьи

glib20 configure error

Подробности
Автор: Kirill

error:

checking for DocBook XSL Stylesheets in XML catalog... not found
checking for DocBook XSL Stylesheets in XML catalog... not found
configure: error: DocBook XSL Stylesheets are required for --enable-man
===> Script "configure" failed unexpectedly.

 

In the config.log file :

configure:28806: checking for DocBook XSL Stylesheets in XML catalog
configure:28809: $XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourcef
No entry for SYSTEM http://docbook.sourceforge.net/release/xsl/current/manpages/
No entry for URI http://docbook.sourceforge.net/release/xsl/current/manpages/doc
configure:28812: $? = 4
configure:28818: result: not found
configure:28827: error: DocBook XSL Stylesheets are required for --enable-man

 Same thing for

configure: error: docbook dtd is required for --enable-man

Root of the problem in xml catalog file. Because XML/XSL entry is missing

 

My solution was to add manually XSL entry in /usr/local/share/xml/catalog.ports:

 

# cat /usr/local/share/xml/catalog.ports

<?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"     "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> <!-- Created by XML Catalog Manager 2.2 --> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <nextCatalog catalog="/usr/local/share/xml/docbook/catalog.xml" /> <nextCatalog catalog="/usr/local/share/xsl/docbook/catalog.xml" /><nextCatalog catalog="/usr/local/share/xml/sdocbook/1.1/dtd/catalog.xml" /> </catalog>

Laravel useful info and links

Подробности
Автор: Kirill
  • laravel

https://www.codementor.io/pardeepkumar905/working-with-thin-controller-and-fat-model-concept-in-laravel-nwl7ljsst

 https://matthewdaly.co.uk/blog/2018/02/18/put-your-laravel-controllers-on-a-diet/

 

Laravel manual user register

Подробности
Автор: Kirill

If you want to do this once-off, so there is no need for something fancy like creating an Artisan command etc. I would suggest to simply use php artisan tinker (great tool!) and add the following commands per user:

$user = new App\User();
$user->password = Hash::make('the-password-of-choice');
$user->email = Этот адрес электронной почты защищён от спам-ботов. У вас должен быть включен JavaScript для просмотра.';
$user->name = 'My Name';
$user->save();

https://stackoverflow.com/questions/35753951/manually-register-a-user-in-laravel

zabbix ssl monitoring

Подробности
Автор: Kirill

Tested on

FreeBSD 11

Zabbix 3.4

script /usr/local/etc/zabbix34/zabbix/externalscripts/sslinfo.sh :

#/bin/sh

expire_date=$(echo QUIT | timeout 3 openssl s_client -host "$NAME" -port "$PORT" -servername "$NAME" -showcerts /dev/null | sed -n '/BEGIN CERTIFICATE/,/END CERT/p' | openssl x509 -text 2>/dev/null | sed -n 's/ *Not After : *//p')

if [ -n "$expire_date" ]; then
expire_date_unix=$(date -j -f "%b %d %T %Y %Z" "$expire_date" '+%s')
else
expire_date_unix=0
fi

date_current=$(date "+%s")
secs_left=$(( $expire_date_unix-$date_current ))
days_left=$(date -j -f "%s" "$secs_left" '+%d' )

echo $days_left

Next go to zabbix, create new item:

name: "SSL cert example.com"

type: external check

key: sslinfo.sh[example.com]

 

 

 

  1. Ubuntu vpn persistent connection
  2. Mikrotik stuff

Страница 7 из 18

  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Search

Older Posts

  • zerotier one add more routes (39)
  • modsecurity for nginx compilation scripts for freebsd (427)
  • Greenbone Vulnerability Manager (GVM) hacks (500)
  • elasticsearch cluster red status fix due to high watermark (395)
  • ubuntu arrow keys misbehaviour fix (472)
  • icinga IIS monitoring powershell error Get-WmiObject : Invalid namespace "root\WebAdministration" (474)
  • Make user superadmin in zabbix (521)
  • dnf Error: unknown option (623)
  • unpack pfx certificate (used for apache or nginx) (452)
  • mysql audit plugin build script (747)
  • mysql dump one row (531)
  • redmine 5 docker-compose (697)
  • gitlab runner dind docker-compose (516)
  • AWS S3 IAM policy to limit to single sub folder (461)
  • logrotate hints (626)

Login Form

  • Забыли пароль?
  • Забыли логин?
  • Регистрация