Set-up Raspberry

Sebastian Velez Zuluaga
3 min readJun 20, 2020

--

And basic command for linux

1. You can follow the link to setup. I have some notes about the setup steps.

https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/1

If you will use a SDcard of 36gb or 16gb you can follow the step, buy if you want to install your S.O on a SD 64gb or more you can check this link. You memory has to be in format FAT32

https://www.raspberrypi.org/documentation/installation/sd-cards.md

This tool https://www.raspberrypi.org/downloads/ help you format your SDcard with the correct format.

Now lets start to install our S.O you can download here. https://ubuntu.com/download/iot

Select the image from “USE custom”, select SDcard and write. Also you can select the version the S.O from tool.

Don’t remove the SDcard yet, We need to do Some tricks if you doesn’t have monitor: WORKS for raspbian … NO FOR UBUNTU SERVER

  1. Create in the boot partition one file called ssh whitout extension and save in the root from the Boot partition.
  2. Create other file with this name : wpa_supplicant and add this lines and save in the root from the Boot partition

This file, will try to connect to wifi red and you can find the Ip from your router and connect to rapsberry.

To connect the device you have to connect a UTP cable to rapsberry and try to get the IP.

update your S:O

sudo apt-get update
sudo apt-get upgrade

First commands.

Install networks stuff

sudo apt install net-tools
sudo apt-get update
sudo apt install network-manage
sudo nmtui — activeate.

Enable ssh

sudo apt install ssh
sudo systemctl enable — now ssh
sudo systemctl status ssh

Install GUI <optional>

sudo apt update
sudo apt upgrade
sudo apt install xubuntu-desktop

To see CPU version on linux

cat /proc/cpuinfo
lscpu
uname -a

No machine Like tramViewer or Anydestk <optional>

Check the CPU architecture and select the files that you need : https://www.nomachine.com/download/download&id=106&s=Raspberry&hw=Pi4

Command for Users

sudo adduser <name>
sudo user mod -aG sudo <name>

No password requeired to sudo command

sudo visudo
<name> ALL=(ALL:ALL) NOPASSWD:ALL

Delete user

sudo useful <name>

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response