-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_dev.sh
executable file
·70 lines (55 loc) · 2.63 KB
/
setup_dev.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
#!/bin/sh
# setup Brew
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-homebrew-on-linux
cd ~/Downloads
sudo apt install build-essential
curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
/bin/bash install.sh
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /home/leslie/.zprofile
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/leslie/.zprofile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# remember to add to the path.. see output of install script
brew doctor
cd ~
# remove Apache
sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get --purge autoremove
sudo apt update && sudo apt upgrade
echo "Setup PHP..."
# https://tecadmin.net/how-to-install-php-on-ubuntu-22-04/
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https unzip
sudo apt install -y software-properties-common
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.1 -y
sudo apt install php8.1-common php8.1-gd php8.1-opcache php8.1-cli php8.1-bz2 php8.1-fpm php8.1-curl php8.1-intl php8.1-bcmath php8.1-redis php8.1-mbstring php8.1-zip php8.1-mysql php8.1-readline php8.1-xml php8.1-sqlite3 php8.1-xdebug php8.1-sqlite3 php-sqlite3 openssl -y
# sudo apt install php7.3 -y
# sudo apt install php7.3-common php7.3-gd php7.3-opcache php7.3-cli php7.3-bz2 php7.3-fpm php7.3-curl php7.3-intl php7.3-bcmath php7.3-redis php7.3-mbstring php7.3-zip php7.3-mysql php7.3-readline php7.3-xml php7.3-sqlite3 php7.3-xdebug php7.3-sqlite3 php-sqlite3 openssl -y
echo "Setting up composer..."
cd ~
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
HASH=`curl -sS https://composer.github.io/installer.sig`
echo $HASH
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
echo "Install Valet..."
cd ~
sudo apt-get install -y xsel libnss3-tools
composer global require cpriego/valet-linux
php -m
php -m | grep sqlite
php -v
cd ~
echo "Select PHP Version..."
update-alternatives --config php
valet install
# Isntall DB Beaver
sudo apt -y install default-jdk
java -version
curl -fsSL https://dbeaver.io/debs/dbeaver.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/dbeaver.gpg
echo "deb https://dbeaver.io/debs/dbeaver-ce /" | sudo tee /etc/apt/sources.list.d/dbeaver.list
sudo apt update
sudo apt install dbeaver-ce
apt policy dbeaver-ce
# sudo apt remove php8.1-*