Skip to content

ukkit/new-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

new-pi

  • sudo apt-get update && sudo apt-get upgrade
  • sudo rpi-update
  • sudo reboot
  • sudo rpi-eeprom-update -d -a

setup ohmyzsh

change default theme to:

 ZSH_THEME="bira"
  • update plugins to foollowing in .zshrc file
plugins=(git docker docker-compose)
  • add the following entries to .zshrc file for custom aliases
#CUSTOM ALIAS
alias cls=clear
alias ls='ls -al'

alias up.up='sudo apt update && sudo apt upgrade -y'
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
alias pyt=python3
alias py=python3
alias py3=python3

alias dcupdb='docker-compose up -d --build'
alias dcdown='docker-compose down'
alias dcrun='docker-compose run --rm'
alias dsp='docker system prune'

Disable bluetooth

sudo vi /boot/config.txt

# Disable Bluetooth
dtoverlay=disable-bt

disable related services

sudo systemctl disable hciuart.service
sudo systemctl disable bluealsa.service
sudo systemctl disable bluetooth.service

Update to latest python

Download and update to latest OpenSSL

wget https://www.openssl.org/source/openssl-3.3.0.tar.gz
tar xvf openssl-3.3.0.tar.gz
cd openssl-3.3.0
./config
make
sudo make install

It can take upto 10 minutes for above command to complete
By default your manual install of openSSL will be in /usr/local/ssl. You can confirm this by checking the modify time of the ssl directory with ls -la /usr/local/ssl .

Download the latest Python file

wget https://www.python.org/ftp/python/3.12.3/Python-3.12.3.tgz
tar -zxvf Python-3.12.3.tgz
cd Python-3.12.3

UNCOMMENT following lines in Modules/Setup

SSL=/usr/local/ssl
 _ssl _ssl.c \
    -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
    -L$(SSL)/lib -lssl -lcrypto
./configure --enable-optimizations
sudo make altinstall

It can take upto 10 minutes for above command to complete

python to point to python3

  • sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.12.3

install zram

Download the script and copy to /usr/bin/ folder

add line before exit 0

/usr/bin/zram.sh &
  • save the file and reboot pi

Commands for intalling internet-pi from geerlingguy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages