Setting up my RaspberryPI as a personal server
I finally updated my and using my old Raspberry pi.
What I want to do with it is:
- Access to the internet to reach public APIs
- Run some small apps I created
- Run a couple of repeating scripts
- SSH in from my main computer
- Use an easy to remember local address
Here is what I did to get it set up.
- (Only if needed) Update your configuration so you can use
apt-update
.
apt-get update --allow-releaseinfo-change
- Run these commands to update the raspberryPI:
apt-get update
sudo apt-get upgrade
- To get your network to use an easy to remember address (as oppose to the IP address) you can use something called Multicast Domain Name Service (mDNS) – it’s explained here way better than I can explain, it’s flavor is called Bonjour, its an apple thing. You can get it installed on your PI with the following command. For Macs on the network, that’s it. For windows machines, you may need to install itunes.
sudo apt-get install avahi-daemon
That’s it. You should be able to ping raspberrypi.local
on your network
- Finally to get SSH working, you have to enable it.
sudo raspi-config
- Update password:
Systems Options>Password
Enable SSH