Use virt-viewer from OSX to connect to remote KVM on Centos 7

Here a simple howto to prepare the connection:

  • Install MacPorts
  • Insrall XQuartz
  • Install virt-viewer
    # sudo port install virt-viewer
  • Create SSH id on OSX (used for passwordless login)
    # ssh-keygen
  • Then copy this key to your remote server (~/.ssh/id_XXX.pub)
    # ssh-copy-id root@server.machine

Now you can connect with the following URL:

# virt-viewer -c qemu+ssh://root@server.machine/system?socket=/var/run/libvirt/libvirt-sock

LDAP authentication with ProFTPd on FreeBSD 11.2

You can use LDAP authentication with ProFTPd. Simply install proftpd-mod_ldap with

# pkg install proftpd-mod_ldap

afterwards edit your proftpd.conf file an enable ldap authen:

LoadModule mod_ldap.c
<IfModule mod_ldap.c>
    AuthOrder mod_ldap.c
    LDAPLog /var/log/proftpd/ldap.log
    LDAPAuthBinds on
    LDAPServer myhost
    LDAPUseTLS on
    LDAPBindDN "CN=mybinduser,DC=domain,DC=local" "mybindpw"
    LDAPUsers  "DC=domain,DC=local" "(&(sAMAccountName=%u)(objectclass=user))"
    LDAPAttr uid sAMAccountName
    LDAPAttr gidNumber primaryGroupID
    LDAPDefaultUID 65534
    LDAPDefaultGID 65534
    RequireValidShell off
    LDAPSearchScope subtree
    LDAPGenerateHomedir on
    LDAPGenerateHomedirPrefix /home
    CreateHome on
</IfModule>

Prepare LibreOffice MSI to deploy with GPO

The problem is that LibreOffice supports multiple languages when installing. So in order to deploy the MSI through GPO you need to set only one language:

  1. Download MSI package from www.libreoffice.org
  2. Download and install InstEd
  3. Open InstEd and then open the libreoffice msi
  4. Select Tables -> Summary Info
  5. Change the language field to 1033 (1033 is for english, adjust for other languages)
  6. Save the file and install it through GPO