To install the legacy NVidia drivers on a fresh Debian Stretch install: (for details see here) Add the following sources to /etc/apt/sources.list deb http://httpredir.debian.org/debian/ stretch main contrib non-free The execute the following % sudo apt update % audo apt install linux-headers-$(uname -r|sed ‘s/[^-]*-[^-]*-//’) nvidia-legacy-304xx-driver % sudo apt install nvidia-xconfig % sudo nvidia-xconfig and reboot. To… Continue reading Installing legacy NVidia and b43 wlan drivers on Debian Stretch
To reduce unnecessary disk usage in the default Raspbian Jessie load remove the Wolfram, Libreoffice, Minecraft-Pi and Sonic-Pi package and clear up dependent packages as follows: % sudo apt-get purge wolfram-engine % sudo apt-get purge libreoffice* % sudo apt-get purge minecraft-pi % sudo apt-get purge sonic-pi % sudo apt-get purge idle* % sudo apt-get purge… Continue reading Clear free space on Raspbian
To set the timezone and ensure it persists through reboots, use a nice graphical interface as follows: % sudo dpkg-reconfigure tzdata and follow the prompts. Thanks to the Raspberry Pi Forums and DougieLawson.
Raspbian is updated as follows % sudo apt-get update % sudo apt-get dist-upgrade % sudo apt-get autoremove Some of the firmware is stored on the SD card. To update the firmware: % sudo rpi-update To see what version is currently installed: % vcgencmd version
In the latest Raspbian distributions the default syslog configuration writes cron messages, including success messages, in to /var/log/syslog. To eliminate this, edit /etc/rsyslog.conf % sudo vi /etc/rsyslog.conf uncomment the line for /var/log/cron.log, and add cron as an exclusion to /var/log/syslog as follows: cron,* /var/log/cron *.*, cron,auth,authpriv.none /var/log/syslog and then force a restart of syslog using… Continue reading Managing cron entries in syslog
Here is a brief rundown on how to set a static IP address on Raspbian Jessie, including getting DNS resolution to work which can be problematic with the default packages installed with Jessie. In Jessie, the static IP address is set in the dhcpcd.conf file, hence edit this using % sudo vi /etc/dhcpcd.conf Add the… Continue reading Using a static IP address with Raspbian Jessie
When using xrdp to access the GUI on my headless Raspberry Pi’s I quickly discovered that the keyboard mapping was wrong, with the Pi defaulting to a US keyboard mapping. I tried hanging these settings in the GUI interface to no avail. After scouting around on the net I discovered that a new keyboard mapping… Continue reading Configuring xrdp for UK keyboard layout
If you install a fresh image of the latest Raspbian OS on to a RPi, you will now have realvnc installed by default. If you would prefer to use xrdp, execute: % sudo apt-get purge -y realvnc-vnc-server % sudo apt-get install -y xrdp Credit to RaspberryPi.org for this information.
To show the differences: % git diff To do commit and make a first push to the remote: % git commit -a -m “comment” % git push -u origin master To check diffs in the repository: % git log -p To check the remote repository status: % xxx To clone a github repository: % git clone… Continue reading Git Quick Reference
Since AWS have now introduced a t2.nano instance, it is even cheaper to run a single instance for very low volume services, which don’t need the CPU performance of a t2.micro. However one thing to watch out for is memory – t2.nano instances only come with 512Mb of RAM, and I found that the mysqld… Continue reading Hosting WordPress sites on t2.nano instances