# Oracle Cloud Setup

https://51.ruyo.net/14138.html

生成ssh key教學 (opens new window)

複製public key pbcopy < ~/.ssh/id_rsa.pub 貼上 -w857

打開 隐藏配置、网络、存储选项 > 分配公共 IP 地址

完成後可見ip address -w1680

#oracle linux
ssh opc@ip

#Canonical-Ubuntu-18
ssh ubuntu@ip

-w570


# Setup Ubuntu 18 GUI and VNC

How to Install and Configure VNC on Ubuntu 18.04 (opens new window)

sudo apt update
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver

#For copy & paste https://unix.stackexchange.com/a/274692
sudo apt-get install autocutsel

# setup password between 6 to 8
vncserver

-c

# Close vncserver before setup configuring VNC Server
vncserver -kill :1
# backup original xstartup file
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak

nano ~/.vnc/xstartup

copy in xstartup

#!/bin/bash
xrdb $HOME/.Xresources
autocutsel -fork  
startxfce4 &
# make it executable
sudo chmod +x ~/.vnc/xstartup
# restart
vncserver

# Create an SSH connection forwards to the localhost connection for VNC.
ssh -L 5901:127.0.0.1:5901 [email protected]

# Contect VNC

Use any VNC Client tool, i am using Jump Desktop (opens new window) -c

Click Use default config

How to fix "Failed to Execute Default Web Browser. Input/Output Error." (opens new window)

sudo apt-get install firefox

# Firewall

https://redthunder.blog/2019/07/04/getting-started-with-oracle-cloud-infrastructure-internet-and-nat-gateways/

-c Since oracle cannot use ufw [issue (opens new window)], need to modify iptable which is very trouble, so i open all port in iptable, only use oracle VCN to manager the port

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F

setup vcn in oracle cloud console 2019-10-31_21-04-59

Last Updated: Thu Nov 07 2019 08:52:48 GMT+0000
贊助商連結
(adsbygoogle = window.adsbygoogle || []).push({});