Saturday, 4 January 2020

Phat DAC

I want to use this PI to play music in the Garage, seeking to provide access to Internet Radio, access to our music on a NAS Server.

I usually listen to BBC 6 Music,

https://www.bbc.co.uk/6music

our music collection is rather eclectic

.I will be playing the music through a BOSE system, as such improve the quality of the audio i will be using the PHAT DAC

https://shop.pimoroni.com/products/phat-dac

the easiest way to set up the PHAT DAC is to follow the instructions here:-

https://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install

using the following command:-

curl https://get.pimoroni.com/phatdac | bash


Friday, 3 January 2020

Remote Control

As my Pi will not always be in front of me, nor will it have a permanent keyboard and screen connected i need to be able to connect to it remotely.

 luckily Pi has inbuilt remote connections, SSH and VNC.

I tend to use VNC, and followed this article

https://www.raspberrypi.org/documentation/remote-access/vnc/

enable VNC server on the Pi via the Preferences



For SSH Connection i used PuTTY

https://www.chiark.greenend.org.uk/~sgtatham/putty/

easy to config and use:-



Must learn to play nicely with your friends ....

While not really a big network, there are a number of devices around the house:-


  • NAS servers
  • Sky Box
  • SONOS
  • Desktops
  • Laptops
  • Raspberry Pi's
  • etc.
as such, our policy, right or wrong, is to issue fixed IP addresses to static items, NAS, SONOS, etc., while DHCP is used for mobile devices, Laptops, Mobile Phones, etc.

As this Pi will be static I want to issue with a Static IP address.


Start by editing the dhcpcd.conf file
sudo nano /etc/dhcpcd.conf
Scroll all the way to the bottom of the file and add one, or both of the following snippets. Depending on whether you want to set a static IP address for a wired connection or a wireless connection eth0 = wired, wlan0 = wireless.
You’ll need to edit the numbers in the snippet so they match your network configuration.
CODE
interface eth0

static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

interface wlan0

static ip_address=192.168.0.200/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

interface = This defines which network interface you are setting the configuration for.
static ip_address = This is the IP address that you want to set your device to. (Make sure you leave the /24 at the end)
static routers = This is the IP address of your gateway (probably the IP address or your router)
static domain_name_servers = This is the IP address of your DNS (probably the IP address of your router). You can add multiple IP addresses here separated with a single space.


To exit the editor, press ctrl+x
To save your changes press the letter “Y” then hit enter
Now all you need to do is reboot, and everything should be set!
reboot
You can double check by typing
ifconfig
And checking the interfaces IP address