Last updated on April 12, 2017

Installing custom fonts on the Cisco Edge 300/340

This article provides instructions to install custom fonts on the Cisco Edge 340 and Cisco Edge 300 devices.


Prerequisites

  • Root/admin credentials for the Edge device.
  • A PC within the same network to access the Edge device(s).
  • Font files in .ttf or .otf format saved in a USB flash drive (FAT32 format), a shared drive, or in an online storage.

Note

All the commands below must be executed via a command prompt (PuTTy on a Windows PC, or Terminal on a Mac).


Installing Custom Fonts on a Cisco Edge

Follow the instructions below to install system fonts on a Cisco Edge device:

  1. SSH into the Edge device with Root access via PuTTy (on a Windows PC) or Terminal (on a Mac):

    # ssh root@(device IP address)
    

    Note

    • The default root password for Edge 340: aDMIN123#
    • The default root password for Edge 300: cisco
  2. Copy the font files to the Edge device, based on where the files are stored:

    • Font files are stored on a USB flash drive;

      1. Insert the USB flash drive containing the font files into one of the USB ports on the Edge device.

      2. In the command prompt, type in “blkid” to find the block ID of the USB flash drive by looking for the LABEL of the USB flash drive:

        # blkid
        
        ../../../../../_images/02b9.png

      3. Mount the USB flash drive to the ‘/tmp/mnt’ folder on the Edge device. (If the ‘/tmp/mnt’ folder does not exist, create it first by typing in “mkdir /tmp/mnt”):

        # mount /dev/sdb1 /tmp/mnt
        
      4. Navigate to the folder with the font files on the USB flash drive:

        # cd /tmp/mnt
        
      5. Copy the font files to the font folder on the Edge device. Create the font folder if it does not exist, by typing in “sudo mkdir -p /usr/share/fonts” or “sudo mkdir -p /.fonts”:

        # cp fontname.ttf /usr/share/fonts
        

        Note

        • Font folder in Edge 340: /usr/share/fonts.
        • Font folder in Edge 300: /.fonts.
      6. Proceed to Step 3 below.

    • Font files are stored in a shared drive or online storage (i.e. Dropbox, Google Drive):

      1. Navigate to the font folder on the Edge device. Create the font folder if it does not exist, by typing in “sudo mkdir -p /usr/share/fonts” or “sudo mkdir -p /.fonts”:

        # cd /usr/share/fonts/
        

        Note

        • Font folder in Edge 340: /usr/share/fonts.
        • Font folder in Edge 300: /.fonts.
      2. Download and install the font files from the shared drive, or the online storage.

        • Compressed font files (.zip)

          1. Download the font file:

            # wget http://<server address>/font.zip
            
          2. Install the font file:

            # unzip font.zip
            
          3. Proceed to Step 3 below.


        • Individual font files (.ttf)

          1. Download the font file:

            # curl -O http://<server address>/fontname.ttf
            
          2. Copy the font files to the font folder on the Edge device:

            # cp amerd.ttf /usr/share/fonts
            

            Note

            • Font folder in Edge 340: /usr/share/fonts
            • Font folder in Edge 300: /.fonts
          3. Install the fonts:

            # fc-cache
            # su user -c "fc-cache"
            
          4. Proceed to Step 3 below.


  3. Check if the fonts have been successfully installed by listing all installed system fonts:

    # fc-list
    
  4. Rebuild the font list cache:

    # fc-cache -f -v
    
  5. Reboot the Edge device:

    # reboot