Cloud: Difference between revisions

From 太極
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 52: Line 52:
<li>[https://www.youtube.com/watch?v=E3z-T7d2jEI 【甲骨文】云服务器免费注册地址大全!]
<li>[https://www.youtube.com/watch?v=E3z-T7d2jEI 【甲骨文】云服务器免费注册地址大全!]
<li>Be sure to keep SSH keys since there is no way to retrieve it
<li>Be sure to keep SSH keys since there is no way to retrieve it
* For some reason, suddenly I cannot ssh connect to my VM after I installed and ran the calibre docker container.
* On another machine, my ssh connection got kicked out '''client_loop: send disconnect: Broken pipe'''
* The '''console connection''' method still relies on SSH, which doesn't solve your original problem. Unfortunately, Oracle Cloud Infrastructure (OCI) doesn't provide a direct, non-SSH method to access the command line of your VM through the web interface, unlike some other cloud providers.
<li>Hamburger icon on top-left -> Billing and cost management.
<li>Difficult to create VMs: Out of capacity for shape VM.Standard.A1.Flex in availability domain AD-2. Create the instance in a different availability domain or try again later. If you specified a fault domain, try creating the instance without specifying a fault domain, otherwise try creating the instance in a different availability domain. If that doesn’t work, please try again later.
<li>Difficult to create VMs: Out of capacity for shape VM.Standard.A1.Flex in availability domain AD-2. Create the instance in a different availability domain or try again later. If you specified a fault domain, try creating the instance without specifying a fault domain, otherwise try creating the instance in a different availability domain. If that doesn’t work, please try again later.
* [https://www.reddit.com/r/oraclecloud/comments/zf0tje/out_of_capacity_for_shape_vmstandarda1flex/ Out of capacity for shape VM.Standard.A1.Flex]
* [https://www.reddit.com/r/oraclecloud/comments/zf0tje/out_of_capacity_for_shape_vmstandarda1flex/ Out of capacity for shape VM.Standard.A1.Flex]
* Change A1.Flex to A2.Flex will help but A2.Flex is not always free
* Change A1.Flex to A2.Flex will help but A2.Flex is not always free
* '''VM.Standard.E2.1.Micro''' is always available. But we are limited to
** 2 instances.
** RAM = 1GB
** Network bandwidth is .48 rather 1 GB/s.
<li>Linux distribution
* Ubuntu default username: ubuntu (about 240 MB RAM, [https://www.reddit.com/r/oraclecloud/comments/12jueh3/lightest_image_on_ram_for_micro_instances/ Lightest image on RAM for micro instances])
* Rocky linux default username: rocky. Rocky linux is way too heavy and slow on E2.1.Micro. "dnf update" takes long time. Why total memory is 760MB instead of 1GB.
<li>Post installation <BR/>
Fix date/time  (works for Ubuntu & rocky)
<syntaxhighlight lang='sh'>
sudo timedatectl set-timezone America/New_York
</syntaxhighlight>
<li>Open ports
<li>Open ports
* Document [https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/apache-on-ubuntu/01oci-ubuntu-apache-summary.htm Free Tier: Install Apache and PHP on an Ubuntu Instance]. Search " Enable Internet Access" and "ingress rule".
* Document [https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/apache-on-ubuntu/01oci-ubuntu-apache-summary.htm Free Tier: Install Apache and PHP on an Ubuntu Instance]. Search " Enable Internet Access" and "ingress rule".
* Document [https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/overview.htm Networking Overview] Access to the Internet
* Document [https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/overview.htm Networking Overview] Access to the Internet
* [https://stackoverflow.com/questions/54794217/opening-port-80-on-oracle-cloud-infrastructure-compute-node Opening port 80 on Oracle Cloud Infrastructure Compute node] & the link to [https://medium.com/@fathi.ria/oracle-database-cloud-open-ports-on-oci-1af24f4eb9f2 Oracle Database Cloud — Open Ports on OCI]
* [https://stackoverflow.com/questions/54794217/opening-port-80-on-oracle-cloud-infrastructure-compute-node Opening port 80 on Oracle Cloud Infrastructure Compute node] & the link to [https://medium.com/@fathi.ria/oracle-database-cloud-open-ports-on-oci-1af24f4eb9f2 Oracle Database Cloud — Open Ports on OCI]
* [https://www.reddit.com/r/oraclecloud/comments/r8lkf7/comment/hv4kqyu/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button This works]. Suppose I installed Docker and start a nginx container. Then, Step 1.  
* [https://www.reddit.com/r/oraclecloud/comments/r8lkf7/comment/hv4kqyu/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button This works]. Suppose I installed Docker and start a nginx container. Then, Step 1 ('''seems not needed''').  
<syntaxhighlight lang='sh'>
<pre>
sudo apt install firewalld
sudo apt install firewalld
sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
Line 70: Line 89:
sudo firewall-cmd --list-all
sudo firewall-cmd --list-all
sudo firewall-cmd --list-ports  # list open ports
sudo firewall-cmd --list-ports  # list open ports
</syntaxhighlight>
</pre>
Or (not tested).
Or (not tested).
<syntaxhighlight lang='sh'>
<pre>
sudo apt install ufw
sudo apt install ufw
ufw --version
ufw --version
Line 78: Line 97:
sudo ufw allow 80/tcp
sudo ufw allow 80/tcp
sudo ufw status
sudo ufw status
</syntaxhighlight>
</pre>
Step 2. Click on my '''Virtual cloud network''' vcn-2024xxxx-xxxx. Subnets -> '''subnet-2024XXXX-xxxx''' -> Security Lists -> "Default Security List for vcn-2024XXXX-xxxx" -> Ingress Rules -> Add '''Ingress Rules'''. Currently the rules contain port 22. So I just add port 8080.
Step 2. Click on my '''Virtual cloud network''' vcn-2024xxxx-xxxx. Subnets -> '''subnet-2024XXXX-xxxx''' -> Security Lists -> "Default Security List for vcn-2024XXXX-xxxx" -> Ingress Rules -> Add '''Ingress Rules'''. Currently the rules contain port 22. So I just add port 8080.
</ul>
</ul>

Latest revision as of 20:31, 12 November 2024

Tips

Amazon

Remote Desktop

Accessing your remote desktop on Amazon's Elastic Compute Cloud via NoMachine

Amazon Lightsail

Google

Share PDF versions of Google Drive files

Share PDF Versions of Google Drive Files Without Converting by Hand[

Open Google spreadsheet with the cursor on last working cell

https://stackoverflow.com/a/28893127

Sync Files to Your Computer

How to Sync Google Drive and OneDrive Files to Your Computer

Microsoft Onedrive

For NIH one drive,

  • we can only share with NIH users.
  • When sharing a file, the receiver needs to sign in through their browser and if the files are large, it cannot be opened online and needs to be downloaded to local first.
  • we need a PIV card in order to see oneDrive online.
  • it seems we cannot use oneDrive as a backup. If we unselect a folder for syncing, the folder will be immediately removed from the local system.
  • not sure if the syncing is working. I copy a new folder to the local onedrive folder. The oneDrive icon on the top menu keeps rotation but nothing really happened. The new files are not in cloud and the syncing symbol shows files are not synced.

Access offline

How to Access OneDrive Files Offline on a Windows PC

SharePoint

Microsoft SharePoint Sites Explained: Hub Site, Team Site, and Communication Site

Shared hosting and VPS

Best web hosting services 2023: Expert picks and advice

DigitalOcean

Virtual private servers starting at $5 a month (512MB memory, 1 Core, 20GB SSD, 1TB Transfer)

Oracle cloud

  • https://oracle.com/cloud/
  • 【甲骨文】云服务器免费注册地址大全!
  • Be sure to keep SSH keys since there is no way to retrieve it
    • For some reason, suddenly I cannot ssh connect to my VM after I installed and ran the calibre docker container.
    • On another machine, my ssh connection got kicked out client_loop: send disconnect: Broken pipe
    • The console connection method still relies on SSH, which doesn't solve your original problem. Unfortunately, Oracle Cloud Infrastructure (OCI) doesn't provide a direct, non-SSH method to access the command line of your VM through the web interface, unlike some other cloud providers.
  • Hamburger icon on top-left -> Billing and cost management.
  • Difficult to create VMs: Out of capacity for shape VM.Standard.A1.Flex in availability domain AD-2. Create the instance in a different availability domain or try again later. If you specified a fault domain, try creating the instance without specifying a fault domain, otherwise try creating the instance in a different availability domain. If that doesn’t work, please try again later.
    • Out of capacity for shape VM.Standard.A1.Flex
    • Change A1.Flex to A2.Flex will help but A2.Flex is not always free
    • VM.Standard.E2.1.Micro is always available. But we are limited to
      • 2 instances.
      • RAM = 1GB
      • Network bandwidth is .48 rather 1 GB/s.
  • Linux distribution
    • Ubuntu default username: ubuntu (about 240 MB RAM, Lightest image on RAM for micro instances)
    • Rocky linux default username: rocky. Rocky linux is way too heavy and slow on E2.1.Micro. "dnf update" takes long time. Why total memory is 760MB instead of 1GB.
  • Post installation
    Fix date/time (works for Ubuntu & rocky)
    sudo timedatectl set-timezone America/New_York
  • Open ports
    sudo apt install firewalld
    sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
    # sudo firewall-cmd --zone=public --permanent --remove-port=8080/tcp
    sudo firewall-cmd --reload
    
    sudo firewall-cmd --state9
    sudo systemctl status firewalld
    sudo firewall-cmd --list-all
    sudo firewall-cmd --list-ports  # list open ports
    

    Or (not tested).

    sudo apt install ufw
    ufw --version
    sudo ufw enable
    sudo ufw allow 80/tcp
    sudo ufw status
    

    Step 2. Click on my Virtual cloud network vcn-2024xxxx-xxxx. Subnets -> subnet-2024XXXX-xxxx -> Security Lists -> "Default Security List for vcn-2024XXXX-xxxx" -> Ingress Rules -> Add Ingress Rules. Currently the rules contain port 22. So I just add port 8080.

Cloud9

How to Install WordPress on a Virtual Server for Free Using Cloud9

Mega: 50GB free

pCloud: 10GB free

This Dropbox Alternative Frees Up Device Storage Without Deleting Anything

Self-hosted

File sharing platforms

22 Best Free Open Source Cloud File Sharing Platforms

ownCloud

NextCloud

See NextCloud

Seafile

Similar to Nextcloud as it allows you to host your own cloud storage, while offering a Dropbox-style service. It has a Raspberry Pi server version. Github.

Video streaming

The 10 Best Free Movie Streaming Sites

Images

The Best Free Image Hosting Websites

Free website hosting services

Decide a date/schedule a meeting