Git Product home page Git Product logo

rpi4-ubuntu's Introduction

rpi4-ubuntu

respberry pi 4 ubuntu setup scripts notes

Install and Settings

Boot Disk

How to install Ubuntu on your Raspberry Pi

  1. Download Raspberry Pi Imager for Windows
  2. Execute imager.exe; Select OS(Ubuntu 64bit 20.04) and Disk(MicroSD) then Write
  3. Insert Micro SD to Respberry Pi, then boot

System Settings

Timezone

  • timedatectl set-timezone Asia/Taipei

rc-local

  • systemctl enable rc-local
  • systemctl start rc-local

Networking

Network Bridge

  1. vim /etc/netplan/50-cloud-init.yaml
  2. service networking restart

PPPoE

  1. apt install pppoeconf
  2. pppoeconf

Wireless AP

  1. apt install hostapd
  2. vim /etc/network/interfaces
  3. vim /etc/hostapd/hostapd.conf
  4. systemctl unmask hostapd
  5. systemctl enable hostapd
  6. service hostapd start

NAT

  1. iptables -F -t nat
  2. iptables -F
  3. iptables --delete-chain
  4. iptables --delete-chain -t nat
  5. iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

DHCP server

  1. apt install isc-dhcp-server
  2. vim /etc/dhcp/dhcpd.conf
  3. service isc-dhcp-server restart

LAMP (Linux Apache MySQL PHP)

Raspberry Pi: Install Apache + MySQL + PHP (LAMP Server)

Apache

  1. apt install apache2

PHP

  1. apt install php

MySQL

  1. apt install mariadb-server php-mysql
  2. mysql_secure_installation
  3. mysql
    • CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
    • GRANT ALL PRIVILEGES ON * . * TO 'admin'@'localhost' WITH GRANT OPTION;
    • FLUSH PRIVILEGES;

phpmyadmin

  1. apt install phpmyadmin

Services

Monitorix

  1. apt install monitorix
  2. vim /etc/monitorix/monitorix.conf
  3. service monitorix restart
  4. vim /etc/apache2/conf-available/monitorix.conf
  5. a2enconf monitorix
  6. a2enmod cgi
  7. systemctl reload apache2

rpi4-ubuntu's People

Contributors

kjkao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.