GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — dislocker/INSTALL.md at master · Aorimn/dislocker

Expand file tree

/

INSTALL.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
140 lines (93 loc) · 3.95 KB
/

INSTALL.md

Copy path

File metadata and controls

140 lines (93 loc) · 3.95 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

INTRODUCTION

This file describes how to install dislocker onto your machine.

REQUIREMENTS

You need:

  • Compiler, gcc or clang;
  • cmake (at least version 2.6);
  • make;
  • pkg-config;
  • Headers for FUSE3;
  • Headers for mbedTLS 3;
  • A partition encrypted with BitLocker, from Windows Vista, 7 or 8.

If you have Ruby headers, the library will compile with some Ruby bindings and another program - see the NOTE section below - will be available.

For Debian-like distros:

  • aptitude install gcc cmake make libfuse3-dev libmbedtls-dev ruby-dev pkgconf

For Fedora-like:

  • dnf install gcc cmake make fuse-devel mbedtls3.6-devel ruby-devel rubypick

Alternatively, running dnf install dislocker fuse-dislocker to use the already existing RPM packages in Fedora could be a clever idea.

For RHEL-like (including CentOS Scientific Linux):

  • yum install gcc cmake make fuse-devel mbedtls-devel ruby-devel /usr/bin/ruby

Alternatively, running yum install dislocker fuse-dislocker to use the already existing RPM packages in EPEL could be a clever idea.

For FreeBSD:

  • pkg install cmake pkgconf fusefs-libs3 mbedtls3

For macOS: Follow the instructions in the next section.

Note that the code expects at least FUSE 3.14.

For macOS:

Install HomeBrew https://brew.sh

  • brew install cmake pkgconf mbedtls

INSTALLING

With Homebrew

Prebuilt packages are maintained outside of this repository. Install Homebrew (https://brew.sh) and run the following commands.

On macOS, which needs the closed-source macFUSE:

brew install --cask macfuse
brew install gromgit/fuse/dislocker-mac

On Linux:

brew install dislocker

From source

If you already have installed the dependencies (see REQUIREMENTS section above), you have to type the following commands to install the binaries on your system:

cmake .
make
sudo make install

Don't forget the dot (.) on the cmake command-line. If you only want to generate the binaries, without installing them, you can skip the last command (the one beginning with sudo).

Note that the '-Werror' flag in the cmake WARN_FLAGS variable may break the compilation for useless warnings. If you know what you're doing, you can remove it by running the following cmake command instead of the one above:

cmake -D WARN_FLAGS:STRING="-Wall -Wextra" .

See the cmake documentation if you want to customize the build.

Once installed, see dislocker(1) for details on how to use it.

UNINSTALLING

I'm sure you don't want to do that. But if you're really forced by someone, just type make uninstall as super-user.

PORTABILITY

Globally, this was successfully tested on Linux x86/x86_64, MacOSX and FreeBSD. It won't work on Windows and may not work on other BSDs (not tested).

For MacOSX, it has been tested against OSXFUSE 2.3.8 and 2.3.9.

Cases where you need to remove the '-Werror' from the WARN_FLAGS variable:

  • You're on Ubuntu 10.04;
  • You're using GCC with a version older than 4.3.

Whether it works or not, feel free to send comments and feedbacks to dislocker AT hsc DOT fr.

NOTE

Five binaries are built when compiling dislocker as described in the INSTALL.md file:

  1. dislocker-bek: for dissecting a .bek file and printing information about it

  2. dislocker-metadata: for printing information about a BitLocker-encrypted volume

  3. dislocker-find: not a binary but a Ruby script which tries to find BitLocker encrypted partition among the plugged-in disks (only work if the library is compiled with the Ruby bindings)

  4. dislocker-file: for decrypting a BitLocker encrypted partition into a flat file formatted as an NTFS partition you can mount

  5. dislocker-fuse: the one you're using when calling `dislocker', which dynamically decrypts a BitLocker encrypted partition using FUSE

You can build each one independently providing it as the makefile target. For instance, if you want to compile dislocker-fuse only, you'd simply run:

$ cmake .
$ make dislocker-fuse
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.