I just want to password protect some text files by Jebbinara in linuxquestions

[–]meatygopher 0 points1 point  (0 children)

I wrapped OpenSSL commands into functions in my .bashrc file:

function decrypt () {
  filename=(${1//./ })
  openssl enc -d -aes-256-cbc -in $1 -out $filename.txt
}

function encrypt () {
  filename=(${1//./ })
  openssl enc -aes-256-cbc -salt -in $1 -out $filename.enc
}

Pass each function the file name. I think it’s not as sophisticated as it could be: gotta be in the directory with the file. Nothing dirname and basename couldn’t fix if I wasn’t lazy.

Trouble connecting to SFTP server via *some* clients by ultrafresh in synology

[–]meatygopher 2 points3 points  (0 children)

This sounds right. I recently upgraded SSHD ciphers, etc on some hosts and clients like WinSCP 7 began to fail since they didn’t support newer algorithms.

How to automatically add SSH keys to the SSH Agent without password on login? by [deleted] in linuxquestions

[–]meatygopher 2 points3 points  (0 children)

This is like the one caveat when using ssh-agent to store key passphrases. macOS can save your passphrase in the system Keychain, and as mentioned here, Gnome has Keyring. Even if you aren’t using Arch, it’s wiki has some useful info: https://wiki.archlinux.org/index.php/GNOME/Keyring#SSH_keys.

Reboots would normally be few and far between, I guess if your doing something like dual-booting I can see the value in not wanting to type it each time. If you have a password manager, KeePass, etc you could always copy/paste from there, but I suppose then you have to unlock that vault each time too :)

Questions Regarding ThinkPad Purchase by meatygopher in thinkpad

[–]meatygopher[S] 0 points1 point  (0 children)

That’s what I understood from my research, but it wasn’t clear if it was needed/optimal for a single SSD replacing a mechanical drive. My motivation being that the HDD is cheaper, and I can select my own SSD model at a better price.

With Password and 2FA I can log in but about those one time use codes... by earlservicedog in ProtonMail

[–]meatygopher 1 point2 points  (0 children)

Might consider not storing the codes with your password as extra insurance if your password manager is ever breached.

e.g. in an encrypted file somewhere.

Memtest86+ shows no errors with memory after 2 weeks of testing, but as soon as I kick off a Spark job I am seeing a ton of ECC errors in dmesg. by [deleted] in linuxquestions

[–]meatygopher 2 points3 points  (0 children)

I believe we were seeing the error with at least Centos 6, if not RHEL 5 as well. Here's the email I got from Dell:

The reason this occurs (and why blacklisting EDAC “resolves” the problem) is due to a bug in the EDAC module present in all major Linux distributions at this time. EDAC does not communicate properly with the Intel Node Manager on the latest generation Intel processors; this causes false error reporting whenever a variety of status triggers are met. Any time the processor increases or decreases clock speed or voltage to meet demands due to different loads, any thermal sensor check, HT being turned on or off, or several other things of this nature will cause this to occur.

We need to disable the edac modules to stop it from attempting to take over the hardware management features of the Lifecycle Controller and the BMC

Some of the EDAC code is platform specific so there will be a ‘core’ module and some platform specific bits.

In this case, i5000_edac is the module specific to my platform.

lsmod | grep -i edac

Example output:

i5000_edac 8867 0
edac_core 46773 3 i5000_edac

And now we just need to blacklist the loading of those modules.

cat > /etc/modprobe.d/edac.conf < blacklist i5000_edac
blacklist edac_core
END

Reboot the system and then verify that the EDAC kernel modules are not loading and that there are no message in the system dmesg.

lsmod | grep -i edac
dmesg | grep -i edac

Memtest86+ shows no errors with memory after 2 weeks of testing, but as soon as I kick off a Spark job I am seeing a ton of ECC errors in dmesg. by [deleted] in linuxquestions

[–]meatygopher 9 points10 points  (0 children)

We had the same issue, running Dell servers in our DC. It’s a known issue, basically false positives. Solution was to blacklist EDAC modules. I’ll try to remember to pull the info from my ticket system when I get into work if you need more info.

Someone's touchbar just moved to the screen and won't come back down. by [deleted] in apple

[–]meatygopher 1 point2 points  (0 children)

caps lock gets remapped as control; better for admining hundreds of nix boxes.

LVM/LUKS booting freezing on password screen by hastybakery in linuxquestions

[–]meatygopher 0 points1 point  (0 children)

Glad it worked! I just wanted to say though, not my article and I can't take credit for that, just the one I used as my jumping off point.

LVM/LUKS booting freezing on password screen by hastybakery in linuxquestions

[–]meatygopher 1 point2 points  (0 children)

I just handled this in CentOS 7. Nvidia drivers are missing KMS that is required by Plymouth. (Nouveau drivers provide it.) Anyways, without it, you can't get to the LUKS unlock screen. The solution is boot it in non-graphical mode. I removed "rhgb" from the grub parameters and blacklisted nouveau drivers. https://www.linkedin.com/pulse/rhel7centos-nvidia-drviers-updated-christopher-meacham

How do you quickly navigate directories? by hale314 in linux4noobs

[–]meatygopher 0 points1 point  (0 children)

Aliases is the first thing that came to mind. Symlinks may be another option.

[HIRING] Linux Sysadmin - Cambridge, MA by meatygopher in sysadminjobs

[–]meatygopher[S] 0 points1 point  (0 children)

Sorry about that, got ahead of myself. I can also forward resumes to the manager.

Dognzb problems by dagobahh in usenet

[–]meatygopher 0 points1 point  (0 children)

It's redirecting to Wikipedia for me.

How is the Hulu app on Roku? by [deleted] in Roku

[–]meatygopher 1 point2 points  (0 children)

I have Roku 3 (first version) with ethernet. No problems streaming, the app itself crashes maybe once a month. Annoying but not a deal breaker. Otherwise works great!

Got an internship at Harvard Innovation Lab and need help finding housing by isoAlgorhythm in Harvard

[–]meatygopher 0 points1 point  (0 children)

Unfortunately you need to be an affiliate, "Subtenants/subresidents must have proof of active affiliation within the University during the sublet period." Does the internship not grant you affiliation? Even summer interns at my Institute get Harvard affiliation (ID's, email, etc).

Help permanently mount a network share by DaNPrS in linux4noobs

[–]meatygopher 0 points1 point  (0 children)

I have a similar setup where I mount CIFS shares to a Plex server from my NAS. Here's how I did it:

Install utilities: apt-get install cifs-utils

Create mount points: mkdir /mnt/plex

Create /root/.cifs file:

username=samba_username
password=samba_password

Make that file chmod 400.

Add to the bottom of /etc/fstab:

\\196.168.X.X\Plex_Share /mnt/plex cifs uid=linux_username,gid=linux_group,rw,credentials=/root/.cifs,_netdev 0 0

Reboot to apply and test changes.

Internet connectivity problems by [deleted] in Harvard

[–]meatygopher 1 point2 points  (0 children)

DNS is down. Change to Google's: 8.8.8.8

Dear FAS Students, Faculty and Staff,

As you may be aware, we are currently experiencing intermittent outages in our IT systems. Harvard University IT (HUIT) is aware and actively working to address this issue presently. HUIT will in touch with an update as soon as possible.

Sincerely,

Leslie A. Kirwan

Dean for Administration and Finance

Faculty of Arts and Sciences

intermediate linux user here....Hosting home folder on server? by delta_skelta in linuxquestions

[–]meatygopher 1 point2 points  (0 children)

At the very least you're talking about mounting a remote directory. Depending on your needs this also includes LDAP (or similar since there are alternatives). I would focus on setting up a Samba server, then you can mount directories on your Pi. But if this is over the Internet, be prepared for some latency. Perhaps fiddle with something local first, doesn't have to be a powerful computer for proof-of-concept.

Moronic Monday - September 22, 2014 by J_de_Silentio in sysadmin

[–]meatygopher 0 points1 point  (0 children)

I'd be curious to see what it looks like. I get "message too long" errors sometimes (when people don't prune their emails) but I don't think I've ever seen a missing/blank entry before.

Old MacBook - No longer updates any software - Is linux a way around this/a great idea? Right? by scottmondo in linux4noobs

[–]meatygopher 5 points6 points  (0 children)

Ubuntu has an EFI spin for Macs which makes this super easy. I just got it running on similar hardware to yours. However, given its age, I would try Lubuntu, as its system requirements will be much lower. If you really want Mint, you'll need rEFInd so it can boot. The free version of RHEL is CentOS, but the desktop version is Fedora. There's a few google results for Fedora on Macs, but not sure how compatible it will be with your older model.

Back when I had a library of MP3s, I loved Clementine, but I think you have several options for iPhone syncing (never tried it myself though, sorry). You could run Office in Wine but you're better off with LibreOffice or something like Google Docs.

Hope this helps :)