Skip to main content

Contains anything related to setting up a new computer (desktop) system

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Contributing License pre-commit GitHub

cmstp - computer setup

Contains anything related to setting up a new computer (desktop) system.

Disclaimer - Use at your own risk

This project is currently (12.2025) coded solely by me. As a junior developer, there is probably a lot that can be improved and although I have tested each task, there may be some unforeseen issues. Please use with caution and report any issues you find (see the contributing section).

During this project's initial development, I recommend using it solely on fresh machines.

Installation

Prerequisites

Ubuntu 24.04+

We recommend installing pipx via apt:

sudo apt update && sudo apt install pipx

Older Ubuntu Versions

We recommend installing pipx via pip:

sudo apt update && sudo apt install python3 python3-pip && python3 -m pip install --user pipx

NOTE: The installation of pipx via pip (as opposed to apt) is recommended on older versions, as the apt version is often outdated.

MacOS

Not supported yet.

Windows

Not supported yet.

Main Installation

Then, install cmstp via pipx:

pipx install cmstp

Usage

Pre-Setup

We recommend setting up the following before running the main installation/configuration tasks:

  • Configuring SSH keys for git (GitHub, GitLab, etc.) - some tasks may require cloning private repositories
  • Disabling Secure Boot (e.g. for installing NVIDIA drivers)

You can use the provided helper to guide you through these steps:

cmstp pre-setup [-s] [-g]

The helper also provides further possible manual setup steps for configuring fresh systems.

NOTE: You may also look up the general instructions for creating SSH keys here.

Main Installations/Configurations

To use default installations/configurations, simply use (without any flags):

cmstp setup [-h] [-t TASKS [TASKS ...]] [-f CONFIG_FILE] [-d CONFIG_DIRECTORY] [-p] [-v]

To use custom config installation/configuration config files, use (flag shorthand: -d)

cmstp --config-directory </path/to/configs/ | git_url>

where /path/to/configs/ is a directory containing multiple txt/json(c)/yaml/... configuration files (to be used by tasks as defined in this repo's config/default.yaml file) following this package's default config/ directory. Each file in that directory should have the same name and structure as in the default. We STRONGLY RECOMMEND saving a personalized config directory as a git repository and providing the git URL instead of a local path. The repository will be cloned and used for the configurations. For more details and examples of configs, see this README.

To easily specify multiple tasks to be run, use (flag shorthand: -f)

cmstp --config-file /path/to/config.yaml

where the config file should be a yaml file following the structure of the config/enabled.yaml file in this package. That config file contains detailed explanations. Should a relative path be provided, the file will first be searched for locally and then in the config directory.

To simply enable tasks with their default configurations, use (flag shorthand: -t)

cmstp --tasks TASK1 TASK2 ...

where TASK1, TASK2, ... are the task names as specified in the config/enabled.yaml file in this package. If both --config-directory and --tasks are provided, the --tasks flag takes precedence for enabling tasks.

Contributing

Please see CONTRIBUTING.md for contribution guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Possible Future Features

  • Add uninstallations/deconfigurations and seprate configurations from installations. That could result in multiple entrypoints (instead of the current single cmstp setup):
    • cmstp install - for installations only
    • cmstp configure - for configurations only
    • cmstp uninstall - for uninstallations only
    • Possibly, a cmstp deconfigure for deconfigurations only
  • Setup Browser Bookmarks
  • Setup Autocompletions

TODO

Please see TODO.md for a list of planned improvements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmstp-1.0.6.tar.gz (67.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmstp-1.0.6-py3-none-any.whl (82.3 kB view details)

Uploaded Python 3

File details

Details for the file cmstp-1.0.6.tar.gz.

File metadata

  • Download URL: cmstp-1.0.6.tar.gz
  • Upload date:
  • Size: 67.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for cmstp-1.0.6.tar.gz
Algorithm Hash digest
SHA256 3e69194b644ba12c6b6fb6001e01625178fa339aa711112b3d947e73fc0a4fbc
MD5 df2fb54f2f307860993aa33aa3968f33
BLAKE2b-256 afbd5283ccaf45fae807ba4f4732b3a78d6646be7e4db1b7ce0a88dc36fadeab

See more details on using hashes here.

File details

Details for the file cmstp-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: cmstp-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 82.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for cmstp-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b115c3abf9545b8c228bf9265dfb2539766f3a49a3f6991f5636c83162e51b2d
MD5 f7b3c4d4257fb03cb49dfdb51f50bf8e
BLAKE2b-256 1fcfd1e37117cd1593b40ba06b68ab02e7780b4c2240a8eef93de6cf00be7075

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page