Bonum Certa Men Certa

How to Set Up a Gemini Server of Your Own, Even on a Simple Single-Board Computer

Gemini Turntable



Summary: Using Agate to start one's own Gemini capsule (self-hosted) is a lot simpler than one might be inclined to believe; this is a detailed HOWTO, hoping to encourage more people to join Gemini space, which is fast-growing and free of garbage

THE one thing that stunned me was how easy it was to set up a Gemini server. A lot simpler than setting up a Web server. The harder part is certificates, but that too is trivial once it's done a couple of times, potentially with errors at first.



Here's a quick recipe for setting up one's own instance and Gemini capsule.

First, create a new user's account. Gemini ought to have its own account, as it'll make things a lot simpler (backup, permissions etc.) and for the sake of this example we'll assume the user account is "gemini" (with home directory /home/gemini)

Then, in the user's top-level (home) directory:

mkdir gemini bin certs

This will set up directories for the capsule, the programs, and the certificates, respectively.

There's not so much left to do now.

Go to the directory gemini (e.g. cd ~/gemini/ or equivalent using a graphical file browser)

In that directory, create or place a file called index.gmi

It can be empty or contain something simple like Hello world! (just to make sure that the server is set up and works)

Now let's get the server software. Go to the bin directory (e.g. cd ~/bin/). For most practical purposes agate (Apache Licence) seems to be OK and it supports quite a few architectures. Unfortunately it's hosted on GitHub (Microsoft), with latest versions shown at the top of this page. If you are not sure what architecture to choose, run uname -a

The correct binary can be downloaded using a Web browser or a tool like wget/curl. That program is quite small and needs to be placed in bin in order to stay consistent with this manual.

Unpack and set 'executable' (x) permission for the file, e.g. using

gunzip [binary_file]
chmod +x [binary_file]


Depending on the name of the binary file in question.

For my ARM SBC it is gunzip agate.armv7-unknown-linux-gnueabihf.gz and chmod +x agate.armv7-unknown-linux-gnueabihf

All the pieces are now in place except the certificate and the service setup.

On a systemd-based operating system create a new file at /etc/systemd/system/agate.service

It should look something like this:

[Unit]
Description=agate
After=network.target



[Service] User=gemini Type=simple ExecStart=[your settings]

[Install] WantedBy=default.target


Wherein [your settings] ties together the program, the root directory for hosting (capsule), and the certificate.

In the case of Techrights on ARM, it's something as follows:

/home/gemini/bin/agate.armv7-unknown-linux-gnueabihf -s --content /home/gemini/gemini/ --key /home/gemini/certs/key.pem --cert /home/gemini/certs/cert.pem --hostname your hostname --lang en-GB

In our case, your hostname is gemini.techrights.org (how you set up your hostname may depend on how you manage domains and where). That hostname needs to point to your device's IP address.

All that's left now is certificate setup and service initiation.

Go to the certificates directory (e.g. cd ~/certs/) as this will likely involve the command line (unless you have some graphical tools that do the same).

A simple self-signed certificate ought to be sufficient:

openssl req -new -subj "/CN=your hostname" -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -days 365 -nodes -out cert.pem -keyout key.pem

That's for 1 year. It can be set to anything.

The command then leaves the two files required by the service/server, namely cert.pem and key.pem. These can be modified and regenerated at any time, so there's no need to worry if at any point they're wrongly generated or made for the 'wrong' domain.

To get it all started, assuming systemd:

sudo systemctl restart agate
sudo systemctl enable agate


Use a Gemini browser (or Web proxy) to then test access to the hostname over gemini:// (it will attempt to connect over port 1965, so make sure there's no firewall standing in the way at the level of the device or the network it is in). This is pretty much it, with the exception of variation for non-systemd systems. All that systemd does is, it starts the server using the suitable command and arguments, even after restarts. That command can instead be run manually, or set up for any init system of choice. The hardest part is setting up the domain, generating the key/certificate correctly, and then lowering the filters (if any) to allow access over port 1965.

We don't typically do HOWTO-type articles, but for this one we make an exception. If you get stuck, ask us in IRC for help. Gemini needs to grow and for faster growth we need to help one another.

Agate is quite small and simple. As of the time of writing, it does not support server-side CGI scripts (for something like in-capsule search), but Gemini ought to be kept light and simple anyway; we're not trying to just replicate the bloated Web.

Credit: Chris Were, for some initial notes and suggestions. gemini://chriswere.uk/

Recent Techrights' Posts

Gemini Links 26/05/2026: A Year of Composting, Fedora Bricks Itself and Infuriates Users With Slop and Wayland (Not What Users Want, What IBM Wants), Crawlers on Geminispace a Nuisance
Links for the day
Good Thing When Home Appliances Are Ancient Antiques
dealing with the alarm has cost only time
The Bloating of the Web Contributes to Global Warming and Causes Burnout (Slowdown, Hardware Erosion, Waste)
This problem isn't limited to weather sites or subsites
Why It's Ludicrous to Call Us "Microsoft Haters"
Even if clustered together, news items still cover a broad spectrum (or spectra) of issues
The Old Ways of Computing Were Objectively Better
Not as fast, but certainly much better
 
Google: We Are Locking You Out of Your Account (Since 15+ Years Ago) Because You Don't Have a Spyphone We Remotely Control
Google (GAFAM) is an evil company deep in debt
Red Hat: Bluewashing by IBM, Followed by RAs (Layoffs)
We could use some hints or evidence related to this
Links 26/05/2026: "Making the Digital Physical"; "The Medical System Abandons Women When They Are Most Vulnerable"
Links for the day
While US Government Greenlights (or Bluelights) Bailouts for IBM Some Foreign Governments Blacklist It
"Albany leadership doesn’t know what they are doing but are damn good at pretending they do."
IBM Bailouts and the IBM People Inside the Administration
It seems possible/plausible that it is bailout money down the drain or that this money will never arrive at all
Links 26/05/2026: Lithium Batteries Causing Fires (Even on Planes), 'Timmy' the Whale Dies
Links for the day
Pursuing Facts in an Age of Lies and 'Hallucinations' (Falsehoods Without Anyone Accountable, They Try Calling Computer-Generated Lies or Forgeries "Intelligence").
Our aim is to relay information while bypassing gossip networks like social control media and slop in "search" clothing
Computer-Generated Legal Filings Get You Reported to the Solicitors Regulation Authority (SRA)
We'll write a lot more about this in the future
EPO "Cocaine Communication Manager" - Part XII - In the Second-Largest Institution in Europe One Can Take Paid 'Sick Leave' for Doing Cocaine, Then Come Back
Cocaine addicts in the management were bullying colleagues. They're still in charge.
Sites in Their Twenties
We currently run concurrently a handful of series and have a lot more in the backlog
SLAPP Censorship - Part 88 Out of 200: Brett Wilson LLP is Defaming Trans People in America Because Garrett Pays Hired Guns to Silence Them
Garrett is scoring many own goals this year
Sloppy "Resource Action," (RA) or IBM Layoff, Leads to Another IBM Lawsuit, Alleging IBM Tries to Pass Liability to Algorithms
IBM is meanwhile resorting to slop to gaslight its remaining shareholders
The Latest IBM Layoff Rumours
What has happened to the company that invented so much of modern computing?
Holy See Recognises the Threat of GAFAM and Slop
Will the Holy See move away from GAFAM?
Social Control Media is a Giant Waste of Time (and There Are No Future Remedies for This)
Social Control Media is considered unhealthy to young people, but it is also collectively unhealthy to nations and nation-building
Codecs and Software Patents - Part X - Florian Müller Still Muddying the Waters for FOSS, Using Software Patents
Some things never change...
Gemini Links 26/05/2026: Slop Bug Reports and Crawlers Considered Evil
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Monday, May 25, 2026
IRC logs for Monday, May 25, 2026
Slop Causes Global Warming
in some parts of the world people die from overheat (heat strokes) as temperatures reach almost 50 degrees as early as May in the northern hemisphere
Vatican Speaks Out Against Slop, Promoting Instead "Truth, Dignity of Work, Social Justice, and Peace."
Religion (no matter which) does not oppose machines, but LLMs aren't useful machines
SLAPP Censorship - Part 87 Out of 200: Access to Justice
this part will be short
A Promise IBM/Red Hat Could Not Keep
"all about control, not so much optics."
Links 25/05/2026: Russia Lobbing Oreshnik Ballistic Missile Again, Slop Comes Under More Fire
Links for the day
Gemini Links 25/05/2026: Injury in Gym and Abusive LLMs DDoSing Software Developers While Misusing Their Code
Links for the day
A 'Bank Holiday' When National Debt Doubles in a Decade
Maybe it's time to rename "Bank Holidays"
Links 25/05/2026: Lingering Environmental Concerns and Domain Registrars Targeted for Unmasking
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, May 24, 2026
IRC logs for Sunday, May 24, 2026
Gemini Links 24/05/2026: Impressions of Auckland, the Age of Left or Right Extremism, and .zim files
Links for the day
Microsoft's 'Hiring Freeze' (Layoffs) and Salary Freeze (While Inflation Approaches Double-Digit Rates)
If they get replaced by anyone, it'll be low-paid folks in low-salary regions [...] workers' stress levels shoot up, compensation goes down
Slop Will Not End Humanity, The Pushers of It Do (Artificial Scarcities and Global Warming)
Causing hunger and poverty in the name of "computation"
How Can the 'Broligarchs' Love Us When They Don't Even Love Themselves?
Their SLAPPs have their limits
Death at IBM Due to Overwork
Dying for IBM is never worth it
We Publish Less, We Get More Exposure
UbuntuPit is coming to realise that quantity isn't what comes to matter or truly "count", especially when quantity comes at expense of authenticity
Codecs and Software Patents - Part IX - GNU Project Has Chosen to Adopt AV1 for Its Videos, Conversion and Additions Underway
One of our readers is working to help GNU through the maze of software patents and maze of patent lawsuits, which aren't the same thing but are somewhat overlapping issues
SLAPP Censorship - Part 86 Out of 200: The Position of Courts on Computer-Generated Lawsuits and Filings From Another Continent (Made by Two Men Who Work for Slop Companies)
Lawsuits by proxy from California
Links 24/05/2026: SoftBank CEO Getting Conned by Scam Altman, Hotter 2026 and El Nino With Growing Impact
Links for the day
Links 24/05/2026: Ebola Outbreak and "Journalists Identify Murder Victims Of Trump’s Boat Strike Program"
Links for the day
IAM Magazine is in Effect Dead, It's Now Fused Into Microsoft's Patent Troll (Which It Has Promoted All Along)
Microsoft-connected patent trolls in Europe [...] Now, in his new job, Wild can use his 'expertise' to help guide blackmail/extortion to better harm Europe's industry
A Huge Proportion of 'Articles' in The Register MS Are Actually Paid Spam of the Communist Party of China, Selling Compromised (for Wiretapping) Technology
The Register MS is having a go at becoming a marketing company or "B2B"
Top Officials Have Just Left Microsoft, Layoffs in Anything But Name
Microsoft's debt is very fast-growing
Local Staff Committee The Hague (LSCTH) Meets "Alicante Mafia" at the European Patent Office (EPO)
Report on meeting with VP1 and his team on 21 April 2026
UbuntuPit (ubuntupit.com) Has Deleted Slop Pages, Its Slopfarm Experiment Has Failed (Like Always!)
Turning one's site into a slopfarm is a death knell
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, May 23, 2026
IRC logs for Saturday, May 23, 2026