Configuring a static IP for Raspbian/Debian Jessie

Looks like on Raspbian Jessie the way you configure a static IP has changed. You used to configure static IPs in /etc/network/interfaces, but on Jessie it looks like the file to edit is now /etc/dhcpcd.conf (per the comment at the top of the prior file).

Scroll to the end of the file and paste something like this, editing IPs to match your network:

interface eth0
static ip_address=192.168.1.xxx/24
static routers=192.168.1.xxx
static domain_name_servers=8.8.8.8, 8.8.4.4

Reboot, done.

Building autogen based source on Ubuntu and derivatives

 

Install build tools:

sudo apt-get install build-essential

Install autogen tools:

sudo apt-get install autogen

In project source:

./autogen.sh

If you get errors like this:

configure.ac:25: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

… then also install libtool

sudo apt-get install libtool

Then build and install as normal:

./configure
make
sudo make install

 

 

Installing latest Nvidia 361 drivers on Ubuntu / Linux Mint

I’ve posted a few times about installing the nvidia-304 legacy drivers on Linux Mint, which I’ve been using on an HP desktop which has nvidia 6150 graphics on the motherboard.

I just upgraded to a shiny new geforce 750ti card which runs in this same HP, powered through the PCI-E slot so and doesn’t need any additional power (which would have required ugrading the PSU too).

To upgrade my nvidia drivers in Linux Mint, it seems the latest 361 drivers are not available in the main apt-get repos, and even if you add a ppa, it seems they’re not there yet either. Luckily, to install from the download on the nvidia site it’s pretty easy.

To summarize the steps I took based on the instructions here:

  • remove the current nvidia drivers:
    sudo apt-get purge nvidia*
  • kill the current Mint DM:
    sudo service mdm stop
  • sudo the driver .run executable downloaded from the nvidia site.. chmod +x it if needed. Reboot, and done! Running the latest drivers!