Installing linux on windows laptop
Instructions
Start with resizing the windows drive to the amount required. If you are going to use linux as primary os. Then try to get more memory on ubuntu. (My personal numbers get 400 gb free in 512 gb ssd)
https://www.easeus.com/partition-manager/epm-free.htmlDisable bit locker by going into encryption. (Search for encryption) - Delete all data before unencryption
Boot linux pen drive by holding shift
After installation is done, go to settings > users. And add required user with standard settings.
Software Installation
Follow below for installation of software after ubuntu installation.
Switch to admin user su (admin) user. (As sudo is only allowed to administrators)
Check your ubuntu version by going to “about” section using search
Install git
sudo apt install git
Install adopt open jdk 8, 11, 17
Add the Eclipse Adoptium GPG key
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
Add the Eclipse Adoptium apt repository
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
Install the Temurin version you require
sudo apt update # update if you haven't already sudo apt install temurin-8-jdk sudo apt install temurin-11-jdk sudo apt install temurin-17-jdk
Configure the default version
Add java config script to .bashrc
and add script to .bashrc to update java home variable after switch#!/bin/bash function updateJavaHome() { if [ -z "${JAVA_HOME}" ] then JAVA_HOME=$(readlink -nf $(which java) | xargs dirname | xargs dirname) if [ ! -e "$JAVA_HOME" ] then JAVA_HOME="" fi export JAVA_HOME=$JAVA_HOME fi } alias sg_java='sudo update-alternatives --config java;updateJavaHome()'; alias sg_refresh="source ~/.bashrc;echo 'Bashrc reloaded"
Update bash to use new .bashrc
source ~/.bashrc;
Install Atlas SDK Install the Atlassian SDK on a Linux or Mac system
On a Debian-based Linux system like Ubuntu, you can install the SDK usingapt-get
oraptitude
:First, set up the Atlassian SDK repositories:
sudo sh -c 'echo "deb https://packages.atlassian.com/debian/atlassian-sdk-deb/ stable contrib" >>/etc/apt/sources.list'
Download the public key using
curl
orwget
:wget https://packages.atlassian.com/api/gpg/key/public
Add the public key to
apt
to verify the package signatures automatically:sudo apt-key add public
Then, run the install:
sudo apt-get update sudo apt-get install atlassian-plugin-sdk
Exit out of super user for below steps :
Install curl
sudo apt-get install curl
Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Install Node 18
nvm install 18
To verify
node -v
Post items
You need to setup a way to switch between different Java versions. Set JAVA_HOME variable. And do a test build on any plugin to confirm that all the things are set up