Sunday, February 15, 2015

Terminal Refresh - Chromebook Users and Terminal

Years ago, I wrote a terminal cheat sheet over on pretendertothepower.com I think it is time for an update.
One command that I misunderstood from the beginning was sudo. This concept troubled me as there is a root account, which is sort of analogous to being an admin on Windows. Windows is bad news, because the admin account is so handy, or worse, required to do many standard things. This is not the case in all the various forms of Linux. xPud is a notable exception as you are always logged in as root.
By way of example, in Windows, the Admin account will not allow you to delete critical files from your system. At least, not without a lot of effort. Linux will happily allow the root user to delete ANYTHING!
Linux Rule One: If you don't know what outcome you need, root is NOT the tool for you.
On the other hand, you can gain temporary access to elevated privileges with the sudo command. This is actually the correct method for gaining privileges. Let's say you want to install some software, and you intend for all users to access it. The sudo command allows a user to gain privileges using their own password, not the root account password. The process creates a log of what is done in /var/log/auth.log; if mistakes are made, you can easily figure out what and when it was done.
In this example of sudo, we are going to install gedit. But we need to get ready for it.
sudo apt-get update
This command will tell your system to go and check what versions you have against what versions are available on the servers. It installs nothing. This is very important, because your linux computer has a local list of software available and it could be out of date. Update, update, Update!
The command for installing is:
sudo apt-get install gedit
Linux is made up of packages of software, in discrete chunks to make it more useable. The command apt-get install will put these packages on your system and make them useable.
You can go ahead and try to run both commands without the sudo. It will throw a nasty looking error.
Ok. Now we have gedit installed. We can open gedit without the sudo command. Type
gedit
As you can see, gedit is a very basic editor. We are going to use our elevated privileges and use gedit to do something a normal user cannot do. I am using a Chromebook with Crouton and I would like my Linux system to default to the $HOME/Downloads directory.
Let's fix this. Type sudo gedit .config/user-dirs.dirs to open the protected .config file.
What is not shown is all the activity in the terminal. At this point, since terminal opened gedit with elevated privileges, you should not close the terminal window.
Go ahead and change the text $Home/Desktop to $Home/Downloads.
I changed them all, but obviously you don't need to do that. Click save. You should see some activities in the terminal window.
Tomorrow we will look at using sudo for other purposes.

Monday, December 22, 2014

Maps – The Stave Church

Last week, I did a quick drawing of a Norse-themed building. 

Today, for the winter solstice, I knocked out a floor plan for a fantasy-themed stave church. When sketching this church, I imagined that the parishioners are followers of a river goddess and that the church is very old. 


From the exterior, this church would appear to be several stories high, but the interior shows a largely, airy nave. The church is orientated to the north and is a mirror of a river to the west of the church. Most rivers do not flow north, so this one is special. 

Half Baked Idea - The Demon Core

In my last post, I mentioned a device called the demon core. I know what it looks like, I know that it seethes with power. It is wildly dangerous. 
Aside from that, I know nothing. There was a real device called the demon core. It was 3.5 inch, subcritical mass of plutonium used for testing. In this capacity, it killed two scientists.

Nasty stuff. I may have to revisit this item and flesh it out for use in my campaign.

Sunday, December 21, 2014

Serpent Bay – Five Minute Vignette

A user request from Google Plus – post-apocalyptic maps. I am horrible with colored pencils and I've never tried a post-apocalyptic map. What I ended up with was a sketched vignette.



“They brought the demon core, blood hexes, and shells. They pushed us to the sea. In the woods, we moved like eidolons hunting, as the skies sizzled with hot brass and steel rain. The sea frothed blue and white; the gnashing of frustrated and frenzied selkies. 

“Desperation rose within us, fanned by orisons, curses, and automatic fire. 

“You tell ’em, we held those bastards at Serpent Bay.”

Tuesday, December 16, 2014

Of #Blackstormtroopers or How Right was My Mom

When I was a kid, my parents took me to see Star Wars, The Empire Strikes Back and Return of the Jedi. In the case of the last two, they let my sister and I ditch school. How cool are my parents?

My parents were largely silent on Star Wars. We knew they liked it, but in retrospect, they obviously enjoyed our love of the series more than their own pleasure. They stepped over countless Star Wars toys, sat through endless monologues, and fielded wacky questions about Tie Fighters and X-Wings. Now that I have children, I totally understand this.

However, during our first viewing of Return of the Jedi, my mother offered a singular and powerful opinion. I have to count it as one of the most important formative moments of my life.

Picture it:


Luke is standing over a crippled Darth Vader and Vader's voice is distorted, failing. He requests that Luke remove his mask, ending his life, so that he may look upon his son with his own eyes.

With great sorrow, Luke complies and we see that Sebastian Shaw is the actor playing Luke's father.

My mother was mortified. She spluttered "Where is hell is James Earl Jones!?!"

I hissed: "Mom! James Earl Jones is...."

Then I got it. She knew that James Earl Jones was Mark Hamill's dad. She just knew that was the right thing, and somehow I knew it too. That piece of accidental advice has stayed with me all my life. Skin color doesn't matter.

There is a corollary to this story. My wife purchased a set of Star Wars DVD's for me. One day, the kids and I watched all three movies. This was one of the special edition sets with all of the modifications George Lucas had time to throw in.

I was stunned when Hayden Christensen was cut into Shaw's role as Anakin.

I howled: "What the hell? That should be James Earl Jones!"