From 4a8597e4de2b9c088bdcf6099ba99a0d6ae93cea Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Tue, 3 Jan 2017 15:02:29 -0800 Subject: [PATCH 1/8] install screen sometimes you just gotta connect to a serial console or three --- group_vars/all | 1 + 1 file changed, 1 insertion(+) diff --git a/group_vars/all b/group_vars/all index 6cecac7..4eae7cf 100644 --- a/group_vars/all +++ b/group_vars/all @@ -76,6 +76,7 @@ base_packages: - jq - python-docs - python2-docs + - screen filesystem_packages: - dosfstools From 74a2578f0740744215a2198294ae5af965911059 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 11 Jan 2017 20:03:37 -0800 Subject: [PATCH 2/8] remove infinality Infinality is broken and no longer needed. Existing users will need to remove it[1]. Short version: 1) Remove the infinality repo from /etc/pacman.conf 2) Install the proper core packages, answering yes when prompted if you want to remove the old infinality packages. # pacman -Syy freetype2 cairo fontconfig 3) Remove the 4 dead symlinks in /etc/fonts/conf.d [1] https://gist.github.com/cryzed/e002e7057435f02cc7894b9e748c5671 --- roles/fonts/tasks/infinality.yml | 50 -------------------------------- roles/fonts/tasks/main.yml | 2 -- 2 files changed, 52 deletions(-) delete mode 100644 roles/fonts/tasks/infinality.yml diff --git a/roles/fonts/tasks/infinality.yml b/roles/fonts/tasks/infinality.yml deleted file mode 100644 index 2d3718c..0000000 --- a/roles/fonts/tasks/infinality.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -- name: Add Infinality repository to pacman - lineinfile: dest=/etc/pacman.conf - state=present - insertafter=EOF - line="{{ item.line }}" - with_items: - - { line: "[infinality-bundle]" } - - { line: "Server = http://bohoomil.com/repo/$arch" } - tags: - - infinality - -- name: Verify root gnupg directory exists - file: path=/root/.gnupg/ state=directory - tags: - - infinality - -- name: Verify dirmngr is configured - file: path=/root/.gnupg/dirmngr_ldapservers.conf state=touch - tags: - - infinality - -- name: Verify dirmngr is running - command: dirmngr - tags: - - infinality - -- name: Install Infinality repository key - command: pacman-key -r AE6866C7962DDE58 - tags: - - infinality - -- name: Trust Infinality repository key - command: pacman-key --lsign-key AE6866C7962DDE58 - tags: - - infinality - -- name: Update package cache - pacman: update_cache=yes - tags: - - infinality - -- name: Install Infinality bundle - pacman: name={{ item }} state=present - with_items: - - freetype2-infinality-ultimate - - fontconfig-infinality-ultimate - - cairo-infinality-ultimate - tags: - - infinality diff --git a/roles/fonts/tasks/main.yml b/roles/fonts/tasks/main.yml index 8c9466d..434a6e5 100644 --- a/roles/fonts/tasks/main.yml +++ b/roles/fonts/tasks/main.yml @@ -1,5 +1,3 @@ --- -- include: infinality.yml - - name: Install Terminus pacman: name=terminus-font state=present From e4acf724caa9d2972319175eacb4d67ac7cb383c Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 11 Jan 2017 20:06:27 -0800 Subject: [PATCH 3/8] install basic font packages --- roles/fonts/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/fonts/tasks/main.yml b/roles/fonts/tasks/main.yml index 434a6e5..5a3630d 100644 --- a/roles/fonts/tasks/main.yml +++ b/roles/fonts/tasks/main.yml @@ -1,3 +1,12 @@ --- +- name: Install freetyp2 + pacman: name=freetype2 state=present + +- name: Install cairo + pacman: name=cairo state=present + +- name: Install fontconfig + pacman: name=fontconfig state=present + - name: Install Terminus pacman: name=terminus-font state=present From 41692255db74106cd630c5ba21bae303a570c3c7 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 11 Jan 2017 20:10:06 -0800 Subject: [PATCH 4/8] enable lcd filter, subpixel rendering, and hinting --- roles/fonts/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/fonts/tasks/main.yml b/roles/fonts/tasks/main.yml index 5a3630d..d426ad1 100644 --- a/roles/fonts/tasks/main.yml +++ b/roles/fonts/tasks/main.yml @@ -10,3 +10,18 @@ - name: Install Terminus pacman: name=terminus-font state=present + +- name: Enable LCD filter + file: src=/etc/fonts/conf.avail/11-lcdfilter-default.conf + dest=/etc/fonts/conf.d + state=link + +- name: Enable sub-pixel rendering + file: src=/etc/fonts/conf.avail/10-sub-pixel-rgb.conf + dest=/etc/fonts/conf.d + state=link + +- name: Enable hinting + file: src=/etc/fonts/conf.avail/10-hinting-slight.conf + dest=/etc/fonts/conf.d + state=link From e9f270df669c5983e0fb01681ed4ccea928866f8 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 11 Jan 2017 20:27:57 -0800 Subject: [PATCH 5/8] specify full path to links --- roles/fonts/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/fonts/tasks/main.yml b/roles/fonts/tasks/main.yml index d426ad1..3f1f250 100644 --- a/roles/fonts/tasks/main.yml +++ b/roles/fonts/tasks/main.yml @@ -13,15 +13,15 @@ - name: Enable LCD filter file: src=/etc/fonts/conf.avail/11-lcdfilter-default.conf - dest=/etc/fonts/conf.d + dest=/etc/fonts/conf.d/11-lcdfilter-default.conf state=link - name: Enable sub-pixel rendering file: src=/etc/fonts/conf.avail/10-sub-pixel-rgb.conf - dest=/etc/fonts/conf.d + dest=/etc/fonts/conf.d/10-sub-pixel-rgb.conf state=link - name: Enable hinting file: src=/etc/fonts/conf.avail/10-hinting-slight.conf - dest=/etc/fonts/conf.d + dest=/etc/fonts/conf.d/10-hinting-slight.conf state=link From 406d0e6ae7a6275d571b0159a50327815abb62c8 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 11 Jan 2017 20:59:56 -0800 Subject: [PATCH 6/8] remove font role dependency Depending on base is not actually all that useful, and just slows down running this specific role via a tag. --- roles/fonts/meta/main.yml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 roles/fonts/meta/main.yml diff --git a/roles/fonts/meta/main.yml b/roles/fonts/meta/main.yml deleted file mode 100644 index 72123d9..0000000 --- a/roles/fonts/meta/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -dependencies: - - { role: base } From 7022ad80369c94df61949575d804d8b4ad43c31a Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 11 Jan 2017 21:04:02 -0800 Subject: [PATCH 7/8] install fonts and force substitutions local.conf from https://gist.github.com/cryzed/4f64bb79e80d619866ee0b18ba2d32fc I'm avoiding installing the various AUR fonts for the time being. --- roles/fonts/files/local.conf | 229 +++++++++++++++++++++++++++++++++++ roles/fonts/tasks/main.yml | 20 ++- 2 files changed, 246 insertions(+), 3 deletions(-) create mode 100644 roles/fonts/files/local.conf diff --git a/roles/fonts/files/local.conf b/roles/fonts/files/local.conf new file mode 100644 index 0000000..5c5bdbb --- /dev/null +++ b/roles/fonts/files/local.conf @@ -0,0 +1,229 @@ + + + + + + serif + Heuristica + + + sans-serif + Noto Sans + + + monospace + Liberation Mono + + + fantasy + Signika + + + cursive + TeX Gyre Chorus + + + Arial + + Liberation Sans + + + + Arial Narrow + + Liberation Sans Narrow + + + + Book Antiqua + + TeX Gyre Bonum + + + + Calibri + + Carlito + + + + Cambria + + Caladea + + + + New Century Schoolbook + + TeX Gyre Schola + + + + Comic Sans MS + + Signika + + + + Consolas + + Droid Sans Mono Slashed + + + + Constantia + + Merriweather + + + + Corberl + + Merriweather Sans + + + + Courier New + + Courier Prime + + + + Geneva + + Noto Sans + + + + Georgia + + Gelasio + + + + Helvetica + + Liberation Sans + + + + Helvetica Narrow + + Liberation Sans Narrow + + + + Helvetica Neue + + Open Sans + + + + Impact + + Oswald + + + + ITC Zapf Chancery + + TeX Gyre Chorus + + + + Lucida Calligraphy + + Quintessential + + + + Lucida Handwriting + + Quintessential + + + + Lucida Casual + + CantoraOne + + + + Lucida Console + + Droid Sans Mono + + + + Lucida Sans Typewriter + + Liberation Sans Mono + + + + Lucida Fax + + Luxi Mono + + + + Lucida Sans + + Droid Sans + + + + Lucida Grande + + Droid Sans + + + + Palatino Linotype + + TeX Gyre Pagella + + + + SegoeUI + + WeblySleek UI + + + + Symbol + + Symbola + + + + Tahoma + + DejaVu Sans Condensed + + + + Times New Roman + + Liberation Serif + + + + Trebuchet MS + + Ubuntu + + + + Verdana + + DejaVu Sans + + + + Wingdings + + Symbola + + + diff --git a/roles/fonts/tasks/main.yml b/roles/fonts/tasks/main.yml index 3f1f250..c439fa8 100644 --- a/roles/fonts/tasks/main.yml +++ b/roles/fonts/tasks/main.yml @@ -8,9 +8,6 @@ - name: Install fontconfig pacman: name=fontconfig state=present -- name: Install Terminus - pacman: name=terminus-font state=present - - name: Enable LCD filter file: src=/etc/fonts/conf.avail/11-lcdfilter-default.conf dest=/etc/fonts/conf.d/11-lcdfilter-default.conf @@ -25,3 +22,20 @@ file: src=/etc/fonts/conf.avail/10-hinting-slight.conf dest=/etc/fonts/conf.d/10-hinting-slight.conf state=link + +- name: Push font substitutions + copy: src=local.conf dest=/etc/fonts/local.conf + +- name: Install core fonts + pacman: name={{ item }} state=present + with_items: + - terminus-font + - cantarell-fonts + - noto-fonts + - ttf-dejavu + - ttf-liberation + - ttf-symbola + - gsfonts + - tex-gyre-fonts + - ttf-droid + - ttf-ubuntu-font-family From 7e2265aaaf8e63fd386dbcedbc7f86ee90b1625b Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 11 Jan 2017 21:21:15 -0800 Subject: [PATCH 8/8] install AUR fonts Ok, I give in. AUR all the things. --- roles/fonts/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/roles/fonts/tasks/main.yml b/roles/fonts/tasks/main.yml index c439fa8..e2df0e0 100644 --- a/roles/fonts/tasks/main.yml +++ b/roles/fonts/tasks/main.yml @@ -39,3 +39,20 @@ - tex-gyre-fonts - ttf-droid - ttf-ubuntu-font-family + +- name: Install AUR fonts + aur: name={{ item }} user={{ user.name }} + with_items: + - ttf-signika + - ttf-quintessential + - ttf-oswald + - ttf-opensans + - ttf-merriweather-sans + - ttf-merriweather + - ttf-impallari-cantora + - ttf-carlito + - ttf-caladea + - ttf-courier-prime + - ttf-heuristica + tags: + - aur