Indlæg

Make Firefox read certificates from Windows certificate store

I recently activated SSL inspection on user computers. I installed a certificate from the supplier to use, but Firefox did not read this certificate. Google Chrome and Internet Explorer worked fine. To make this work, force Firefox to read certificates from Windows store by changing settings in Firefox. Firefox will read .js files when starting.

Create a new file containing:


- and save with extension .js. E.g. Firefox_settings_securityEnterpriseRootEnabled.js.

Use Windows to distribute this file to all computers to both 32 and 64 bit folder:
C:\Program Files\Mozilla Firefox\defaults\pref
&
C:\Program Files (x86)\Mozilla Firefox\defaults\pref

Get list of all SIP addresses on Exchange in searchable view

Get-Mailbox -ResultSize Unlimited | Select-Object -ExpandProperty EmailAddresses | Where-Object {$_ -imatch "SIP" } | Select-Object ProxyAddressString | Out-GridView

or to view in comma separated file:

Get-Mailbox -ResultSize Unlimited | Select-Object -ExpandProperty EmailAddresses | Where-Object {$_ -imatch "SIP" } | Select-Object ProxyAddressString | Export-Csv [PATH TO FILE HERE]

Nokia 6, Oister og MMS

Billede
Oister kunne ikke hjælpe mig med opsætningen af min Nokia 6 og MMS, så jeg fandt selv ud af det. Nu kan du se hvordan her:

Start med "Indstillinger" -> "Mere" -> "Mobilnetværk" -> "Adgangspunkter". Vælg "Oister MMS" og ret den til som nedenstående. Husk at vælge "Gem" i menuen til sidst. Genstart er ikke nødvendigt.






Mouse sensitivity too slow, or low, after upgrade to Ubuntu 17.04

I was unable to change the mouse sensitivity after upgrading to Ubuntu 17.04. It was very low/slow after upgrade.

Changing it in the default mouse app didn't do any difference. And xinput didn't work.

I ended up modifying "/sys/devices/platform/i8042/serio1/sensitivity" and changing the value to 220. It worked immediately.

To make the change work after every reboot, edit '/etc/rc.local' and add this line before the command 'exit 0':

echo -n 220 > /sys/devices/platform/i8042/serio1/sensitivity


My '/etc/rc.local' looks like this:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo -n 220 > /sys/devices/platform/i8042/serio1/sensitivity

exit 0

DNS stopped working after Ubuntu 14.04 upgrade to Ubuntu 16.04

1) I resolved it by removing file /etc/resolv.conf:
sudo rm /etc/resolv.conf

2) and creating a new file:
sudo nano /etc/resolv.conf

3) and typing my name server in the file:
nameserver [YOUR DNS SERVER IP HERE]

Check_MK (OMD) fails showing pnp4nagios graphs after Ubuntu upgrade

When upgrading Ubuntu from version 14.04 to version 16.04 php-cgi version 5 is replaced by version 7. This will cause Check_MK to fail when trying to display pnp4nagios graphs.

1) If you are running OMD, then edit file:
/omd/sites/[YOUR SITE NAME HERE]/etc/apache/php-wrapper

2) and change the path to php-cgi version 7:

...
# Replace with the path to your FastCGI-enabled PHP executable
#exec /usr/bin/php5-cgi \
exec /usr/bin/php-cgi7.0 \
    -d session.save_handler=files \
   ...


3) Then stop and start the OMD site.

Graylog indices page fails with error 'Reason: Could not get indices. We expected HTTP 200, but got a HTTP -1.'

When many indices are used in Graylog you can experience an error stating that a HTTP -1 response was received.

This error can be caused by a timeout when collecting information about indices.

I changed the timeout to 30 seconds and restarted the graylog web service. Then waited a few minutes and the error was gone:


Change timeout settings in /etc/graylog/web/web.conf:# Global timeout for communication with Graylog server nodes; default: 5stimeout.DEFAULT=30s
Restart web service:service graylog-web restart