Skip to content

Instantly share code, notes, and snippets.

View zicodhkbd's full-sized avatar

Md Alamgir zicodhkbd

View GitHub Profile
### Keybase proof
I hereby claim:
* I am zicodhkbd on github.
* I am zicodhkbd (https://keybase.io/zicodhkbd) on keybase.
* I have a public key whose fingerprint is 716C 3F19 F1CD 7FAF 2243 300C 15C8 9E54 284D DA10
To claim this, I am signing this object:
@zicodhkbd
zicodhkbd / things.sh
Created November 1, 2019 16:44
Things to do after install ubuntu 18.04
#!/bin/sh
sudo apt-get update && sudo apt-get upgrade --fix-missing
sudo apt-get install build-essential
sudo apt-get update && sudo apt-get upgrade --fix-missing
sudo apt-get install build-essential checkinstall
sudo apt-get update && sudo apt-get upgrade --fix-missing
sudo apt-get install ubuntu-restricted-extras
sudo apt-get update && sudo apt-get upgrade --fix-missing
sudo apt-get -s autoremove
@zicodhkbd
zicodhkbd / Lamp.sh
Last active November 1, 2019 16:45
install LAMP + PHPMyAdmin on Ubuntu 18.04 LTS
# Install apache
sudo apt install apache2
# Install PHP
sudo nano /var/www/html/phpinfo.php
and type
<?php
phpinfo();
?>
@zicodhkbd
zicodhkbd / vTiger.sh
Last active November 1, 2019 17:12
vTiger CRM on Ubuntu 18.04 LTS
#!/bin/sh
apache2 -v
mysql --version
php --version
sudo mysql -u root -p
CREATE DATABASE vtigerdb;
CREATE USER 'vtiger'@'localhost' IDENTIFIED BY 'password';
@zicodhkbd
zicodhkbd / MongoDB.sh
Created November 1, 2019 17:22
Install MongoDB in Ubuntu 18.04 LTS
#!/bin/bash
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt update
sudo apt install mongodb-org
sudo systemctl enable mongod
sudo systemctl start mongod
sudo systemctl restart mongod
@zicodhkbd
zicodhkbd / Ntopng.sh
Created November 1, 2019 17:25
Ntopng on Ubuntu 18.04 LTS
#!/bin/bash
In order to use this repository do (as root):
sudo apt-get install software-properties-common wget
sudo add-apt-repository universe [ unless you have done it previously ]
wget http://apt-stable.ntop.org/18.04/all/apt-ntop-stable.deb
sudo apt install ./apt-ntop-stable.deb
or
sudo dpkg -i apt-ntop-stable.deb
@zicodhkbd
zicodhkbd / PowerShell.sh
Created November 1, 2019 17:33
Microsoft PowerShell on Ubuntu 18.04 LTS
Microsoft PowerShell on Ubuntu 18.04 LTS
Microsoft PowerShell is a shell framework used to execute commands, but primarily it is developed to perform administrative tasks such as
Automation of repetitive jobs
Configuration management
PowerShell is an open-source and cross-platform project; it can be installed on Windows, macOS, and Linux. It includes an interactive command-line shell and a scripting environment.
##Installation via Package Repository - Ubuntu 18.04
@zicodhkbd
zicodhkbd / Node.sh
Created November 1, 2019 17:36
Node.js v10.x
#!/bin/sh
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install gcc g++ make
sudo curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
node --version
@zicodhkbd
zicodhkbd / RocketChat.sh
Created November 1, 2019 17:38
Rocket.Chat
#!/bin/sh
sudo useradd -m -U -r -d /opt/rocket rocket
sudo usermod -a -G rocket www-data
sudo chmod 750 /opt/rocket
su - rocket
sudo passwd rocket
su - rocket
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar -xzf /tmp/rocket.chat.tgz -C /tmp
@zicodhkbd
zicodhkbd / Netdata.sh
Created November 1, 2019 17:41
Netdata is distributed, real-time, performance and health monitoring for systems and applications.
#!/bin/sh
sudo apt update
sudo apt upgrade -y
sudo apt-get install netdata -y
sudo nano /etc/netdata/netdata.conf
sudo systemctl restart netdate
sudo systemctl restart netdata.service
sudo systemctl status netdata.service