I finally found a way to do this.
First, I installed dconf-editor:
sudo apt install dconf-editor
I then started this up and navigated to the following place:
/org/gnome/evolution/mail
I then scrolled down to the global-view-setting.
I set the Use default value to OFF, and then set the Custom value to True,
Once I turned off the preview for the Inbox, it was gone for all other message folders too:
View > Preview > Uncheck Show Message preview.
You can also use Ctrl+M to toggle this on and off.
I'm just a simple techie who sometimes forgets things. I use this as a notepad to remember things by. I hope it helps you too. I post as myself, not as any organisation.
Sunday, 23 October 2016
Setting up NHS Mail 2 in Evolution v3.22.1
I've had a number of issues setting up NHS Mail 2 in Evolution and after having installed Ubuntu Gnome 16.10 this weekend I decided I'd have another go.
First of all, I had to add the Evolution EWS service which wasn't installed by default:
sudo apt install evolution-ews
Once that was installed, I was able to go through the account setup:
Edit > Preferences > Mail Accounts > Add
The auto discovery failed, but by manually setting the type to Evolution EWS I was able to get it working.
The magic URL that worked for me was:
https://mail.nhs.net/EWS/Exchange.asmx
Once that was set, I was able to get the OAB URL too by clicking on the Fetch URL button.
The critical step was to set NTLM as the authentication type rather than Kerberos. The option to discover auth type kept saying that Kerberos was valid, but when I tried it I kept getting an SPEGNO error message saying authentication had failed.
You have to be careful not to store your NHS Mail 2 password in the security otherwise it will eventually lock your account.Still working out how to remove it tf you have done this as I can't find the password in seahorse (Passwords and Keys). If you do accidently store the password in your keyring, you can find and delete it by running seahorse from the terminal or Passwords and Keys from the GUI and search for Evolution Data Source.
I'm not entirely sure that NTLM on EWS is a good authentication method to use with NHS Mail 2 so I will be following this up with Accenture when I'm back at work - Not sure what kind of reception I will get to that though.
Anyone have any thoughts of the merits of NTLM vs Kerberos authentication in an Internet facing application such as EWS?
First of all, I had to add the Evolution EWS service which wasn't installed by default:
sudo apt install evolution-ews
Once that was installed, I was able to go through the account setup:
Edit > Preferences > Mail Accounts > Add
The auto discovery failed, but by manually setting the type to Evolution EWS I was able to get it working.
The magic URL that worked for me was:
https://mail.nhs.net/EWS/Exchange.asmx
Once that was set, I was able to get the OAB URL too by clicking on the Fetch URL button.
You have to be careful not to store your NHS Mail 2 password in the security otherwise it will eventually lock your account.
I'm not entirely sure that NTLM on EWS is a good authentication method to use with NHS Mail 2 so I will be following this up with Accenture when I'm back at work - Not sure what kind of reception I will get to that though.
Anyone have any thoughts of the merits of NTLM vs Kerberos authentication in an Internet facing application such as EWS?
Monday, 17 October 2016
Taking backup of encrypted Azure VMs with ADE (Azure Disk Encryption) using Azure Backup in OMS | Building Clouds
Taking backup of encrypted Azure VMs with ADE (Azure Disk Encryption) using Azure Backup in OMS | Building Clouds:
How to enable Azure Disk Encryption (ADE) so you can still use the Azure Backup Service. If you only use BEK (Bitlocker in the VM) then that is incompatible with the backups.
'via Blog this'
How to enable Azure Disk Encryption (ADE) so you can still use the Azure Backup Service. If you only use BEK (Bitlocker in the VM) then that is incompatible with the backups.
'via Blog this'
Sunday, 9 October 2016
Screen tearing with Intel HD 5500 on HP ZBook 15 G2 and Ubuntu 16.10 Beta 2
I've been suffering some screen tearing with the discrete Intel HD5500 on my HP ZBook 15 G2 laptop and Ubuntu 16.10 Beta 2.
Found various posts stating to create the file /usr/share/X11/xorg.conf.d/20-intel.conf containing the following information:
Section "Device"
Identifier "Intel Graphics"
Driver "Intel"
Option "TearFree" "true"
EndSection
Found various posts stating to create the file /usr/share/X11/xorg.conf.d/20-intel.conf containing the following information:
Section "Device"
Identifier "Intel Graphics"
Driver "Intel"
Option "TearFree" "true"
EndSection
Note: When I created this files with tabs, it hung the X startup so probably best not to include any extra spaces or tab characters.
This video now plays fine. :)
Thanks to this post and this post.
I've now looked at this again in Ubuntu 17.04 beta 2, and added the following two lines to sort out issues with the Chrome address bar flickering:
Option "AccelMethod" "sna"
Option "DRI" "3"
I did not have to change any switches used to startup Chrome 57.
This thread helped a lot.
I've now looked at this again in Ubuntu 17.04 beta 2, and added the following two lines to sort out issues with the Chrome address bar flickering:
Option "AccelMethod" "sna"
Option "DRI" "3"
I did not have to change any switches used to startup Chrome 57.
This thread helped a lot.
Labels:
16.10,
17.04,
Beta 2,
Chrome,
flicker,
hd5500,
intel,
Linux,
screen,
tearing,
Ubuntu,
video tearing
Wednesday, 5 October 2016
Opt-In to Microsoft Update (Windows)
Opt-In to Microsoft Update (Windows): "
Set ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
ServiceManager.ClientApplicationID = "My App"
'add the Microsoft Update Service, GUID
Set NewUpdateService = ServiceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")"
'via Blog this'
Set ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
ServiceManager.ClientApplicationID = "My App"
'add the Microsoft Update Service, GUID
Set NewUpdateService = ServiceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")"
'via Blog this'
Sunday, 4 September 2016
YUM/DNF Remove Old Kernels on Fedora/CentOS/RHEL | If Not True Then False
YUM/DNF Remove Old Kernels on Fedora/CentOS/RHEL | If Not True Then False:
Install yum-utils to allow:
package-cleanup --oldkernels --count = 2
'via Blog this'
Install yum-utils to allow:
package-cleanup --oldkernels --count = 2
'via Blog this'
Sunday, 28 August 2016
Crappy Netflix Playback? Here’s How to Test Your Streaming Speed | WIRED
Google Chrome will play NetFlix on Linux but Chromium will not.
Linux is therefore limited to 720 and not 1080 as it doesn't run crappy IE or Edge.
Crappy Netflix Playback? Here’s How to Test Your Streaming Speed | WIRED:
'via Blog this'
Linux is therefore limited to 720 and not 1080 as it doesn't run crappy IE or Edge.
Crappy Netflix Playback? Here’s How to Test Your Streaming Speed | WIRED:
'via Blog this'
Screen tearing problem on Cub Linux
I've been testing Cub Linux RC1 (based upon Ubuntu 14.04) and had some problems with video playback. After some research I found that editing ~/.config/compton.conf and changing the following lines removed the issue:
Replace backend = "xrender"; with backend = "glx";
Replace vsync = "none"; with vsync = "opengl";
Note: This works fine on the Integrated Intel HD5500 graphics but still produces tearing if I switch to the Radeon Discrete graphics. Not sure if I can find a setting that works with both... Thoughts?
Replace backend = "xrender"; with backend = "glx";
Replace vsync = "none"; with vsync = "opengl";
Note: This works fine on the Integrated Intel HD5500 graphics but still produces tearing if I switch to the Radeon Discrete graphics. Not sure if I can find a setting that works with both... Thoughts?
How to force Linux appliaction to run using discrete graphics card
On a laptop with integrated (Intel HD5500) and discrete (AMD Radeon R7 M265) the applications startup using the integrated graphics by default. setting the variable DRI_PRIME=1 causes the applications to use the discrete graphics instead.
e.g.
"glmark2" runs on the integrated graphics vs "DRI_PRIME=1 glmark2" runs on the discrete graphics.
"chromium-browser" runs on the integrated graphics vs "DRI_PRIME=1 chromium-browser" runs on the discrete graphics.
You can also force the use of radeon graphics by the use of a grub flag.
ati - Very Low Temperature Reading for graphics driver using lm-sensors - Ask Ubuntu:
'via Blog this'
e.g.
"glmark2" runs on the integrated graphics vs "DRI_PRIME=1 glmark2" runs on the discrete graphics.
"chromium-browser" runs on the integrated graphics vs "DRI_PRIME=1 chromium-browser" runs on the discrete graphics.
You can also force the use of radeon graphics by the use of a grub flag.
ati - Very Low Temperature Reading for graphics driver using lm-sensors - Ask Ubuntu:
'via Blog this'
How to force Linux appliaction to run using discrete graphics card
On a laptop with integrated (Intel HD5500) and discrete (AMD Radeon R7 M265) the applications startup using the integrated graphics by default. setting the variable DRI_PRIME=1 causes the applications to use the discrete graphics instead.
e.g.
"glmark2" runs on the integrated graphics vs "DRI_PRIME=1 glmark2" runs on the discrete graphics.
"chromium-browser" runs on the integrated graphics vs "DRI_PRIME=1 chromium-browser" runs on the discrete graphics.
You can also force the use of radeon graphics by the use of a grub flag.
ati - Very Low Temperature Reading for graphics driver using lm-sensors - Ask Ubuntu:
'via Blog this'
e.g.
"glmark2" runs on the integrated graphics vs "DRI_PRIME=1 glmark2" runs on the discrete graphics.
"chromium-browser" runs on the integrated graphics vs "DRI_PRIME=1 chromium-browser" runs on the discrete graphics.
You can also force the use of radeon graphics by the use of a grub flag.
ati - Very Low Temperature Reading for graphics driver using lm-sensors - Ask Ubuntu:
'via Blog this'
How to force Linux appliaction to run using discrete graphics card
On a laptop with integrated (Intel HD5500) and discrete (AMD Radeon R7 M265) the applications startup using the integrated graphics by default. setting the variable DRI_PRIME=1 causes the applications to use the discrete graphics instead.
e.g.
"glmark2" runs on the integrated graphics vs "DRI_PRIME=1 glmark2" runs on the discrete graphics.
"chromium-browser" runs on the integrated graphics vs "DRI_PRIME=1 chromium-browser" runs on the discrete graphics.
You can also force the use of radeon graphics by the use of a grub flag.
ati - Very Low Temperature Reading for graphics driver using lm-sensors - Ask Ubuntu:
'via Blog this'
e.g.
"glmark2" runs on the integrated graphics vs "DRI_PRIME=1 glmark2" runs on the discrete graphics.
"chromium-browser" runs on the integrated graphics vs "DRI_PRIME=1 chromium-browser" runs on the discrete graphics.
You can also force the use of radeon graphics by the use of a grub flag.
ati - Very Low Temperature Reading for graphics driver using lm-sensors - Ask Ubuntu:
'via Blog this'
Friday, 26 August 2016
Squid HTTPS Reverse Proxy With Wild Card Certificate to Support Multiple Websites
ConfigExamples/Reverse/SslWithWildcardCertifiate - Squid Web Proxy Wiki: "HTTPS Reverse Proxy With Wild Card Certificate to Support Multiple Websites"
'via Blog this'
'via Blog this'
Monday, 22 August 2016
How to shrink a dynamically-expanding guest virtualbox image | dantwining.co.uk
How to shrink a dynamically-expanding guest virtualbox image | dantwining.co.uk:
'via Blog this'
This worked for me on Debian Testing which has a habit of increasing in size purely due to the number of updates required.
I first tried compacting the disk without zeroing the space and the disk size went down from 12.485GB to 12.476, a massive 9MB saving. ;)
I then followed the procedure in the post modified slightly for Debian:
'via Blog this'
This worked for me on Debian Testing which has a habit of increasing in size purely due to the number of updates required.
I first tried compacting the disk without zeroing the space and the disk size went down from 12.485GB to 12.476, a massive 9MB saving. ;)
I then followed the procedure in the post modified slightly for Debian:
- Install zerofree using 'sudo apt install zerofree'
- Power off the virtual system using 'sudo poweroff'
- Boot the system holding left shift
- Select advanced options
- Select recovery mode using the latest installed kernel
- Identify your root filesystem (and any other filesystems you want to compact) using 'mount'; take a note of the filesystem type they are using as well
- 'service rsyslog stop'
- 'service network-manager stop'
- Run the following two commands for all the required filesystems:
- 'mount -n -o remount,ro -t ext4 /dev/sda1 /'
- 'zerofree -v /dev/sda1'
- Replace ext3 with the required filesystem type, / with the required mount point, and /dev/sda1 with the required device
- 'poweroff'
- Compact the files system using cmd prompt if on Windows:
- 'cmd' (run as administrator)
- 'C:'
- 'cd "\Program Files\Oracle\VirtualBox"'
- 'vboxmanage modifyhd "D:\VMs\Debian Testing\Debian Testing.vdi"' (replace the .vdi path with our own disk image)
My Debian testing disk image was then reduced to 7.333GB saving a further 5.143GB or 41% of the total space.
Sunday, 24 July 2016
Monday, 4 July 2016
Creating a tiered virtual disk in Windows Server 2016 VM using VirtualBox as hypervisor
I've been playing with Windows Server 2016 as a VM inside VirtualBox, but despite VirtualBox being able to mark virtual disks as an SSD disk, I was unable to create any tiered Storage Spaces inside the guest VM.
The VM disks (hosted as virtual disks on an actual SSD) were marked as SSD correctly:
Turns out that the SSD disks weren't the problem, it was the HDD which were coming up as UnSpecified:
Get-PhysicalDisk | select FriendlyName, UniqueId, MediaType, Size
FriendlyName UniqueId MediaType Size
------------ -------- --------- ----
VBOX HARDDISK {01c1a62b-e1d6-1910-b251-09f3ae1b2047} UnSpecified 214748364800
VBOX HARDDISK {12fcf70b-b805-183a-f1a8-103d6b91ba70} UnSpecified 34359738368
VBOX HARDDISK {31b25faa-db05-490a-7acd-a8927a2b569f} UnSpecified 214748364800
VBOX HARDDISK {45fc2705-9a13-1afc-a554-0ded23d9e78b} UnSpecified 214748364800
VBOX HARDDISK {50642166-ca99-47ce-2f87-b5b4f2c19254} SSD 21474836480
VBOX HARDDISK {57b897e4-f98a-3330-dbc2-6a5ab6749742} SSD 21474836480
VBOX HARDDISK {769a2aa9-a289-7627-24ef-6b3a2fcff2bb} SSD 21474836480
VBOX HARDDISK {a1a9e55d-68b9-7eb3-11dd-6348bb837642} UnSpecified 214748364800
VBOX HARDDISK {d98baa0d-b0df-74ea-ac87-d107998e79ed} SSD 21474836480
The commands below won't work if the disks are still in the primordial pool, so you need to use either the GUI or PowerShell to create the pool first. Once that is done you can edit change the FriendlyName and the MediaType using Powershell.
I was able to rename and reclassify the HDD's like so:
Set-PhysicalDisk -UniqueId '{01c1a62b-e1d6-1910-b251-09f3ae1b2047}' -NewFriendlyName HDD1 -MediaType HDD
Set-PhysicalDisk -UniqueId '{31b25faa-db05-490a-7acd-a8927a2b569f}' -NewFriendlyName HDD2 -MediaType HDD
Set-PhysicalDisk -UniqueId '{45fc2705-9a13-1afc-a554-0ded23d9e78b}' -NewFriendlyName HDD3 -MediaType HDD
Set-PhysicalDisk -UniqueId '{a1a9e55d-68b9-7eb3-11dd-6348bb837642}' -NewFriendlyName HDD4 -MediaType HDD
I was also able to rename the SSD devices to make them more obvious:
Set-PhysicalDisk -UniqueId '{50642166-ca99-47ce-2f87-b5b4f2c19254}' -NewFriendlyName SDD1
Set-PhysicalDisk -UniqueId '{57b897e4-f98a-3330-dbc2-6a5ab6749742}' -NewFriendlyName SDD2
Set-PhysicalDisk -UniqueId '{769a2aa9-a289-7627-24ef-6b3a2fcff2bb}' -NewFriendlyName SDD3
Set-PhysicalDisk -UniqueId '{d98baa0d-b0df-74ea-ac87-d107998e79ed}' -NewFriendlyName SDD4
The disks were now identified correctly and I could create my tiered virtual disks:
FriendlyName UniqueId MediaType Size
------------ -------- --------- ----
HDD1 {01c1a62b-e1d6-1910-b251-09f3ae1b2047} HDD 214748364800
VBOX HARDDISK {12fcf70b-b805-183a-f1a8-103d6b91ba70} UnSpecified 34359738368
HDD2 {31b25faa-db05-490a-7acd-a8927a2b569f} HDD 214748364800
HDD3 {45fc2705-9a13-1afc-a554-0ded23d9e78b} HDD 214748364800
SDD1 {50642166-ca99-47ce-2f87-b5b4f2c19254} SSD 21474836480
SDD2 {57b897e4-f98a-3330-dbc2-6a5ab6749742} SSD 21474836480
SDD3 {769a2aa9-a289-7627-24ef-6b3a2fcff2bb} SSD 21474836480
HDD4 {a1a9e55d-68b9-7eb3-11dd-6348bb837642} HDD 214748364800
SDD4 {d98baa0d-b0df-74ea-ac87-d107998e79ed} SSD 21474836480
Everything looked good in the GUI too:
The VM disks (hosted as virtual disks on an actual SSD) were marked as SSD correctly:
Turns out that the SSD disks weren't the problem, it was the HDD which were coming up as UnSpecified:
Get-PhysicalDisk | select FriendlyName, UniqueId, MediaType, Size
FriendlyName UniqueId MediaType Size
------------ -------- --------- ----
VBOX HARDDISK {01c1a62b-e1d6-1910-b251-09f3ae1b2047} UnSpecified 214748364800
VBOX HARDDISK {12fcf70b-b805-183a-f1a8-103d6b91ba70} UnSpecified 34359738368
VBOX HARDDISK {31b25faa-db05-490a-7acd-a8927a2b569f} UnSpecified 214748364800
VBOX HARDDISK {45fc2705-9a13-1afc-a554-0ded23d9e78b} UnSpecified 214748364800
VBOX HARDDISK {50642166-ca99-47ce-2f87-b5b4f2c19254} SSD 21474836480
VBOX HARDDISK {57b897e4-f98a-3330-dbc2-6a5ab6749742} SSD 21474836480
VBOX HARDDISK {769a2aa9-a289-7627-24ef-6b3a2fcff2bb} SSD 21474836480
VBOX HARDDISK {a1a9e55d-68b9-7eb3-11dd-6348bb837642} UnSpecified 214748364800
VBOX HARDDISK {d98baa0d-b0df-74ea-ac87-d107998e79ed} SSD 21474836480
The commands below won't work if the disks are still in the primordial pool, so you need to use either the GUI or PowerShell to create the pool first. Once that is done you can edit change the FriendlyName and the MediaType using Powershell.
I was able to rename and reclassify the HDD's like so:
Set-PhysicalDisk -UniqueId '{01c1a62b-e1d6-1910-b251-09f3ae1b2047}' -NewFriendlyName HDD1 -MediaType HDD
Set-PhysicalDisk -UniqueId '{31b25faa-db05-490a-7acd-a8927a2b569f}' -NewFriendlyName HDD2 -MediaType HDD
Set-PhysicalDisk -UniqueId '{45fc2705-9a13-1afc-a554-0ded23d9e78b}' -NewFriendlyName HDD3 -MediaType HDD
Set-PhysicalDisk -UniqueId '{a1a9e55d-68b9-7eb3-11dd-6348bb837642}' -NewFriendlyName HDD4 -MediaType HDD
I was also able to rename the SSD devices to make them more obvious:
Set-PhysicalDisk -UniqueId '{50642166-ca99-47ce-2f87-b5b4f2c19254}' -NewFriendlyName SDD1
Set-PhysicalDisk -UniqueId '{57b897e4-f98a-3330-dbc2-6a5ab6749742}' -NewFriendlyName SDD2
Set-PhysicalDisk -UniqueId '{769a2aa9-a289-7627-24ef-6b3a2fcff2bb}' -NewFriendlyName SDD3
Set-PhysicalDisk -UniqueId '{d98baa0d-b0df-74ea-ac87-d107998e79ed}' -NewFriendlyName SDD4
The disks were now identified correctly and I could create my tiered virtual disks:
FriendlyName UniqueId MediaType Size
------------ -------- --------- ----
HDD1 {01c1a62b-e1d6-1910-b251-09f3ae1b2047} HDD 214748364800
VBOX HARDDISK {12fcf70b-b805-183a-f1a8-103d6b91ba70} UnSpecified 34359738368
HDD2 {31b25faa-db05-490a-7acd-a8927a2b569f} HDD 214748364800
HDD3 {45fc2705-9a13-1afc-a554-0ded23d9e78b} HDD 214748364800
SDD1 {50642166-ca99-47ce-2f87-b5b4f2c19254} SSD 21474836480
SDD2 {57b897e4-f98a-3330-dbc2-6a5ab6749742} SSD 21474836480
SDD3 {769a2aa9-a289-7627-24ef-6b3a2fcff2bb} SSD 21474836480
HDD4 {a1a9e55d-68b9-7eb3-11dd-6348bb837642} HDD 214748364800
SDD4 {d98baa0d-b0df-74ea-ac87-d107998e79ed} SSD 21474836480
Everything looked good in the GUI too:
Friday, 24 June 2016
Google Chrome on Ubuntu 16.04
On reinstalling this today onto a stock install of Ubuntu 16.04, I had a couple of unmet dependencies. I sorted it out with:
sudo apt install libappindicator1 libindicator7
sudo apt install libappindicator1 libindicator7
Wednesday, 8 June 2016
renew Openvas 8 Certificates
This happens on a yearly basis and always left my scratching my head:
openvas-mkcert -q -f 'Refreshes the server certificate for a year
openvas-mkcert-client -n -i 'Refresahes the client certificate for a year
reboot
openvas-mkcert -q -f 'Refreshes the server certificate for a year
openvas-mkcert-client -n -i 'Refresahes the client certificate for a year
reboot
Subscribe to:
Posts (Atom)