this blog is more of a notepad that I use to collect stuff that related to what I do
Thursday, May 25, 2023
Friday, May 05, 2023
Setting up Raspberry pi 4 with Ubuntu for Java 17
Setting up Raspberry pi 4 with Ubuntu for Java 17
download ubuntu from https://ubuntu.com/download/raspberry-pi direct link
use raspberry imager https://www.raspberrypi.com/software/
direct link
https://downloads.raspberrypi.org/imager/imager_latest.exe
write it to the SD card
insert into Rpi and follow the steps of the wizard.
create user "pi"
Goto Settings -> Power disable the lockscreen !
if RPI with small screen and resolution less than FUL HD
Goto settings->Displays set resolution 1920x1080 Must set Fractional Scaling!
Goto Settings ->"Sharing" enable it all to have access from PC with Remote Desktop.
* set your password instead of the default!!
sudo su -l
install additional software
apt update
this will take time...
apt upgrade
now install all the usefil soft
apt install -y samba mc doublecmd-gtk net-tools alien mosquitto mosquitto-clients byobu mlocate wget ant maven busybox build-essential cmake curl mc git g++ gzip htop python-all-dev python-all python3-pip python3 rsync zip nedit code openjdk-17-jdk openjdk-17-jre nodejs
Remove the Brile for the blind - it will mess up work with COM port and CH340.sudo apt remove -y brlttyEnable Samba for network sharing:
Follow steps from here https://www.debugpoint.com/guide-how-share-folder-between-ubuntu-linux-windows/
notice the
sudo smbpasswd -a pi
create same password as the ubuntu login - convenient !
under root follow the steps from
https://adoptium.net/blog/2021/12/eclipse-temurin-linux-installers-available/
close root terminal!
Goto terminal
ssh-keygen -t ed25519 -b 4096 -C "boris@daich.biz" -f /home/pi/.ssh/id_rsa
copy the id_rsa.pub contents to the source control server keys bitbucket or github...
https://bitbucket.org/account/settings/ssh-keys/
do git clone ...
install VS Code
download the deb package https://code.visualstudio.com/download take the arm64 version!!
do
sudo apt install ./<file>.debdetails are here https://code.visualstudio.com/docs/setup/linux
open VS code install plugins for java