Tips and tricks for your Raspberry Pi

3 min read

Now you have a fresh Raspberry Pi that’s great now what? Here’s my tips to enhance your experience with Raspberry Pi

Install unattended-upgrades

This will ensure your pi will get the latest security updates this is important if you are going to install VPN (Wireguard) pivpn.io on your Pi, check this blog post I found here – https://medium.com/@bipul.k.kuri/auto-update-upgrade-raspberry-pi-b5b7b43ced64

Install log2ram

This will help you extend your SD Card lifetime setting the log to ram instead, you may follow the instruction from the blog post – https://mcuoneclipse.com/2019/04/01/log2ram-extending-sd-card-lifetime-for-raspberry-pi-lorawan-gateway/

Install neofetch

Basically this will run a summary report of your raspberry pi spec to install just run this command:

$ sudo apt install neofetch

Install zsh + oh-my-zsh to replace bash

Just follow along on this blog post I found – https://www.uberbuilder.com/oh-my-zsh-on-raspberry-pi/

Step 1 – Install zsh and set as default

$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get install git zsh
$ chsh -s /bin/zsh
[enter your pi password]
$ exit

next you need to SSH to your pi again and choose: to exit from Z shell menu

Step 2 – Install oh-my-zsh and recommended plugins

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
$ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
$ git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
$ vi .zshrc

search and uncomment below:

# export PATH=$HOME/bin:/usr/local/bin:$PATH
# export LANG=en_US.UTF-8

modify/set:

plugins=(git zsh-completions zsh-autosuggestions zsh-syntax-highlighting) 
autoload -U compinit && compinit

Done! zsh is installed with recommended plugins.

Beautify your zsh

I am using this theme https://github.com/romkatv/powerlevel10k with this simple step:

on your home directory run:

$ git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

edit your

~/.zshrc

and set

ZSH_THEME="powerlevel10k/powerlevel10k"

log out from terminal session and login again there will be a wizard to design your theme, follow along.

for better experience install and use this font as default on your terminal https://github.com/Falkor/dotfiles/blob/master/fonts/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf

Here’s my result, do as you please:


Beautify VIM

$ nano ~/.vimrc

Paste below:

set nocompatible
filetype on
filetype indent on
filetype plugin on
syntax on
colorscheme industry
set laststatus=2
set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P
set ofu=syntaxcomplete#Complete
$ sudo apt-get upgrade vim

Install Mosh

I have discussed about mosh previously check out here

to install is simply type in:

$ sudo apt-get install mosh

and if you use blink as terminal on your iOS devices you can install this font so blink will show the font properly

https://github.com/energetictree/SourceCodePro-Font-Template-Blink

 

 


Be generous and tipshare this post.
How much do you want to tip?
USD       


Don't know how to pay?