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.


Not installing Discord on Fedora 25?

You can find a install guide for Discord here for Linux lite 3.4.

Discord on Fedora 25,

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. Especially if you are getting the error “Credentials have expired”. 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

What if the Credentials have expired fix doesn’t work?

Of course, if it doesn’t work for you you might have a different problem. I would suggest searching the Gnome Online Accounts mailing list here or asking them in their IRC if you aren’t able to solve it on Google.


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.




Batch convert PDF to JPG

So, last night I needed to batch convert PDF files 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.

Batch convert PDF solution

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.


Batch convert PDF