Skip to content

Instantly share code, notes, and snippets.

@adowning
adowning / ubuntu setup
Last active January 27, 2020 12:19 — forked from surajreddy6/ubuntu_install.sh
Setting up dev environment on a fresh install of Ubuntu 18.04 LTS
#/!bin/bash
# update
apt update
# apt -y upgrade
adduser ash
usermod -aG ash
# install package management tools
@mosquito
mosquito / README.md
Last active November 11, 2025 15:34
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@insane-dev
insane-dev / install.sh
Last active December 8, 2019 16:09
Lemp stack for Ubuntu 16.04 (PHP7, Nginx, MySql, MongoDB, PhpMyAdmin, Git, Node.js, Bower, Gulp, Docker, Composer(with asset plugin), Dnsmasq)
#!/bin/bash
echo "Please, enter your username, it will be added to 'sudo' and 'docker' groups during the process."
read USERNAME
if [ -z "$USERNAME" ] ; then
echo "Exiting... Done."
exit
else
echo "Adding user to 'sudo' group..."