Opslag

Viser opslag fra 2017

Adjust mouse sensitivity in Ubuntu 17.04

1) Create script. I created the script in my home folder. Insert your own user name instead: sudo nano /home/allan/mouseSensitivity.sh Script containing (220 is max sensitivity): echo -n 220 > /sys/devices/platform/i8042/serio1/sensitivity 2) Make file executable: sudo chmod +x /home/allan/mouseSensitivity.sh 3) Make script run at reboot. First edit crontab: sudo crontab -e and make script run at reboot: @reboot /home/allan/mouseSensitivity.sh

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: 5s timeout.DEFAULT=30s Restart web service: service graylog-web restart

Enable OpenELEC SSH login with keys, and without password, disable local SSH password

1) Connect to OpenELEC using ordinary SSH with user 'root' and password 'openelec' 2) Change directory to .ssh/: cd .ssh/ 3) Generate a pair of ssh keys: ssh-keygen -t rsa Accept all default settings by pressing [ENTER]. If you are asked to to overwrite id_rsa press 'y' and [ENTER]. 4) Copy the content of the public key ('id_rsa.pub') into 'authorized_keys': cat id_rsa.pub >> authorized_keys 5) Copy 'id_rsa' to the device that you want to log into OpenELEC from, e.g. your mobile phone. 6) Setup the connection on your device using the private key ('id_rsa'). You still need to use the username 'root'. You can rename this file and give it a more useful name. Make sure that you are able to log in without using the password! 7) To disable the local password on OpenELEC/KODI, open settings in KODI and select "Services" on the left hand side. Here you can disable SSH password.