Skip to content

Instantly share code, notes, and snippets.

@xemoe
Last active April 1, 2022 10:47
Show Gist options
  • Save xemoe/2a22ebcc18e5bdcca536d83b2c19f93c to your computer and use it in GitHub Desktop.
Save xemoe/2a22ebcc18e5bdcca536d83b2c19f93c to your computer and use it in GitHub Desktop.
urd setup

setup dotfiles

sudo apt-get update
sudo apt-get install git
sudo locale-gen
sudo dpkg-reconfigure locales
git clone https://gist.github.com/675e0a9251a294537b9c.git dotfiles_setup
cd ./dotfiles_setup
./main.sh --pkg=common --user=srandev install
chsh -s /bin/zsh

setup ansible

git clone https://xemoe@bitbucket.org/xemoe/urd_ansible.git

-- ubuntu 16.04 --
sudo ./ubuntu_install_ansible.sh

-- debian --
sudo ./debian_install_ansible.sh

sudo pip2 install -U pyOpenSSL

setup web

ansible-playbook -i "localhost," -c local prepare.yml
ansible-playbook -i "localhost," -c local server.yml
ansible-playbook -i "localhost," -c local vendor.yml

sudo aptitude install apache2 libapache2-mod-php7.1 php7.1-bcmath php7.1-xml

upgrade nodejs

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
# vim: set filetype=apache:
# vim: syntax=apache
<VirtualHost *:80>
ServerName urd.testing
ServerAlias http_urd
ServerAdmin teerapong.l@gbtech.co.th
DocumentRoot /var/www/urd_web/public
<Directory /var/www/urd_web/public>
Options -Indexes -Includes +FollowSymLinks +MultiViews
Require all granted
AllowOverride All
Order allow,deny
allow from all
</Directory>
ServerSignature Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine On
RewriteCond %{THE_REQUEST} !HTTP/1.1$
RewriteRule .* - [F]
</VirtualHost>
@xemoe
Copy link
Author

xemoe commented Nov 23, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment