Install Discord on Linux Lite 3.4

Discord logo

Discord is a voice and text chat application aimed at gamers but can be used by anyone. Is is currently available on Firefox, Opera, Chrome, Android, iPhone, Windows, OSX, and Linux….Basically everywhere. There is also a tutorial for installing Discord on Fedora 25 here.

Installing Discord on Linux Lite 3.4 is easy

  1. Go to this webpage, click on ‘Download for Linux’ and then ‘deb’ to download the installer.
  2. Go to the folder it downloaded into, right click and select ‘Open Terminal Here’.
  3. In the terminal type sudo dpkg -i discord-0.0.1.deb (replacing discord-0.0.1.deb with the name of the file you downloaded).
  4. Press enter and type your administrative password.
  5. Wait for it to install and then close the terminal.
  6. Open the ‘Menu’ on the left base of screen and type ‘discord’, press enter and it will start.

It might seem to use a lot of resources on first start but after updating itself it should work just fine.

Discord was created for gamers but is also used by Internet Party NZ for many of it’s internal meetings, voice chat, and group sessions. It allows you to create personal, public and private chat rooms. In general it is much loved.

Settings can be found under /home/insert username here/.config/discord/

Failed to retrieve share list from server

Failed to retrieve share list from server

This has bugged me for a while as I fixed it and then it reoccurred probably after Windows updated. The problem was that I was unable to connect Ubuntu 16.04 to my Windows 7 box. It wasn’t the firewalls and none of the usual fixes seemed to work until I ran into this page. All I would get was and error saying ‘Failed to retrieve share list from server: Connection timed out’ which wasn’t much help.

Everything was set up as normal and I could connect to other shares,  just not the Windows 7 one.

I ran through the steps here and they didn’t work and although there is a reference to ‘Unable to mount location: Failed to retrieve share list from server’ the linked Microsoft fix doesn’t specify Windows 7.

Using smbclient -L //insert-ip-here -u% would give me a ‘protocol negotiation failed: ERRDOS:ERRnomem’ error so using that I managed to track down the referenced page with the fix. One minor change though. I didn’t have to do the last two commands.

The ‘Failed to retrieve share list from server’ fix quoted from Froebe

The issue is the LanmanServer service runs out of memory. We need to boost that up:

On your Windows machine, fire up regedit (Start -> regedit) modify the following registry keys:

“HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” from 0 to 1

“HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” from 1 to 3

The problem seems to manifest itself more frequently if you use your Windows box as a file server or a media server. If you can, restart the Windows box. If for some reason you can’t (e.g. your significant other is watching a video on the tv streaming from your Windows box), then you can do effectively the same by restarting the following services:

(Start -> cmd.exe) as administrator
net stop LanmanServer /y
net start LanmanServer
net start Browser
net start HomeGroupListener

Failed to retrieve share list from server solved!



Webslice adds Lets Encrypt across the board!

Lets Encrypt logo

I was playing around with one of my sites the other day and I realised it was running under https:// which was strange because I never bought a certificate or set it up.

After a bit of playing around it appeared that two other sites worked under https:// as well. None of which were configured by me. All were running WordPress. At this point I thought they had buggered up a setting so I raised a support ticket with my hosting provider Webslice.

The quick reply was,”We are offering free Let’s encrypted SSL for all the domains now.”

Lets Encrypt

For those of you who don’t know what Lets Encrypt is then its best to start with SSL. SSL is the encryption that protects your data on websites such as banks and Facebook. Anywhere where you login with a password should be encrypted otherwise your login and password just got sent and anyone in the middle of you and the website can read it.

This used to rely on certificates that were provided by trusted certificate authorities such as GlobalSign, Comodo and Symantec. The problem was, this was expensive. I saw a price yesterday of $150NZ for a two year certificate for one domain.

In comes Lets Encrypt. They “give people the digital certificates they need in order to enable HTTPS (SSL/TLS) for websites, for free, in the most user-friendly way we can. We do this because we want to create a more secure and privacy-respecting Web.”

And they recently issued their 100,000,000th certificate.

What this means is that now everybody can be encrypted using a trusted provider that is free. Our data just got safer. Our privacy just got private. It also means that hosting companies can roll out free SSL across their infrastructure which is exactly what Webslice have done.

Lets Encrypt logo
The Lets Encrypt logo is a trademark of the Internet Security Research Group. All rights reserved.


If you are using WordPress you may need to make a couple of changes.

Convert and split APE into FLAC using a CUE file

If you need to convert an APE file into a FLAC file then that is easy. It also turns out it is easy to split the APE file into different FLAC tracks using a CUE file.


Flacon is an audio file encoder that extracts individual tracks from one big audio file and separates them into different tracks. It can also convert them in the process.

Flacon is available for many Linux distributions and can be installed on Fedora 25 with an easy.

sudo dnf install flacon

To convert APE files you will need also to install mac from rpmfusion-nonfree in order to read the files.

sudo dnf install mac

Simply select the destination directory, the pattern you want your files to be renamed as, what format you want them converted to and whether you want to apply replaygain. Then convert. It takes a surprisingly small amount of time.

Flacon converting ape files to flac

Aotea FM Great Barrier Islands Solar Powered Radio Station

Aotea FM logo

Aotea FM has come a long way in a relatively short time. From an initial small set of batteries and a couple of solar panels up a hill it now has three transmitting stations to cover as much of the Island as possible and a new broadcasting hut near the Claris shops.

That’s not a bad feat for an Island with no power grid.

It offers Island news, interviews, and an outlet for people to share their diverse tastes in music and culture. There is also the occasional weather forecast which can start at Great Barrier but stretch all the way into the Pacific in order to give surfers an idea what might be coming.

Aotea FM is run by volunteers as a local not for profit community effort. These volunteers do more than just play DJ. They have built the transmitters, the radio shack, governance, provided money and time, and occasionally they have to run up a hill to start a generator if there has been heavy cloud for a couple of days.

A weekly schedule can  look like a who’s who of the Island population, for example…..

08:00 – Kick Start with Brownie
10:30 – The Cure (Michelle & Marie)
13:00 – The Adam from Okupu Show
15:30 – Mystery Monday with Sharon

08:00 – The Breakfast Club (John Tate)
10:30 – Leebee’s Lunch Break
13:00 – The Rook show
15:30 – The Penny Drops

08:00 – “T” in the morning
10:30 – Nikki’s of Angels, Love & Horses
13:00 – L’Indie’sClassicJazz’nBlues
15:30 – Cool Grooves & Hot Tracks

10:30 – Leebee & Lenny’s Music Mayhem
13:00 – Ngaire’s Thursday Cruize
15:30 – Cool Grooves & Hot Tracks

08:00 – Kit’s Morning Catch Up
10:30 – Phill’s Friday Fiasco
13:00 – Off the Record with Kathy
15:30 – Sali (Stolen Tuesday)

08:00 – DJ Fresh
10:30 – Toni’s Top 10
13:00 – Stop it! Live with Leon
15:30 – Sharon’s Saturday Arvo

10:30 – Sunday Buzz (Joseph Hodgetts)
13:00 – Tala’s Sunday session
15:30 – Lars and the Real Show

And you don’t have to be on the Barrier to listen. AoteaFM streams live online!

AoteaFM Collage

Install Discord on Fedora 25

Discord logo

Discord is a voice and text chat application aimed at gamers but can be used by anyone. Is is currently available on Firefox, Opera, Chrome, Android, iPhone, Windows, OSX, and Linux….Basically everywhere. Installing Discord on Fedora 25 is easy.

Open a terminal and enable the copr repository.

sudo dnf copr enable vishalv/discord-canary

Then install with this command (You will have to accept the copr GPG key in order to install).

sudo dnf install discord-canary

It does seem to use a lot of resources on first start but after updating itself it should work just fine.


Gnome Online Accounts – Credentials have expired

Credentials have expired

If you are having trouble with Gnome Online Accounts not logging into Google make sure you are fully updated and try again. If that doesn’t work, then open a terminal and try,

pgrep goa-daemon | xargs kill -9

This will kill the Gnome Online Accounts daemon which will then automatically re-spawn. Worked for me!

Credentials have expired


Fedora 25 Workstation – Simple Install

You can download the Fedora 25 Workstation image from If you use the Fedora Media Writer then it can download the image for you. In Windows I generally just download an image and then write it to a USB stick using the Linux Live USB Creator. In Linux distributions I usually write the image to a USB using the dd command.

There are a few things you should do before you install Fedora 25 on your computer. The first of which is to decide whether you really need to install it? You can just write it to a USB sick or DVD and boot from that into the live environment. This is good way to test your hardware compatibility and find out if your graphics chip and internet connection work?

Having decided to do that, the next decision is whether you want to dual boot it. This means partitioning your hard drive to run Fedora on some partitions and another operating system (eg; Windows 10) on another.

This is a simple guide and assumes that you want to use Fedora 25 as your only operating system. It isn’t going to go into setting up UEFI or disabling secure boot. Nor is it going to go into the complexities of installing on a Macbook Pro. It is ‘simply’ to give you an idea of the Fedora 25 install process and what to expect while installing it.

You may have to configure your bios to boot from the DVD or USB stick. Generally in modern computers there is a key you can press at boot to choose your boot medium. On my computer it is F11. Others differ.

On boot you will be presented with this screen.

Boot Screen

You can use your up and down arrow keys to change the selection. Choose “Test this media & start Fedora-Workstation-Live 25”. This will check that your media hasn’t been corrupted and will boot you into a live desktop environment.

Fedora will then check your media.

Live Environment

And after booting into the live environment will ask whether you want to “Try Fedora” (eg; stay in the live environment) or “Install to Hard drive” (eg; start the installation process). I recommend choosing “Try Fedora” and then checking whether your network connection and other hardware works properly.

At this point all changes you make in the live environment are volatile and will be lost on reboot. Changes to hardware are not though (eg; deleting files on your hard drive). You can find the “Install to Hard Drive” program again by selecting “Activities” in the top left corner.

Selecting “Install to Hard Drive” will take you to the first screen of the installer.

Welcome To Fedora 25

This screen allows you to choose your language on the left and your localisation on the right. After your choice has been highlighted, select continue.

The next screen is the “Installation Summary”.

Installation Summary

All items with red text under them must be completed before you can install.

If you wish to change your keyboard select “Keyboard” on the left under “Localisation”.

Keyboard Layout

Here you can add or remove keyboards using the plus or minus signs on the left and, having highlighted, a keyboard you can click the small picture of a keyboard to display an image of it. The up and down buttons can be used to highlight different keyboards.

On the right is an area you can test configurations by typing and using the options button allows you to set up a key combination for swapping between keyboard layouts if you use more than one.

After checking your keyboard is correct you can select “done” on the top left and this will take you back to the “Installation Summary”.

Time & Date

The second option in the “Installation Summary” is Time & Date. Here you have multiple ways to select your systems time settings.

On the top left there are drop down menus to select your “Region” and “City”.

On the top right you can choose whether to enable “Network Time” and by selecting the small gears to the right of this you can additional network time servers.

Selecting where you live in the world will automatically configure your time to that region.

Any final adjustments can be made on the base menu but shouldn’t be needed.

Selecting “Done” will return you to the”Installation Summary”.

Installation Destination

Under “Local Standard Disks” you can see the disk we are going to be installing to (With a tick on it. This means it is currently selected) In this case it is a 20GB virtual disk automatically created by Boxes (A Virtual OS installer and manager).

In real life the disk is usually much larger and there may be more than one disk. Some common scenarios for multiple disks might be an SSD to install the root file  system on with a separate disk for home or maybe two disks in a RAID 1 configuration to provide an exact mirroring of information on one disk to the other (For disk redundancy). Installing to multiple disks is outside the scope of this tutorial.

Beneath that is “Specialized & Network Disks”. Again this is outside the scope of this tutorial but clicking on this will allow you configure nonstandard disks.

Under the “Other Storage Options” heading is “Partitioning”. The “Automatically configure partitioning” option is selected by default. You may leave this selected but in most cases it is a good idea to choose “I will configure partitioning”.

Having selected “I will configure partitioning” if you select  “Done” on the top left you will be taken to a new screen.

Manual Partitioning

Here you can either select the option to create the partitioning scheme automatically (“Click here to create them automatically”) or you can create a new partition scheme using drop down menu.

By default this menu starts on “LVM” but since this is a completely new partition scheme and we won’t need more than four partitions select “Standard Partition” in the drop down.

There are a couple of reasons you should choose to set up your own partitioning scheme. For instance, choosing the automatic partition scheme on a 20GB disk means that your home folder is in the root partition.

Not the best scheme if you have to reinstall later on or you want to swap distributions. Also, no EFI boot partition has been created. This might be because none was detected but if you want to use UEFI boot then you will need that partition. Another reason could be that you have more than 2GB of RAM.  The reason RAM makes a difference to your partitioning is that if your computer hibernates then it writes the RAM to the swap partition to read back later. Redhat has some recommendations for this case.

At the lower left of the window there is a plus, a minus, and a refresh symbol (Until you have created a partition the minus will unusable)

Selecting the plus will bring the “Add A New Mount Point” dialogue.

Firstly, set the “Mount Point” as “/” in the drop down dialogue.  “/” is the symbol used for the root of the Linux file system. Since this is a 20GB disk we will only specify 5000 in the “Desired Capacity” box. This means 5000MB or 5GB. In a desktop install with lots of space you could enter  20000 or more in this box to make sure you don’t run out of room.

Select “Add Mount Point” to add it to the partition scheme and select plus again for your second partition which will be called Home. This will be where all your files are stored.

Each time you create a mount point the details of the mount point will be displayed on the right. The defaults are fine.

This time in the drop down menu select “/home” as the “Mount Point” and enter 13000 in the”Desired Capacity” box and then “Add Mount Point”.

Because we have already used 18000MB of our 20000MB disk our third and final partition can only be 2000MB large. It will be the swap partition. In the drop down menu select “/swap” as the “Mount Point” and enter 2000 in the”Desired Capacity” box and then “Add Mount Point”.

Having completed the partitioning scheme you can now select “Done” on the top left, confirm, and return to the “Installation Summary”.

Network & Host Name

You should already be connected to the network and the installer asks you to use those settings. You can specify your “Host Name” here though. Basically it is the name that other computers will call you on your network. This can be useful for  identifying you computer while browsing the network.

Enter your host name and select “Done” to return to the “Installation Summary”

Remember, nothing is written to disk until you select “Begin Installation” so you can go back and check or change all your settings as many times as you want. Because you are still in the live environment you can also start Firefox or another program if you want to find help on the Internet or “Help” in the top right of the “Installation Summary” screen.

If you are happy with your settings you can now select “Begin Installation”. This will begin your install and take you to the “Configuration” screen.




Internet Party

So, the Internet Party is back again. Well, not really back. It never really left, but after the drubbing it got in the last election it appears to be making serious progress once more.

And drubbing it was. Approaching the last election  the Internet party was the darling of the media but the shine started to go of it in the week leading up to the “Moment of Truth” and post that…..well, all the media concentrated on Kim Dotcoms failure to to provide a smoking gun instead of concentrating on the New Zealand government spying on it’s citizens and being complicit in the deaths of civilians in Iraq.

It was after the last election I joined the party. The day after in fact. It didn’t matter to me that the media was attacking it. It didn’t matter that the general population thought they looked like a bunch of idiots. What mattered was that they were right.

The GCSB was spying on New Zealanders. Why? Well, you tell me. There have been five so called terrorist attacks in New Zealand. The Huntly rail bridge bombing (1951), the Vietnam War protests (1969-70), the Wanganui Computer Centre bombing (1982), the Wellington Trades Hall bombing (1984) and the Rainbow Warrior bombing (1985).

There had been no attacks worthy of the label ‘terrorist’ in New Zealand for almost 30 years and yet now, in the interests of security, the GCSB is able to spy on New Zealanders legally. No charges for the illegal surveillance of at least 85 people during the period of 2003 to 2012. No comeback on the department or the Prime Minister (At that point the Minister Responsible for the GCSB) over lying to New Zealand people from 2012 till 2013 as he said that the agency, “isn’t and will never be wholesale spying on New Zealanders,”

But I rant…..

That was only one reason to vote for the Internet Party. Their support of Education and Health care. Their rejection of the TPPA (Ratified by our cabinet and now being resurrected by them) being forced through. One of the few parties that rejected the destruction of democracy after the Christchurch Earthquake. They had a host of decent policies from saving the Maui dolphin to updating the health system. Policies that were based on fact where possible, hope where needed, and aspiration where applicable.

And now they are back. Some policies have stayed, some have been updated. New policy has yet to be announced. Some policies appear to have been dropped. I hope, however, that they will continue to stand for what is right and true instead of what is politically feasible. We need to stop being #labnats and stand up for what we are, and what we want to be.


Batch convert PDF to JPG

So, last night I had to batch convert a large PDF called v35_22_31_Auckland.pdf into JPG. Or to put it another way separate out the PDF’s pages and convert them into JPG images. I tried it a couple of ways including Converseen which did the job but renamed all the files badly and changed the image size (from A3 to A4). ImageMagick was the same although probably more from my misreading of the man pages.

Eventually I settled on using pdftocairo (part of the Poppler utilities) and specifying the x and y  scale to retain the original page size. I found the page size by extracting one page using PDFMod and opening it in GIMP. After that I copied the original PDF into a folder and then opened a terminal in it and ran this command.

pdftocairo -jpeg -scale-to-y 1653 -scale-to-x 1169 v35_22_31_Auckland.pdf

It worked perfectly filling the folder with correctly sized JPG’s.