Linux Scripts For Deep Learning Projects
- Introduction to Lscripts Docker
- Quick start
- System design
- System Setup
- Color Codes
- Lscript Docker
- Tools Stack
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
.
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=""
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
- Clone the repo
git clone https://github.com/skillplot/lscripts-docker.git
- 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
To verify that lscripts-docker
has been installed, do:
command -v lsd-ls
wget
orcurl
is required if you are using direct execution of script from the URL. Installwget
orcurl
, 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
- 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
- Directly execute
- 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
- Directly execute
- 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
- Directly execute
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'