Raspbian (ARM)

Raspbian is not affiliated with the Raspberry Pi Foundation.- raspbian.org

lsb_release -a to get version info
uname -a - `ARMv7 and below are 32-bit. AMRv8 introduces the 64-bit instruction set.
others

uname -m - check the kernel architecture: arm7* -> 32bit, arm8 64bit

Raspian Images

Running Raspbian on x86 docker

see also Emulating a Raspberry Pi in QEMU

Fist install binfmt-support and qemu-user-static on the x86 host.

sudo apt-get update && \
sudo apt-get install -y binfmt-support qemu qemu-user-static 

# check your ability to emulate the binary formats 
# by checking for ARM support 
sudo update-binfmts --enable qemu-arm
sudo update-binfmts --display | grep arm

Get the rpi-build-docker-img script to download the image from raspberrypi.org and convert if to a docker image.

Raspbian Headless config

Edit the SD Card

The default user/password is pi/raspberry (beware of qwerty config)

Static IP / 2

Edit /etc/dhcpcd.conf (/etc/network/interfaces should be left alone.)

# Example static IP configuration:
interface eth0
static ip_address=192.168.0.250/24
static routers=192.168.0.254
static domain_name_servers=212.27.40.240 212.27.40.241

How Do I Find Out My Linux Gateway

Enable ssh

the root folder of your SD card (boot) create a new file named “ssh”, with no extension.

Then connect

ssh pi@192.168.0.250	# default pwd: raspberry

Then Configure passwordless access

WiFi

Specify country setting with raspi-config first

$ sudo apt-get install wpasupplicant wireless-tools

# in /etc/wpa_supplicant/wpa_supplicant.conf
# add 
network={
        ssid="YourSSID"
        psk="password"
        key_mgmt=WPA-PSK
}

Docker Setup

curl -sSL https://get.docker.com | sh # install
sudo usermod -aG docker $USER         # config user permission
docker run hello-world                # test

install Docker compose

Start at boot

sudo systemctl enable docker

Updating

Alternatives

Written on August 16, 2019, Last update on August 1, 2024
arm linux-system raspberry-pi x86 qemu docker