donglify


Namedonglify JSON
Version 20240124 PyPI version JSON
download
home_page
SummaryThe ultimate Archlinux encryption USB dongiled setup.
upload_time2024-01-24 07:19:25
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2024 ayham Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords archlinux donglify encryption linux luks security usb
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # donglify

The majority of Linux systems have a sever security threat. These installs are
susceptable to data theft if the install disk is stolen. ArchLinux offers LUKS
as an encryption method to protect the root & data partitions. Even then, the
majority of these installs omit the encryption of the `/boot` or `/efi`
partitions. This script helps automate the configuration of encrypted `/boot`.
And provides a solution in replacement of the `/efi` partition, which usually
can not be encrypted, by having it be present on a USB DONGLE.

## Usage

To use donglify, you will need to install the initial configurations onto a
USB, which can be done as follows:

```sh
donglify init /dev/sd[a,b,c]
```

This command creates the following partitions on your USB.

- `/efi`, 512 MB, holds the EFI stub which the BIOS of a system to boot the
  USB.
- `/boot`, 2GB, holds the kernels of the donglified systems, AND the
  `dongle.ini` configuration file.
- `dongleisos`, size is set by the user, used to hold the ISOs which are
  available in the GRUB menu on USB boot, currently only `loopback.cfg` ISOs
  can be used.
- `donglepersist`, size is set by the user, an encrypted LUKS partition that
  can be used by the user to store personal data.

In order to enter the interactive donglify prompt:

```sh
donglify /dev/sd[a,b,c][2]
```

The argument should be the donglified USB `/boot` partition.

## Interactive Commands

donglify uses an interactive CLI interface to conduct its business. This is
currently the only support, future support for automated installs could be
added.

### cmd: add

Adds host system configuration to the donglified USB. This configuration is
automatically to the host system installed once established.

```sh
donglify> add
```

You will be prompted for configuration options.

You will need to add unlock root LUKS entry in
[/etc/crypttab.initramfs](https://wiki.archlinux.org/title/dm-crypt/System_configuration#crypto),
otherwise the initial ramdisk won't ask to unlock your root partition on your
added system. There you can also tell it about your keyfile location if you
choose to do so.

```sh
[~] $ sudo cat /etc/crypttab.initramfs 
cryptssd UUID=<your UUID here> /boot/crypto_keyfile.bin
crypthdd UUID=<your UUID here> /boot/crypto_keyfile.bin
```

### cmd: mount

```sh
donglify> mount
```

Mounts all donglified USB except for `donglepersist`.

### cmd: unmount

```sh
donglify> unmount
```

Unmounts all partitions that `mount` mounted.

### cmd: list

```sh
donglify> list
```

Lists all installed systems on the USB.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "donglify",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "ayham-1 <me@ayham.xyz>",
    "keywords": "archlinux,donglify,encryption,linux,luks,security,usb",
    "author": "",
    "author_email": "ayham-1 <me@ayham.xyz>",
    "download_url": "https://files.pythonhosted.org/packages/f1/e8/2fd18e05fc1b9203f7bbc4aae1657b759b92c6773861c07d59feb2ad3dbd/donglify-20240124.tar.gz",
    "platform": null,
    "description": "# donglify\n\nThe majority of Linux systems have a sever security threat. These installs are\nsusceptable to data theft if the install disk is stolen. ArchLinux offers LUKS\nas an encryption method to protect the root & data partitions. Even then, the\nmajority of these installs omit the encryption of the `/boot` or `/efi`\npartitions. This script helps automate the configuration of encrypted `/boot`.\nAnd provides a solution in replacement of the `/efi` partition, which usually\ncan not be encrypted, by having it be present on a USB DONGLE.\n\n## Usage\n\nTo use donglify, you will need to install the initial configurations onto a\nUSB, which can be done as follows:\n\n```sh\ndonglify init /dev/sd[a,b,c]\n```\n\nThis command creates the following partitions on your USB.\n\n- `/efi`, 512 MB, holds the EFI stub which the BIOS of a system to boot the\n  USB.\n- `/boot`, 2GB, holds the kernels of the donglified systems, AND the\n  `dongle.ini` configuration file.\n- `dongleisos`, size is set by the user, used to hold the ISOs which are\n  available in the GRUB menu on USB boot, currently only `loopback.cfg` ISOs\n  can be used.\n- `donglepersist`, size is set by the user, an encrypted LUKS partition that\n  can be used by the user to store personal data.\n\nIn order to enter the interactive donglify prompt:\n\n```sh\ndonglify /dev/sd[a,b,c][2]\n```\n\nThe argument should be the donglified USB `/boot` partition.\n\n## Interactive Commands\n\ndonglify uses an interactive CLI interface to conduct its business. This is\ncurrently the only support, future support for automated installs could be\nadded.\n\n### cmd: add\n\nAdds host system configuration to the donglified USB. This configuration is\nautomatically to the host system installed once established.\n\n```sh\ndonglify> add\n```\n\nYou will be prompted for configuration options.\n\nYou will need to add unlock root LUKS entry in\n[/etc/crypttab.initramfs](https://wiki.archlinux.org/title/dm-crypt/System_configuration#crypto),\notherwise the initial ramdisk won't ask to unlock your root partition on your\nadded system. There you can also tell it about your keyfile location if you\nchoose to do so.\n\n```sh\n[~] $ sudo cat /etc/crypttab.initramfs \ncryptssd UUID=<your UUID here> /boot/crypto_keyfile.bin\ncrypthdd UUID=<your UUID here> /boot/crypto_keyfile.bin\n```\n\n### cmd: mount\n\n```sh\ndonglify> mount\n```\n\nMounts all donglified USB except for `donglepersist`.\n\n### cmd: unmount\n\n```sh\ndonglify> unmount\n```\n\nUnmounts all partitions that `mount` mounted.\n\n### cmd: list\n\n```sh\ndonglify> list\n```\n\nLists all installed systems on the USB.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 ayham  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "The ultimate Archlinux encryption USB dongiled setup.",
    "version": "20240124",
    "project_urls": {
        "Homepage": "https://github.com/ayham-1/donglify"
    },
    "split_keywords": [
        "archlinux",
        "donglify",
        "encryption",
        "linux",
        "luks",
        "security",
        "usb"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22f7faa2e23618a6675746e447f65c8d495d8020d2278a2334383832e553219e",
                "md5": "3a6337f592d7f8d24052f0c7d9dfec14",
                "sha256": "b455e9373530bf556d79c9a2f0733fd21007236f4fcb7497c62dbd3c5efc7c53"
            },
            "downloads": -1,
            "filename": "donglify-20240124-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3a6337f592d7f8d24052f0c7d9dfec14",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1140874,
            "upload_time": "2024-01-24T07:19:19",
            "upload_time_iso_8601": "2024-01-24T07:19:19.156037Z",
            "url": "https://files.pythonhosted.org/packages/22/f7/faa2e23618a6675746e447f65c8d495d8020d2278a2334383832e553219e/donglify-20240124-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1e82fd18e05fc1b9203f7bbc4aae1657b759b92c6773861c07d59feb2ad3dbd",
                "md5": "8d98f244fadc4b847d4ee48f0d018220",
                "sha256": "f64798b006a22922a342300d2d90e4d7b476f1ed19081bb513844d93dfea1522"
            },
            "downloads": -1,
            "filename": "donglify-20240124.tar.gz",
            "has_sig": false,
            "md5_digest": "8d98f244fadc4b847d4ee48f0d018220",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1133597,
            "upload_time": "2024-01-24T07:19:25",
            "upload_time_iso_8601": "2024-01-24T07:19:25.783603Z",
            "url": "https://files.pythonhosted.org/packages/f1/e8/2fd18e05fc1b9203f7bbc4aae1657b759b92c6773861c07d59feb2ad3dbd/donglify-20240124.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-24 07:19:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ayham-1",
    "github_project": "donglify",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "donglify"
}
        
Elapsed time: 0.16723s