Category Archives: Linux

Install MS Fonts in Dual boot with Linux and Windows

If you have dual boot system with Linux and Windows operating system, you can easily install the MS fonts from Windows C drive. All you have to do is mount the Windows partition (C:/Windows).

I assume you have mounted the C:/Windows partition at /Windowsdrive directory in linux.

Now, link the fonts location to your Linux system’s fonts folder as shown below.

sudo ln -s /Windowsdrive/Windows/Fonts /usr/share/fonts/WindowsFonts

After linking the fonts folder, regenerate the fontconfig cache using command:

sudo fc-cache

Alternatively, copy all Windows fonts to /usr/share/fonts directory and install the fonts using the following commands:

sudo mkdir /usr/share/fonts/WindowsFonts
sudo cp /Windowsdrive/Windows/Fonts/* /usr/share/fonts/WindowsFonts
sudo chmod 755 /usr/share/fonts/WindowsFonts/*

Finally, regenerate the fontconfig cache using command:

sudo fc-cache

Test Windows font

Open LibreOffice or GIMP after installing MS Fonts. Now, you will find the Microsoft coretype fonts.

MS Fonts in LibreOffice


Disclaimer: Microsoft has released its core fonts for free. But Please be mindful that usage of Microsoft fonts outside running Windows system is prohibited by Microsoft’s End User License Agreement. Read the EULA carefully before installing MS Fonts in any Linux operating system.


Source: Install Microsoft Windows Fonts in Ubuntu 16.04 – OSTechNix

A Start Job Started by Dev-disk-by..

If you get “a start job started by dev-disk-by..” followed by a 90 second delay during each boot, complete the following steps:

  1. Install Gparted using the Software Center
  2. Open Gparted and see what partition is the swap partition.
  3. Reformat the swap partition if necessary.
  4. Copy UUID of the swap partition.
  5. Edit the fstab file using the line below.
    sudo -H gedit /etc/fstab
    
  6. Find the entry of the swap partition.
  7. Replace the UUID of the swap by the one you previously copied.
  8. Save the fstab file.
  9. Reset your computer.

Linux Mint 18 Reboots Normally Instead of Waking up From Hibernate

The reason why your system reboots normally instead of waking up from hibernate, is most likely that the configuration file “/etc/initramfs-tools/conf.d/resume” is missing the proper path to your swap partition.

To modify (or create) the proper resume entry and updating your system to reflect the changes, do the following.

Go into a terminal and switch on root access, by typing: “sudo -s” and entering your password. Then CD to the directory “/conf.d” mentioned above, and check if the file “resume” is missing. If it’s missing, create and save a new file (plain text) using the command “gedit resume” to edit or create the file.

The file “resume” must contain the text “RESUME=UUID=” + the actual UUID for your swap partition (locate it by viewing information on your swap partition using GParted). For instance my own configuration file lists (an example): “RESUME=UUID=79647610-c76d-4220-8c58-b4b9c71f9ead”. Yours should reflect the UUID that your own swap partition has.

Then save the “resume” file and check if it reflects the proper information, and use this command to update the system so that your changes is reflected: “update-initramfs -u”, alternatively “sudo update-initramfs -u” (the -u stands for update).

After this has been done, your system knowns the proper location to your swap partition and thus the proper location to wake up your system from hibernate properly.

How to Configure the Linux Grub2 Boot Menu the Easy Way

Installing Grub Customizer

The tool in question is called Grub Customizer, created by Daniel Richter. He’s provided a PPA to make installing the tool quick and easy.

Open a terminal window (Ctrl+Alt+T or Applications > Accessories > Terminal) and type in the following commands.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get updatesudo apt-get install grub-customizer

GrubCustomizer will now show up in the Applications > System Tools menu.

Or you can open it from the command line.

gksudo grub-customizer

Hide Boot Menu Options

Over time, your boot menu can get cluttered with old versions of the Linux kernel. In a previous article, we showed you how to remove these manually; Grub Customizer makes this process much easier.

When Grub Customizer starts up, you’ll see a list of all the items that show up in the boot menu.

To hide entries that you don’t want to see anymore, simply uncheck the checkbox next to them.

Click the Save button at the top-left to make your changes permanent.

You can uncheck entire sections if you don’t want Grub2 to probe for new operating systems, or give you the option to test your computer’s memory.

Note that, unlike the manual method, this process does not actually remove the kernels from your computer, it just hides them from the boot menu.

Customize Grub Behavior

Grub Customizer can do much more than hide boot menu entries! Opening up the Preferences window lets you customize almost every aspect of Grub.

For example, you can set the default boot menu entry to a certain position, or a specific item.

If you’re bored by the default white-text-on-black-background look of Grub2, you can add a background image and customize text colors.

And, for Grub2 experts, you can set advanced settings much more easily than by editing the configuration files manually.

Grub Customizer is a great addition to any Linux installation that uses Grub2!

Thanks to How-To Geek commenter Hugues for recommending this program!See this Ubuntu Forums post for more detailed information on Grub Customizer.

Source: How to Configure the Linux Grub2 Boot Menu the Easy Way