Skip to content

Instantly share code, notes, and snippets.

@minakhan01
Created November 10, 2017 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minakhan01/ecfcb294581098dc24508d904437b121 to your computer and use it in GitHub Desktop.
Save minakhan01/ecfcb294581098dc24508d904437b121 to your computer and use it in GitHub Desktop.
digital ocean setup
root@ubuntu-2gb-nyc3-01:~# history
1 ls
2 vi script.sh
3 sudo apt-get update
4 sudo apt-get install git
5 git config --global user.name "Mina Khan"
6 git config --global user.email "minakhan01@gmail.com"
7 git config --list
8 sudo apt-get install nodejs
9 sudo apt-get install npm
10 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
11 git clone https://github.com/minakhan01/DesignWebsite.git
12 cp script.sh DesignWebsite/
13 ls
14 cd DesignWebsite/
15 ls
16 chmod +x script.sh
17 ./script.sh
18 vi node.log
19 sudo ln -s /usr/bin/nodejs /usr/local/bin/node
20 ./script.sh
21 vi node.log
22 sudo ln -s /usr/bin/nodejs /usr/local/bin/node
23 ls
24 http-server .
25 npm install http-server
26 cd ../
27 npm install http-server
28 cd DesignWebsite/
29 http-server .
30 sudo ln -s /usr/local/bin/nodejs /usr/bin/node
31 http-server .
32 npm install http-server
33 npm install http-server -g
34 http-server .
35 cd DesignWebsite/
36 ls
37 vi node.log
38 ls
39 ./script.sh
40 ls
41 vi script.sh
42 history
43 which npm
44 echo npm
45 echo PATH
46 echo $PATH
47 git status
48 ls
49 cd DesignWebsite/
50 git status
51 git add *
52 git commit -am "node modules"
53 git push origin master
54 git status
55 cd DesignWebsite/
56 ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment