Skip to content

Instantly share code, notes, and snippets.

View subhendu-de's full-sized avatar
👓
Coder by Choice

Subhendu De subhendu-de

👓
Coder by Choice
View GitHub Profile
@subhendu-de
subhendu-de / install-minikube-ubuntu1804.md
Last active July 19, 2021 16:08
Configure minikube in Ubuntu 18.04

Setting up the virtual machine in Azure

  • Create a Ubuntu 18.04 LTS
  • Enable xfce4 graphical desktop from here

Setting up Linux

  • Install google chrome from here
  • Install Oracle Virtual box from here

Setting up minikube

  • Install kubelet from here
@subhendu-de
subhendu-de / secrets.json
Created June 29, 2021 14:22
eKart sample user secret file
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=.,1433;Initial Catalog=ekart;User Id=xxx;Password=xxx;"
}
}
@subhendu-de
subhendu-de / scrum-practitioner-csm.md
Created April 9, 2021 09:26
Scrum Practitioner Guide
@subhendu-de
subhendu-de / README.md
Last active April 25, 2024 18:14 — forked from hallazzang/README.md
Deploy JSP website using Docker + Apache Tomcat from scratch(with IDEs like Eclipse)

Docker + Apache Tomcat + JSP

This article describes how to deploy a JSP website using Docker and Apache Tomcat.

Directory structure

Create a "Dynamic Web Project" in eclipse and add a jsp file index.jsp

Organize your working directory like this:

REM Open the port 3389 of the network security group
REM The name of the vm will change based on the distribution
az vm open-port \
--resource-group myResourceGroups \
--name ubuntu-vm-lts \
--port 3389
#!/bin/bash
# Install the ufw service
sudo apt install ufw
# Add the port 3389 and 22 to the firewall
sudo ufw allow from <source-machine-ip> to any port 3389
sudo ufw allow from <source-machine-ip> to any port 22
# Refresh the firewalld service
#!/bin/bash
# Install the xRDP packages
sudo apt install xrdp
# Create the .xsession file under the home directory with the desktop environment information
echo "xfce4-session" | tee .xsession
# Check the status of the xRDP daemon service
systemctl status xrdp
#!/bin/bash
# Downloads the package lists from the repositories and "updates" them to get information
# on the newest versions of packages and their dependencies.
sudo apt update && sudo apt upgrade
# Install the Xfce packages
sudo apt install xfce4 xfce4-goodies
#!/bin/bash
# To show the list of available targets
systemctl list-units --type=target --all
# To check the default target of the linux vm
systemctl get-default
# To set the default target of the linux vm
sudo systemctl set-default graphical.target
REM Use the following command to connect to the vm with the user azureuser
ssh azureuser@public-ip
REM Use the following command to check the SSH debug trace
ssh -v azureuser@public-ip
REM Use the following command to change the password of the user azureuser inside Linux vm
sudo passwd azureuser