Fedora/GraalVM: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 67: Line 67:


==Install==
==Install==
{|
| valign="top" colspan="2" |
<source lang="bash">
sudo dnf install gcc glibc-devel zlib-devel libstdc++-static
export ACADEMIA_HOME="$HOME/.chorke/academia"
mkdir -p $ACADEMIA_HOME/var/download
cd $ACADEMIA_HOME/var/download
mkdir -p /opt/cli
</source>
|-
| colspan="2" |
----
|-
| valign="top" |
<source lang="bash">
sudo dnf install java-latest-openjdk
sudo dnf install java-1.8.0-openjdk
sudo dnf install java-11-openjdk
</source>
| valign="top" |
<source lang="bash">
sudo dnf install java-latest-openjdk-devel
sudo dnf install java-1.8.0-openjdk-devel
sudo dnf install java-11-openjdk-devel
</source>
|-
| colspan="2" |
----
|-
| valign="top" colspan="2" |
<source lang="bash">
wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.3.0/\
graalvm-ce-java11-linux-aarch64-21.3.0.tar.gz -P $ACADEMIA_HOME/var/download/
wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.3.0/\
graalvm-ce-java17-linux-aarch64-21.3.0.tar.gz -P $ACADEMIA_HOME/var/download/
</source>
|-
| colspan="2" |
----
|-
| valign="top"|
<source lang="bash">
tar -xvzf $ACADEMIA_HOME/var/download/\
graalvm-ce-java11-linux-aarch64-21.3.0.tar.gz\
-C /opt/cli/
ln -s /opt/cli/graalvm-ce-java11-21.3.0\
/usr/lib/jvm/graalvm-ce-java11-21.3.0
alternatives --install /usr/bin/java java\
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/java 4
alternatives --install /usr/bin/javac javac\
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/javac 4
</source>
| valign="top" |
<source lang="bash">
tar -xvzf $ACADEMIA_HOME/var/download/\
graalvm-ce-java17-linux-aarch64-21.3.0.tar.gz\
-C /opt/cli/
ln -s /opt/cli/graalvm-ce-java17-21.3.0\
/usr/lib/jvm/graalvm-ce-java17-21.3.0
alternatives --install /usr/bin/java java\
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/java 5
alternatives --install /usr/bin/javac javac\
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/javac 5
</source>
|-
| colspan="2" |
----
|-
| valign="top" colspan="2" |
<source lang="bash">
sudo alternatives --config javac
sudo alternatives --config java
ls -lah /usr/lib/jvm
</source>
|}


==References==
==References==

Revision as of 22:59, 12 November 2021


System Update:

sudo su
cat << EOF >> /etc/dnf/dnf.conf
fastestmirror=True
max_parallel_downloads=10
defaultyes=True
EOF
dnf update

Network Config:

sudo nmcli dev wifi con 'ChorkeOrg_2.4GHz' password 'sadaqah!'
sudo nmcli dev wifi con 'ChorkeInc' password 'sadaqah!'
sudo nmcli dev wifi con 'ChorkeOrg' password 'sadaqah!'
sudo nmcli dev wifi rescan
sudo nmcli dev wifi
sudo nmcli con
sudo nmcli dev

Free/Community:

sudo dnf install\
 https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release\
-$(rpm -E %fedora).noarch.rpm

Non-Free/Commercial:

sudo dnf install\
 https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree\
-release-$(rpm -E %fedora).noarch.rpm

Timezone:

sudo timedatectl set-timezone 'Asia/Kuala_Lumpur'
sudo timedatectl set-time '2010-10-10 10:10:10'
sudo hostnamectl set-hostname fedora
sudo timedatectl set-ntp true

Cockpit:

https://10.19.83.111:9090/
https://10.19.83.211:9090/
http://10.19.83.111/
http://10.19.83.211/

Install

sudo dnf install gcc glibc-devel zlib-devel libstdc++-static
export ACADEMIA_HOME="$HOME/.chorke/academia"
mkdir -p $ACADEMIA_HOME/var/download
cd $ACADEMIA_HOME/var/download
mkdir -p /opt/cli

sudo dnf install java-latest-openjdk
sudo dnf install java-1.8.0-openjdk
sudo dnf install java-11-openjdk
sudo dnf install java-latest-openjdk-devel
sudo dnf install java-1.8.0-openjdk-devel
sudo dnf install java-11-openjdk-devel

wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.3.0/\
graalvm-ce-java11-linux-aarch64-21.3.0.tar.gz -P $ACADEMIA_HOME/var/download/

wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.3.0/\
graalvm-ce-java17-linux-aarch64-21.3.0.tar.gz -P $ACADEMIA_HOME/var/download/

tar -xvzf $ACADEMIA_HOME/var/download/\
graalvm-ce-java11-linux-aarch64-21.3.0.tar.gz\
 -C /opt/cli/

ln -s /opt/cli/graalvm-ce-java11-21.3.0\
 /usr/lib/jvm/graalvm-ce-java11-21.3.0

alternatives --install /usr/bin/java java\
 /usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/java 4

alternatives --install /usr/bin/javac javac\
 /usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/javac 4
tar -xvzf $ACADEMIA_HOME/var/download/\
graalvm-ce-java17-linux-aarch64-21.3.0.tar.gz\
 -C /opt/cli/

ln -s /opt/cli/graalvm-ce-java17-21.3.0\
 /usr/lib/jvm/graalvm-ce-java17-21.3.0

alternatives --install /usr/bin/java java\
 /usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/java 5

alternatives --install /usr/bin/javac javac\
 /usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/javac 5

sudo alternatives --config javac
sudo alternatives --config java
ls -lah /usr/lib/jvm

References