Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- steps
- create new VPS
- 512 MB RAM
- 1 CPU
- 20 GB storage
- Ubuntu 16.04.2 X64
- login as root
- # adduser chris
- # adduser chris sudo
- # su - chris
- chris@democracyos:~$ sudo apt update
- ---begin output---
- [sudo] password for chris:
- Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
- Get:2 http://security.ubuntu.com/ubuntu xenial-security/main Sources [72.5 kB]
- Get:3 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,600 B]
- Get:4 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [28.0 kB]
- Get:5 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,144 B]
- Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [268 kB]
- Get:7 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [113 kB]
- Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [115 kB]
- Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [59.8 kB]
- Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2,752 B]
- Get:11 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,232 B]
- Hit:12 http://mirrors.digitalocean.com/ubuntu xenial InRelease
- Get:13 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease [102 kB]
- Get:14 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease [102 kB]
- Get:15 http://mirrors.digitalocean.com/ubuntu xenial/main Sources [868 kB]
- Get:16 http://mirrors.digitalocean.com/ubuntu xenial/restricted Sources [4,808 B]
- Get:17 http://mirrors.digitalocean.com/ubuntu xenial/universe Sources [7,728 kB]
- Get:18 http://mirrors.digitalocean.com/ubuntu xenial/multiverse Sources [179 kB]
- Get:19 http://mirrors.digitalocean.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
- Get:20 http://mirrors.digitalocean.com/ubuntu xenial/universe Translation-en [4,354 kB]
- Get:21 http://mirrors.digitalocean.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
- Get:22 http://mirrors.digitalocean.com/ubuntu xenial/multiverse Translation-en [106 kB]
- Get:23 http://mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [251 kB]
- Get:24 http://mirrors.digitalocean.com/ubuntu xenial-updates/restricted Sources [2,996 B]
- Get:25 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [155 kB]
- Get:26 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [5,672 B]
- Get:27 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [543 kB]
- Get:28 http://mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [220 kB]
- Get:29 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [469 kB]
- Get:30 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [185 kB]
- Get:31 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [8,928 B]
- Get:32 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Translation-en [4,460 B]
- Get:33 http://mirrors.digitalocean.com/ubuntu xenial-backports/main Sources [3,304 B]
- Get:34 http://mirrors.digitalocean.com/ubuntu xenial-backports/universe Sources [4,036 B]
- Get:35 http://mirrors.digitalocean.com/ubuntu xenial-backports/main amd64 Packages [4,684 B]
- Get:36 http://mirrors.digitalocean.com/ubuntu xenial-backports/main Translation-en [3,216 B]
- Get:37 http://mirrors.digitalocean.com/ubuntu xenial-backports/universe amd64 Packages [5,616 B]
- Get:38 http://mirrors.digitalocean.com/ubuntu xenial-backports/universe Translation-en [2,872 B]
- Fetched 23.8 MB in 15s (1,500 kB/s)
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- 16 packages can be upgraded. Run 'apt list --upgradable' to see them.
- ---end output---
- chris@democracyos:~$ sudo apt upgrade
- ---begin output---
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- Calculating upgrade... Done
- The following packages have been kept back:
- cloud-init
- The following packages will be upgraded:
- apport bash cloud-initramfs-copymods cloud-initramfs-dyn-netconf grub-legacy-ec2 iproute2 login overlayroot passwd python3-apport python3-problem-report
- python3-software-properties software-properties-common uidmap unattended-upgrades
- 15 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
- Need to get 2,577 kB of archives.
- After this operation, 0 B of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 bash amd64 4.3-14ubuntu1.2 [583 kB]
- Get:2 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 login amd64 1:4.2-3.1ubuntu5.3 [304 kB]
- Get:3 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 passwd amd64 1:4.2-3.1ubuntu5.3 [779 kB]
- Get:4 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 iproute2 amd64 4.3.0-1ubuntu3.16.04.1 [522 kB]
- Get:5 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python3-problem-report all 2.20.1-0ubuntu2.6 [9,984 B]
- Get:6 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python3-apport all 2.20.1-0ubuntu2.6 [79.6 kB]
- Get:7 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 apport all 2.20.1-0ubuntu2.6 [120 kB]
- Get:8 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.7 [9,452 B]
- Get:9 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.7 [20.3 kB]
- Get:10 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 uidmap amd64 1:4.2-3.1ubuntu5.3 [64.8 kB]
- Get:11 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 unattended-upgrades all 0.90ubuntu0.6 [32.9 kB]
- Get:12 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 cloud-initramfs-copymods all 0.27ubuntu1.4 [4,202 B]
- Get:13 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 cloud-initramfs-dyn-netconf all 0.27ubuntu1.4 [6,756 B]
- Get:14 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 grub-legacy-ec2 all 0.7.9-113-g513e99e0-0ubuntu1~16.04.1 [26.3 kB]
- Get:15 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 overlayroot all 0.27ubuntu1.4 [15.4 kB]
- Fetched 2,577 kB in 1s (1,564 kB/s)
- Preconfiguring packages ...
- (Reading database ... 53888 files and directories currently installed.)
- Preparing to unpack .../bash_4.3-14ubuntu1.2_amd64.deb ...
- Unpacking bash (4.3-14ubuntu1.2) over (4.3-14ubuntu1.1) ...
- Processing triggers for install-info (6.1.0.dfsg.1-5) ...
- Processing triggers for man-db (2.7.5-1) ...
- Setting up bash (4.3-14ubuntu1.2) ...
- update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
- (Reading database ... 53888 files and directories currently installed.)
- Preparing to unpack .../login_1%3a4.2-3.1ubuntu5.3_amd64.deb ...
- Unpacking login (1:4.2-3.1ubuntu5.3) over (1:4.2-3.1ubuntu5.2) ...
- Processing triggers for man-db (2.7.5-1) ...
- Setting up login (1:4.2-3.1ubuntu5.3) ...
- (Reading database ... 53888 files and directories currently installed.)
- Preparing to unpack .../passwd_1%3a4.2-3.1ubuntu5.3_amd64.deb ...
- Unpacking passwd (1:4.2-3.1ubuntu5.3) over (1:4.2-3.1ubuntu5.2) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- Processing triggers for man-db (2.7.5-1) ...
- Setting up passwd (1:4.2-3.1ubuntu5.3) ...
- (Reading database ... 53888 files and directories currently installed.)
- Preparing to unpack .../iproute2_4.3.0-1ubuntu3.16.04.1_amd64.deb ...
- Unpacking iproute2 (4.3.0-1ubuntu3.16.04.1) over (4.3.0-1ubuntu3) ...
- Preparing to unpack .../python3-problem-report_2.20.1-0ubuntu2.6_all.deb ...
- Unpacking python3-problem-report (2.20.1-0ubuntu2.6) over (2.20.1-0ubuntu2.5) ...
- Preparing to unpack .../python3-apport_2.20.1-0ubuntu2.6_all.deb ...
- Unpacking python3-apport (2.20.1-0ubuntu2.6) over (2.20.1-0ubuntu2.5) ...
- Preparing to unpack .../apport_2.20.1-0ubuntu2.6_all.deb ...
- Unpacking apport (2.20.1-0ubuntu2.6) over (2.20.1-0ubuntu2.5) ...
- Preparing to unpack .../software-properties-common_0.96.20.7_all.deb ...
- Unpacking software-properties-common (0.96.20.7) over (0.96.20.6) ...
- Preparing to unpack .../python3-software-properties_0.96.20.7_all.deb ...
- Unpacking python3-software-properties (0.96.20.7) over (0.96.20.6) ...
- Preparing to unpack .../uidmap_1%3a4.2-3.1ubuntu5.3_amd64.deb ...
- Unpacking uidmap (1:4.2-3.1ubuntu5.3) over (1:4.2-3.1ubuntu5.2) ...
- Preparing to unpack .../unattended-upgrades_0.90ubuntu0.6_all.deb ...
- Unpacking unattended-upgrades (0.90ubuntu0.6) over (0.90ubuntu0.5) ...
- Preparing to unpack .../cloud-initramfs-copymods_0.27ubuntu1.4_all.deb ...
- Unpacking cloud-initramfs-copymods (0.27ubuntu1.4) over (0.27ubuntu1.3) ...
- Preparing to unpack .../cloud-initramfs-dyn-netconf_0.27ubuntu1.4_all.deb ...
- Unpacking cloud-initramfs-dyn-netconf (0.27ubuntu1.4) over (0.27ubuntu1.3) ...
- Preparing to unpack .../grub-legacy-ec2_0.7.9-113-g513e99e0-0ubuntu1~16.04.1_all.deb ...
- Leaving 'diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
- Unpacking grub-legacy-ec2 (0.7.9-113-g513e99e0-0ubuntu1~16.04.1) over (0.7.9-90-g61eb03fe-0ubuntu1~16.04.1) ...
- Preparing to unpack .../overlayroot_0.27ubuntu1.4_all.deb ...
- Unpacking overlayroot (0.27ubuntu1.4) over (0.27ubuntu1.3) ...
- Processing triggers for man-db (2.7.5-1) ...
- Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- Processing triggers for systemd (229-4ubuntu17) ...
- Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
- Setting up iproute2 (4.3.0-1ubuntu3.16.04.1) ...
- Setting up python3-problem-report (2.20.1-0ubuntu2.6) ...
- Setting up python3-apport (2.20.1-0ubuntu2.6) ...
- Setting up apport (2.20.1-0ubuntu2.6) ...
- Setting up python3-software-properties (0.96.20.7) ...
- Setting up software-properties-common (0.96.20.7) ...
- Setting up uidmap (1:4.2-3.1ubuntu5.3) ...
- Setting up unattended-upgrades (0.90ubuntu0.6) ...
- Replacing config file /etc/apt/apt.conf.d/50unattended-upgrades with new version
- Setting up cloud-initramfs-copymods (0.27ubuntu1.4) ...
- Setting up cloud-initramfs-dyn-netconf (0.27ubuntu1.4) ...
- Setting up grub-legacy-ec2 (0.7.9-113-g513e99e0-0ubuntu1~16.04.1) ...
- Searching for GRUB installation directory ... found: /boot/grub
- Searching for default file ... found: /boot/grub/default
- Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
- Searching for splash image ... none found, skipping ...
- Found kernel: /boot/vmlinuz-4.4.0-78-generic
- Found kernel: /boot/vmlinuz-4.4.0-78-generic
- Updating /boot/grub/menu.lst ... done
- Setting up overlayroot (0.27ubuntu1.4) ...
- Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
- update-initramfs: Generating /boot/initrd.img-4.4.0-78-generic
- W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
- ---end output---
- chris@democracyos:~$ echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
- ---begin output---
- deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse
- ---end output---
- chris@democracyos:~$ sudo apt-get update
- ---begin output---
- Ign:1 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 InRelease
- Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
- Get:3 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 Release [3,462 B]
- Get:4 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 Release.gpg [455 B]
- Get:5 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0/multiverse amd64 Packages [11.3 kB]
- Hit:6 http://nyc2.mirrors.digitalocean.com/ubuntu xenial InRelease
- Hit:7 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates InRelease
- Hit:8 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports InRelease
- Fetched 117 kB in 1s (102 kB/s)
- Reading package lists... Done
- ---end output---
- chris@democracyos:~$ sudo apt-get install -y mongodb-org
- ---begin output---
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following additional packages will be installed:
- mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
- The following NEW packages will be installed:
- mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
- 0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
- Need to get 43.7 MB of archives.
- After this operation, 174 MB of additional disk space will be used.
- Get:1 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0/multiverse amd64 mongodb-org-shell amd64 3.0.15 [3,852 kB]
- Get:2 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0/multiverse amd64 mongodb-org-server amd64 3.0.15 [7,332 kB]
- Get:3 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0/multiverse amd64 mongodb-org-mongos amd64 3.0.15 [3,544 kB]
- Get:4 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0/multiverse amd64 mongodb-org-tools amd64 3.0.15 [29.0 MB]
- Get:5 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0/multiverse amd64 mongodb-org amd64 3.0.15 [3,570 B]
- Fetched 43.7 MB in 2s (17.6 MB/s)
- Selecting previously unselected package mongodb-org-shell.
- (Reading database ... 53888 files and directories currently installed.)
- Preparing to unpack .../mongodb-org-shell_3.0.15_amd64.deb ...
- Unpacking mongodb-org-shell (3.0.15) ...
- Selecting previously unselected package mongodb-org-server.
- Preparing to unpack .../mongodb-org-server_3.0.15_amd64.deb ...
- Unpacking mongodb-org-server (3.0.15) ...
- Selecting previously unselected package mongodb-org-mongos.
- Preparing to unpack .../mongodb-org-mongos_3.0.15_amd64.deb ...
- Unpacking mongodb-org-mongos (3.0.15) ...
- Selecting previously unselected package mongodb-org-tools.
- Preparing to unpack .../mongodb-org-tools_3.0.15_amd64.deb ...
- Unpacking mongodb-org-tools (3.0.15) ...
- Selecting previously unselected package mongodb-org.
- Preparing to unpack .../mongodb-org_3.0.15_amd64.deb ...
- Unpacking mongodb-org (3.0.15) ...
- Processing triggers for man-db (2.7.5-1) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- Setting up mongodb-org-shell (3.0.15) ...
- Setting up mongodb-org-server (3.0.15) ...
- Adding system user `mongodb' (UID 112) ...
- Adding new user `mongodb' (UID 112) with group `nogroup' ...
- Not creating home directory `/home/mongodb'.
- Adding group `mongodb' (GID 116) ...
- Done.
- Adding user `mongodb' to group `mongodb' ...
- Adding user mongodb to group mongodb
- Done.
- Setting up mongodb-org-mongos (3.0.15) ...
- Setting up mongodb-org-tools (3.0.15) ...
- Setting up mongodb-org (3.0.15) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- ---end output---
- chris@democracyos:~$ sudo mkdir /data
- chris@democracyos:~$ sudo mkdir /data/db
- chris@democracyos:~$ sudo chown chris /data/db -R
- install NVM
- chris@democracyos:~$ curl https://raw.githubusercontent.com/creationix/nvm/v0.11.1/install.sh | bash
- ---begin output---
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 3329 100 3329 0 0 8784 0 --:--:-- --:--:-- --:--:-- 8783
- => Downloading nvm from git to '/home/chris/.nvm'
- => Cloning into '/home/chris/.nvm'...
- remote: Counting objects: 6430, done.
- remote: Compressing objects: 100% (3/3), done.
- remote: Total 6430 (delta 0), reused 1 (delta 0), pack-reused 6427
- Receiving objects: 100% (6430/6430), 1.89 MiB | 0 bytes/s, done.
- Resolving deltas: 100% (3985/3985), done.
- Checking connectivity... done.
- Note: checking out 'v0.11.1'.
- You are in 'detached HEAD' state. You can look around, make experimental
- changes and commit them, and you can discard any commits you make in this
- state without impacting any branches by performing another checkout.
- If you want to create a new branch to retain commits you create, you may
- do so (now or later) by using -b with the checkout command again. Example:
- git checkout -b <new-branch-name>
- HEAD is now at 7a423b7... v0.11.1
- Deleted branch master (was 3497474).
- => Appending source string to /home/chris/.profile
- => Close and reopen your terminal to start using nvm
- ---end output---
- chris@democracyos:~$ source ~/.profile
- chris@democracyos:~$ nvm install 6.10.3
- ---begin output---
- ######################################################################## 100.0%
- Checksums empty
- Now using node v6.10.3
- ---end output---
- chris@democracyos:~$ node --version
- ---begin output---
- v6.10.3
- ---end output---
- chris@democracyos:~$ sudo ln -s /usr/bin/nodejs /usr/bin/node
- chris@democracyos:~$ sudo apt-get install make git
- ---begin output---
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- git is already the newest version (1:2.7.4-0ubuntu1.1).
- Suggested packages:
- make-doc
- The following NEW packages will be installed:
- make
- 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
- Need to get 151 kB of archives.
- After this operation, 365 kB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/main amd64 make amd64 4.1-6 [151 kB]
- Fetched 151 kB in 0s (318 kB/s)
- Selecting previously unselected package make.
- (Reading database ... 53939 files and directories currently installed.)
- Preparing to unpack .../archives/make_4.1-6_amd64.deb ...
- Unpacking make (4.1-6) ...
- Processing triggers for man-db (2.7.5-1) ...
- Setting up make (4.1-6) ...
- ---end output---
- chris@democracyos:~$ sudo nano ~/.bashrc
- ---contents of ~/.bashrc---
- # ~/.bashrc: executed by bash(1) for non-login shells.
- # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
- # for examples
- # If not running interactively, don't do anything
- case chris@democracyos:~$- in
- *i*) ;;
- *) return;;
- esac
- # don't put duplicate lines or lines starting with space in the history.
- # See bash(1) for more options
- HISTCONTROL=ignoreboth
- # append to the history file, don't overwrite it
- shopt -s histappend
- # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
- HISTSIZE=1000
- HISTFILESIZE=2000
- # check the window size after each command and, if necessary,
- # update the values of LINES and COLUMNS.
- shopt -s checkwinsize
- # If set, the pattern "**" used in a pathname expansion context will
- # match all files and zero or more directories and subdirectories.
- #shopt -s globstar
- # make less more friendly for non-text input files, see lesspipe(1)
- [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
- # set variable identifying the chroot you work in (used in the prompt below)
- if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
- debian_chroot=$(cat /etc/debian_chroot)
- fi
- # set a fancy prompt (non-color, unless we know we "want" color)
- case "$TERM" in
- xterm-color|*-256color) color_prompt=yes;;
- esac
- # uncomment for a colored prompt, if the terminal has the capability; turned
- # off by default to not distract the user: the focus in a terminal window
- # should be on the output of commands, not on the prompt
- #force_color_prompt=yes
- if [ -n "$force_color_prompt" ]; then
- if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
- # We have color support; assume it's compliant with Ecma-48
- # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
- # a case would tend to support setf rather than setaf.)
- color_prompt=yes
- else
- color_prompt=
- fi
- fi
- if [ "$color_prompt" = yes ]; then
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
- else
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
- fi
- unset color_prompt force_color_prompt
- # If this is an xterm set the title to user@host:dir
- case "$TERM" in
- xterm*|rxvt*)
- PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
- ;;
- *)
- ;;
- esac
- # enable color support of ls and also add handy aliases
- if [ -x /usr/bin/dircolors ]; then
- test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
- alias ls='ls --color=auto'
- #alias dir='dir --color=auto'
- #alias vdir='vdir --color=auto'
- alias grep='grep --color=auto'
- alias fgrep='fgrep --color=auto'
- alias egrep='egrep --color=auto'
- fi
- # colored GCC warnings and errors
- #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
- # some more ls aliases
- alias ll='ls -alF'
- alias la='ls -A'
- alias l='ls -CF'
- # Add an "alert" alias for long running commands. Use like so:
- # sleep 10; alert
- alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
- # Alias definitions.
- # You may want to put all your additions into a separate file like
- # ~/.bash_aliases, instead of adding them here directly.
- # See /usr/share/doc/bash-doc/examples in the bash-doc package.
- if [ -f ~/.bash_aliases ]; then
- . ~/.bash_aliases
- fi
- # enable programmable completion features (you don't need to enable
- # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
- # sources /etc/bash.bashrc).
- if ! shopt -oq posix; then
- if [ -f /usr/share/bash-completion/bash_completion ]; then
- . /usr/share/bash-completion/bash_completion
- elif [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- fi
- [NEW LINE] export GITHUB_USERNAME="teslasmoustache"
- [NEW LINE] export GITHUB_PASSWORD="[REDACTED]"
- ---end contents of ~/.bashrc---
- chris@democracyos:~$ git clone https://github.com/DemocracyOS/app.git
- ---begin output---
- Cloning into 'app'...
- remote: Counting objects: 42027, done.
- remote: Total 42027 (delta 0), reused 0 (delta 0), pack-reused 42026
- Receiving objects: 100% (42027/42027), 10.53 MiB | 7.53 MiB/s, done.
- Resolving deltas: 100% (27316/27316), done.
- Checking connectivity... done.
- ---end output---
- chris@democracyos:~$ cd app
- chris@democracyos:~/app$ git checkout 2.5.1
- ---begin output---
- Note: checking out '2.5.1'.
- You are in 'detached HEAD' state. You can look around, make experimental
- changes and commit them, and you can discard any commits you make in this
- state without impacting any branches by performing another checkout.
- If you want to create a new branch to retain commits you create, you may
- do so (now or later) by using -b with the checkout command again. Example:
- git checkout -b <new-branch-name>
- HEAD is now at 3832d92... bump to 2.5.1
- ---end output---
- chris@democracyos:~/app$ cp config/defaults.json config/development.json
- chris@democracyos:~/app$ sudo service mongod start
- Failed to start mongod.service: Unit mongod.service not found.
- chris@democracyos:~/app$ sudo nano /etc/systemd/system/mongodb.service
- ---begin contents of /etc/systemd/system/mongodb.service---
- [Unit]
- Description=High-performance, schema-free document-oriented database
- After=network.target
- [Service]
- User=mongodb
- ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
- [Install]
- WantedBy=multi-user.target
- ---end contents of /etc/systemd/system/mongodb.service---
- chris@democracyos:~/app$ sudo systemctl start mongodb
- chris@democracyos:~/app$ sudo systemctl status mongodb
- ---begin output---
- ● mongodb.service - High-performance, schema-free document-oriented database
- Loaded: loaded (/etc/systemd/system/mongodb.service; disabled; vendor preset: enabled)
- Active: active (running) since Sun 2017-05-28 00:19:38 UTC; 5s ago
- Main PID: 12187 (mongod)
- Tasks: 11
- Memory: 59.3M
- CPU: 208ms
- CGroup: /system.slice/mongodb.service
- └─12187 /usr/bin/mongod --quiet --config /etc/mongod.conf
- May 28 00:19:38 democracyos systemd[1]: Started High-performance, schema-free document-oriented database.
- ---end output---
- chris@democracyos:~/app$ sudo systemctl enable mongodb
- ---begin output---
- Created symlink from /etc/systemd/system/multi-user.target.wants/mongodb.service to /etc/systemd/system/mongodb.service.
- ---end output---
- chris@democracyos:~/app$ make run
- ---begin output---
- Installing dependencies...
- npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
- npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
- npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
- npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
- npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
- npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
- > democracyos@2.5.1 preinstall /home/chris/app
- > bin/dos-ext-install
- Makefile:22: recipe for target 'packages' failed
- make: *** [packages] Error 1
- ---end output---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement