This will be a sort of guide on the steps I had to take to install Ubuntu MATE 15.04 in UEFI dual boot with Windows 10. As I mentioned in my last post, I did not have an easy time of installing Ubuntu, due to issues with getting my computer to actually boot the live USB stick I made.
I know that I installed Windows 10 in UEFI mode, as I forced it to do so, but I never realised that to get an actual working dual boot I needed to install all my operating systems the same way. This explained to me why I had so much issues getting my old computer to boot into GRUB as I had Windows 8.1 installed in UEFI and then I installed Arch Linux in BIOS mode. I always thought it was somehow me who just couldn’t figure out Arch correctly (I guess in way that was the actual reason).
To start with I tried installing my Ubuntu MATE 15.04 ISO-file onto a 16GB Kingston Data Traveler 2.0 with LinuxLive USB Creator, but I couldn’t get my ASUS Z97-A/USB 3.1 motherboard to boot the USB. I then tried creating the USB again, this time with UNetbootin, but again I couldn’t boot the Ubuntu MATE 15.04 LiveCD. This made me think that something must be wrong with one of the UEFI settings in my BIOS and I proceeded to try all kinds of combinations of disabling ‘Secure Boot’, ‘Fast Boot’ and ‘CSM/Legacy Boot Mode’. Naturally none of this helped me either. I did however change the boot order to always boot from UEFI devices first in the following order: USB, SDD, Network, which is how I’d normally want it to be.
Mount Ubuntu MATE 15.04 LiveCD by double clicking the ISO
Copy all files from LiveCD to USB
Open ‘Disk Management’ and check if the partition on the USB is marked as active
That is it. No more making the drive bootable through external programs in Windows or from the terminal in Linux. Just copy and go! What a world we live in!
Now it was pretty simple to get Ubuntu installed. Simply reboot the computer and chose to boot from the USB, follow the prompts (remember to chose to either the ‘Install Next to Windows’ or the ‘Something Else’ option to not delete Windows), reboot after installation and be greeted by GRUB.
There you have it. A working Windows 10 and Ubuntu MATE 15.04 in dual boot, both on Secure Boot in UEFI mode.
Next up, customization of the MATE desktop environment and adding different PPA’s to get the applications I want.
I’ve always had a soft spot for ‘alternative’ operating systems and even though I’m quite satisfied with the performance of Windows 10 on my new computer, I wanted to install a Linux distribution in dual boot again.
I’ve been fiddling around a lot with other variants of Linux like Arch Linux, Debian, Fedora and Slackware. While each of them have their pros and cons (I really, really do like Arch Linux!) I’m simply more at home with Ubuntu variants as I’ve been running Ubuntu on and off since the Hoary Hedgehog days.
The first problem I ran into though, was that I really, really dislike the Unity desktop environment. Just like with the Metro UI in Windows 8/8.1 and Gnome 3, it has the feel of being optimized for touch use. I just want a simple desktop environment. During my fiddling around with Arch Linux I really came to like Cinnamon as it was really efficient and not too shabby to look at.
However much I liked Cinnamon, I did end up defaulting back to MATE as this is was the good old Gnome 2 was like. MATE being a fork of that, means I felt right at home. With the announcement that Ubuntu MATE was picked up by Canonical from 15.04 and onwards I decided that this would be the way to go for me.
The job of installing Ubuntu MATE alongside Windows 10 on my computer in UEFI mode with Secure Boot enabled gave me trouble though. More on this subject in my next post.
As I’ve currently hit a wall playing around with my Raspberry Pi, I’ve decided to write a post about something completely different.
Since we moved to a new apartment, I haven’t slept very well. To be honest I’ve never really slept well unless I had the chance to get 8-10 hours every night. In my attempts to rectify it, I decided to try using technology to see if I could get a better idea if there were any patterns in how I slept. After looking around the internet, I fell upon Sleep Cycle, which seemed interesting. After reading how it works, I decided to buy the app for my iPhone as I figured the cost of €1 was okay, even if I never did find out anything by using it.
How it works isn’t exactly rocket science. You simply enter when you want to get up and through analyzing your movements through the phones accelerometer it tries to wake you up within a 30 minute interval from your set time. It tries to do it when you’re already moving around, so you shouldn’t be in deep sleep.
To actually get some useful data out of the app that you can use to analyze on, you can set Sleep Notes, that you tick off when going to bed. This can be things like ‘Drank Tea’, ‘Read a Book’ and such. Here are how I set mine, which could probably be tweaked a lot to get even more meaningful data:
After setting the time you want to get up and then adding the applicable Sleep Notes for the night, you simply put your phone face down in the bed near your pillow and go to sleep. The app then functions as a regular alarm clock, apart from the fact that it’ll try to wake you up within a 30 minute interval (I think you might be able to change the interval to whatever you like, I haven’t tried myself). When you wake up, you get prompted on how you woke up by 3 different smiley faces and then get a statistics page for the night. Here is mine from this morning:
As you can see I went to bed a 00.16 and got up again at 06:26, getting 6 hours and 10 minutes in my wonderful bed. According to the graph and the sleep quality at 56%, I didn’t sleep too well and had quite a few spikes of being ‘nearly awake’. As I felt pretty crap when waking up I chose the bad smiley! The statistics show I’ve been doing this for 85 nights so far and that has chalked up to 3.4 weeks in my bed, averaging at 6 hours and 37 minutes per night. You get prompted by this every single morning and not shown on the picture here, is that it also shows what night you slept best, worst, longest and shortest.
If you flip over your phone, you start to get some graphs and other statistics that go for the entire period you’ve been monitoring your sleep:
Here is a graph over how much time I’ve spent in bed in general. As you can see it’s been dropping to less and less time, but this is more to do with the fact that I started doing to monitoring during my Christmas Holidays, than a general lack of sleep since.
Now a graph over when I’ve went to bed and apart from a few spikes before midnight, I might have issues going to bed early which could somehow be one of the sources of why I’m not sleeping very well.
This graph shows my calculated sleep quality, which is a number it gives in percentages. I have no idea how they actually calculate this number, but it shows pretty well that after the Christmas Holidays ended, the quality of sleep has gotten worse.
Next graph shows how long I’ve spent in bed on different weekdays. It comes as no surprise that it’s Friday and Saturday night that I spend most time in bed, seeing as it’s the weekend and all. More interesting it is to see that the night I sleep the least is Sunday night. Apparently I have some problems adjusting to being able to stay up late Friday and Saturday and adapting to Sunday being an overall bad day to stay up late.
Here we have the rather arbitrary sleep quality percentage spread out on the different days of the week. As most of the other graphs show Sunday night is just plain bad and the fact that I sleep more in the weekends I also tend to sleep better on Saturdays.
Remember the sleep notes I was mentioning earlier in the post? Well here they are and here they show the effect they have on my sleep quality. For some reason it seem that I sleep really damn well when I go to bed drunk. I think it might just be a coincidence that I slept well the one night I actually went to bed drunk (and remembered to set the alarm). Else it shows that drinking one or two beers and sitting 8 hours in front of a computer has the worst effect on my sleep (actually it’s the only two who have a negative effect). Too bad that my job is sitting in front of a computer for 8 hours a day and that I usually top it up with sitting some more in front of a computer at home too. Having a cup of tea looks like it’s actually working out for me.
The last graph it gives me, is a rather recent addition to the app. How the weather conditions affect my sleep. Honestly, I’m not really sure if this graph has any merit but according to it it could seem that I sleep best when it’s partly cloudy (so I don’t get affected by moon rays?), foggy (again shielding me from the evil moon rays!) or snowy. As I sleep in a very dark room next to my wife, where the weather outside has very little effect on anything, I’m not sure what-so-ever on this graph. What this tells me is more coincidentally if you ask me.
So, has using Sleep Cycle actually helped me improve how I sleep? Has it given me a better idea of just exactly what I can do to sleep better?
Honestly, I’m not quite sure if the app has helped me very much in any aspects. First of all, I’m not certain that it actually works as intended. It’s supposed to monitor vibrations through the accelerometer of my phone and if you do the test the app has if it actually monitors you it seems to work technically. However, I sleep in my bed next to my wife. According to the website it needs a few days to actually get accustomed to the different conditions, like being more than one person in the bed and how the other persons movements affect the monitoring.
When I look at the graphs I can see spikes every single night. If they came from just me moving around, I can’t understand why they last for quite a while. It could be because I react to my wife getting up to take care of my crying son or simply because my son is making ongoing noises while sleeping, but I’m still not sure. I think you have to take the movements and the arbitrary calculated sleep quality percentage with a grain of salt and focus a lot more on the sleep notes. Currently I have the sleep notes showed earlier in the post, but I think I could start adding a lot more. Like ‘Painkillers’, ‘No meat today’, ‘No Lunch’, ‘Exercised’ and so on and then being a lot more consistent in actually selecting sleep notes when going to bed. This way you’d get some kind of inclination towards stuff that you could do to make your sleep a lot more enjoyable.
So far I’ve come up with the following conclusion to what I can do to sleep better:
Go to bed earlier
Always drink a cup of tea an hour or so before going to bed
Stop using my computer and/or tablet right before bed
Take a shower before going to bed
Try reading a physical book before going to bed
As to the app and its usefulness, I’m not sure that it will work for everybody. For now I’ll keep on monitoring my sleep and maybe look into adding more sleep notes, to get an even better picture of how different stimuli affect my sleep. But using the app itself and not doing anything about the results you get, will mean that it just wont do anything. Anyhow, I think the idea of sleep monitoring is really interesting and that even though the results might vary there can be some merit to actually thinking about what you do before going to sleep. Not necessarily trying to take a technological view on it, but simply create a routine and stick to it.
After this sidetrack from working on my Raspberry Pi Home Server, I’ll get back to it during the week (if work, family life etc. permits me).