Raspberry Pi Basic Setup

Okay, we all know what’s Rasberry Pi, right? If not, here’s the official website. In short, it’s awesome little gadget with infinite potential. If you’re on a geeky side, do check it out.

If you buy an official SD Card, it comes with NOOBS which is basically Debian, you can verify that with cat /etc/debian_version.

So here are my first steps:

I’m running it headless, so I did sudo apt-get remove x11-common which pretty much removed all GUI packages. You might check if there’s something you need on that list.

Next I’ve upgraded, with sudo apt-get update && sudo apt-get upgrade.

After upgrade, I’ve created new user, see Users and Groups Management. Root is disabled by default, if you want to use it, you can set password for it with sudo passwd root. If you’ve created a new user, add it to the sudoers list, do sudo nano /etc/sudoer and add bellow same line starting with root:

yourusername ALL=(ALL:ALL) ALL

(In example above, yourusername is a username of user you’ve created.)

Logout and login with a new username, then feel free to remove pi user with userdel -r username.

I have external drives, so I’ve edited /etc/fstab and add them to the list. I’ve also installed (sudo apt-get install samba) and configured samba.

Finally, sudo raspi-config can be run to overclock and set i18n, or to change pi password in case you’d rather use that account.

It’s really easy and does not take much time to have this lovely device up and running.

This is archived version of blog, preventing broken links. This version will stay online indefinitely.