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

things I break/fix for fun and learning

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

Nov 28, 2017 - 1 minute read - Comments

ssh and scp - my most used commands

ssh & scp are my most used commands once I started playing around with my homeserver.

ssh I use it to login remotely to the server, issuing a command like this -

ssh username@SERVERIP -p PORTNUM

For security measures, I have disabled root logins and changed the default port 22 to something else. Those settings are configurable under this file -

/etc/ssh/sshd_config

and look for the PermitRootLogin and Port entries respectively.

Nov 27, 2017 - 1 minute read - Comments

Hugo Cheatsheet

Markdown is the language used by Hugo. Markdown files have an extension of .md for it to be processed by Hugo.

This is what I am using as reference for basic Markdown language.