Blogs

Stay ahead with the latest trends in custom software development. Explore how AI, automation, and cloud solutions are shaping the future of business technology.

Flash a Pi Compute Module with Raspbian Server

Windows Setup Download the Windows Raspberry Pi Compute Module Boot Loader: https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe Install the RPI Boot Setup file With the board powered off, ensure the USB Boot jumper link is enabled. Attach the Desktops USB to the ‘Micro USB Slave’ port Attach the micro USB power supply to ‘Power In’ to power up the board The […]
Continue Reading

Block IPs by country – Apache

Step 1 If you are using debian or ubuntu, install the mod-geoip package. sudo apt-get install libapache2-mod-geoip   Step 2 Enable GeoIPEnable, edit geoip.conf /etc/apache2/mods-enabled/geoip.conf GeoIPEnable On   Step 3 Find Country Code Lookup: https://en.wikipedia.org/wiki/ISO_3166-1 In Apache vhosts file, outside of the </Directory> tags: <Location /> ##ISO 3166 Country Codes ## Block China ## Block Costa […]
Continue Reading

Linux – if anyone logs in notify SSH

Put the following in /etc/profile: The script /etc/profile is executed at every login (for bash shell users).   if [ -n "$SSH_CLIENT" ]; then TEXT="$(date): ssh login to ${USER}@$(hostname -f)" TEXT="$TEXT from $(echo $SSH_CLIENT|awk '{print $1}')" echo $TEXT|mail -s "ssh login" you@your.domain aFrom:youradd@email.com fi   If you have issues delivering mail to a GMAIL inbox, […]
Continue Reading