Advanced Set Up

Changing the Hostname

The hostname is v1pi by default. But if you have more than one on a network, or you just want to name it something else, you can by editing two files.


Change /etc/hostname. There is only one word inside hostname, and it’s whatever you want the hostname to be.


/etc/hosts/ is part of the networking, and it tells Linux what IP address to use for certain names. The v1pi’s hostname is in there, so that it can always find itself. Find the line that says:   v1pi
Change v1pi to your new hostname.

Reboot the pi, and you should be good to go.

Debugging through UART

There’s a good guide here from adafruit

But the key part is to add enable_uart=1 to the bottom of /boot/config.txt.

Then connect with 115200 baud. My connection looks like this: /dev/ttyUSB0 115200 --eol LF --raw


The nice thing about this is, you probably already have a computer you’re working with, and you don’t need another keyboard/mouse/monitor. But if the pi isn’t connecting to wifi, then you need a way to kick it. This is one of the easiest ways.