└── readme.md /readme.md: -------------------------------------------------------------------------------- 1 | # Setting up my linux machine for web development 2 | 3 | ### Todos 4 | 5 | - [x] Update apt-get 6 | - [x] Install curl & other essentials 7 | - [x] Install Google Chrome 8 | - [x] Download Node Version Manager 9 | - [x] Install Node LTS version & Latest 10 | - [x] Install Git 11 | - [x] Setup Git SSH 12 | - [x] Install VScode 13 | - [x] VScode theme 14 | - [x] VScode settings 15 | - [x] VScode extensions 16 | - [x] Live sass compiler 17 | - [x] Prettier 18 | - [x] Vetur 19 | - [x] vscode-icons 20 | - [x] Install lite-server 21 | - [x] Install MongoDB & run as service 22 | 23 | ### Commands 24 | 25 | 1. `sudo apt-get update` 26 | 27 | 2. `sudo apt-get install curl build-essential libssl-dev` 28 | 29 | 3. `curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb`\ 30 | `sudo dpkg -i google-chrome-stable_current_amd64.deb` 31 | 32 | 4. `curl https://raw.githubusercontent.com/creationix/nvm/v0.35.0/install.sh | bash`\ 33 | `source ~/.profile` 34 | 35 | 5. `nvm install node`\ 36 | `nvm install --lts`\ 37 | `nvm use --lts` 38 | 39 | 6. `sudo apt-get install git-core`\ 40 | `git config --global user.name "Eckhardt-D"`\ 41 | `git config --global user.email "eckhardt.dreyer@gmail.com"` 42 | 43 | 7. `ssh-keygen -t rsa -b 4096 -C "eckhardt.dreyer@gmail.com"`\ 44 | `eval "$(ssh-agent -s)"`\ 45 | `ssh-add ~/.ssh/id_rsa` 46 | 47 | 8. `sudo snap install code --classic` 48 | 49 | 12. `npm i -g lite-server` 50 | 51 | 13. `sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10`\ 52 | `sudo apt-get update`\ 53 | `sudo apt-get install -y mongodb`\ 54 | `sudo nano /etc/systemd/system/mongodb.service` 55 | 56 | 57 | copy the following into file: 58 | 59 | ```bash 60 | #Unit contains the dependencies to be satisfied before the service is started. 61 | [Unit] 62 | Description=MongoDB Database 63 | After=network.target 64 | Documentation=https://docs.mongodb.org/manual 65 | # Service tells systemd, how the service should be started. 66 | # Key `User` specifies that the server will run under the mongodb user and 67 | # `ExecStart` defines the startup command for MongoDB server. 68 | [Service] 69 | User=mongodb 70 | Group=mongodb 71 | ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf 72 | # Install tells systemd when the service should be automatically started. 73 | # `multi-user.target` means the server will be automatically started during boot. 74 | [Install] 75 | WantedBy=multi-user.target 76 | ``` 77 | 78 | `systemctl daemon-reload`\ 79 | `sudo systemctl start mongodb` 80 | 81 | check if running 82 | `sudo systemctl status mongodb` 83 | 84 | run mongo on startup 85 | `sudo systemctl enable mongodb` 86 | 87 | create user 88 | `mongo -u admin -p --authenticationDatabase admin` 89 | --------------------------------------------------------------------------------