Top Tweets for #Linuxbrew
Deploying @openclaw on Oracle Cloud Free Tier — Part 2: Gateway Configuration and the Ubuntu Rabbit Hole
This is the second post in my series documenting the full deployment of OpenClaw on Oracle Cloud's Always Free ARM instance (4 OCPUs, 24GB RAM, Ubuntu 24.04 Minimal aarch64). Part 1 covered provisioning the instance, SSH access, and reserving a static public IP. Today is about configuring the OpenClaw gateway itself — and all the unexpected detours along the way.
Gateway Configuration
Once the OpenClaw installer launches its interactive setup, you are presented with a series of configuration prompts. Here is what each one means and what I chose:
Anthropic setup-token: This is your Anthropic API key. Paste it in. One critical reminder — if you ever screenshot this screen, your key is fully visible. Rotate it immediately if that happens.
Token name: A label for the token. I set mine to "Anthropic_auth_token". This is purely organizational, useful if you manage multiple keys.
Default model: The installer defaults to anthropic/claude-opus-4-5, which is the most capable model but also the most expensive per token. For cost-conscious setups, anthropic/claude-sonnet-4-5 is a reasonable alternative. I kept Opus for now.
Gateway port: 18789. No reason to change this unless you have a conflict.
Gateway bind: "Auto (Loopback to LAN)". If you are running this purely for yourself, Loopback is the safest option — it restricts access to localhost only. LAN opens it to your local network. I left it on Auto.
Gateway auth: Token. This means any client connecting to the gateway must present a valid token. Always keep this on. Without it, anyone who can reach your port can use your API key.
Tailscale Exposure — The Key Decision
This is the most important choice in the setup. Three options:
Off: Gateway is only accessible locally on the machine. Most secure, but you cannot reach it from other devices.
Serve: Exposes the gateway over your Tailscale tailnet. Only devices signed into your Tailscale account can reach it. This is the sweet spot for personal use — secure, no public exposure, accessible from all your devices.
Funnel: Exposes the gateway to the entire public internet via a Tailscale HTTPS URL. Unless you are building a service for external users, this is unnecessary risk.
I chose Serve. It gives me access from my MacBook, phone, and any other device on my tailnet without opening anything to the public internet.
There is a follow-up prompt: "Reset Tailscale serve/funnel on exit?" I chose No. Since I am using Serve (not Funnel), the risk of leaving the configuration in place after the gateway stops is minimal. It also means restarts are faster — no need to re-establish the Tailscale serving configuration each time.
The iMessage Question
OpenClaw supports iMessage as a channel, which is appealing if you want to interact with your AI agent through Apple Messages. But there is a hard constraint that is easy to overlook: iMessage integration depends on a macOS-only CLI tool called imsg, which communicates directly with the Messages app and its local chat.db database. This is a system-level macOS integration. It cannot run on Linux.
If your gateway runs on a Mac, setup is straightforward — install imsg via Homebrew, point OpenClaw at the binary path and the Messages database, and grant the necessary permissions (Full Disk Access and Automation).
If your gateway runs on Linux (as mine does, on Oracle Cloud), the architecture becomes a bridge: the Linux gateway SSHes into a Mac that has Messages running, and executes imsg remotely. Tailscale makes this practical — both machines sit on the same tailnet, and SSH traffic flows over the encrypted mesh network.
I have not yet wired this up. It requires keeping a Mac online and signed into Messages at all times, which is a meaningful operational commitment. For now, I am skipping the iMessage channel and focusing on getting the core gateway stable.
The Ubuntu Minimal Tax
Here is where things got interesting. Ubuntu 24.04 Minimal lives up to its name. It ships with almost nothing beyond the kernel and a shell. Every dependency you might take for granted on a standard Ubuntu install is simply absent.
The first surprise: Homebrew. OpenClaw's skill system uses Homebrew to install certain tools (like imsg, memo, remindctl). On a standard Mac or full Linux install, Homebrew usually just works. On Ubuntu Minimal, it does not exist. Installation itself requires curl, which Minimal does have, so the Homebrew installer runs:
/bin/bash -c "$(curl -fsSL https://t.co/gN60Ze09Af)"
But then it asks for a sudo password. Oracle Cloud's Ubuntu instances use key-based authentication with passwordless sudo by default — except the Homebrew installer apparently triggers a different sudo path. I had to run sudo passwd ubuntu first to set a password, then retry.
After installation, Homebrew is not on PATH. You must manually add it:
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> ~/.bashrc eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"
Then the real cascade begins. OpenClaw tries to install its skill dependencies via Homebrew, and multiple formulas fail because they cannot be installed from pre-built bottles on ARM Linux and must be compiled from source. The error message: "Install Clang or run brew install gcc."
So you need build-essential and gcc:
sudo apt-get install build-essential -y brew install gcc
Then another failure: unzip is missing. The Homebrew formula for 1Password CLI tries to unpack a zip archive and fails because Ubuntu Minimal does not ship unzip:
sudo apt-get install unzip -y
Each missing package surfaces only when something tries to use it. There is no single command that pre-installs everything. It is a process of running the installer, watching it fail, installing the missing dependency, and retrying.
Google Places API
The setup also asks if you want to configure a Google Places API key for location-based queries. This is entirely optional. If you do not need your agent to answer questions like "find restaurants near me" with real Google Places data, skip it. The API is paid (with a small free tier), and you can always add it later.
Current Status
The gateway is configured and running on the Oracle Cloud instance, accessible over Tailscale Serve with token authentication. The default model is Claude Opus 4.5. iMessage is deferred until I decide whether to keep a Mac online as a bridge. The Ubuntu Minimal environment is now bootstrapped with Homebrew, GCC, and the various system packages that the installer expects.
Total cost so far: still zero.
Next step: configuring channels (likely Telegram or Signal as the primary interface), testing end-to-end message flow, and exploring the multi-agent routing capabilities.
'oma on HarmonyOS next
Yes, the OMA from AOSC can run on third-party HiSH terminal app, QEMU-based for the Linux console!'
#Homebrew #Linuxbrew #HiSH #HarmonyOS #MatePadEdge #Huawei #HongMengKernel

@usuyuki26 root権限いらないLinuxbrewで構築し直してみてはいかが?
Last Seen Hashtags on Sotwe
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.4M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers


