Tagged: linux

ssh asking for password when it shouldn’t 0

ssh asking for password when it shouldn’t

After a recent Ubuntu upgrade, one of my frequented remote servers stopped accepting my public key and was prompting me for my password.  The password is gross and unwieldy and I was most put-out, I must say.  So, I googled the title of this post.  Mostly suggestions to check the permissions of various files.  All of mine were locked tight to user-only, including my home directory. Of course, I’d already tried ssh -vvv to get all the debugging output.  Unfortunately,...

Shell Nuggets: Quickie Tabulizer 0

Shell Nuggets: Quickie Tabulizer

I’m real bad about things lining up.  Used to go out of my way to ensure variable declarations were columnized by access mode, type, name, equals sign and initial value. final BufferedImage mapImg = MapImageFactory.newInstance(width, height); final int count = ad.getPosition() * 2; mapImg.composite(adImg, 25 , (this.adHeight + 20) * count + 20, Over); mapImg.composite(adTxt, 25 + this.adWidth, (this.adHeight + 20) * count + 20, Over); The Tabularizer plugin for vim was a boon for productivity.  Well, mine.  For everyone else,...

Why 80 characters? 0

Why 80 characters?

Searching for reasonable values for the *.vt100.geometry[5-6] xterm menu font-menu options in my ~/.Xdefaults file, I re-stumbled a gem of computing history as the top-answer to a question on StackOverflow, and this pretty picture of an old IBM punch-card. Inspired by a perl script within the comments, I ran this shell pipe: 2015-07-23 10:30:00 :: ~ rons@rons-VM$ find /usr/share/terminfo/ -type f -printf ‘%f\n’ | xargs -n1 infocmp | egrep -o ‘cols#[0-9]+, *lines#[0-9]+’ | sort | uniq -c | sort -nr | head 489 cols#80, lines#24 58...

Shell Nuggets: Musing on Dates 0

Shell Nuggets: Musing on Dates

Nigh ever day I happen across some gem tucked away in the opaque vista of the *nix command-line shell.   While attempting to contrive the proper arguments for a date command interpolation, the following editorial injection from its GNU info entry caught my fancy. 28 Date input formats ********************* First, a quote: Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some...

ssh: no matching cipher found 0

ssh: no matching cipher found

After a recent Ubuntu upgrade on my home machine, ssh attempts to it from the VirtualBox instance at work stopped working.   Here’s what ssh spewed back at me: no matching cipher found: client blowfish-cbc,arcfour server aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com   Impatient, I just logged in from another machine.  The VM runs CentOS 5.10 so that its environment is comparable with what [used to be] present on the majority of our production servers.   I’m an anti-RedHat bigot in the first place, and didn’t...

Stuffing Text Into All Screen Windows 0

Stuffing Text Into All Screen Windows

Various pagers have been giving me question marks in boxes and hexadecimal codes.  This is probably because I didn’t have the right font in the past and inserted various hacks into my ~/.bash tree to get around them, e.g. aliasing a LANG=C before every perldoc command. Well, now I’ve just about got everything right and proper in UTF-8 mode using a uxterm, but those little nigglers still pop up.  Today I did a man less and found the LESSCHARSET environment...

Mounting Windows Shares On Linux 0

Mounting Windows Shares On Linux

There must be a gazillion posts on this, so I’m just going to concentrate on what I did wrong. First I wanted to mount the target share as NFS, but the server doesn’t export to our desktop subnet at work. I saw it was running Samba, and remembered having had it working on Windows XP, so tried that. A friend at work had an /etc/fstab line that almost worked. Turns out smbfs is deprecated and cifs is the new smbfs,...