Skip to content

Commit dced80b

Browse files
author
Dave Conway-Jones
committed
Add some words re running on Oracle cloud
1 parent 219535e commit dced80b

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

docs/getting-started/oracle.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
2+
## Installing on Oracle Cloud
3+
4+
There are instructions for how to sign up for and configure an "Always Free VM" on Oracle Cloud in [this blog post](https://blogs.oracle.com/developers/installing-node-red-in-an-always-free-vm-on-oracle-cloud).
5+
6+
Once you have your instance setup, SSH in to your machine.
7+
8+
From a terminal window on your local machine, make an SSH connection into your VM using the private key associated with the public key you specified at instance creation and the IP address of your VM. Use `opc` as the username:
9+
10+
![SSH to Oracle VM](/images/oracle-ssh.jpg)
11+
12+
13+
### Installing Node-RED
14+
15+
Once logged in you just need to run the rpm script from [here](https://github.com/node-red/linux-installers/blob/master/README.md).
16+
17+
```
18+
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/rpm/update-nodejs-and-nodered)
19+
```
20+
21+
The script will install Node.JS, Node-RED and optionally open the VM firewall for port 1880.
22+
23+
Once it is complete you will see output similar to this:
24+
25+
![Linux Installer](/images/nr-rpm-install.jpg)
26+
27+
28+
Start Node-RED with `node-red-start` and you will see output similar to the following:
29+
30+
```
31+
Once Node-RED has started, point a browser at http://10.0.2.6:1880
32+
On Pi Node-RED works better with the Firefox or Chrome browser
33+
34+
Use node-red-stop to stop Node-RED
35+
Use node-red-start to start Node-RED again
36+
Use node-red-log to view the recent log output
37+
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
38+
Use sudo systemctl disable nodered.service to disable autostart on boot
39+
40+
To find more nodes and example flows - go to http://flows.nodered.org
41+
42+
Starting as a systemd service.
43+
Started Node-RED graphical event wiring tool.
44+
15 Oct 14:28:07 - [info]
45+
Welcome to Node-RED
46+
===================
47+
15 Oct 14:28:07 - [info] Node-RED version: v1.0.2
48+
15 Oct 14:28:07 - [info] Node.js version: v10.16.3
49+
15 Oct 14:28:07 - [info] Linux 4.14.35-1902.5.2.2.el7uek.x86_64 x64 LE
50+
15 Oct 14:28:08 - [info] Loading palette nodes
51+
15 Oct 14:28:09 - [info] Settings file : /home/opc/.node-red/settings.js
52+
15 Oct 14:28:09 - [info] Context store : 'default' [module=memory]
53+
15 Oct 14:28:09 - [info] User directory : /home/opc/.node-red
54+
15 Oct 14:28:09 - [warn] Projects disabled : editorTheme.projects.enabled=false
55+
15 Oct 14:28:09 - [info] Flows file : /home/opc/.node-red/flows_node-red.json
56+
15 Oct 14:28:09 - [info] Creating new flow file
57+
15 Oct 14:28:10 - [warn]
58+
---------------------------------------------------------------------
59+
Your flow credentials file is encrypted using a system-generated key.
60+
If the system-generated key is lost for any reason, your credentials
61+
file will not be recoverable, you will have to delete it and re-enter
62+
your credentials.
63+
You should set your own key using the 'credentialSecret' option in
64+
your settings file. Node-RED will then re-encrypt your credentials
65+
file using your chosen key the next time you deploy a change.
66+
---------------------------------------------------------------------
67+
15 Oct 14:28:10 - [info] Server now running at http://127.0.0.1:1880/
68+
15 Oct 14:28:10 - [info] Starting flows
69+
15 Oct 14:28:10 - [info] Started flows
70+
```
71+
72+
You can ensure that Node-RED always starts at boot with:
73+
```
74+
sudo systemctl enable nodered.service
75+
```
76+
77+
You're now ready to launch Node-RED in your browser at `http://[public-IP]:1880`
78+
79+
### Next steps
80+
81+
- [Learn how to secure your editor](/docs/user-guide/runtime/securing-node-red)
82+
- [Create your first flow](/docs/tutorials/first-flow)
83+
- [Adding nodes to the palette](/docs/user-guide/runtime/adding-nodes)

images/nr-rpm-install.jpg

38 KB
Loading

images/oracle-ssh.jpg

8.65 KB
Loading

0 commit comments

Comments
 (0)