Close

The Linux Migration: Password Management

Posted on by Brooke Lester

Previously in this series: Text Expansion

Summary: It is a truth perhaps not yet universally acknowledged that a Mac user migrating much of their home and professional life to Linux will found themself in need of a replacement for their password manager. Importing my 1Password (Mac) vault into Enpass (Linux) works more than well enough.

Password Management

This is when you have an application that holds all your account user names and passwords; that creates new strong passwords for new accounts; that uses a "browser extension" to auto-fill these user names & passwords into Web forms when you want to log into an account like your Amazon or email account; that probably also holds secure text notes and other kinds of private information; and that secures all of this behind a single, hopefully strong and easy to remember, passphrase.

On the Mac

I've been using 1Password on the Mac for years, and couldn't cope without a password manager. However, Agilebits has no interest in developing 1Password for Linux. Once upon a time, 1Password allowed full-featured web access to your vault via Dropbox, a feature they called "1PasswordAnywhere." But that feature went away, and Agilebits has made clear that reintroducing "1PasswordAnywhere" isn't going to happen. I had hoped that their new subscription service, which allows web access to one's vault, would basically replace 1PasswordAnywhere; turns out, though, that this "web access" lacks the functionality of a browser extension: it doesn't fill fields with your user name and password, and you're forced to copy/paste. Long story longer: 1Password isn't happening on Linux.

On Linux

My solution: Enpass, the free password manager for Linux, Mac, and Windows. Enpass will import items from your 1Password vault, and includes browser extensions. The import is a little janky--categories are lost, so logins, secure documents, credit cards, and all are simply listed together in "All". Still, the Search feature does a lot to make this only a minor inconvenience.

I am still using 1Password on the Mac, even as I use Enpass on Linux. This means that I should only add new log-ins on the Mac, importing the vault over to Enpass once each month or so. If I add anything directly to Enpass, I don't really have a way to export it the other way into 1Password for Mac. I'm willing to put a pin in this problem for another day.

One heads-up on Enpass: You have to enable its browser extension in the app's preferences. Until you do, the installed extension won't respond when clicked. It's easy to wrongly believe that the extension is broken, and waste time troubleshooting (as I did).

The Linux Migration: Text Expansion

Posted on by Brooke Lester

Summary: I am migrating much of my computer life from the Mac to Ubuntu (Linux). I needed a replacement for my text-expansion tool, TextExpander. It looks like Autokey will do well enough. See the last paragraph if you care to know why I am migrating.

Text Expansion

I don't know how anyone lives without it. Is there anything you type more than once? (Phone number, email address, comments on student papers about what makes a good thesis statement? Common phrases for correspondence, like "Thanks for writing" or "Let me know if the attachment gives you any trouble"?) A text-expansion tool allows you to assign that text string a "snippet": type the snippet ("tfw") and it automatically exands ("Thanks for writing"). It works in any application: email, web browser, MS Word, wherever.

Not convinced? Think of it this way: it's not even about saving time (though it saves a ton of time). It's about saving attention. Let your text-expansion tool do the mindless work, while you keep your attention on the task at hand.

TextExpander for Mac

TextExpander is simply the best. No contest. It makes it super-easy to include wild cards (like current date and/or time, in multiple formats), dropdown menus of your own making (such as Mr./Mrs./Ms./Dr. for salutations), fill-in fields ("NAME"), and many other fancy-pants add-ons to the relatively simple idea of text expansion. It's the Lexus of text expansion. I miss it already when I'm on Ubuntu. If you're on the Mac, get over to Smile Software and give them your money.

Autokey on Ubuntu

It's not the Lexus of text expansion, but it's...well, I don't know cars well enough to offer an analogy. It's free. It does text expansion except that results are a little chancy in Firefox. It relies on Python scripts for wild-card additions and macros; I don't know Python, but it includes a few examples that I can hack on with my piddling knowledge of regular expressions and other programming languages. Oh, and something TextExpander doesn't do: Autokey lets you set "hot keys" for (say) launching your favorite applications. Take away: If you've used TextExpander, it's a servicible but not enthralling replacement that brings some of its own possibilities to the table. If you've never used a text expansion tool before, you'll love Autokey to death, I'm not kidding.

Why the Migration?

Our IT department cut our hard-drive space in half on the last computer "refresh," that's why! (Trying to save some money while moving to the more expensive SSDs, or solid-state drives.) I've had my whole life on a single laptop since my adjunct days when I owned my own machine, and when I eventually got an institution-owned computer, they simply had me copy my whole Home/user folder over. Now, to be clear: my 20 GB of photos (many of which are work-related anyway) and 8 GB of game folders (Civ 5, come on) are not the reason that my 370 GB of data on a 500GB machine won't fit on this new 250GB SSD machine. But, I can't make a case for a larger HD as long as anything non-work is on the machine. Anyway, it got me thinking that it really would be healthier to have a "room of my own," especially since I seem to have little choice. So, why Linux? I'm a Mac user since 1994, but they cost the moon, and I am starting to chafe at the demands and dependencies of the walled garden. Linux is the pain that everyone says it is, but I know from experience that Windows is like an itching-powder union suit to me. I'm comfortable on the command line and philosophically supportive of open source. Anyways.

Syntax Highlighting for Markdown in Vim

Posted on by Brooke Lester

When I first learned Vim, I was excited to begin writing in Markdown while composing in Vim. Some things didn't work like I hoped. Opening and creating files with my favorite Markdown filename suffix (name.md), I found that the syntax highlighting was a nightmare: weird choices, and color changes after every use of a quote mark (as with contractions like "don't" or "isn't").

Scouting around, I found a solution. I repeat it here for clarity and so that other people Googling around with the same problem have another, more recently published, chance at the answer.

You first need to create a Vim resource file, or edit it if it already exists. In Terminal (Mac or Linux), navigate to your User directory:

cd ~/

There, check to see if you have an invisible file named .vimrc by listing all files, including invisibles:

ls -a

Now, create (or open) that file:

vim .vimrc

Finally, edit that file to include the following:

" set sytax highlighting on.
syntax on

" set files with extension .md to be recognized as markdown.
filetype on
au BufNewFile,BufRead *.{md,mdown,mkd,mkdn,markdown,mdwn} set     filetype=markdown

The double quotes simply turn the rest of that line into a comment line.

My own .vimrc file also includes the following, though I don't mind saying I can't quite remember why, off hand. If you know, please feel free to remind me in the comments.

set autoindent

" set not compatible mode to enable Vim features.
set nocp

Save the file and quit Vim. Navigate back to whatever directory you wish to be composing in. Create or open a "name.md" (or "name.mdown," or whatever) file, and voila! Lovely, correct Markdown sytax highlighting in Vim!

I have successfully done this in MacOS and in Linux Ubuntu. I think I once did it in Windows 7 as well.

I hope somebody finds this useful. If so, let me know.