*** This article is based on Ubuntu. RHEL and CentOS versions are also posted with one exception. *** ***
#Examine your Linux distribution What is Linux in the Python image on the Docker Hub? It may be convenient when it becomes cat /etc/issue #Debian,Run Ubuntu etc. sudo apt install build-essential -y #RHEL ,For CentOS etc., execute the following sudo yum groupinstall "Development tools" -y
Please refer to "Running Docker using WSL2 on Windows 10 Home"
3.git-secrets The git command itself should have been installed with apt install build-essential in 1. If it is not included, please install it separately. .. ..
git clone https://github.com/awslabs/git-secrets.git cd git-secrets make install #To execute the following, please install awscli first by referring to "Python installation" below. git secrets --register-aws --global #If you are using Source Tree, you also need to do the following: #reference #https://qiita.com/yamaryu0508/items/d959dc32442b08b8a0a4 which git which git-secrets ln -s "git-Where the secrets are" "Where git is" #Open the SourceTreew pre and open the "Git" tab from "Preferences" #Click "Use system Git" in "Version of Git" #Click the "git" file (at this time, the git that created the symbolic link earlier-Check if there are secrets) #Go back to the "Preferences" screen and check that you have migrated from "Built-in Git version" to "System Git" in "Git version". #
The procedure to install python3.8.0 is posted. Please adjust the runtime according to each requirement.
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz tar -xf Python-3.8.0.tar.xz cd Python-3.8.0 ./configure --enable-optimizations make -s -j4 #-Meaning of using 4 cores with j4 sudo make altinstall which python3.8 #ex) /usr/local/bin/python3.8 ln -s "ex) /usr/local/bin/python3.8" "ex) /usr/local/bin/python" python --version #Check if it is installed properly #pip installation curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py pip --version #Check if it is installed properly #Virtual environment construction Use venv officially supported by Python python -m venv env #You will have a folder called env. Feel free to change the name. #Enable virtual environment echo "source ~/env/bin/activate" >> ~/.bashrc #awscli installation pip install awscli # ~/.aws/Enter the information found in credentials. If you do not have it, please download it from the console first. aws configure
apt install nodejs npm -y npm install n -g n stable #node.Install js stabilizer apt purge nodejs npm -y #Delete the first one(Also includes configuration files. Change purge to remove to remove config files apt autoremove exec $SHELL -l #Re-login node --version #Check if it is installed properly
apt search openjdk-\(\.\)\+-jdk$ apt install openjdk-11-jdk java --version javac --version
#Add repository sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' #Add authentication key sudo apt-get install curl ca-certificates curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - #Install PostgreSQL 12 sudo apt install postgresql-12 #Start PostgreSQL server service postgresql start #Create a user named user createuser --pwprompt --interactive user #Connection confirmation sudo su - postgres psql -h localhost -U user -d postgres #If the connection is successful, check the current status #Created DB information \l #Created schema information \dn #Created table information \dt #Clear screen \! clear
git clone https://github.com/rbsec/sslscan.git cd sslscan && make static