Jump to content

Cloud: Difference between revisions

From 太極
Brb (talk | contribs)
Brb (talk | contribs)
 
Line 59: Line 59:


= Google =
= Google =
== Google cloud ==
* console.cloud.google.com
* [https://cloud.google.com/free/docs/free-cloud-features#compute Google Cloud Free Tier]
* [https://freedium-mirror.cfd/https://medium.com/@harendra21/how-to-build-a-free-personal-cloud-using-open-source-tools-20a449c44481 How to Build a Free Personal Cloud Using Open-Source Tools]
{| class="wikitable"
|+ Projects Primarily Using the E2-Micro VM
! Project Example
! E2-Micro VM Use
! Free Tier Limits to Watch
|-
| '''Personal Blog or Static Website'''
| Hosting a lightweight WordPress site (with traffic less than a few hundred visits a day), or serving a static HTML/CSS/JS website using a simple web server like Nginx or Apache.
| '''Network Egress (1 GB/month):''' Heavy image or video traffic will quickly exceed this limit and incur charges.
|-
| '''VPN or SSH Jump Server'''
| Running a personal VPN (like WireGuard) or an SSH bastion host for securely accessing other resources.
| '''CPU Usage:''' Encryption/decryption for heavy VPN traffic can throttle the low CPU, but overall usage should be fine. '''Egress:''' Monitor large file transfers.
|-
| '''Small Development/Staging Server'''
| Running a simple Node.js, Python Flask, or Go API backend for personal testing or a mobile app prototype.
| '''RAM (1 GB):''' Avoid memory-intensive frameworks (like full Java application servers) or running multiple large processes simultaneously.
|-
| '''Low-Volume Bot or Script Runner'''
| Running cron jobs, scheduled tasks, or a small social media bot that checks a few endpoints periodically.
| '''CPU Usage:''' Ensure your scripts are efficient and complete quickly to avoid hitting the low CPU throttle too hard.
|}
== Share PDF versions of Google Drive files ==
== Share PDF versions of Google Drive files ==
[http://www.makeuseof.com/tag/share-pdf-versions-google-drive-files-without-converting/ Share PDF Versions of Google Drive Files Without Converting by Hand][
[http://www.makeuseof.com/tag/share-pdf-versions-google-drive-files-without-converting/ Share PDF Versions of Google Drive Files Without Converting by Hand][

Latest revision as of 09:36, 25 October 2025

Tips

Cloud/online storage

Mounting

Mega

ownCloud

Use apt to install or go to the download page

One Drive

Dropbox

See Software > Dropbox.

Google Drive

Caveats:

  • Unlike Windows or macOS, your Google Drive files are not downloaded and stored locally in Ubuntu. You must have an active internet connection to access your account.
  • The online account files are located under "/run/user/1000/gvfs/" directory.
  • PDF files can be opened by Document Viewer. When the file is loaded, it shows a random file name.
  • The doc files cannot be opened by LibreOffice. When I drag and drop the files to Terminal, they show random file names like /run/user/1000/gvfs/google-drive:host=gmail.com,user=XXXXXXX/1LOLKBssIIR0x7TWR7MHIEeSU0uPj9TwK_YuAGTzt'

Back up google photos

Amazon

Remote Desktop

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

Amazon Lightsail

Google

Google cloud

Projects Primarily Using the E2-Micro VM
Project Example E2-Micro VM Use Free Tier Limits to Watch
Personal Blog or Static Website Hosting a lightweight WordPress site (with traffic less than a few hundred visits a day), or serving a static HTML/CSS/JS website using a simple web server like Nginx or Apache. Network Egress (1 GB/month): Heavy image or video traffic will quickly exceed this limit and incur charges.
VPN or SSH Jump Server Running a personal VPN (like WireGuard) or an SSH bastion host for securely accessing other resources. CPU Usage: Encryption/decryption for heavy VPN traffic can throttle the low CPU, but overall usage should be fine. Egress: Monitor large file transfers.
Small Development/Staging Server Running a simple Node.js, Python Flask, or Go API backend for personal testing or a mobile app prototype. RAM (1 GB): Avoid memory-intensive frameworks (like full Java application servers) or running multiple large processes simultaneously.
Low-Volume Bot or Script Runner Running cron jobs, scheduled tasks, or a small social media bot that checks a few endpoints periodically. CPU Usage: Ensure your scripts are efficient and complete quickly to avoid hitting the low CPU throttle too hard.

Share PDF versions of Google Drive files

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

Tips of using google drive

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

Firebase hosting

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/
  • 【甲骨文】云服务器免费注册地址大全!
  • Once we choose a home region, we cannot change it (free plan).
  • It is better to use Chrome's incognito mode to log in.
  • ssh "permissions are too open": chmod 600 ~/.ssh/id_rsa_name.key
  • 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 No cache in VM. So if we ran out of memory, the machine will be frozen. Need to reboot.
      • Network bandwidth is .48 rather 1 GB/s.
  • how much space i can use with free tier? 200GB in total.
  • 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.

Swap file

sudo dd if=/dev/zero of=/swapfile bs=1M count=3072
sudo mkswap /swapfile
sudo chmod 600 /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Change hostname

Setting the Hostname on Ubuntu 24.04

sudo hostname linuxconfig
sudo hostnamectl set-hostname linuxconfig
sudo nano /etc/hosts

Idle instance reclaim

Always Free Resources

Idle Always Free compute instances may be reclaimed by Oracle. Oracle will deem virtual machine and bare metal compute instances as idle if, during a 7-day period, the following are true:

  • CPU utilization for the 95th percentile is less than 20%
  • Network utilization is less than 20%
  • Memory utilization is less than 20% (applies to A1 shapes only)

Minimal Ubuntu in Oracle Cloud

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
  • htop shows 197MB (vs 247MB) on Ubuntu 24.04.1 LTS.
  • It's optimized for cloud environments and automated deployments.
  • It has a smaller footprint, faster boot times, and requires fewer security updates.
  • It lacks many convenience tools typically found in standard Ubuntu Server installations. For example, manual pages, text editors, network diagnostic tools,...

Oracle Cloud Shell

  • Oracle Cloud Infrastructure (OCI) Cloud Shell
  • After 180 days inactivity, the Cloud Shell free storage which contains their home directory will be marked as "Inactive" and may be deleted in the future if action is not taken. Inactive Cloud Shell storage (home directory) will automatically be deleted 240 days after the user's last Cloud Shell session.
  • Oracle Cloud Infrastructure (OCI) Cloud Shell is a free, browser-based terminal accessible directly from the Oracle Cloud Console.
    • It provides users with an instant, pre-configured Linux shell environment that includes a wide range of up-to-date developer tools (such as Git, Java, Ansible, Terraform), language runtimes, and a pre-authenticated Oracle Cloud Infrastructure CLI, enabling users to manage OCI resources and automate tasks without any local setup.
    • Persistent Storage: Each Cloud Shell session comes with 5 GB of persistent storage, so files and scripts are retained between sessions.
    • Cloud Shell supports different networking modes, including access to OCI services, public internet (if enabled by admins), and private networking for secure access to private resources.
    • A built-in code editor is available for in-console code editing and updates.
    • It can access the internet curl -I https://google.com
    • Cloud Shell provides 5 GB of persistent storage for your home directory df -h ~ See Limitations Of Cloud Shell

Build R

sudo apt-get install -y r-base-dev libx11-dev \
     xorg-dev libcurl4-openssl-dev default-jdk

Open ports

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