Ubuntu 19.10 setup commands for web development server

Generic Terminal Commands Across Multiple Linux Distributions
Post Reply
User avatar
Administrator
Site Admin
Posts: 1627
Joined: Thu Mar 22, 2018 10:19 am

Ubuntu 19.10 setup commands for web development server

Post by Administrator » Sun Jan 26, 2020 10:32 pm

Load of commands to help speed up the process of setting up a web development server, in Ubuntu 19.10

Code: Select all

#!/bin/sh

#update and clean

echo "Go to Home Directory"

cd ~/

sudo apt upgrade

sudo apt update

sudo apt autoremove

#install applications

#developer apps

sudo apt -y install nodejs npm git curl php mysql-server apache2 php-mysql php-mbstring

sudo service apache2 restart

#setup mysql
sudo mysql_secure_installation

# CREATE USER 'laravel_original'@'localhost' IDENTIFIED BY 'pass';
# GRANT ALL PRIVILEGES ON laravel_original.* TO 'laravel_original'@'localhost';
# ALTER USER 'laravel_original'@'localhost' IDENTIFIED WITH mysql_native_password BY 'pass';

#developer tools prerequisites 

#upgrade npm - current  version incompatble with node 10.x

echo "Go to Downloads Directory"
cd ~/Downloads

#overwrite ubuntu 19.10 version of npm	
git clone https://github.com/npm/cli.git
cd ./cli/bin
sudo cp -r ./ /usr/local/lib/node_modules/npm

wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/13.0.2+8/d4173c853231432d94f001e99d882ca7/jdk-13.0.2_linux-x64_bin.deb

echo "Installing jdk-13.0.2"
sudo apt install ./jdk-13.0.2_linux-x64_bin.deb


wget http://mirrors.ukfast.co.uk/sites/ftp.apache.org/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh

echo "Installing Apache Netbeans"

bash Apache-NetBeans-11.2-bin-linux-x64.sh

echo "Google Chrome"


wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get -y update
sudo apt-get -y install google-chrome-stable


echo "Google Chromium"

git clone https://github.com/scheib/chromium-latest-linux.git

cd ./chromium-latest-linux

bash ./update-and-run.sh

#move to home directory folder
cd ~/

sudo mv  ./chromium-latest-linux ~/chromium


echo "Install Composer"


mkdir ~/Projects

mkdir ~/Projects/PHP

cd ~/Projects/PHP

# might need updating
wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet


cd ~/Downloads

echo "install phpmyadmin"

cd /var/www/html/

sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.0.1/phpMyAdmin-5.0.1-english.zip

sudo unzip phpMyAdmin-5.0.1-english.zip

sudo mv 'phpMyAdmin-5.0.1-english' 'phpmyadmin'

cd phpmyadmin

sudo mkdir tmp

sudo chmod 0755 -R tmp


echo "Go to Home Directory"

cd ~/




Post Reply