First Setup - Raspberry Pi

From ETCwiki
Jump to navigationJump to search

This is a brief guide to what you do with your Raspberry Pi after you boot it up. These commands will improve your life a little, update your packages, and install VIM (text based editor) that I use for most of my guides. nano is also acceptable as an editor if you do not want to learn vim.

Raspberry Pi Initial Setup

change root password

sudo passwd

update OS and install vim (text editor)

apt-get update
apt-get upgrade
apt-get install vim

You will need to edit your bash properties in 2 files, start with

vim /root/.bashrc

Add aliases to the end of /root/.bashrc and /root/.bash_profile

alias ls='ls -al --color'
alias goho='cd /home/pi'
alias gogp='cd /home/pi/gpio'
alias savepi='chown -R pi:pi /home/pi
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[0;31m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\]"

To copy all of this to its sister file:

cat /root/.bashrc > /root/.bash_profile