ubuntu-webdev-setup
ubuntu-webdev-setup copied to clipboard
A file that documents the setting up of my linux VM for web development.
Setting up my linux machine for web development
Todos
- [x] Update apt-get
- [x] Install curl & other essentials
- [x] Install Google Chrome
- [x] Download Node Version Manager
- [x] Install Node LTS version & Latest
- [x] Install Git
- [x] Setup Git SSH
- [x] Install VScode
- [x] VScode theme
- [x] VScode settings
- [x] VScode extensions
- [x] Live sass compiler
- [x] Prettier
- [x] Vetur
- [x] vscode-icons
- [x] Install lite-server
- [x] Install MongoDB & run as service
Commands
-
sudo apt-get update -
sudo apt-get install curl build-essential libssl-dev -
curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb -
curl https://raw.githubusercontent.com/creationix/nvm/v0.35.0/install.sh | bash
source ~/.profile -
nvm install node
nvm install --lts
nvm use --lts -
sudo apt-get install git-core
git config --global user.name "Eckhardt-D"
git config --global user.email "[email protected]" -
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa -
sudo snap install code --classic -
npm i -g lite-server -
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
sudo apt-get update
sudo apt-get install -y mongodb
sudo nano /etc/systemd/system/mongodb.servicecopy the following into file:
#Unit contains the dependencies to be satisfied before the service is started. [Unit] Description=MongoDB Database After=network.target Documentation=https://docs.mongodb.org/manual # Service tells systemd, how the service should be started. # Key `User` specifies that the server will run under the mongodb user and # `ExecStart` defines the startup command for MongoDB server. [Service] User=mongodb Group=mongodb ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf # Install tells systemd when the service should be automatically started. # `multi-user.target` means the server will be automatically started during boot. [Install] WantedBy=multi-user.targetsystemctl daemon-reload
sudo systemctl start mongodbcheck if running
sudo systemctl status mongodbrun mongo on startup
sudo systemctl enable mongodbcreate user
mongo -u admin -p <password> --authenticationDatabase admin