Giter VIP home page Giter VIP logo

raspberry-pie-useful-scripts's Introduction

Raspberry-Pie-Useful-Scripts

Useful commands and scripts for managing and configuring Raspberry Pie Debian

Monitor output of a script

watch --color /home/pi/get_pi_temp.sh

Set executable permission on shell script file:

chmod +x get_pi_temp.sh

Configure Raspberry Pie specific devices and options

sudo raspi-config

Update OS Distro

sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'

Individual update commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Update RPI Firmware

sudo rpi-update

Get status of CPU thermal/under-voltage throttleing

vcgencmd get_throttled
bit flag
0: under-voltage
1: arm frequency capped
2: currently throttled
3: under-voltage has occurred
4: arm frequency capped has occurred
5: throttling has occurred

example output (no throttling has occurred)

throttled=0x0

example output (under-voltage)

throttled=0x50000

List the disk partitions on the device.

sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL

List filesystems

df -h

df -B1

To mount FAT with read/write capability

mount -t vfat -o umask=000 /dev/sde1 /mnt/fat

To mount NTFS with read/write capability

mount -t ntfs -o umask=000 /dev/sdd1 /mnt/ntfs

List network interfaces

sudo ifconfig

Show Kernal IP routing table

sudo route -n

/etc/dhcpcd.conf

# Static IP configuration
interface eth0
  static ip_address=192.168.1.XXX/24
  static routers=192.168.1.1
  static domain_name_servers=8.8.8.8

/etc/network/interfaces

iface eth0 inet static
address 192.168.1.XXX
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

MotionEye

For MotionEye stream pre-view Disablie chrome://flags/#enable-lazy-image-loading

raspberry-pie-useful-scripts's People

Watchers

 avatar  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.