HiveBoard Docs Search the docs… Ctrl K Get HiveBoard
Browse the help centre
  1. Help centre
  2. Settings and your data

Portable mode

Carry HiveBoard on a USB stick or to another computer: --portable keeps the settings, keys and trusted hosts in a hiveboard-data folder beside the app.

3 min read HiveBoard 0.1.7 Updated Make it yours · lesson 3 of 8

In short

  • Start HiveBoard once with --portable and it creates a hiveboard-data folder beside the app and copies your settings, keys and trusted hosts into it, never overwriting anything.
  • From then on that folder is the data folder whenever HiveBoard is started from there, with no flag needed.
  • Copy the app and the folder together; on another computer every self-contained server works as it did.
  • Your own codes, the connection log and the saved jobs are not copied, and the Terms of Use are asked for again.

In portable mode HiveBoard keeps its whole data folder beside the app, in a folder named hiveboard-data, instead of in your user folder. Copy the app and that folder to a USB stick or another computer, start the app there, and your servers, keys and trusted hosts come along. Nothing has to be installed.

Portable mode is a feature of the app that hiveboard.dev hands out, on every system.

Making a copy portable

Start the app once from a terminal with --portable, using the name of your file:

.\hiveboard-0.1.7-windows.exe --portable
./hiveboard-0.1.7-linux --portable

(On a Mac, ./hiveboard-0.1.7-macos-arm64 --portable, or the macos-intel file.)

HiveBoard then:

  1. creates a folder named hiveboard-data beside the file;
  2. copies into it your config.yaml, your known_hosts and the keys in keys/ from ~/.hiveboard — and never overwrites a file already there;
  3. starts with that folder as its data folder. Started from a terminal, it prints “Portable mode: everything lives in …” and a line for each file it copied.

From then on the folder is what switches portable mode on: start the app from beside it — a double-click will do — and it uses hiveboard-data, with no flag. --portable is not needed again.

The app must sit in a folder you can write to, such as a USB stick or your Documents, since the folder is created beside it.

What is copied, and what is not

CopiedNot copied
config.yaml — your servers and settingsengines/ — your own simulation codes
known_hosts — the servers you trustconnections.log
keys/ — HiveBoard’s own keys and certificatesarchive/, the saved finished jobs, and cache.gob.gz
terms-accepted.json, so the Terms of Use are asked for once more

The copies come from ~/.hiveboard, the default data folder, even if you normally point HiveBoard elsewhere with HIVEBOARD_HOME. Copy engines/ by hand if you use codes of your own. What each file is: the data folder.

The page’s own preferences — the theme, the filters and sorting of the job list, which servers are shown, the 3-D options, Guardian’s settings and log — are not in the data folder at all. The window or the browser keeps them, on each computer, so on another computer they start from the defaults.

What works on another computer

A server is self-contained when its address, user and key all live in HiveBoard’s data folder; those work anywhere the folder goes. Two kinds of server depend on the computer:

  • A server that comes from ~/.ssh/config is reached as ssh <name> would reach it on that computer, with that computer’s ~/.ssh. Open it in Connections and choose Make it self-contained on its Connection tab before you carry it (hosts from your SSH config).
  • A server that signs in through this computer’s SSH agent — a security key, a smart card, a password manager — needs the agent of the computer you are on to hold the key too (security keys, smart cards and the SSH agent).

In a portable copy the foot of the Connections list says “Portable copy.” and counts the servers that still use this computer’s ~/.ssh. Settings → General gives the reason for the data folder as “Portable — beside the app. Move the folder and everything comes along.”

Which folder wins

Portable mode is third in the order HiveBoard picks its data folder: --data-dir and the HIVEBOARD_HOME environment variable both come before it. With --data-dir given, --portable is ignored. To leave portable mode, quit HiveBoard and move or rename hiveboard-data.

Check yourself

1 quick question on this page. Nothing is sent anywhere.

  1. You copied the app and its hiveboard-data folder to another computer. Which servers may not work there?

    • Servers added from ~/.ssh/config
    • Servers with a key from HiveBoard's keychain
    • Servers that sign in with a password
    • Servers reached through a jump server in HiveBoard
    Show the answer

    Servers added from ~/.ssh/config A server that comes from ~/.ssh/config depends on that file and those keys, which stay on the first computer; self-contained servers travel with the folder.

Try it in the app

On your own computer, with HiveBoard open. Tick them off as you go.

Lesson 3 of 8 in Make it yours Next lesson: Command-line options

Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.

↑ ↓ to moveEnter to openEsc to close