Clear free space on Raspbian

Published on Author roving_adventurerLeave a comment

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

Managing cron entries in syslog

Published on Author adventurerLeave a comment

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

Using a static IP address with Raspbian Jessie

Published on Author roving_adventurerLeave a comment

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

Configuring xrdp for UK keyboard layout

Published on Author roving_adventurerLeave a comment

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

Hosting WordPress sites on t2.nano instances

Published on Author adventurerLeave a comment

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

RaspberryPi: Running a Python script on boot

Published on Author adventurerLeave a comment

To run a script called myproject/myscript.py on boot, first create the script and ensure it has execute permissions. Then create a config file for systemctl as follows: % sudo vi /lib/systemd/system/myscript.service containing the following [Unit] Description=My Script After=multi-user.target [Service] Type=idle ExecStart=/usr/bin/python /home/pi/myproject/myscript.py [Install] WantedBy=multi-user.target Set the correct permissions on the config file % sudo chmod… Continue reading RaspberryPi: Running a Python script on boot