Skip to main content

Posts about dgplug (old posts, page 2)

Programming, Day 27

Busy day.
Couldn’t do much.

Had a ton of fun, talking writing and blogging, over at DGPLUG though :)

Also figured out what a reverse proxy is, how to terminate an ssl connection at NGINX for the proxy and how to add a subdomain to a Let’s Encrypt certificate.

A Transcript of Seth Godin’s Akimbo Episode on Blogging

This episode (Season 2, Episode 1) on blogging is very important to me. I think it’s a distillation of all of Seth’s thoughts about writing and blogging in a crisp, crackling 20 minute episode.

I wanted this for permanant reference, so I thought, I’d transcribe it for myself, and then I thought, well, if it helps me, it’ll surely help others.

So here you go.
It’s all Seth below …
P.S. Typos and errors, omissions and emphases, entirely mine.

Read more…

On Intention

Note: This series and words of opinion are also aimed at the Student Planet.

OK, I’ve changed my mind.

Before, I talk tactics, let me tell you something about intention.

All intention means to me is, “I, Decide!”

Read more…

On Capturing Value; my newest mental model


I’ve found it difficult to figure out why I did not make money (or at least intentionally make money, not counting my lucky breaks) as I expected to, in the old consulting gig. This, despite the fact, that I knew I was smarter than the average bear when it came to my field of work.

And that same fear still remains1 as I pivot careers. I know I’ll pick up stuff with programming. I know I’ll get fluent. But will I be able to make a comfortable living?

Read more…

Booting CentOS into Graphical or Command Line Mode by default


Ok, now that I’ve installed CentOS, I decided to install X Windows. And like Rip Van Winkle, I learnt that a lot has changed in 20 years :)

A windowing environment was easy to install …

sudo yum groupinstall "Gnome Desktop"

and the trusty old startx & gave me a Windowing Environment (which I have yet to explore)

However, switching permanantly to graphics mode (or vice versa) wasn’t so easy. I wanted to set my command line as the default startup environment and so I went to look for the default runlevel. I coudn’t find it. That’s because they don’t exist anymore. No inittab of old, nothing.

The init scripts of old have now been replaced (for quite a while) by systemd. And while it’s old (most Linux distributions have adopted it for nearly 3-5 years now) it’s still new to me :)1

So, systemd targets something called targets2 instead of runlevels. (Haha, see what I did there? :P) Targets to my mind involve a collection of settings in a file all relating to … something … a service.

You could group all of your network stuff in a network target, or like I needed it all your runlevel settings in a command line target or a graphical target.


So a quick search led me to the systemctl get-default command which gives my my default target

Another search gave me the multi-user target to use if I wanted a multiuser command line environment.

So to switch all I had to do was, systemctl set-default

Et voila!

If I ever wanted my graphical environment back as a default setting, systemctl set-default

And Bob, as they say, is my uncle.

  1. and apparently still quite a source of controversy and debate 

  2. which I need to learn lots more about 

Creating a bootable Linux USB installer disk from an ISO on the Mac


I got myself a new pc to learn Linux and do all my crazy experimenting on.

What’d I use as my primary OS? Why CentOS, ofcourse. Two reasons … - These are long term, slow stable releases, just the way I like my software to be. - My last exposure to Linux was Red Hat Linux v5 & 6 way back when1. CentOS looks familiar enough to ease my apprehensions.

First step on the way, was getting the OS installed on the machine. Slight hiccup though. I had the ISO and no optical drive!

I’d disconnected and given away the optical drive on my server, because I thought,2 I didn’t need a device sucking power, needlessly. And ofcourse my trusty old MacBook Air has none.

So how do I do about installing?

Well, I got the ISO down, via bittorrent and then “burnt” it to a USB drive, making myself a bootable USB installer.

How? Well here goes3

  • Get the ISO4.
  • Convert the read only ISO to a read/write image using hdiutil5 like so. sudo hdiutil convert -format UDRW -o 'call-it-what-you-want.img' 'path-to-iso-file.iso It’d be simpler if you’re in the same directory as your iso file. Saves you making booboos with paths.
  • You’ll end up with an img file (it might also get appended with a .dmg extension, so that you end up with CentOS.img.dmg. Doesn’t matter.)
  • Partition your USB drive so that it’s empty.6diskutil partitionDisk /dev/disk2 "Free Space" "unused" "100%"
  • Write the converted image file to your USB drive using dd. sudo dd if='path to your new img file' of=/dev/disk2 bs=1m
  • Once dd is done, the USB installer’s ready.

You can then go right ahead and use it to install CentOS.

  1. 1999 — 2000. Yes, I’m that old. 

  2. Don’t laugh! 

  3. Instructions for reference purposes only. Be careful. Don’t be a cargo cult sysadmin. Don’t blame me, if you hose your system

  4. that you think you’d need. I got the everything ISO. If you’re comfortable doing everything over your fast broadband connection, a minimal ISO should suffice. 

  5. You’re obviously doing this in the terminal. Just thought I should tell you that :P 

  6. Your device might not be disk2. Find out what it is by using “diskutil list”