Patheos

BuddhistCatholicContemplativeEvangelicalGeneral ChristianHinduJewishLatter-day SaintMuslimNew VisionsProgressive Christian

Beliefs

Topics

Columnists

Resource Library

Research Tools

Video

Podcasts

Thought Readers

Faith In Media Tracker

Newsletters

Ad-Free & Subscriber Log-In Subscription Support

Patheos

Ad-Free & Subscriber Log-In Subscription Support

Follow Patheos Patheos on Facebook Patheos on YouTube

Cry 'Woof'

Do You Sudo? Or, Increasing the Cognitive Load

Last updated on: September 13, 2014 at 8:00 am   by willduquette

Do You Sudo? Or, Increasing the Cognitive Load 2014-09-12T19:00:19-05:00 willduquette

LOGO Patheos Explore the world's faith through different perspectives on religion and spirituality! Patheos has the views of the prevalent religions and spiritualities of the world.

Quill One of Quill’s functions is that it lets you list the third-party libraries you need, and it goes out and fetches them for you. It fetches them from ActiveState‘s “teapot repository”, using a program called “teacup” which is delivered with ActiveTcl. And therein lies the problem.

When you install ActiveTcl, it naturally wants to be installed for all users on the machine. On Windows you just need “admin” privileges, and then there’s no problem. (And if you’re a working programmer, and you’re forced to use a Windows machine on which you don’t have admin privileges, why aren’t you looking for a new job?)

But on Linux or Mac OSX, “admin” privileges mostly give you access to the ever dreaded, much to be feared “sudo” command.

See, on Un*x-family systems, there are really only two levels of privilege: either you’re a normal users, and there are some things you just can’t do, or you are the “root” user, and you can do anything you like—including going to the root of the file system and entering “rm -rf *” on the command line. (Note for the Un*x-impaired: this deletes all of the files on your disk, and is generally considered to be a bad idea.)

It used to be that Un*x system administrators would spend most of their time as normal users, logging into the “root” account only when necessary, and then logging out again. These days, though, the humble “sudo” command is the tool of choice: it lets you execute a single command as “root”. The “root” account is also called the “super-user” because of its super powers; and so “sudo” is literally “super-user do”.

No, folks, it doesn’t rhyme with “pseudo”. Sorry.

So if you have admin privileges these days, that usually means that you’re allowed to use the “sudo” command. Happy happy, joy joy!

So you want to install ActiveTcl, and it wants to be installed for all users, in “/opt/” or “/usr/local/”, and that’s probably wise; so you use “sudo” with a command like this:

$ sudo ./install.sh

And that pops up a GUI, and you install ActiveTcl, and all is good.

Well. Except that all of the files created during installation are now owned by “root”. And that includes the local teapot repository, where the library packages delivered with ActiveTcl live.

And so then you decide to install another package, and blessed innocent that you are, you simply type,

$ teacup install snit 2.3

And instead of installing the most excellent Snit 2.3 package, it outputs error messages because it cannot write to the teapot repository because the teapot repository is owned by the super-user and You Ain’t Him.

So you have to use “sudo”. So, blessed innocent that you are, you simply type,

$ sudo teacup install snit 2.3

If you’re lucky, it will go ahead and install Snit, and there will be great rejoicing. But more typically, “sudo” is set up to forget all about your local environment, and so it doesn’t know how to find the “teacup” command.

Sometimes, if you’re not a blessed innocent, and you know what you’re doing, you can try this:

$ sudo -E teacup install snit 2.3

This tells “sudo” to retain your environment, include your “PATH”, which indicates where all of the commands are, and it will find “teacup” and happily install everything for you.

Except, alas, when it doesn’t, as it doesn’t on the latest version of Ubuntu which a friend installed for me in a virtual machine so that I can test Quill on Linux. So then you have to do this:

$ sudo `which teacup` install snit 2.3

The “`which teacup`” tells the command shell to find the “teacup” program, and insert its full path with all the directories right where the `which teacup` was. That way, “sudo” won’t need to go looking for it. And then everything works.

But this is not simple; and this is not easy; and this is a pain in the neck; and it’s something that Quill is trying to save you from. I’ll have something about Quill’s solution next week.

Quill

quill

tcl/tk

Previous Post



September 12, 2014

Dance to the Tune of Elsie Marley!

Next Post



September 14, 2014 The Terrible Contradiction of Staffing


Browse Our Archives

Select a Category Admin App o' the Morning Ask the Dogmat Believing Thomas Bits of Fiction Blasts from the Past Bootstrapping the Interior Life Catholic Mom Christian Living Deep Thoughts from the Doghouse Dominicana Evangelii Gaudium Interviews It Was A Dark and Stormy Night Links to This and That Lumen Fidei Meme Watch On Writing Operation Gratitude Pedant Errant Photography Quill Random Barkings S'Mary's World Shakers of Salt Software Development The Dog Whistler The Dogmat Sez Third Orders Thomas Aquinas Uncategorized Vikings at Dinos Woof Guide to Cinema Woof Guide to History Woof Guide to Literature Woof Guide to Obscure Catholic Music Woof Guide to Philosophy Woof Guide to Popular Music Woof Guide to Technology Woof Guide to Theology Words I Wish I'd Written Works For Me

Select a Month September 2016 August 2016 June 2016 May 2016 April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013


Follow Us!

Follow Us on Facebook Follow Us on Twitter



TAKE THE

Religious Wisdom Quiz

Who did Jesus call the "greatest among those born of women"?

Select your answer to see how you score.

Moses John the Baptist Peter Elijah

Related posts from Cry 'Woof'

Catholic

Quill v0.4.0

Cry 'Woof'

Catholic

Coding Beyond The Screen, Part I

Cry 'Woof'

Catholic

Portland, O Portland

Cry 'Woof'

Catholic

Quill v0.3.0

Cry 'Woof'

TRENDING AT PATHEOS Catholic

Rejecting Doom: Christian Hope And Human Action

Christianity is a religion of hope. We are to have hope and...

It’s What Comes From Within Which Matters

One of the most difficult things for us to understand is why...

Why I Choose the Eucharist Over the Sermon

Choose the Eucharist, Not the Sermon What are we supposed to get...

5 Design Elements Found in Spiritually Rooted Homes

Putting Spirituality Into Home Decor Our homes are more than our living...

Credo: A Story of God Told with the...

About 10 years ago, I began to imagine a personal "Credo" that...

The Anatomy of Divine Revelation in Catholic Thought

The claim that God has made Himself known to human beings is...

view all Catholic blogs

Patheos on Facebook Patheos on YouTube

Ad-Free & Subscriber Log-In Subscription Support

Copyright 2008-2026, Patheos. All rights reserved.

Subscription Support Ad-Free & Subscriber Log-In

Follow Patheos Patheos on Facebook Patheos on YouTube