Fedora/GraalVM: Difference between revisions
Jump to navigation
Jump to search
Line 150: | Line 150: | ||
alternatives --install /usr/bin/java java\ | alternatives --install /usr/bin/java java\ | ||
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/java | /usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/java 1 | ||
alternatives --install /usr/bin/javac javac\ | alternatives --install /usr/bin/javac javac\ | ||
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/javac | /usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/javac 1 | ||
alternatives --install /usr/bin/gu gu\ | |||
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/gu 1 | |||
gu install native-image | |||
alternatives --install /usr/bin/native-image native-image\ | |||
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/native-image 1 | |||
</source> | </source> | ||
Line 169: | Line 173: | ||
alternatives --install /usr/bin/java java\ | alternatives --install /usr/bin/java java\ | ||
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/java | /usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/java 2 | ||
alternatives --install /usr/bin/javac javac\ | alternatives --install /usr/bin/javac javac\ | ||
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/javac | /usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/javac 2 | ||
alternatives --install /usr/bin/gu gu\ | |||
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/gu 2 | |||
gu install native-image | |||
alternatives --install /usr/bin/native-image native-image\ | |||
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/native-image 2 | |||
</source> | </source> | ||
Line 184: | Line 192: | ||
| valign="top" colspan="2" | | | valign="top" colspan="2" | | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo alternatives --config native-image | |||
sudo alternatives --config javac | sudo alternatives --config javac | ||
sudo alternatives --config java | sudo alternatives --config java | ||
sudo alternatives --config gu | |||
ls -lah /usr/lib/jvm | ls -lah /usr/lib/jvm | ||
</source> | </source> |
Revision as of 05:54, 30 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 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
|
| |
sudo dnf install gcc glibc-devel zlib-devel libstdc++-static
sudo dnf install git
sudo su
export ACADEMIA_HOME="$HOME/.chorke/academia"
mkdir -p $ACADEMIA_HOME/var/download
cd $ACADEMIA_HOME/var/download
mkdir -p /opt/cli
| |
| |
mkdir -p $ACADEMIA_HOME/etc/env/
cat << \EOF >> $ACADEMIA_HOME/etc/env/system.sh
# chorke academia env
export ACADEMIA_HOME="$HOME/.chorke/academia"
export ACADEMIA_DEV="$ACADEMIA_HOME/dev"
EOF
|
cat << \EOF >> $HOME/.bashrc
# chorke academia env
if [ -f "$HOME/.chorke/academia/etc/env/system.sh" ]; then
source $HOME/.chorke/academia/etc/env/system.sh
fi
EOF
|
| |
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 1
alternatives --install /usr/bin/javac javac\
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/javac 1
alternatives --install /usr/bin/gu gu\
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/gu 1
gu install native-image
alternatives --install /usr/bin/native-image native-image\
/usr/lib/jvm/graalvm-ce-java11-21.3.0/bin/native-image 1
|
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 2
alternatives --install /usr/bin/javac javac\
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/javac 2
alternatives --install /usr/bin/gu gu\
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/gu 2
gu install native-image
alternatives --install /usr/bin/native-image native-image\
/usr/lib/jvm/graalvm-ce-java17-21.3.0/bin/native-image 2
|
| |
sudo alternatives --config native-image
sudo alternatives --config javac
sudo alternatives --config java
sudo alternatives --config gu
ls -lah /usr/lib/jvm
|
Maven
sudo dnf install maven-openjdk17
sudo dnf install maven-openjdk11
sudo dnf install maven-openjdk8
|
sudo dnf remove maven-openjdk17
sudo dnf remove maven-openjdk11
sudo dnf remove maven-openjdk8
|