-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.txt
executable file
·130 lines (99 loc) · 3.98 KB
/
packages.txt
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
#/bin/bash
# MOSTLY DEPRECATED
# USE packages.sh FOR A NEW INSTALLATION
#####################
# One Line Installs #
#####################
## copy these line to install all relevant dependencies
# linux
sudo apt-get update && sudo apt-get upgrade && sudo apt install build-essential cmake python3 python3-dev apache2 keychain postgresql
# node/npm
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - && sudo apt install nodejs && sudo npm install -g prettier @fsouza/prettierd gulp-cli
# RINGOJS # TODO: switch to tar version
wget -P ~/tmp/ https://ringojs.org/releases/1.2.1/ringojs_1.2.1_all.deb && sudo apt install ~/tmp/ringojs_1.2.1_all.deb && sudo mkdir /usr/share/ringojs/bin && sudo ringo-admin install http://packages.ringojs.org/download/rp/latest
# git configs
sudo git config --global user.email "[email protected]" && sudo git config --global user.name "Lukas Tillmann" && sudo git config --global core.editor "vim"
##################
# Linux packages #
##################
# install updates
echo "updating and upgrading packages"
sudo apt-get update && sudo apt-get upgrade
# install often needed dependencies
sudo apt-get install build-essential cmake python3 python3-dev
# install apache
echo "installing apache server"
sudo apt-get install apache2
# install keychain to manage ssh-agent keys
# see https://www.funtoo.org/Keychain
# add "eval `keychain --eval --agents ssh id_rsa`" to .bash_profile
sudo apt-get install keychain
# install ripgrep for better searching (check for newer version)
# https://github.com/BurntSushi/ripgrep/releases
sudo apt-get install ripgrep
##############
# VIM / TMUX #
##############
# install vim-plug
# vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# neovim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
# deprecated: use coc instead
# YouCompleteMe Vim Plugin
# - compile (after installing with vundle)
#cd ~/.vim/bundle/YouCompleteMe
#python3 install.py
# install tmux
sudo apt-get install tmux
# install tpm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "Press prefix + I (capital i, as in Install) to fetch the plugins."
# help: install tpm plugins via command line
~/.tmux/plugins/tpm/scripts/install_plugins.sh
##############
# NODE / NPM #
##############
# install nvm and node
echo "installing nvm and node "
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
# export nvm_dir to immediately use nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install node
# install prettier, gulp
sudo npm install -g prettier gulp-cli
########
# JAVA #
########
# install openjdk from apt
sudo apt install default-jre
# install java manually from oracle.com
# download newest java se jdk .tar.gz file
sudo mkdir /usr/local/java
# copy tar file to this folder
sudo tar xzvf jdk-12_linux-x64_bin.tar.gz
# Setup the location of java, javac and javaws
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk-12.0.{x}/bin/java" 1
# check version
# java --version
###########
# RINGOJS #
###########
# download and install RINGOJS
# wget -P ~/tmp/ https://ringojs.org/releases/1.2.1/ringojs_1.2.1_all.deb
# sudo apt install ~/tmp/ringojs_1.2.1_all.deb
# install rp package manager
sudo mkdir /usr/share/ringojs/bin
sudo ringo-admin install http://packages.ringojs.org/download/rp/latest
##############
# GIT CONFIG #
##############
# set up base info:
git config --global user.name "Lukas Tillmann"
git config --global user.email "[email protected]"
git config --global core.editor "vim"
# alias lg
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"