Multipurpose shell scripts and dotfiles
Go to file
2022-08-25 22:33:02 +08:00
install Docker (un)install scripts 2022-08-25 12:40:21 +08:00
packs Descriptions parsing improved 2022-08-25 22:33:02 +08:00
tools Scripts -> tools + fresh backup script 2022-07-10 14:42:40 +08:00
uninstall Docker (un)install scripts 2022-08-25 12:40:21 +08:00
upgrade New types of make rules + omz refactorings 2022-08-19 20:58:15 +08:00
.dockerignore Initial docker sandbox 2022-07-04 23:25:31 +08:00
.editorconfig editorconfig 2022-08-19 20:57:45 +08:00
.gitignore Makefile instead of start.sh + generator 2022-07-04 17:56:45 +08:00
Dockerfile Initial docker sandbox 2022-07-04 23:25:31 +08:00
gen-makefile Descriptions parsing improved 2022-08-25 22:33:02 +08:00
LICENSE Small fixes + WTFPLv2 2022-07-04 23:53:39 +08:00
Makefile Descriptions parsing improved 2022-08-25 22:33:02 +08:00
README.md Descriptions parsing improved 2022-08-25 22:33:02 +08:00

My Ubuntu environment

make-ready bunch of scripts for easily installation of different software.

Requirements

  • Ubuntu >= 20.04 (not tested with version < 20)
  • bash, zsh or other POSIX-compatible shell
  • make (optional but recommended)
  • wget (necessary for some scripts)
  • git (necessary for some scripts)

If some dependecies are missed for some of these scripts it is enougth to run ./install/apt in most cases.

Usage

# if git is installed
git clone git@git.axenov.dev:anthony/my-env.git --depth=1

# if git is not installed
wget -qO - https://git.axenov.dev/anthony/my-env/archive/master.tar.gz | tar -zxf -

# switch to repo dir
cd my-env

# generate fresh ./Makefile and get full list of `make` goals
./gen-makefile

# get full list of `make` goals
make

Selective straightforward installation

# from remote file
wget -qO - https://git.axenov.dev/anthony/my-env/raw/branch/master/install/apt | bash

# from locally cloned repo
./install/apt

How to add a new software script?

  1. Create new ./install/* script.
    At the beggining of a file you must write these two lines:
    #!/bin/bash
    ##makedesc: Your description for Makefile
    
  2. Test your script
  3. Run ./gen-makefile to generate new ./Makefile

How to create packs?

You can create new file inside ./packs dir.

Syntax is same as classic makefile with one important and necessary addition -- a comment started with ##:

# Pack description
mypack1: goal1 goal2 goalX ...
   ...

# Pack description
mypackX: goalA goalB
   @cp file1 file2
   ...
...

where:

  • mypack* is the pack name
  • goal* are script names in ./install

Note that this is almost useless way to test since you'll meet errors in many cases because dockerized OS is not fully-functional and will never be.

You can use docker to test something really simple, e.g. to check general script steps or install cli tools.

In other cases you need virtualized Ubuntu instead of dockerized one, so I strongly recommend you to use VirtualBox or your host machine.

# switch to repo dir
cd my-env

# build and run container 
docker build -t myenv . && docker run -it myenv

# or oneliner
docker run -it $(docker build -q .)

Now you can play around with scripts.

TODO

License

WTFPLv2