/
Installing linux on windows laptop
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'html' is unknown.

Installing linux on windows laptop

 Instructions

  1. 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.html

  2. Disable bit locker by going into encryption. (Search for encryption) - Delete all data before unencryption

  3. Boot linux pen drive by holding shift

  4. After installation is done, go to settings > users. And add required user with standard settings.

  5.  

Software Installation

Follow below for installation of software after ubuntu installation.

  1. Switch to admin user su (admin) user. (As sudo is only allowed to administrators)

  2. Check your ubuntu version by going to “about” section using search

  3. Install git

    sudo apt install git
  4. Install adopt open jdk 8, 11, 17

    1. Add the Eclipse Adoptium GPG key

      wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
    2. 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
    3. 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
    4. 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"
    5. Update bash to use new .bashrc

      source ~/.bashrc;
    6.  

  5. 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 using apt-get or aptitude:

    1. 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'
    2. Download the public key using curl or wget:

      wget https://packages.atlassian.com/api/gpg/key/public
    3. Add the public key to apt to verify the package signatures automatically:

      sudo apt-key add public
    4. Then, run the install:

      sudo apt-get update sudo apt-get install atlassian-plugin-sdk
    5. Next: Verify that you have set up the SDK correctly

  1. Exit out of super user for below steps :

  2. Install curl

    sudo apt-get install curl
  3. Install NVM

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
  4. Install Node 18

    nvm install 18
  5. 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

 Related articles