-
Notifications
You must be signed in to change notification settings - Fork 1
/
manjaro-setup.sh
76 lines (62 loc) · 2 KB
/
manjaro-setup.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
sudo pacman -Syu;\
sudo pacman -S zsh vim code;
#oh-my-zsh
cd ~; \
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#install apache
sudo pacman -S apache;\
sudo systemctl enable httpd;\
sudo systemctl restart httpd;
####
# root dir sudo /srv/http/
#
# restart apache > sudo systemctl restart httpd
####
###
# virtual hosts
#
# https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-arch-linux
##
#install Mysql (MariaDB)
sudo pacman -S mysql;\
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql;\
sudo systemctl enable mysqld;\
sudo systemctl start mysqld;
#install Php
sudo pacman -S php php-apache
####
# open php config file
# > sudo vim /etc/httpd/conf/httpd.conf
#
# Comment this line:
# #LoadModule mpm_event_module modules/mod_mpm_event.so
#
# Copy and paste these lines to the bottom of the httpd.conf file:
#
# LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
# LoadModule php7_module modules/libphp7.so
# AddHandler php7-script php
# Include conf/extra/php7_module.conf
#
####
sudo pacman -S php-apache php-cgi php-fpm php-gd php-embed php-gd php-intl php-imap php-redis php-snmp php-gd php-imap php-intl;
# > https://wiki.archlinux.org/index.php/PHP#gd
# Install composer
sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer --version=1.10.17;
# Drush install latest (9.x)
sudo git clone https://github.com/drush-ops/drush.git /usr/local/src/drush;\
cd /usr/local/src/drush;\
sudo git checkout 9.7.2;\
sudo ln -s /usr/local/src/drush/drush /usr/bin/drush;\
sudo composer install;\
sudo chown -R $(whoami) /usr/local/src/drush;\
sudo chmod -R 777 /usr/local/src/drush;\
git config core.fileMode false;
#Docker
sudo pacman -S docker;\
sudo systemctl start docker.service;\
sudo systemctl enable docker.service;\
sudo usermod -aG docker $USER;
#lando
wget https://files.devwithlando.io/lando-stable.pacman;\
sudo pacman -U lando-stable.pacman;