- Connect your Pi with an ethernet cable to a switch and boot up.
- Connect to console using user: root and password: raspberry.
-
Upgrade MINIBIAN:
apt-get -y update apt-get -y upgrade
-
Install packages:
apt-utils
,apt-file
,raspi-config
,usbutils
,wpa_supplicant
,crda
,mc
:apt-get -y install apt-utils apt-file raspi-config \ usbutils wpasupplicant crda mc
-
Setup
wlan0
:cat <<EOF >> /etc/network/interfaces auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf EOF
-
Configure
wpa_supplicant
(replaceYOUR-WIFI-SSID
andYOUR-WIFI-PASSPHRASE
):wpa_passphrase YOUR-WIFI-SSID YOUR-WIFI-PASSPHRASE \ >> /etc/wpa_supplicant/wpa_supplicant.conf
-
Bring up
wlan0
ifup wlan0
-
Setup the local timezone
cat /usr/share/zoneinfo/Europe/Warsaw \ > /etc/localtime
-
Disable debug messages on first console:
sed -e 's#^exit 0#/bin/dmesg -n 1\n\nexit 0#g' \ -i /etc/rc.local
-
Make
mcedit
the default editor:update-alternatives --remove-all editor update-alternatives --install \ /usr/bin/editor editor /usr/bin/mcedit 10
-
Expand the root partition:
raspi-config --expand-rootfs
-
Re-read the partition table:
partprobe /dev/mmcblk0
-
Resize the filesystem of the root partition:
resize2fs /dev/mmcblk0p2
-
Update the firmware of your Raspberry Pi and delete all modules except the latest installed:
apt-get -y install rpi-update PRUNE_MODULES=1 rpi-update
-
Clean-up
rm -rf /boot.bak apt-get clean rm -rf ~/{.cache,.config,.local} rm -f ~/{.bash_history,.selected_editor}
-
Reboot
shutdown -r now
If you encounter problems with your WiFi adapter, it’s probably caused by missing firmware (you can check this by running dmesg
). Installation of firmware-ralink
or firmware-realtek
packages may be required.