Repository navigation
Expand file tree
/
Copy pathwsl.sh
More file actions
executable file
·133 lines (96 loc) · 2.68 KB
/
Copy pathwsl.sh
File metadata and controls
executable file
·133 lines (96 loc) · 2.68 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
#!/bin/bash
#Development Environment
# apache2
# redis
# mariadb-server
# mongodb
# php
# php-bcmath
# php-common
# php-curl
# php-mbstring
# php-mysql
# php-xml
# php-zip
# nodejs
# Dev Tools
# Neovim
# FZF
# FD
# Ripgrep
# Bat
# System Config
# mysql allow non root access
# Set come color variables so we can make shit look pretty
black="\033[30m"
red="\033[31m"
green="\033[32m"
yellow="\033[33m"
blue="\033[34m"
magenta="\033[35m"
cyan="\033[36m"
white="\033[37m"
reset="\033[0m"
print_color() {
printf "$1$2$reset"
}
heading() {
print_color $yellow "\n\n$1"
}
subheading() {
print_color $cyan "\n\n$1"
}
message() {
printf "\n"
print_color $blue "$1"
}
success() {
printf "\n"
print_color $green "\xE2\x9C\x94 "
print_color $blue "$1"
}
password_prompt=$(printf "\033[1m\033[30mEnter your password\033[0m\n>")
clear
heading "Windows Subsystem For Linux Setup Script"
# sudo -p "$password_prompt" -v
# sudo apt-get update > /dev/null &&
subheading "Development Environment"
# sudo apt-get install -y apache2 > /dev/null &&
success "Apache" &&
# sudo apt-get install -y mysql-server > /dev/null &&
success "MySQL" &&
# sudo apt-get install -y mongodb > /dev/null &&
success "MongoDB" &&
# sudo apt-get install -y php php-bcmath php-common php-curl php-mbstring php-mysql php-xml php-zip > /dev/null &&
success "PHP" &&
subheading "Development Tools"
# sudo apt-add-repository ppa:fish-shell/release-3 > /dev/null &&
# sudo apt install fish > /dev/null &&
success "Fish" &&
# sudo apt-get install -y neovim > /dev/null &&
success "Neovim" &&
# curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - > /dev/null &&
# sudo apt-get install -y nodejs > /dev/null &&
success "Node" &&
# sudo apt-get install fzf > /dev/null &&
success "FZF" &&
# curl -fLo /tmp/fd.deb https://github.com/sharkdp/fd/releases/download/v8.1.1/fd-musl_8.1.1_amd64.deb > /dev/null &&
# sudo dpkg -i /tmp/fd.deb > /dev/null
success "FD" &&
# curl -fLo /tmp/ripgrep.deb https://github.com/BurntSushi/ripgrep/releases/download/12.1.1/ripgrep_12.1.1_amd64.deb > /dev/null &&
# sudo dpkg -i /tmp/ripgrep.deb > /dev/null &&
success "Ripgrep" &&
# curl -fLo /tmp/bat.deb https://github.com/sharkdp/bat/releases/download/v0.15.4/bat-musl_0.15.4_amd64.deb > /dev/null &&
# sudo dpkg -i /tmp/bat.deb > /dev/null &&
success "Bat" &&
subheading "Personalising Environment"
# if [ ! -d $HOME/dotfiles ]; then
# git clone git@github.com:deanacus/dotfiles.git $HOME/dotfiles > /dev/null &&
success "Dotfiles cloned"
# fi
# if [ ! -f $HOME/.ssh/id_rsa ]; then
# ssh-keygen -t rsa -b 4096 -C "dean@repeat.gg" -f $HOME/.ssh/id_rsa -P "" > /dev/null &&
success "SSH key generated"
# fi
# clear
heading "Setup complete"