Hacking Away a Sunday Night

Country music playing.  Keyboard typing. Still seeing a little light out over the fjord outside my parents’ house here in Tysvær. Just finished setting up a server in Bergen to host WordPress sites. It’s a task that might seem easy for seasoned system administrators. However, for me (not being a seasoned sysadmin) it was a nice chance to learn something new by setting all this up via command line remotely, talking to a machine several hours away (if traveling by bus). Feels satisfying somehow. Command line definitely adds to the coolness factor.

living room photo

Living room with new flooring, stuff waiting to be reorganized in the background.

seeing the fjord in the distance dimly lit

Middle of the night. Still light. Seeing the fjord in the distance.


Memo to myself of resources used

  1. I first installed LAMP on my linux server, which is a bundle open-source software used for hosting web sites.
  2. Since I had a web app already running on the default port 80, I wanted to change the apache default port, solution for that here.
  3. Restarting the server surfaced some errors complaining about a missing servername, found a solution here.
  4. After searching some more I found this nice writeup of how to install WordPress on linux via command line.
  5. I followed the steps in the how-to for a while until I realized that I had forgotten my mysql password. Found a way to reset mysql password here.
  6. The wordpress “pretty” permalinks didn’t work properly. Solution here.

Presto! Server successfully hosting a wordpress installation. :)


Late night sysadmin’in: Repurposing my old laptop to serve up my master’s project

After having a great session of Friday Night Lightning with the gang from Pils & Programmering I was just going to drop by my dedicated study space at my University and drop of my laptop.

I ended up sticking around tinkering on an old laptop of mine setting it up to be a server while listening to a couple of interviews with Jeri Elsworth, an inspiring self-taught engineer.

A server is a computer which is typically connected to the internet and serves up files or is able to perform other tasks like resending e-mail, being a remote backup space amongst other useful tasks.

My new laptop is a hp g6-2131so, and it came with a 5400rpm 750gb hdd (quite slow but quiet). In my old laptop, a hp dv9510, I had a 80gb intel ssd hdd (much much faster than the hdd I received with my new laptop). So, I decided to switch the hdds and repurpose my old laptop into a server.

Time was around 22.00 – 00.30 while I did all of this tinkering. As a master student we have key card access to the faculty building and our own keys to our study spaces in which we have dedicated study spaces. I share a room with five other people. Technically, we can stay at school all night all the time. I really try not to, but this time I just wanted to wind off by setting up this server.

I ended up using Lubuntu 12.10 as the operating system, not the most stable perhaps and I might end up going for Crunchbang or straight up Debian instead. A challenge I had to overcome is that the server would have to automatically connect to the internet using vpn and automatically reconnect if ever it would get kicked off the network (which it will be). I tried my best to follow this guide, with some success but it ended up not working. Better luck next time. :)

Yet another challenge was that this server would never have a consistent ip-address. Luckily, a friend of mine recommended no-ip.com which is a service that provides a domain name for free that the server could talk to and make sure that the name would always point to the server’s ip-address. The result is me only having to remember one name instead of a shifting series of long numbers.

In the end I managed to get my server up and running serving up my web application. Tinkering joy! :) Having such a server at hand will be especially handy right now since I tried using a proper web host but it didn’t work out (I tried using something that was totally free).

Moving forward I hope to get the server properly auto-connecting to the internet, acting as a backup system and serving up various web applications. :) Puh. It’s gotten really, really late. But hey it’s been a fun day/evening/night. I’ll sleep for a long time tomorrow.