A fantastic opportunity that my University provides are workshops that a UK-USA-Governmental Defense Contractor delivers.
At the end of every semester, these wonderful USA guys come in - and half of the fun is learning the cultural differences - lingo wise. They give us a week-long crash course, setting up vSphere VM's for us to all work on, secure and attack.
For example, a brief sample of topics that we've covered:
- Static & Dynamic Malware Analysis
- Intrusion Detection System implementation and utilization
- Advanced Network Traffic Inspection
It's all great fun really. Anyway! Back to the story, at the end of these workshops they run a 3/4 hour CTF. Of which I managed to win! Which is how I came to obtain a Raspberry Pi TFT 3.5" Touchscreen and various bits and bobs.
Well... Here it all is:
Not too much explaining to do for this part, so for the installation I'll throw the pictures into a gallery for your viewing pleasure!
Notice how it's only a white screen? Well! As it turns out, you have to install drivers. The Git repository was listed on the instruction leaflet, and is specific to the model of screen.
I had to install the Armhf-variant of Debian Stretch for these drivers to install correctly.
Once following the "simple" compile instructions, lets restart!
Calibrating the Screen
Initially, the calibration was completely off, and was screwing with my head. Luckily there's a tool just for that.
But first, I had to install some dependencies.
sudo apt-get install libtool libx11-dev xinput autoconf libx11-dev libxi-dev x11proto-input-dev build-essentials git clone https://github.com/tias/ cd xinput_calibrator sudo chmod +x autogen.sh ./autogen.sh make sudo make install
Disabling Screen Blanking
sudo apt-get install x11-xserver-utils sudo nano /etc/X11/Xsession.d/disableblank.sh
We need to input the following into the file:
xset s off # don't activate screensaver xset -dpms # disable DPMS (Energy Star) features. xset s noblank # don't blank the video device
Make the file executable:
sudo chmod +x /etc/X11/Xsession.d/disableblank.sh
Add the disableblank.sh to the boot script
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Append the file to the bottom of the boot script:
Installing a Virtual (Soft) Keyboard
Although it's touchscreen, you still require a keyboard to type. Let's fix that with the aid Elecrow-Keen (I'm just going to pretty much copy-paste code)
sudo apt-get update sudo apt-get install libfakekey-dev libpng-dev libxft-dev autoconf libtool -y git clone https://github.com/Elecrow-keen/matchbox-keyboard.git cd matchbox-keyboard chmod +x autogen.sh sudo ./autogen.sh
After a few minutes of compilation, here we are:
sudo make sudo make install
Now I've just got to find something to use this for!