My Ubuntu environment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Anthony Axenov 7554e57ea4
Merge branch 'master' of git.axenov.dev:anthony/my-env
4 days ago
dotfiles Merge branch 'master' of git.axenov.dev:anthony/my-env 4 days ago
install Merge branch 'master' of git.axenov.dev:anthony/my-env 4 days ago
packs obs pack and fixes 2 months ago
tools ytdlcue fixes 2 months ago
uninstall lite-xl 2.1.0 1 month ago
upgrade Makefile generation improved 3 months ago
.editorconfig editorconfig 4 months ago
.gitignore inotifywait-cp 2 months ago
LICENSE Small fixes + WTFPLv2 5 months ago
Makefile openvpn 4 days ago
README.md Dockerfile removed, README fixes 2 months ago
gen-makefile gen-makefile is back 2 months ago

README.md

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 (you can meet interaction bugs this way!)
wget -qO - https://git.axenov.dev/anthony/my-env/raw/branch/master/install/apt | bash

# from locally cloned repo (except scripts from ./packs)
./install/apt

How to add my script?

  1. Create a new shell script in ./install, ./upgrade or ./uninstall directory.
    At the beggining of a file you must write these two lines:
    #!/bin/bash
    ##makedesc: Your description for Makefile
    
  2. Make this script executable, e.g.:
    sudo chmod a+x ./install/myscript
    
  3. Test your script
  4. Run make self to generate new ./Makefile

How to create a pack?

You can create new file inside ./packs dir.

Syntax is same as classic makefile. It is important to add a comment with short description:

# 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

TODO

License

WTFPLv2