dodo325 / ohmylinux

setting up your linux is easy!
MIT License
2 stars 1 forks source link

Oh my Linux!

Setting up your linux is easy!

asciicast

Getting Started

Prerequisites

Basic Installation

Manual Installation

Clone repo:


   git clone https://github.com/dodo325/ohmylinux.git

Or


   git clone --recurse-submodules https://github.com/dodo325/ohmylinux.git

Start script:


   bash ohmylinux/oh-my-linux

Testing:

Base:

Load shunit2:


   git submodule init; git submodule update

Run tests:


   ./test.sh

Docker:

Build:


   docker build -f ./docker/ubuntu -t ohmylinux .

Run tests:


   docker run --rm -it --entrypoint bash ohmylinux test.sh

Run Bash session:


   mkdir -p build/

   docker run --rm -v "$(pwd)"/build/:/app/build/ -it --entrypoint bash ohmylinux

Command Line Interface:


   oh-my-linux - Oh My Linux

   Usage:
   oh-my-linux [command]
   oh-my-linux [command] --help | -h
   oh-my-linux --version | -v

   Commands:
   build   Build script
   run     Run the script

   Options:
   --help, -h
      Show this help

   --version, -v
      Show version number

   Environment Variables:
   DEBUG
      Enable debug mode

Build


   oh-my-linux build - Build script

   Shortcut: b

   Usage:
   oh-my-linux build [SELECT] [options]
   oh-my-linux build --help | -h

   Options:
   --help, -h
      Show this help

   --debug, -d
      Enable debug mode

   --no-logo
      Not print logo

   --run, -r
      Run scripn after building

   --sysinfo
      Print System info

   Arguments:
   SELECT
      Selecte some scripts

   Examples:
   cli build
   cli build -d -r
   cli build "vlc GUI"
   cli build --sysinfo "vlc GUI"

Run


   oh-my-linux run - Run the script

   Usage:
   oh-my-linux run SCRIPT [options]
   oh-my-linux run --help | -h

   Options:
   --help, -h
      Show this help

   --debug, -d
      Enable debug mode

   --no-logo
      Not print logo

   --sysinfo
      Print System info

   Arguments:
   SCRIPT
      Script name