Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Monaco font in Linux
#!/bin/bash
# Install Monaco font in Linux
# Version from nullvideo https://gist.github.com/rogerleite/99819#gistcomment-2799386
sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \
sudo wget https://gist.github.com/rogerleite/b50866eb7f7b5950da01ae8927c5bd61/raw/862b6c9437f534d5899e4e68d60f9bf22f356312/mfont.ttf -O - > \
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \
sudo fc-cache
@mriverodorta

This comment has been minimized.

Copy link

@mriverodorta mriverodorta commented Feb 2, 2014

Tanks!

@mr-linch

This comment has been minimized.

Copy link

@mr-linch mr-linch commented Mar 28, 2014

Nice...

@Trylobot

This comment has been minimized.

Copy link

@Trylobot Trylobot commented Apr 23, 2014

Thank you sir.

@jiahut

This comment has been minimized.

Copy link

@jiahut jiahut commented Jul 28, 2014

fc-list | grep monaco

@ebragaparah

This comment has been minimized.

Copy link

@ebragaparah ebragaparah commented Aug 25, 2014

great!

@felipecastilhos

This comment has been minimized.

Copy link

@felipecastilhos felipecastilhos commented Sep 3, 2014

nice job

@slayer

This comment has been minimized.

Copy link

@slayer slayer commented Dec 22, 2014

mkdir -p ttf-monaco

@suriyadeepan

This comment has been minimized.

Copy link

@suriyadeepan suriyadeepan commented Feb 13, 2015

thnkz man...

@jhowliu

This comment has been minimized.

Copy link

@jhowliu jhowliu commented Apr 30, 2015

Thanks

@diogocavilha

This comment has been minimized.

Copy link

@diogocavilha diogocavilha commented Nov 13, 2015

Thank you a lot!

@ai7ch

This comment has been minimized.

Copy link

@ai7ch ai7ch commented Nov 29, 2015

thanks :-)

@habutre

This comment has been minimized.

Copy link

@habutre habutre commented Jan 20, 2016

I back to use this post as I have changed my linux box again
Thx man!

@meain

This comment has been minimized.

Copy link

@meain meain commented Apr 22, 2016

Thank you so much.

@seniorihor

This comment has been minimized.

Copy link

@seniorihor seniorihor commented May 2, 2016

Beautiful!

@toc21c

This comment has been minimized.

Copy link

@toc21c toc21c commented May 17, 2016

awesome

@NeMO84

This comment has been minimized.

Copy link

@NeMO84 NeMO84 commented May 26, 2016

Thanks and Cheers!

@peresbruno

This comment has been minimized.

Copy link

@peresbruno peresbruno commented Jun 6, 2016

Thanks! :D

@OlehZiniak

This comment has been minimized.

Copy link

@OlehZiniak OlehZiniak commented Aug 14, 2016

thumbs up

@benoitemile

This comment has been minimized.

Copy link

@benoitemile benoitemile commented Nov 21, 2016

👍 thanks

@tarvos21

This comment has been minimized.

Copy link

@tarvos21 tarvos21 commented Nov 28, 2016

Great! Thanks for sharing!

@NaveenKumarDudi

This comment has been minimized.

Copy link

@NaveenKumarDudi NaveenKumarDudi commented Dec 13, 2016

thanks :)

@toni-mccrae

This comment has been minimized.

Copy link

@toni-mccrae toni-mccrae commented Jan 3, 2017

thanks

@vctr90

This comment has been minimized.

Copy link

@vctr90 vctr90 commented Jan 6, 2017

U ROCK!!

@ShomyLiu

This comment has been minimized.

Copy link

@ShomyLiu ShomyLiu commented Jan 24, 2017

work well! thanks

@fofosudarko

This comment has been minimized.

Copy link

@fofosudarko fofosudarko commented Apr 16, 2017

Thanks.

@iamhabbeboy

This comment has been minimized.

Copy link

@iamhabbeboy iamhabbeboy commented May 24, 2017

please guys, am able to install it successfully, but its giving me another view when selected for usage

@iamhabbeboy

This comment has been minimized.

Copy link

@iamhabbeboy iamhabbeboy commented May 24, 2017

on Ubuntu 16 Linux

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Jun 13, 2017

thanks!

@JerryLauzzz

This comment has been minimized.

Copy link

@JerryLauzzz JerryLauzzz commented Oct 24, 2017

Thanks~

@Mannini

This comment has been minimized.

Copy link

@Mannini Mannini commented Jan 24, 2018

thanks!!

@chaimando

This comment has been minimized.

Copy link

@chaimando chaimando commented Jan 25, 2018

Thanks!

@ddt2rxxt

This comment has been minimized.

Copy link

@ddt2rxxt ddt2rxxt commented Mar 16, 2018

Thanks!!

@vermaditya1999

This comment has been minimized.

Copy link

@vermaditya1999 vermaditya1999 commented Mar 21, 2018

Thanks!

@bgrnd

This comment has been minimized.

Copy link

@bgrnd bgrnd commented Apr 12, 2018

thanks!

@Flock1

This comment has been minimized.

Copy link

@Flock1 Flock1 commented May 15, 2018

Did not work for me. I'm trying to install it for Atom editor. Any suggestions?

@aoufa

This comment has been minimized.

Copy link

@aoufa aoufa commented Jul 3, 2018

Thanks man. Exactly what I was looking for.

@ClarkWalker

This comment has been minimized.

Copy link

@ClarkWalker ClarkWalker commented Jul 19, 2018

Yup, that did it. Worked for me on Linux Mint 19. Thanks :)

@brunolevy06

This comment has been minimized.

Copy link

@brunolevy06 brunolevy06 commented Aug 9, 2018

Thanks, this is an awesome font.

@ArtoNiittukari

This comment has been minimized.

Copy link

@ArtoNiittukari ArtoNiittukari commented Aug 27, 2018

Thanks!

@SlavDimov

This comment has been minimized.

Copy link

@SlavDimov SlavDimov commented Oct 21, 2018

Thanks!

P.S. I suggest changing this:

cd /usr/share/fonts/truetype/

#TODO: put validation if folder already exists
sudo mkdir ttf-monaco

cd ttf-monaco/

To this:

sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco
cd /usr/share/fonts/truetype/ttf-monaco
@AndrianD

This comment has been minimized.

Copy link

@AndrianD AndrianD commented Dec 1, 2018

Great work! Thank you very much. The script is still working on Ubuntu 18

@tripulse

This comment has been minimized.

Copy link

@tripulse tripulse commented Jan 2, 2019

The entire script could be written in one line like this!

sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \
sudo wget http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf -O - > \
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \
sudo fc-cache
@corfucius

This comment has been minimized.

Copy link

@corfucius corfucius commented Feb 16, 2019

Thank you! It shouldn't matter but I've really missed this font. It is working on Fedora 29, just had to make a directory for truetype.

@aditya777hp

This comment has been minimized.

Copy link

@aditya777hp aditya777hp commented Feb 25, 2019

The entire script could be written in one line like this!

sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \
sudo wget http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf -O - > \
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \
sudo fc-cache

good

@LuaGanrqunx

This comment has been minimized.

Copy link

@LuaGanrqunx LuaGanrqunx commented Nov 24, 2019

Many thanks!!

@rogerleite

This comment has been minimized.

Copy link
Owner Author

@rogerleite rogerleite commented Nov 25, 2019

I totally forgot about this gist and I didn't know it was so popular!
Amazing!
@SlavDimov sorry I didn't see your suggestion.

@nullvideo thanks for the one-line script, I applied your suggestion.

@wilitp

This comment has been minimized.

Copy link

@wilitp wilitp commented Jan 2, 2020

Hey, wget is throwing a 404. Do you have other source?

@rogerleite

This comment has been minimized.

Copy link
Owner Author

@rogerleite rogerleite commented Jan 2, 2020

@wilitp try the new url please

@sverreskeggi

This comment has been minimized.

Copy link

@sverreskeggi sverreskeggi commented Jul 29, 2020

thanks !!!

@Sparksss

This comment has been minimized.

Copy link

@Sparksss Sparksss commented Aug 9, 2020

Thanks)))

@Leedehai

This comment has been minimized.

Copy link

@Leedehai Leedehai commented Aug 20, 2020

There is an issue with this Monaco_Linux.ttf file.. On Ubuntu, in some applications (VSCode the editor, Chrome the browser), the font is pixelated when font size is 14 (other sizes like 14.5 is fine), and in others (Tilix the terminal emulator) the font is fine.

One proposed solution is disabling the embedded bit map: https://askubuntu.com/questions/386056/monaco-is-pixelated-in-web-pages, but it doesn't work for me.

I finally solved the issue by downloading the Monaco.ttf file from this source: https://www.fontpalace.com/font-download/monaco/ (note: I'm not sure if it's safe, though). Then, move thie file to /usr/share/fonts/truetype/ttf-monaco/ as suggested by the author here, then run sudo fc-cache -f -v . in that directory to make the font effective. You may need to restart the applications to see the change.

@cangelis

This comment has been minimized.

Copy link

@cangelis cangelis commented Aug 24, 2020

There is an issue with this Monaco_Linux.ttf file.. On Ubuntu, in some applications (VSCode the editor, Chrome the browser), the font is pixelated when font size is 14 (other sizes like 14.5 is fine), and in others (Tilix the terminal emulator) the font is fine.

One proposed solution is disabling the embedded bit map: https://askubuntu.com/questions/386056/monaco-is-pixelated-in-web-pages, but it doesn't work for me.

I finally solved the issue by downloading the Monaco.ttf file from this source: https://www.fontpalace.com/font-download/monaco/ (note: I'm not sure if it's safe, though). Then, move thie file to /usr/share/fonts/truetype/ttf-monaco/ as suggested by the author here, then run sudo fc-cache -f -v . in that directory to make the font effective. You may need to restart the applications to see the change.

Thanks. This worked for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.