Tag Archives: Ubuntu Mate

Processing set up

This post is here as a reminder of what I did to setup my coding environment. If it is of any use or interest to anyone else then that’s great 🙂

First up I set up a VirtualBox VM on my desktop (from Entroware!). It is running an Ubuntu Mate 16.04 guest, but I guess that is inconsequential, as it could be running any version. It has the VirtualBox Additions installed, NAT and Bridge Adaptor networking are enabled, and a shared folder on the host has been setup.

On the guest, the shared folder is mounted using the command:

sudo mount -t vboxsf -o uid=1000 sharedVMfolder path/to/mountpoint

Anaconda Python has been installed on the guest and a new environment called spatialP3 has been created using:

conda create --name spatialP3

This is activated using:

source activate spatialP3

In that environment, a number of spatial libraries have been installed using:

conda install --name spatialP3 packagename

There were a number of version conflicts with some of the default packages, so I searched the Anaconda Cloud to find the most recent packages and installed them from the Anaconda Cloud repository using:

conda install -c conda-forge shapely=1.5.16

and similar.

To launch a Jupyter Notebook server with no local display (i.e. on the guest) use:

jupyter notebook --ip=0.0.0.0 --no-browser

Port forwarding has been set up in Virtualbox using the TCP protocol and with the host port being 8899 and the guest port being 8888 (the default for Jupyter Notebooks).

This means that you can run the notebooks from the host (as long as the VM and Jupyter server are both running) by typing the following into your browser:

localhost:8899

or from any machine on the network by typing in the local IP address of the host machine and the port 8899. If you start them in the correct location i.e. the shared folder that was mounted in the VM, then the notebooks will be accessible irrespective of whether the VM is running, and can be part of a backup strategy for the host machine.

Tagged , ,

Ubuntu Mate Lenovo microphone fix

On a Lenovo G50 I have access to there was no sound being recorded by the internal microphone. This was a problem with Skype and Hangouts. The following fixed the issue:

  • sudo apt-get install pavucontrol
  • Type pavucontrol in the terminal
  • A new window will open. Click on the Input Devices tab at the top of the window
  • With Port set to Internal Microphone:
  • Move the Front Left slider bar to more than 85% and the Front Right slider bar to between 60% and 70%
  • Start your Skype conversation and keep tweeking the sliders in pavucontrol

Based on a post here: http://ubuntuforums.org/showthread.php?t=2270010

Tagged

Dual boot Windows 10 and Ubuntu Mate

At the weekend I had to install Linux onto a new laptop. There are a couple of things that are probably worth knowing and sharing:

  • The laptop was a Lenovo 80g0 (see http://www.pcworldbusiness.co.uk/catalogue/item/P206816P). It’s not brilliant – plasticy feel (especially the keyboard) and an overly sensitive trackpad that gets in the way when typing, but it was in the price bracket for the people who wanted it and it does the job of getting them on the web.
  • It was supplied with Win 8.1 and I thought I would take the opportunity to update it to Win 10 as that is what Microsoft are after us doing. The download alone took about 4 hours on a not-that-great internet connection, and then the install took another hour or so. I looked at Windows 10 for about 20 minutes. It’s not something I think I’ll ever use but it seems to be easier to pick up than Windows 8.1. Other than that it’s Windows – others will know more and post more than me on that topic.
  • I downloaded the Ubuntu Mate iso in about 50 minutes. I booted into the live distro via USB to make sure everything was working. A couple of things here – to get to the BIOS/EFI interface to change the boot order I had to boot to Windows and disable Fast Startup (http://www.ehow.com/how_6803950_lenovo-bios.html). Then I restarted whilst pressing down the ‘Shift’ key – I think I went to Advanced and then boot to BIOS or something similar. Anyway, it gives some options – poke about and find the restart one. When it booted into Ubuntu the first thing that was evident was that the wireless didn’t work. I used ‘rfkill list‘ to see that there was a hardware block on the wireless card. So I then used ‘sudo modprobe -r ideapad_laptop‘  which fixed that problem. Time will tell if removing that module was a good idea or not – but it fixed the problem with the wireless.
  • The next thing to do was try to dual boot Win 10 and Ubuntu. I repartitioned the disk and then followed the instructions here (http://www.tweaking4all.com/os-tips-and-tricks/uefi-dual-boot-windows81-ubuntu/) which did the job perfectly.

Overall the biggest faff was doing the upgrade to Windows 10. The wireless issue was a bit of a surprise but was easily overcome and the instructions for the dual boot were comprehensive and easy to follow if you know what you’re doing.

Tagged ,

Bluetooth connections

This post is relevant to Ubuntu Mate 14.04 LTS. Your experience may vary with other operating systems.

I want play music through Ubuntu Mate onto a Behringer PPA500BT. It kept finding the PA system but gave the following error:

Connection Failed: Stream Setup Failed

To fix it I ran the following commands:
sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover

I restarted the laptop and then used Bluetooth Manager to reconnect and the error went away. There was no sound, but by changing the output destination in pulseaudio (Sound Settings) all works fine!

Tagged