Headless Boot Of Raspberry Pi Using DHCP

I’ve been meaning to do something with this amazing little machine for a long time. It really appeals to me because you can use it just like an embedded target device – in other words, you can do embedded programming at home for very little cost.

This tutorial walks you through the set-up of your Pi without all those pesky peripherals, like a keyboard and monitor.

This is known as a headless boot, and it’s a basic embedded technique for dealing with target devices.

Read moreHeadless Boot Of Raspberry Pi Using DHCP

Debug ncurses with GDB + GDBserver and Full Input Output

Actually, you can use this technique to debug any kind of console app where debugging on the command line interferes with the program’s output. It’s quick and easy, and unlike attaching to a running process in another shell, it allows you to debug as soon as the program starts, meaning you can catch even those fiddly bugs that only appear during set up.

If you’ve ever tried to debug an ncurses application, you’ll know how problematic it can be.

Using printf statements makes a mess of your visual output…

Debuggers get the keyboard input all mixed up in the shell…

Eugh. HEADACHE!

There is a way to seamlessly debug your ncurses application and it is probably easier than you realised.

Enter gdbserver.

Read moreDebug ncurses with GDB + GDBserver and Full Input Output

Screencasting on Fedora [20]

To start with, did you know you can record a screencast on Fedora just by pressing CTRL-ALT-SHIFT-R?

No?

Me either. How fantastically easy is that?

Once you’ve pressed the keys, you get a little red circle in the top right of your screen that indicates recording is on. When you’re done, just press CTRL-SHIFT-ALT-R again to stop.

The file will be automatically saved in your <user>/Videos folder with a name along the lines of:

Screencast from 17-10-14 11_57_52.webm

Importantly, this DOES NOT record audio.

Well that’s annoying.

Read moreScreencasting on Fedora [20]