Ubuntu Desktop

Episode #361 by Teacher's Avatar David Kimura

Summary

Ubuntu is an open source software operating system that offers a great development experience and can run on most x86/amd64 systems. In this episode, we set up our Ruby on Rails development environment on Ubuntu 22.04 LTS Jammy Jellyfish.
development rails environment 11:42

Resources

This episode is sponsored by Honeybadger

Summary

# Terminal
sudo apt update
sudo apt upgrade

sudo apt install -y gnupg2 curl git
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

\curl -sSL https://get.rvm.io | bash -s stable

source /home/$(whoami)/.rvm/scripts/rvm

echo 'gem: --no-document' >> ~/.gemrc
echo '--javascript esbuild' >> ~/.railsrc
echo '--css bootstrap' >> ~/.railsrc

rvm install 3.1.2
gem update --system
gem install rails

curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
sudo nodesource_setup.sh

sudo apt install -y nodejs

sudo npm -g i yarn

# x86/amd64
wget https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64
sudo dpkg -i code_1.70.0-1659589288_amd64.deb

# arm64
wget https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-arm64
sudo dpkg -i code_1.70.0-1659587966_arm64

# Docker Install
sudo apt install apt-transport-https ca-certificates software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}
docker run hello-world