Skip to content

gladiola/WindowsOpenBSDdistributor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WindowsOpenBSDdistributor

Language index

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.


Step 1 – Download to USB drive (Windows)

Prerequisites

  • Git for Windows installed and on PATH.
  • A USB drive plugged in (e.g. drive E:).

Run the PowerShell script

# 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.


Step 2 – Install on OpenBSD

Prerequisites

  • Root (or doas) access on the OpenBSD machine.
  • The USB drive physically connected to the OpenBSD machine.

Mount the USB drive

# 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

Run the install script

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:

  1. Copies it to <install_dir>/ (default /usr/local/gladiola)
  2. Sets chmod 755 on all .sh files
  3. Runs make install if a Makefile is present (output shown only on failure)

Unmount the USB drive when done

doas umount /mnt/usb

Directory layout

WindowsOpenBSDdistributor/
├── 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors