[root@rhce-ryanrudolf]# rm -rf / 2> /dev/null

things I break/fix for fun and learning

Dec 5, 2017 - 1 minute read - Comments

Google Analytics - 5 Days of Data

I’ve integrated Google Analytics in my site, it’s a great piece of software that tracks and reports website traffic.

After 5 days of integrating it, I’d like to share some statistics. My favorite part of the report is the Sessions by Country, it lets me view where my visitors are from! Didn’t knew I have reached China and Singapore LOL!

Dec 4, 2017 - 1 minute read - Comments

This Site Now Utilizes HTTPS!

This site now utilizes HTTPS! HTTPS is the secure version of HTTP, the ’S’ at the end of HTTPS stands for ‘Secure’. It means that the communication is encrypted.

Several things to make it work in my environment - edit hugo config file, create port forward rule in router, and finally configure HTTPS in Apache.

Dec 2, 2017 - 3 minute read - Comments

PXE Server Using CentOS7 and OpenWRT

This will document the steps I did to be able to host a PXE server using CentOS and OpenWRT in my environment.

Requirements for PXE server -

  • DHCP server to assign IP addresses
  • TFTP server to host the pxe files
  • FTP server to host the install files

Dec 2, 2017 - 2 minute read - Comments - linux

Windows98 in 2017

Last summer I was able to get a fully functional Windows 98 computer for free! Some household is cleaning their basement / garage and decided to give away this magnificent computer. I gladly picked it up the curb as I have a use for it - Linux!

The specs are not that fancy -

  • 15in CRT monitor
  • PS/2 mouse and keyboard
  • Intel Celeron 533MHz
  • 64MB RAM
  • 10GB IDE HDD
  • Intel 81x built-in video card
  • CDROM
  • 1.44MB floppy drive
  • 2 PCI modem cards
  • integrated sound card

Dec 1, 2017 - 2 minute read - Comments

Android Apps For Accessing My Homeserver

Sometimes I need to upload screenshots from my phone to my homeserver. Luckily there is an Android app called AndFTP. AndFTP allows you to connect to remote servers using several different protocols -

  • FTP
  • SFTP (secure FTP over SSH)
  • FTPS (secure FTP over SSL / TLS)
  • SCP (SSH secure copy)

What I want is scp, as I already have a running instance of ssh on my server. On a Windows box I use WinSCP, and on a Linux box I use scp. So for Android, I will also utilize scp.

Nov 30, 2017 - 1 minute read - Comments

Google Analytics

This site now utilizes Google Analytics! I had tried many steps on how to make it work, manually editing pages to insert the code etc etc. But in the end, this is the most easiest and efficient way to integrate Google Analytics on a site generated by Hugo.

Edit config.toml file -

vi config.toml

Add this line if it does not exist yet, replace UA string with your Google Analytics string -

googleAnalytics = "UA-xxxxxxxxx-x"

Nov 29, 2017 - 1 minute read - Comments

Directory Listing

I just noticed that I can do directory listing on my site, and it will happily list the contents of the directory without warnings or errors. See screenshot below -

before

I don’t want that for several reasons. Instead what I want is a custom error message to be displayed whenever people try to do a directory listing of the site.

Nov 28, 2017 - 1 minute read - Comments

Linux CLI and vi cheatsheet

Most of the time I am working on the command line to access my home server using ssh / scp, and using vi to edit files. This will be handy as a reference guide for the Linux commands and also for navigating vi.

Linux and vi cheatsheet