├── README.md ├── install-font-archlinux.sh ├── install-font-centos.sh ├── install-font-gentoo.sh └── install-font-ubuntu.sh /README.md: -------------------------------------------------------------------------------- 1 | monaco-font 2 | ====== 3 | 4 | Install Monaco Font on Linux distro. 5 | 6 | The idea started from here http://jorrel.blogspot.it/2007/11/monaco-on-ubuntu.html. 7 | The main goal of the repo was to provide a script that download and install the `Monaco` font on ubuntu and not provide the font itself. 8 | 9 | Unfortunately, due to license issue I removed all `Monaco_Linux.ttf` binary files from the repo, see discussion on issue [#10](https://github.com/cstrap/monaco-font/issues/10). 10 | 11 | Nevertheless, all the scripts remain and accept a parameter that is the link to the font, see below; now all the scripts are generics and can accept a raw `url` that point to the font. 12 | That's sound good! Some of the world's best open source fonts are hosted right here on GitHub and can be viewed form: 13 | * https://github.com/showcases/fonts 14 | 15 | --- 16 | 17 | **Disclaimer**: since I don't know the origin of the fonts, the original author and the original license, `Monaco` font (and potentially other fonts) will be used at own risk. Users should know the font license before download and install it. With this repo, I only provide the scripts that permits the download and then install fonts on your linux distro. All the scripts are provided as-is and have the public domain license; so you can copy, modify, use and so on without restrictions. 18 | **I invite all the github users that fork and forked the repository to know that there's copyright issue on using fonts without permissions.** 19 | 20 | The `Monaco_Linux.ttf` font file can be downloaded from these links: 21 | 22 | * http://jorrel.blogspot.it/2007/11/monaco-on-ubuntu.html => http://jorrel.googlepages.com/Monaco_Linux.ttf 23 | * http://www.gringod.com/ => http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf 24 | * https://gist.github.com/epegzz/1634235#file-monaco_linux-powerline-ttf => https://gist.github.com/epegzz/1634235/raw/4691e901750591f9cab0b4ae8b7c0731ebf28cce/Monaco_Linux-Powerline.ttf 25 | * https://github.com/todylu/monaco.ttf => https://github.com/todylu/monaco.ttf/blob/master/monaco.ttf?raw=true 26 | 27 | On the net you'll find a plethora of variations of `Monaco`, if you want make a PR in order to update the list and please **provide and notify the license** of the font whatever it is. 28 | 29 | Feel free to ask to the maintainer of the font file or who has the font file on his/her server what's the license and please made a PR in order to update the information on this repo. 30 | 31 | Many thanks for all the contributions! 32 | 33 | --- 34 | 35 | ## HOW TO 36 | 37 | Clone the repository 38 | 39 | ``` bash 40 | git clone https://github.com/cstrap/monaco-font 41 | ``` 42 | 43 | Launch the script and replace `[url]` with the url of the font, e.g. 44 | 45 | ``` bash 46 | cd monaco-font 47 | ./install-font-ubuntu.sh http://usystem.googlecode.com/files/MONACO.TTF 48 | ``` 49 | 50 | --- 51 | #### Install Monaco Font on Ubuntu 52 | 53 | ```bash 54 | ./install-font-ubuntu.sh [url] 55 | ``` 56 | 57 | #### Install Monaco Font on CentOS 58 | 59 | ```bash 60 | ./install-font-centos.sh [url] 61 | ``` 62 | 63 | #### Install Monaco Font on Gentoo 64 | 65 | ```bash 66 | ./install-font-gentoo.sh [url] 67 | ``` 68 | 69 | 70 | -------------------------------------------------------------------------------- /install-font-archlinux.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | URL=$1 4 | FILENAME=${URL##*/} 5 | FONT_DIR=/usr/share/fonts/TTF/ 6 | 7 | echo "Start install" 8 | # sudo mkdir -p /usr/share/fonts/truetype/custom 9 | # we don't need to do that, we have the TTF folder in /usr/share/fonts/ already 10 | # take a look to the folder structure in: https://wiki.archlinux.org/index.php/Fonts#International_users 11 | 12 | echo "Downloading font" 13 | wget -c $URL 14 | 15 | echo "Installing font" 16 | sudo mv $FILENAME $FONT_DIR 17 | 18 | echo "Updating font cache" 19 | sudo fc-cache -f -v 20 | 21 | echo "Enjoy" 22 | -------------------------------------------------------------------------------- /install-font-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | URL=$1 4 | FILENAME=${URL##*/} 5 | FONT_DIR=/usr/share/fonts/monaco/ 6 | 7 | su 8 | 9 | echo "Start install" 10 | mkdir -p $FONT_DIR 11 | 12 | echo "Entering Font Directory" 13 | cd $FONT_DIR 14 | 15 | echo "Downloading font" 16 | wget -c $URL 17 | 18 | echo "Installing font" 19 | chmod 644 $FILENAME 20 | mkfontscale 21 | mkfontdir 22 | 23 | echo "Leaving Font Directory" 24 | cd - 25 | 26 | echo "Enjoy" 27 | -------------------------------------------------------------------------------- /install-font-gentoo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | URL=$1 4 | FILENAME=${URL##*/} 5 | FONTDIR=/usr/share/fonts/Monaco-linux/ 6 | 7 | echo "Start install" 8 | sudo mkdir -p $FONTDIR 9 | 10 | echo "Downloading font" 11 | wget -c $URL 12 | 13 | echo "Installing font" 14 | sudo mv $FILENAME $FONTDIR 15 | 16 | echo "Updating font cache" 17 | sudo fc-cache -f -v 18 | 19 | echo "Enjoy" 20 | -------------------------------------------------------------------------------- /install-font-ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | URL=$1 4 | FILENAME=${URL##*/} 5 | FONT_DIR=/usr/share/fonts/truetype/custom/ 6 | 7 | echo $FILENAME 8 | echo $FONT_DIR 9 | 10 | echo "Start install" 11 | sudo mkdir -p $FONT_DIR 12 | 13 | echo "Downloading font" 14 | wget -c $URL 15 | 16 | echo "Installing font" 17 | sudo mv $FILENAME $FONT_DIR 18 | 19 | echo "Updating font cache" 20 | sudo fc-cache -f -v 21 | 22 | echo "Enjoy" 23 | --------------------------------------------------------------------------------