Building a Linux Distro From Scratch: Compiling & Installing Golang

Published: 27 August 2023
on channel: Monkey see, monkey do
402
12

FULL SERIES:
   • You can endlessly watch the flame bur...  

==========================
Monkey See, Monkey Do LINUX
==========================
https://github.com/maksimKorzh/msmd-l...

================================================
VICI - Minimalist cross-platform terminal based text editor
================================================
https://github.com/maksimKorzh/vici

==================================
ED - The standard Linux Text Editor in Go
==================================
https://github.com/maksimKorzh/ed

====================
MY TOY TEXT EDITORS
====================

VI-like text editor in 100 lines of C++ code:
https://github.com/maksimKorzh/ved

Text editor in 50 lines of python:
https://github.com/maksimKorzh/v

VI-like text editor in 125 lines of python:
https://github.com/maksimKorzh/edit/b...

Text editor with python shell:
https://github.com/maksimKorzh/pi

Tiny vi-like text editor in only 125 lines of python code:
https://github.com/maksimKorzh/vip

Text editor with syntax highlighting:
https://github.com/maksimKorzh/code

Kilo text editor cone in C:
https://github.com/maksimKorzh/kilo-c...

Kilo text editor port to ESP32:
https://github.com/maksimKorzh/esp32-...

===============================================
TUTORIALS COVERING MOST OF THE ABOVE PROJECTS
===============================================
   • Revolutionary brand new approach to t...  

=====================
SUPPORT THE CHANNEL
=====================
Patreon:   / code_monkey_king  
PayPal: [email protected]

==========
CONTENTS
==========

00:00 Intro
01:00 Downloading Golang sources
01:40 Extracting files from the archive
02:10 Configuring make to build statically linked binary
03:25 Compiling Golang
05:05 Installing Golang to the Distro
06:50 Adding Golang environmental variables
08:40 Updating ISO image
09:05 Testing Golang
11:50 Adding /tmp folder to rootfs
12:25 Updating ISO
13:17 Writing 'Hello, World' program in Golang
15:00 Installing Golang packages THE VERY TOUGH WAY
16:30 Why standard 'go get...' is not going to work
17:00 A workaround: using 'get' to manually download packages
18:05 Downloading termbox-go (sort of ncurses for Golang)
18:30 Installing termbox-go as a standard Golang package
19:40 Altering import line in a test file
20:20 Altering package source to resolve nested dependency
20:55 Installing go-runewidth
21:30 Installing go-runewidth as a standard Golang package
22:25 Downloading uniseg
22:54 Installing uniswg as a standard Golang Package
23:20 Altering package source one last time
24:15 Package termbox-go finally compiles!!!
24:50 Writing termbox-go 'Hello, world' program
27:40 Summary on Monkey See, Monkey do Linux project