User login

How to

Information on how to do something... anything.

Set login name to use for SSH per host

As a completely hypothetical example, suppose you boneheadly thought it would be nice to standardize your local login name to something different than on some existing servers.

You want standard scripts that assume current username to work— you wrote them to share, after all. So how to make this work?

Something like this in your ~/.ssh/config file (create and chmod 600 if it doesn't exist already) will work:

Host agaric-test
Hostname test.example.org
User bmelanco

Installing Ubuntu 13.10 on an Asus Zenbook UX301

If you have an Ubuntu installation CD made from an ISO you downloaded from Ubuntu.com, you'll notice quickly that your slim, shimmering, featherweight personal computer has no DVD drive. While this might be the only time you'll want to use the DVD drive, this is a time you want to use the DVD drive. But never fear! There are other ways. Mostly, that means following these directions:

Install Claws Mail on Ubuntu

How to install Claws Mail, "the user-friendly, lightweight, and fast e-mail client" on Ubuntu:

Seeing donor information on WePay

This is not a technical post— simply how to navigate the WePay site to see the e-mail addresses of who has donated to you. It is not intuitive.

First log in.

If you have more than one account, they are all listed. Select the one that you are interested in.

Press the full-line link about donations pointed to here:

Then press the tab called Donors pointed to here:

Troubleshooting ssh connections problem

Micky found this which was key to debugging our connection problem— one way to watch what is happening with the SSH connection attempt is by opening a port just for this use on the server:

sudo /usr/sbin/sshd -d -p 2222

Then from the client:

ssh -vv -p 2222 example.com

Per http://www.unixlore.net/articles/troubleshooting-ssh-connections.html

Overriding a string the second-simplest way in Drupal 7

Here's the situation: You don't need administrator-customizable strings like the String Overrides modules provide, but you'd like the changes in a more share-able (or consistently version controlled) place than settings.php, which details an easy $conf way of doing string overrides.

Well, here's how to do it with a variable set function that can go in a module's install or update hook:

Adding Git projects to the KGB bot

Stefan set up the kgb-bot to post in the Agaric IRC channel when anyone pushes a commit to one of our repositories. These repositories are hosted on our server, and each one needs to have a very simple bit of configuration added to it and to the KGB server configuration when we add one.

Here's the easiest way for me to do that. For information about getting started with KGB in the first place, see http://www.donarmstrong.com/posts/switching_to_kgb/

Functional tests with the CFWheels testing framework

We're doing some functions tests for cfwheels even though the main docs - http://code.google.com/p/cfwheels/wiki/TestingFramework - have only controller, model, view. Trying to test our showUserText() function alone failed because it was telling me it doesn't know anything about other functions it calls that are in fact core to CFWheels (stripTags, in this case).

Syndicate content