Skip to content

Instructions to setup a raspberry pi 4 with Ubuntu Server 20.04.2 LTS for a local CI CD Server

Notifications You must be signed in to change notification settings

LeopoldoIII/ubuntu_raspberry_pi_4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

ubuntu_raspberry_pi_4

Instructions to setup a raspberry pi 4 with Ubuntu Server 20.04.2 LTS

Burn Ubuntu into micro SD

Download Ubuntu Server 20.04.2 LTS

https://ubuntu.com/download/raspberry-pi

Im using balena to install ubuntu into the microSDCard

https://www.balena.io/etcher/

Boot from the microSd

User ubuntu password ubuntu https://wiki.ubuntu.com/ARM/RaspberryPi#First_boot_.28Username.2FPassword.29 you will ask to update your password

image

wifi

https://linuxconfig.org/ubuntu-20-04-connect-to-wifi-from-command-line

List your interfaces to identify your wirieless

ls /sys/class/net

image

sudo vi /etc/netplan/50-cloud-init.yaml

image

add your ssdi and password

image

Replace your SSID-NAME-HERE and PASSWORD-HERE

sudo apt install net-tools

Then

sudo netplan apply

run ifconfig and verify the conection with your wifi

Option 2

List your interface

iw dev 

Scan

sudo iw wlp2s0 scan

Connet

nmcli dev wifi connect ESSID password WifiPassword

Activate device

sudo ip link set wlp1s0 up

https://es.linux-console.net/?p=357

Samba

https://ubuntu.com/tutorials/install-and-configure-samba#1-overview

sudo apt update
sudo apt install samba

Add the following lines into this file /etc/samba/smb.conf replace values as you wish

[sambashare]
    comment = Samba on Ubuntu
    path = /home/username/sambashare
    read only = no
    browsable = yes

restart the service

sudo service smbd restart

Update the firewall rules to allow Samba traffic

sudo ufw allow samba

Since Samba doesn’t use the system account password, we need to set up a Samba password for our user account Username used must belong to a system account, else it won’t save.

sudo smbpasswd -a username

RVM

https://raspberrypi.stackexchange.com/questions/1010/can-i-install-the-ruby-version-manager

curl -L https://get.rvm.io | bash -s stable --ruby

If this message appear

Can't check signature: No public key

run this command

gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BD

Android SDK

android sdk

sudo apt-get install adb android-sdk-platform-tools-common
sudo apt-get install android-tools-adb android-tools-fastboot
sudo apt install android-sdk

libraries are in the path /usr/lib/android-sdk/

https://linoxide.com/ubuntu-how-to/install-android-sdk-manager-linux-ubuntu-16-04/

https://developer.android.com/studio#systemrequirements

http://www.timelesssky.com/blog/building-android-sdk-build-tools-aapt-for-debian-arm

https://github.com/skyleecm/android-build-tools-for-arm/tree/build-21

https://www.reddit.com/r/androiddev/comments/cr79qk/android_sdk_for_arm/

#ANDROID HOME 
export ANDROID_HOME=~/usr/lib/android-sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH

JAVA

https://linuxize.com/post/install-java-on-raspberry-pi/

SSH ubuntu-server

https://phoenixnap.com/kb/enable-ssh-raspberry-pi https://pimylifeup.com/ubuntu-server-raspberry-pi/

Oh My ZSH

sudo apt-get install zsh
sudo apt-get install git-core
chsh -s `which zsh`

https://geekytheory.com/como-instalar-oh-my-zsh-en-ubuntu

Add User

https://linuxize.com/post/how-to-add-and-delete-users-on-ubuntu-18-04/

sudo

https://linuxconfig.org/sudo-install-usage-and-sudoers-config-file-basics

VPN

After to configure a vpn click on ´Use this connection only for resources on its network´ image

sdkman

curl -s get.sdkman.io | bash
source "/home/user/.sdkman/bin/sdkman-init.sh"
sdk install groovy # install groovy for example

About

Instructions to setup a raspberry pi 4 with Ubuntu Server 20.04.2 LTS for a local CI CD Server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published