English (US) · Deutsch · Español · Français · Português · Italiano · 繁體中文 (香港) · 한국어 · हिन्दी · Русский · العربية · Kiswahili · 日本語 · Kreyòl ayisyen · ʻŌlelo Hawaiʻi · Gagana Samoa · Te Reo Māori · Afrikaans · Nederlands · Hausa · አማርኛ · Yorùbá · বাংলা · 普通话 · Eesti · Suomi · Svenska · Norsk · Українська · ไทย · Bahasa Indonesia · Tagalog · Bahasa Melayu · Basa Jawa · Ελληνικά · Latina · עברית · Gaeilge
Download gladiola repos to a USB drive on Windows, then install them on an OpenBSD machine – even when the OpenBSD system has no direct internet access.
Both scripts support interactive selection so you can pick exactly which repos to download or install each time.
- Git for Windows installed and on
PATH. - A USB drive plugged in (e.g. drive
E:).
# Allow running local scripts (one-time, run as Administrator if needed)
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned| Mode | Command |
|---|---|
| Interactive – GUI picker window | .\windows\download_repos.ps1 -DriveLetter E |
| Specific repos – no GUI | .\windows\download_repos.ps1 -DriveLetter E -Repos "OBJC-codespaces","OpenBSDHomemadeBlockScripts" |
| All repos – no GUI | .\windows\download_repos.ps1 -DriveLetter E -All |
| With a GitHub token (raises rate limit) | add -Token ghp_yourToken to any command above |
Interactive mode fetches all public gladiola repos from the GitHub API and
opens an Out-GridView window listing repo names. Hold Ctrl or Shift
to select multiple repos, then click OK.
The script clones each chosen repo into <DriveLetter>:\gladiola_repos\.
If a repo was already cloned previously it fetches and resets to the latest
HEAD instead.
Safely eject the USB drive when the script reports success.
- Root (or
doas) access on the OpenBSD machine. - The USB drive physically connected to the OpenBSD machine.
# Find the device name (look for the USB drive, often sd1 or sd2)
sysctl hw.disknames
# Mount it (replace sd1i with your actual partition)
doas mount -t msdos /dev/sd1i /mnt/usb| Mode | Command |
|---|---|
| Interactive – numbered menu | doas sh openbsd/install_repos.sh |
| Specific repos – no menu | doas sh openbsd/install_repos.sh -r OBJC-codespaces,OpenBSDHomemadeBlockScripts |
| All repos – no menu | doas sh openbsd/install_repos.sh -a |
| Custom source / destination | add -s /mnt/usbkey -d /home/myuser/gladiola |
Interactive mode lists every repo found in gladiola_repos/ on the USB
drive with a number, then prompts you to enter the numbers you want (e.g.
1 3 5). Press Enter with no input to install everything.
For each selected repository the script:
- Copies it to
<install_dir>/(default/usr/local/gladiola) - Sets
chmod 755on all.shfiles - Runs
make installif aMakefileis present (output shown only on failure)
doas umount /mnt/usbWindowsOpenBSDdistributor/
├── windows/
│ └── download_repos.ps1 # Run on Windows to populate the USB drive
├── openbsd/
│ └── install_repos.sh # Run on OpenBSD to install from the USB drive
└── README.md