-
Notifications
You must be signed in to change notification settings - Fork 15
/
post-install.sh
111 lines (91 loc) · 2.57 KB
/
post-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/bin/bash
# Author: Ryan L McIntyre (https://github.com/ryanoasis)
# inspiration: http://blog.self.li/post/74294988486/creating-a-post-installation-script-for-ubuntu
# post clean-up
cd ~
rm -rf ~/Documents
rm -rf ~/Public
rm -rf ~/Templates
rm -rf ~/Videos
rm -rf ~/Music
# restore apps that I use
# some background info:
# nfs-common: for mounting network drives, etc
# gist
# https://github.com/defunkt/gist
# todo: google chrome
# PPAs
sudo add-apt-repository --yes ppa:fontforge/fontforge
sudo apt-get update
# install apps + apps for development
sudo apt-get -y install \
nfs-common git gitk gitg \
fontforge ruby \
keepassx shutter \
virtualbox virtualbox-guest-additions-iso \
skype curl gparted geany \
npm vlc shellcheck \
python-fontforge \
jekyll \
p7zip-full
# terminal emulators (mostly for testing VimDevIcons)
sudo apt install \
rxvt-unicode \
tmux \
python-pip \
virtualenv \
cifs-utils
# pip installs
## upgrade pip
sudo pip install --upgrade pip
sudo pip install proselint
sudo pip install icon_font_to_png
## Nerd Fonts development
sudo pip install configparser
### Nerd Fonts Hack development
sudo pip install fonttools
curl https://raw.githubusercontent.com/source-foundry/Hack/master/tools/scripts/install/ttfautohint-build.sh --output ~/ttfautohint-build.sh
chmod 770 ~/ttfautohint-build.sh
cd ~
sudo ./ttfautohint-build.sh
# VimDevIcons specific prerequisites
# via https://github.com/xolox/vim-tools
cd ~
## Clone the repository
git clone https://github.com/xolox/vim-tools.git
cd vim-tools
## Create the virtual environment.
virtualenv html2vimdoc
## Install the dependencies.
html2vimdoc/bin/pip install beautifulsoup coloredlogs markdown
## Run the program.
html2vimdoc/bin/python ./html2vimdoc.py --help
# dropbox
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd
# npm installs
sudo npm install -g write-good
sudo npm install -g alex
sudo npm install -g all-contributors-cli
# gems
sudo gem install gist
# setup node in path
## /usr/bin/env: ‘node’: No such file or directory
sudo ln -s /usr/bin/nodejs /usr/bin/node
# asciinema (https://asciinema.org/) on Ubuntu
sudo apt-add-repository ppa:zanchey/asciinema
sudo apt-get update
sudo apt-get install asciinema
# byzanz (for byzanz-record)
sudo apt install byzanz
# xrectsel (for byzanz screen capture)
## pre-req:
sudo apt-get install dh-autoreconf
cd Downloads/
git clone https://github.com/lolilolicon/xrectsel
cd xrectsel/
./bootstrap
./configure --prefix /usr/local
sudo make install
cd ..
rm -rf xrectsel/