Skip to content

Instantly share code, notes, and snippets.

View carry0987's full-sized avatar
:electron:

carry0987 carry0987

:electron:
View GitHub Profile
@carry0987
carry0987 / RPi3-TCP-BBR.md
Last active January 2, 2023 07:06
Raspberry Pi 3B+ Using BBR Congestion Control

Raspberry Pi 3B+ Using BBR Congestion Control

Check Kernel

uname -r

The kernel version should >= 4.9.4, if isn't, please follow the script below to update kernel:

Update Kernel

  1. sudo rpi-update
  2. sudo reboot
@carry0987
carry0987 / RPi3-Auto-WiFi.md
Last active April 26, 2024 11:58
Raspberry Pi 3B+ Auto reconnect to wifi when lost connect

Auto reconnect to wifi when lost connection

Before you start, make sure ip command is available on your system. In modern Linux distributions, ip replaces older ifconfig command. If net-tools package (that includes ifconfig) is not installed and you prefer using it, you can install it via sudo apt-get install net-tools.

Create script file

Use touch /home/pi/wifi-reconnect.sh to create a shell script file, with the following content:

#!/bin/bash
@carry0987
carry0987 / RPi3-HentaiAtHome.md
Last active July 24, 2018 19:34
Raspberry Pi 3B+ Run HentaiAtHome On Portable External Hard Drive

Raspberry Pi 3B+ Run HentaiAtHome On Portable External Hard Drive

Install Required Tools

sudo apt-get install screen

sudo apt-get install vim

sudo apt-get install openjdk-8-jdk

sudo apt-get install openjdk-8-jre

@carry0987
carry0987 / RPi3-Change-Berryboot-Default-System-By-SSH.md
Last active September 19, 2018 01:43
RPi3-Change-Berryboot-Default-System-By-SSH

RPi3 Change Berryboot Default System By SSH

Step

  1. Use sudo mount /dev/mmcblk0p2 /mnt to mount raw storage

  2. Use ls /mnt/images to check what the full file name of the operating you would like to run

  3. Use sudo su to change user into root

@carry0987
carry0987 / RPi3-Add-IMG-To-Berryboot.md
Last active August 17, 2018 12:35
RPi3-Add-IMG-To-Berryboot

RPi3 Add IMG To Berryboot

Adding your own custom operating systems to the menu

Most Raspberry Pi operating system images are disk images containing two partitions. A FAT partition with the boot loader and kernel files, and a second Ext4 partition with everything else. We are interested in the second partition.

With a regular Linux desktop computer that has kpartx and mksquashfs installed, you can convert the second partition to SquashFS like this:

@carry0987
carry0987 / RPi3-Set-LC.md
Last active August 17, 2018 12:35
RPi3-Set-LC

RPi3 Set LC

Required Tools

You can use Nano or Vim, here I use nano to edit locale

Step

  1. Use sudo nano /etc/default/locale to edit locale file

  2. Put following content into locale

@carry0987
carry0987 / RPi3-Internet-Speedtest.md
Last active December 2, 2018 17:47
RPi3-Internet-Speedtest

RPi3-Internet-Speedtest

Step

  1. Download speedtest python script from Sivel sudo wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py

  2. Use sudo chmod a+rx speedtest.py to make speedtest.py can be executed

@carry0987
carry0987 / RPi3-SSH-Access-On-volumio.md
Created July 23, 2018 17:15
RPi3-SSH-Access-On-volumio

SSH Access On volumio

Login

User: volumio
Password: volumio

Method

  1. File
    Just create or copy a file called ssh in /boot . You can do it right after flashing Volumio, by creating it in the "Boot" partition of your SD Card.
@carry0987
carry0987 / RPi3-Disable-Bluetooth-Or-WiFi-By-Default.md
Created July 30, 2018 13:42
RPi3-Disable-Bluetooth-Or-WiFi-By-Default

RPi3 Disable Bluetooth Or WiFi By Default

Step

  1. Use sudo mount /dev/mmcblk0p1 /mnt to mount SD Card

  2. Use sudo vim /mnt/config.txt to edit config

  3. Disable WiFi

@carry0987
carry0987 / RPi3-Auto-Email-New-Public-IP-If-Changed-Python3.md
Last active September 19, 2018 01:58
RPi3-Auto-Email-New-Public-IP-If-Changed-Python3

RPi3 Auto Email New Public IP If Changed (Python3)

Step

  1. Use wget to download IP-Reporting script

    sudo wget https://raw.github.com/carry0987/Raspberry-Pi-Repo/master/Auto-Report-IP/report-ip.py
    

  2. Give the script executing permission