sudo dpkg –configure -a sudo apt-get install mysql-server apt-cache pkgnames | grep php7.3 php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);” php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ‘a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;” php composer-setup.php php -r “unlink(‘composer-setup.php’);” sudo mv composer.phar /usr/local/bin/composer # run this if you are building…
Create a bash file named install_mongo.bash: apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 9DA31620334BD75D9DCB49F368818C72E52529D4 echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse$ apt-get update apt-get install -y mongodb-org sudo systemctl enable mongod sudo systemctl start mongod Execute the bash file sudo bash ./install_mongo.bash You are ready to use Mongo
Install Node.js sudo apt-get install curl curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash – sudo apt-get install -y nodejs Install LAMP stack sudo apt-get install apache2 sudo apt-get install php7.0 libapache2-mod-php7.0 sudo apt-get install mysql-server sudo /etc/init.d/apache2 restart Install phpmyadmin sudo apt-get install phpmyadmin sudo nano /etc/php/7.0/apache2/php.ini Uncomment extension=msql.so sudo /etc/init.d/apache2 restart sudo nano…
pwd -> show the current working directory ls -a -> show list of all files and folders (hidden also) ls -l -> show list of all files and folders with their permissions mkdir -> Make directory rmdir -> Delete directory rm -R -> Delete directory even if it is not empty cd -> moves…