Repository navigation
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·421 lines (357 loc) · 13.8 KB
/
Copy pathinit.sh
File metadata and controls
executable file
·421 lines (357 loc) · 13.8 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
#!/usr/bin/env bash
#
# d8b d8b 888 888
# Y8P Y8P 888 888
# 888 888
# 888 88888b. 888 888888 .d8888b 88888b.
# 888 888 "88b 888 888 88K 888 "88b
# 888 888 888 888 888 "Y8888b. 888 888
# 888 888 888 888 Y88b. d8b X88 888 888
# 888 888 888 888 "Y888 Y8P 88888P' 888 888
#
# -------------------------------------------------------------------------
# Version: 0.1
# File: init.sh
# Source: https://github.com/devpunks
# Author: Ahmid-Ra (github.com/snuggs)
# Maintainer: devPunks <https://github.com/devpunks>
# Description: Init install script
# -------------------------------------------------------------------------
#
# `http://freedesktop.org
#
#==========================================================================
# Docker ------------------------------------------------------------------
# - https://docs.docker.com/engine/security/userns-remap
# - https://stackoverflow.com/q/68155641/should-i-run-things-inside-a-docker-container-as-non-root-for-safety
pkg upgrade && pkg update
pkg install apt-file
pkg install util-linux # https://en.wikipedia.org/wiki/Util-linux
pkg install pkg-config # https://en.m.wikipedia.org/wiki/Pkg-config
pkg install mount-utils
pkg install bash-completion
# {{{ Dependencies --------------------------------------------------------
pkg install make
pkg install cmake
pkg install libtool
pkg install autoconf
pkg install automake
pkg install readline
# }}}
# {{{ Termux --------------------------------------------------------------
# https://github.com/YurinDoctrine/termux-essentials/blob/main/termux-essentials.sh
termux-open "${HOME}/.termux/Termux_Boot_0.7.apk"
pkg install termux-services
pkg install termux-auth
pkg install termux-api
termux-setup-storage
termux-info
# }}}
# {{{ Shell ---------------------------------------------------------------
pkg install bc
pkg install pv # progress
pkg install bat # Improved cat https://github.com/sharkdp/bat
pkg install man
pkg install eza
pkg install git
pkg install tmux
pkg install entr # http://eradman.com/entrproject
pkg install wget
pkg install most
pkg install lynx
pkg install tree
pkg install ncdu
pkg install htop
pkg install which
pkg install chrony
pkg install getconf # https://linux.die.net/man/1/getconf
pkg install multitail
pkg install shellcheck
pkg install uuid-utils # uuidgen
pkg install bash-completion
# Graphics, Fonts, Dialog boxes
# https://en.wikibooks.org/wiki/Bash_Shell_Scripting/Whiptail
pkg install whiptail # https://pagure.io/newt
# pkg install dialog # https://invisible-island.net/dialog
# pkg install expect
pkg install ncurses
pkg install ncurses-utils
pkg install figlet
pkg install barcode
pkg install cmatrix
pkg install busybox # http://busybox.net/downloads
pkg install no-more-secrets # https://github.com/bartobri/no-more-secrets
# }}}
# {{{ Jobs -------------------------------------------------------------
pkg install runit # http://smarden.org/runit
pkg install cronie
# }}}
# {{{ Archive -------------------------------------------------------------
pkg install tar
pkg install zip
pkg install gzip
pkg install liblzma
pkg install zlib libzlib
pkg install zstd # https://github.com/facebook/zstd
pkg install p7zip
pkg install unrar
pkg install unzip
pkg install rsync
pkg install brotli
pkg install zopfli
pkg install logrotate
# }}}
# {{{ Security ------------------------------------------------------------
pkg install pass # https://passwordstore.org
pkg install tsu # https://pypi.org/project/tsu
pkg install proot # https://wiki.termux.com/wiki/PRoot
pkg install whois # mkpasswd
pkg install gnupg # https://gnupg.org
pkg install strace # https://man7.org/linux/man-pages/man1/strace.1.html
pkg install argon2 # https://en.m.wikipedia.org/wiki/Argon2
pkg install scrypt # https://tarsnap.com/scrypt.html
pkg install openssl openssl-tool # https://openssl.org
pkg install openssh # https://openssh.com/manual.html
pkg install sharutils # https://gnu.org/software/sharutils
echo Cloning Authorized Keys from...
# TODO: use readline to get username
# https://blog.prabir.me/posts/allow-github-username-to-ssh-authorized-keys
mkdir --verbose -m 700 ~/.ssh
curl --location=https://github.com/snuggs.keys >> ~/.ssh/authorized_keys
# }}}
# {{{ Networking ----------------------------------------------------------
# TODO: deprecate ifconfig and netstat
# - https://redhat.com/sysadmin/ifconfig-vs-ip
# - https://wiki.linuxfoundation.org/networking/iproute2
# - https://github.com/termux/termux-packages/issues/12758
pkg install iproute2 # ip addr instad of ifconfig -a
pkg install net-tools # https://net-tools.sourceforge.io
pkg install traceroute # https://linux.die.net/man/8/traceroute
pkg install tracepath # https://linux.die.net/man/8/tracepath
# NMAP
# - https://upguard.com/blog/how-to-use-nmap
# - https://redhat.com/sysadmin/use-cases-nmap
# - https://freecodecamp.org/news/what-is-nmap-and-how-to-use-it-a-tutorial-for-the-greatest-scanning-tool-of-all-time
pkg install nmap
pkg install socat
pkg install dnsutils # Installs BIND for nslookup dig
pkg install netcat-openbsd
pkg install nginx
pkg install apache2 # https://httpd.apache.org/docs
pkg install lighttpd # https://lighttpd.net
pkg install tinyproxy # https://tinyproxy.github.io
# }}}
# {{{ Programming ---------------------------------------------------------
pkg install jq
pkg install vim
pkg install tidy
pkg install libyaml
pkg install libxml2
pkg install libxslt
pkg install libiconv
# pkg install gcc # C Compiler
pkg install tcc # tiny C Compiler https://bellard.org/tcc
pkg install libllvm clang # clang # https://clang.llvm.org
pkg install golang
pkg install nodejs-lts
npm install -g npm@latest
npm install -g blessed
pkg install python
pkg install python-pip
pkg install python-numpy
pkg install php # PHP
pkg install php-fpm # FastCGI Process Manager
pkg install php-pgsql # PostgreSQL Modules
pkg install php-redis # Redis Interface
pkg install php-apache # Apache 2.0 Handler Module
pkg install php-apache-pgsql # PostgreSQL modules for PHP/Apache 2.0
# https://stackoverflow.com/q/57538555
# https://gist.github.com/lnfel/d84ead4b914fd3e4e7897537d8f61535
# https://linkedin.com/pulse/installing-running-ruby-rails-7-android-antonio-nesic
# $$$$ https://honeyryderchuck.gitlab.io/2022/10/03/how-to-bundle-production-mode-in-docker.html
export PATH=$PATH # Must set PATH to prevent Nil split error
pkg install ruby # https://wiki.termux.com/wiki/Ruby
pkg install libffi
pkg install binutils
pkg install gumbo-parser
gem update --system && gem environment
# https://github.com/termux/termux-packages/discussions/8583
bundle config set force_ruby_platform true
# https://github.com/termux/termux-packages/issues/1940
gem install libxml-ruby
# https://freedesktop.org/wiki/Software/pkg-config
gem install pkg-config
# RVM on termux - https://github.com/rvm/rvm/issues/4734
pkg install build-essential # Ruby HEAVY!!!! (600+Mb)
# https://github.com/sparklemotion/nokogiri/issues/1739
# https://github.com/sparklemotion/nokogiri/issues/1884
# https://nokogiri.org/tutorials/installing_nokogiri.html#termux
# Installing Rails (Nokogiri) https://github.com/termux/termux-packages/discussions/8855
# https://nokogiri.org/tutorials/installing_nokogiri.html#why-would-i-not-want-to-use-a-native-gem
# $$$$ Set PATH fixes most ENV['PATH'] errors
PATH=$PATH gem install nokogiri --platform=ruby -- --use-system-libraries
PATH=$PATH gem install sqlite3 && gem info sqlite3
PATH=$PATH [ -e Gemfile ] && bundle
PATH=$PATH gem install rubygems-server && gem server & open http://localhost:8808
pkg install cscope # https://cscope.sourceforge.net
PATH=$PATH gem install starscope # https://github.com/eapache/starscope
# tags https://github.com/universal-ctags/ctags
[[ $( uname -s ) =~ Darwin ]] \
&& pkg install universal-ctags
[[ $( uname -s ) =~ Linux ]] \
&& pkg install ctags
# }}}
# {{{ Database ------------------------------------------------------------
pkg install redis
pkg install sqlite
pkg install postgis
pkg install postgresql
pkg install unixodbc
[[ $( uname-s ) =~ Darwin ]] \
&& brew install libpq
# TODO: Install pgvector - https://github.com/pgvector
# }}}
# {{{ Communications ------------------------------------------------------
pkg install weechat
# MAIL CLIENTS - https://reddit.com/r/commandline/comments/p36vp0
# - https://meli-email.org
# - https://github.com/neomutt/neomutt
# - https://github.com/lukesmithxyz/mutt-wizard
# - https://mailutils.org/manual/html_section/mail.html
# - https://bence.ferdinandy.com/2023/07/20/email-in-the-terminal-a-complete-guide-to-the-unix-way-of-email
# - https://chiraag.me/blog/2019/08/21/managing-multiple-email-accounts-with-mutt-and-fetchmail
pkg install mutt
pkg install mailutils
pkg install fetchmail # https://fetchmail.info
# https://tug.org/levels.html
# https://en.m.wikipedia.org/wiki/Texinfo
# https://gnu.org/software/texinfo/manual/texinfo/texinfo.html
# https://tex.stackexchange.com/q/49/what-is-the-difference-between-tex-and-latex
pkg install texinfo
# }}}
# {{{ Multimedia ----------------------------------------------------------
pkg install sox
pkg install vlc
pkg install pngquant # $$ https://pngquant.org
pkg install exiftool
pkg install optipng # TODO: (Deprecate in lieu of pngquant) - https://optipng.sourceforge.net
pkg install jpegoptim # https://man.archlinux.org/man/extra/jpegoptim/jpegoptim.1.en
# --no-install-recommends disables installing ImageMagick
pkg install libvips --no-install-recommends --fix-missing # https://github.com/libvips/libvips
pkg install ffmpeg
pkg install graphviz
pkg install asciinema
pkg install youtubedr
echo TODO: Install yt-dlp https://github.com/yt-dlp/yt-dlp
# }}}
# {{{ Submodules ----------------------------------------------------------
echo Git Settings...
# https://stackoverflow.com/q/49500943/what-is-git-rerere-and-how-does-it-work
git config --global rerere.enabled true
git config --global submodule.recurse true
git config --global status.submoduleSummary true # Add submodules to git summary
echo Cloning home directory...
# git clone --recurse-submodules https://github.com/devpunks/.files.git $HOME
git status
# Submodules
# - https://stackoverflow.com/q/10666085
# - https://github.blog/2016-02-01-working-with-submodules
echo Cloning submodules...
# https://github.com/mhinz/vim-startify
# https://github.com/obcat/vim-sclow
# https://github.com/lornix/vim-scrollbar
# https://github.com/preservim/nerdtree
# https://github.com/Xuyuanp/nerdtree-git-plugin
# https://github.com/lambdalisue/vim-fern
# https://github.com/lambdalisue/vim-fern-bookmark
# https://github.com/lambdalisue/vim-fern-git-status
#
# https://github.com/chr4/nginx
# https://github.com/chrisbra/csv.vim
# https://github.com/othree/html5.vim
# https://github.com/preservim/vim-markdown
# https://github.com/hail2u/vim-css3-syntax
# https://github.com/ejholmes/vim-forcedotcom # APEX
# https://github.com/pangloss/vim-javascript
# https://github.com/vim-ruby/vim-ruby
# https://github.com/tpope/vim-rails
# https://github.com/sunaku/vim-ruby-minitest
# https://github.com/vim-test/vim-test
# https://github.com/tpope/vim-endwise
# https://github.com/alvan/vim-closetag
# https://github.com/tpope/vim-surround
# https://github.com/vim-scripts/ZoomWin
# https://github.com/tpope/vim-commentary
# https://github.com/kshenoy/vim-signature
# https://github.com/airblade/vim-gitgutter
# https://github.com/Asheq/close-buffers.vim
# https://github.com/preservim/vim-indent-guides
# https://github.com/ntpeters/vim-better-whitespace
# https://github.com/Raimondi/delimitMate # quotes, parenthesis, brackets
# Telesense (auto completion) -----------------
# https://github.com/yegappan/taglist
# https://github.com/preservim/tagbar # See ctags
# https://github.com/ludovicchabant/vim-gutentags # See ctags
# https://github.com/ctrlpvim/ctrlp.vim
# https://github.com/tacahiroy/ctrlp-funky
# https://github.com/ivalkeen/vim-ctrlp-tjump
# https://github.com/SirVer/ultisnips
# https://github.com/honza/vim-snippets
# https://github.com/alvan/vim-indexer
# https://github.com/lifepillar/vim-mucomplete
# https://github.com/prabirshrestha/async.vim
# https://github.com/skywind3000/asyncrun.vim
# https://github.com/prabirshrestha/asyncomplete.vim
# https://github.com/prabirshrestha/asyncomplete-file.vim
# https://github.com/prabirshrestha/asyncomplete-tags.vim
# https://github.com/prabirshrestha/asyncomplete-emoji.vim
# https://github.com/prabirshrestha/asyncomplete-buffer.vim
# https://github.com/prabirshrestha/asyncomplete-ultisnips.vim
# LSP (Language Server Protocols) --------------
# https://github.com/rhysd/vim-healthcheck
# https://github.com/prabirshrestha/vim-lsp
# https://github.com/mattn/vim-lsp-settings
# https://github.com/thomasfaingnaert/vim-lsp-snippets
# https://github.com/thomasfaingnaert/vim-lsp-ultisnips
# https://github.com/prabirshrestha/asyncomplete-lsp.vim
#
# https://github.com/neoclide/coc.nvim
# https://github.com/dense-analysis/ale
# https://github.com/rhysd/vim-lsp-ale
# https://github.com/andreypopp/asyncomplete-ale.vim
# LS (Language Servers) ------------------------
# https://github.com/bash-lsp/bash-language-server
npm install -g bash-language-server
git submodule
git submodule update --init --recursive
# }}}
# {{{ Versioning ----------------------------------------------------------
tmux -V
git --version
vim --version
pip list
pip --version
python --version
go version
gem environment
gem --version
ruby --version
npm --version
node --version
vlc --version
ffmpeg -version
# }}}
# Homebrew information
[[ $( uname-s ) =~ Darwin ]]
\ && brew config
\ && brew services list
# Enable Side Mouse Buttons
[[ $( uname-s ) =~ Darwin ]]
\ && brew install --cask sanesidebuttons
\ && open 'https://github.com/thealpa/SaneSideButtons#automatic-launch'
# List Installed Packages
[[ $( uname-s ) =~ Linux ]]
\ && pkg list --installed
echo 'devPunks😈studio init.sh'
echo
# vim: foldmethod=marker