Skip to content

Instantly share code, notes, and snippets.

View ashikMostofaTonmoy's full-sized avatar

Ashik Mostofa Tonmoy ashikMostofaTonmoy

View GitHub Profile
@ashikMostofaTonmoy
ashikMostofaTonmoy / install_zsh.sh
Created March 28, 2024 05:48
This script works for debina and redhat based systems only. The following script does: 1. install essential tools (git and curl) 2. install zsh 3. changes shell 4. install "oh my zsh" 5. install plugins 6. sets zsh theme and enable_plugins
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
# Function to detect the Linux distribution
detect_distribution() {
if [ -f /etc/os-release ]; then
# Source the os-release file to get the distribution ID
. /etc/os-release
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
@ashikMostofaTonmoy
ashikMostofaTonmoy / install_zsh.sh
Created March 28, 2024 05:32
1.install_essential_tools install_zsh change_shell install_oh_my_zsh install_plugins set_zsh_theme enable_plugins
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
# Function to detect the Linux distribution
detect_distribution() {
if [ -f /etc/os-release ]; then
# Source the os-release file to get the distribution ID
. /etc/os-release
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
@ashikMostofaTonmoy
ashikMostofaTonmoy / install-docker.md
Created March 3, 2024 16:24 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.