Skip to content

Lscripts Docker just happened to come into existence as a part of my personal research work. It was an attempt to reduce my manual effort to setup my systems. I hope you will discover some cool tricks using it and surely will develop the love-hate relationship with `lscripts-docker` framework.

License

Notifications You must be signed in to change notification settings

skillplot/lscripts-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lscripts Docker

Linux Scripts For Deep Learning Projects

About

Lscripts Docker or lsd is a collection of shell scipts, designed to be installed per-user, and invoked per-shell. lsd should work on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), but it's developed and tested on bash in particular to Ubuntu 18.04 LTS.

Configuration Option

environment variables

export LSCRIPTS__BASENAME="lsdhub"
export LSCRIPTS__ROOT="/boozo-hub"
##
export LSCRIPTS__BANNER=1
export LSCRIPTS__BANNER_TYPE="skillplot-1"
##
export LSCRIPTS__DEBUG=1
export LSCRIPTS__LOG_LEVEL=8
##
export LSCRIPTS__VMHOME=""
export LSCRIPTS__PYVENV_PATH=""
export LSCRIPTS__WSGIPYTHONPATH=""
export LSCRIPTS__WSGIPYTHONHOME=""
export LSCRIPTS__ANDROID_HOME=""
export LSCRIPTS__APACHE_HOME=""
export LSCRIPTS__WWW_HOME=""
export LSCRIPTS__DOWNLOADS=""
export LSCRIPTS__EXTERNAL_HOME=""

Installation

To install or update lsd, you should run the install script. To do that, you may either download and run the script manually, or use the following cURL or Wget command:

## Install the pre-requisite if not available
sudo apt -y update
sudo apt -y install curl
sudo apt -y install wget
bash <(wget -qO- https://raw.githubusercontent.com/skillplot/lscripts-docker/main/install.sh)
bash <(curl -s https://raw.githubusercontent.com/skillplot/lscripts-docker/main/install.sh)

Running either of the above commands downloads a script and runs it. The script clones the lscripts-docker repository to ~/.lscripts-docker, and attempts to add the source lines from the snippet below to the correct profile file: ~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

  • bash: source ~/.bashrc
  • zsh: source ~/.zshrc
  • ksh: . ~/.profile
  1. Clone the repo
    git clone https://github.com/skillplot/lscripts-docker.git
  2. Put the following in the end of the ~/.bashrc file. Change the path where you cloned the repo:
    ## Replace /codehub with your desired basepath
    export __CODEHUB_ROOT__="/codehub"
    export __LSCRIPTS_DOCKER="${__CODEHUB_ROOT__}/external/lscripts-docker"
    [ -f ${__LSCRIPTS_DOCKER}/lscripts/lscripts.env.sh ] && source ${__LSCRIPTS_DOCKER}/lscripts/lscripts.env.sh
    [ -f ${__LSCRIPTS_DOCKER}/env.sh ] && source ${__LSCRIPTS_DOCKER}/env.sh

Verify Installation

To verify that lscripts-docker has been installed, do:

command -v lsd-ls

Standalone Scripts

  1. wget or curl is required if you are using direct execution of script from the URL. Install wget or curl, if they are not installed already. These utilities may not be installed on system newly installed.
    sudo apt -y update
    sudo apt -y install wget
    sudo apt -y install curl
  2. Fingerprint Banner: Useful for having system fingerprint displayed while taking screenshots for lab assignments. It can be directly executed with the following command (internet access required)
    • Directly execute
      ## using curl
      bash <(curl -s https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.fingerprint.sh)
      ## using wget
      bash <(wget -qO- https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.fingerprint.sh)
    • Download it manually and execute
      ## Otherwise, they can download the script and execute it
      https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.fingerprint.sh
  3. Server Setup with Banner
    • Directly execute
      ## using wget
      bash <(wget -qO- https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.serversetup.sh)
      ## using curl
      bash <(curl -s https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.serversetup.sh)
    • Download it manually and execute
      ## Otherwise, they can download the script and execute it
      https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.serversetup.sh
  4. Add Login User to the system interactively
    • Directly execute
      ## using curl
      bash <(curl -s https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.adduser.sh)
      ## using wget
      bash <(wget -qO- https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.adduser.sh)
    • Download it manually and execute
      ## Otherwise, they can download the script and execute it
      https://raw.githubusercontent.com/skillplot/lscripts-docker/main/lscripts/banners/skplt.adduser.sh

Copyright and License Terms

Content under /docs directory under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit link:https://creativecommons.org/licenses/by-ncsa/3.0[https://creativecommons.org/licenses/by-ncsa/3.0 ].

All other content under License terms.

Copyright 2016-2024 Bhaskar Mangal (a.k.a. mangalbhaskar). All rights reserved.
__author__ = 'mangalbhaskar'

About

Lscripts Docker just happened to come into existence as a part of my personal research work. It was an attempt to reduce my manual effort to setup my systems. I hope you will discover some cool tricks using it and surely will develop the love-hate relationship with `lscripts-docker` framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •