Passenger

Passenger on Linux

Passenger's Linux builds come from the same code as its Windows and macOS ones, and each CI run tests them on Ubuntu, then installs the archive there, debugs a program with it and uninstalls it. Fewer people use them yet, so please report anything that goes wrong.

1. What it needs

A 64-bit Intel or Arm machine with a desktop, and:

# Ubuntu, Debian
sudo apt install git libx11-6 libice6 libsm6 libfontconfig1 fonts-dejavu-core

# Fedora
sudo dnf install git libX11 libICE libSM fontconfig dejavu-sans-fonts

# Arch
sudo pacman -S git libx11 libice libsm fontconfig ttf-dejavu

2. Download and unpack

arch=$(uname -m | sed 's/x86_64/x64/; s/aarch64/arm64/')
curl -LO \
    https://github.com/Zaneris/passenger/releases/latest/download/Passenger-linux-$arch.tar.gz
tar -xzf Passenger-linux-$arch.tar.gz

That makes a passenger folder. Passenger is self-contained: it can run from there as it is (./passenger/passenger), with nothing installed.

3. Install

./passenger/install.sh

For you alone, with no root needed. It copies Passenger to ~/.local/opt/passenger, links ~/.local/bin/passenger-ide, and adds Passenger to your applications menu with its icon, as one of the programs that open .sln, .slnx and .csproj files, and the solutions and folders you open join your desktop's recent files. If ~/.local/bin is not on your PATH yet, add it:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile

For everyone on the machine, run it with sudo ./passenger/install.sh --system, which uses /opt/passenger, /usr/local/bin and /usr/share/applications instead.

Then open a folder or a solution from the menu, or from a shell:

passenger-ide ~/src/MySolution

The command is passenger-ide, as on Windows and macOS, so it never meets Phusion Passenger's passenger. An install from before it was named so has its passenger link moved to the new name; any other passenger is left as it is.

The toolbar is the window's title bar, as on Windows and macOS, with the window's buttons at its right. To have your window manager's own title bar instead, turn off Settings › Appearance › Merge main menu with window title. Under WSL and tiling window managers, the window manager's stays.

With Orca, Passenger reads the line the caret is on in the code editor and the terminal; Accessibility says what each system's screen reader gets.

Updating

Installed with install.sh, Passenger updates itself. It downloads a newer release in the background (Help › Check for Updates asks at once), checks it against the release's SHA-256 sums, and puts it in place as it closes, or at once with Restart to Update, keeping your settings. Installed for everyone, it asks for an administrator's password where your desktop can ask, or gives you the command to run. The release it replaced is kept until the new one starts.

Run from where its archive was unpacked, Passenger only says a newer release is out, and links the archive for your machine: unpack it in its place, or install it. A copy your package manager installed is updated by it.

To carry Passenger on a USB stick or keep it apart, make a folder named data in the unpacked passenger folder, beside its launcher. That copy is then portable: it keeps its settings, layout, trusted folders and history in data, never in your home, adds nothing to your menu or recent files, and says when a release is out without replacing itself.

Packaging Passenger

A package of Passenger (an AUR, .deb or .rpm package) installs the archive's passenger folder where it chooses, with its desktop entry, icons and file types, rather than running install.sh. It also writes one file beside the app, app/package-manager: a line naming the package manager, such as pacman, apt or dnf, and a second line, if you like, with the command that updates Passenger. Passenger then leaves its updates to that manager and says so, naming that command, rather than asking the system's package database whose the copy is, and never writes over the package's files. A file of more lines, or that is not text, stops Passenger as it starts, saying why. Name the command passenger-ide, as install.sh does.

printf 'AUR\nyay -Syu passenger-ide-bin\n' > "$pkgdir/opt/passenger-ide/app/package-manager"

Uninstalling

~/.local/opt/passenger/install.sh --uninstall
# or, if it was installed for everyone
sudo /opt/passenger/install.sh --uninstall --system

Your settings and layout stay in ~/.local/share/Passenger; delete that folder to remove them too.

If something goes wrong