raspberry pi 3B - HelloMorningStar/HomeAssistant GitHub Wiki
i've got 2 pieces raspberry 3B(only 86rmb/piece) for my next project testing, thanks taobao!
https://www.raspberrypi.org/products/raspberry-pi-3-model-b/
you need pay attation to the power supply have been upgraded to 2.5 A, and i'm interesting to 64bit cpu and 64bit ubuntu run on it.
https://wiki.ubuntu.com/ARM/RaspberryPi
2) reference raspberry pi 2B (i have wrote down the text before)
then, i'll try it and write any differents or problems compare with raspberry 2B.
we don't need reference this link: https://www.raspberrypi.org/forums/viewtopic.php?t=220079
please see this link: https://ubuntu.com/download/iot/raspberry-pi-2-3
and flsh ubuntu18.04.3 arm64 on TF card (https://ubuntu.com/download/iot/installation-media) flashing work needs about fourty-five minutes
cd /etc/netplan
sudo nano 50-cloud-init.yaml
network: version: 2 ethernets: eth0: dhcp4: no addresses: [192.168.2.50/24] gateway4: 192.168.2.1 match: macaddress: xx:xx:xx:xx:xx:xx set-name: eth0 nameservers: addresses: [8.8.8.8,114.114.114.114]
sudo netplan apply
ip a
#check the new ip
sudo nano /etc/sysctl.conf
add
# IPv6 disabled net.ipv6.conf.all.disable_ipv6 =1 net.ipv6.conf.default.disable_ipv6 =1 net.ipv6.conf.lo.disable_ipv6 =1
sudo sysctl -p
ifconfig
eth0: flags=4163 mtu 1500 inet 192.168.2.50 netmask 255.255.255.0 broadcast 192.168.2.255 ether xx:xx:eb:xx:xx:67 txqueuelen 1000 (Ethernet) RX packets 484798 bytes 637332757 (637.3 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 245039 bytes 18253124 (18.2 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1000 (Local Loopback) RX packets 208 bytes 15984 (15.9 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 208 bytes 15984 (15.9 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
low power alarm
i think that the second raspberry pi3B power cable is not good, it is able to continue with installing after i have changeed my power cable.
i have checked the xiaomi socket with 3USB, it's only output 2A. i have used ipad charger to take the place of xiaomi socket.
root@ubuntu:/etc/netplan# sudo apt-get install grub2-common Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: grub-common os-prober Suggested packages: multiboot-doc xorriso desktop-base The following NEW packages will be installed: grub-common grub2-common os-prober 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 2,092 kB of archives. After this operation, 12.6 MB of additional disk space will be used. Do you want to continue? [Y/n] y
https://github.com/ssvb/xf86-video-fbturbo/wiki/Installation
try this link https://www.admintome.com/blog/disable-ipv6-on-ubuntu-18-04/
don't installl xubunt-desktop and etc. if you don't need use windows. i think that graphic ui is not good speed and smooth on raspberry pi2B/3B and ubuntu18.04.
new install ubuntu18.04 on raspberry 3B
https://www.admintome.com/blog/disable-ipv6-on-ubuntu-18-04/
sudo nano /etc/sysctl.d/99-sysctl.conf
add the followings
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
sudo sysctl -p
us command ip a
you can see ipv6 is been forbided
sovling the ipv6 problem after reboot
sudo nano /etc/rc.local
add the followings
#!/bin/bash # /etc/rc.local # Load kernel variables from /etc/sysctl.d /etc/init.d/procps restart exit 0
sudo nano /etc/default/grub
add the contents:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1" GRUB_CMDLINE_LINUX="ipv6.disable=1"
sudo update-grub
sudo reboot
if you want to try grub, you should install sudo apt-get install grub2-common
please follow this link: https://github.com/ssvb/xf86-video-fbturbo/wiki/Installation
sudo apt-get install libraspberrypi-bin libraspberrypi-dev
libraspberrypi-dev install failed
i want to use gedit, so try to install xubuntu-desktop...
ubuntu@ubuntu:~$ sudo sh -c 'echo 0 > /sys/class/leds/led1/brightness' ubuntu@ubuntu:~$ sudo sh -c 'echo 0 > /sys/class/leds/led0/brightness'
Yes, you can turn off the LEDs on the raspberry pi model 3. This was tested on the raspberry pi model 3 B+ The line below is used to turn off the power LED sudo sh -c 'echo 0 > /sys/class/leds/led1/brightness' The line below is used to turn off the action LED sudo sh -c 'echo 0 > /sys/class/leds/led0/brightness'
reference to How do I control the leds of raspberry 3?
The LED can be turned on and off using the 'brightness' file. The minimum brightness is 0, and the maximum is 255. As there is no variable brightness support, any value greater than 0 will turn the LED on. echo 1 >/sys/class/leds/led0/brightness echo 0 >/sys/class/leds/led0/brightness