This project aims at setting up a your computer in an automated fashion. This started in for just linux but now has evolved into a solution for Windows WSL, MacOs and Linux. In all the solutions it has support for docker based applications and can support GUI Docker images.
Linux Supprt: Debian/Ubuntu/Arch Linux, Support GNOME 3/i3 desktop Windows WSL: Tested with Ubuntu WSL 2 MacOS: Mojave
These instructions will get you a copy of the project up and running on your local machine. The project contains a /testvm directory that will help you setup this project for testing and/or working out of a virtualbox vm.
- su to root
- Install sudo `apt-get install sudo
- Install ansible
apt-get install ansible
- Install git
apt-get install git
- Add your user to sudo group
usermod -aG sudo username
- Add your user to /etc/sudoers to make it so they don't have a pasword to sudo. Add the following
username ALL=(ALL) NOPASSWD: ALL
- You will need to install ansible > 2.7. On debian the default repo has an older version of ansible that will not work with the custom_role feature. If you want this feature you will need to install a newer feature. I tested it on 2.7.9.
- Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install ansible
brew install ansible
- If you are running on a M series chip run softwareupdate --install-rosetta to allow backward comptability to intel
- su to root
sudo su
- Add your user to /etc/sudoers to make it so they don't have a pasword to sudo. Add the following
username ALL=(ALL) NOPASSWD: ALL
- install vmware tools:
sudo apt-get install open-vm-tools
- install vmsare tools desktop:
sudo apt-get install open-vm-tools-desktop
- reboot
- git clone this repo:
git clone https://github.com/gschaetz/mousehat.git
- Use the built in settings to start or build your own off of mousehat/ansible/desktop-ansible/settings
- Run the desktop setup config. If you want to supply your own application setting files use the -s flag.
For Non-WSL:
./runplay.sh
./runplay.sh -s /mysettings
For WSL:
./runplay.sh -w
./runplay.sh -s /mysettings -w
- if you use my settings the ansible repo setup will have to ran twice. The first time will fail. Ignore and re-run.
- Again if you are running mine the ansible will fail on the custom role. After it runs do the following:
sudo apt-get upgrade ansible
. Then rerun the ansible. - reboot the machine to see all the changes and start docker
- Ansible - The automation framework used
This project is licensed under the MIT License - see the LICENSE.MD file for details