Categories
Linux Mastering Development

rsync how to properly backup each destination file that it’s replacing

I’m working on an script to easily install my dotfiles on a new machine. The basic functionality of installing all dependencies and my personal dotfiles is pretty much done. There’s a few things that I’d like to add, like backing up each file that it’s replacing on the new machine, because for now it just […]

Categories
Linux Mastering Development

Postfix TLS no_shared_cipher warnings

I am having weird logs for my Postfix connections and I wonder if there is an issue with my SSL setup Feb 27 22:12:44 krystufek postfix/smtpd[3608789]: connect from a4-14.smtp-out.eu-west-1.amazonses.com[54.240.4.14] Feb 27 22:12:44 krystufek postfix/smtpd[3608789]: SSL_accept error from a4-14.smtp-out.eu-west-1.amazonses.com[54.240.4.14]: -1 Feb 27 22:12:44 krystufek postfix/smtpd[3608789]: warning: TLS library problem: error:1417A0C1:SSL routines:tls_post_process_client_hello:no shared cipher:../ssl/statem/statem_srvr.c:2282: Feb 27 22:12:44 […]

Categories
Linux Mastering Development

Replace character ‘}’ by ‘\}’ using Perl

I have tried things like $line =~ s/\}/\\\}/g ; $line =~ s/[}]/\\$1/g to no avail. I cannot see the reason why such regular expressions fail to match.

Categories
Linux Mastering Development

Is there a package manager that allows simultaneous parallel operations on packages similar to Chocolatey?

An acquaintance of mine who happens to be a hardcore Windows user asked me whether there is a Linux package manager similar to Chocolatey in a sense that it would permit multiple simultaneous operations on software packages such as install/remove/update/rollback to given version and so on in the simultaneously opened terminal sessions. For instance, on […]

Categories
Linux Mastering Development

Copying Binary Data

I’m attempting to read a video file, and write it to another file but for some reason when i do an md5sum comparison they differ and the new file is unreadable by VLC. Thoughts? md5sum of original file: b13d9acecd2dd3f869245c8e085f88c2 md5sum of new file: d41d8cd98f00b204e9800998ecf8427e public void copyFile() throws IOException { BufferedInputStream in = new BufferedInputStream(new […]

Categories
Linux Mastering Development

“modprobe fuse” on WSL?

Trying to use veracrypt (console) in WSL. I make a volume, seems to work OK… but when I try to mount it: Done: 100.000% Speed: 5.0 MiB/s Left: 0 s The VeraCrypt volume has been successfully created. m17awl@M17A:/media/mike$ veracrypt /mnt/e/test.vc /media/mike/rsync_vc_drive_e/ Enter password for /mnt/e/test.vc: Enter PIM for /mnt/e/test.vc: Enter keyfile [none]: Protect hidden volume […]

Categories
Linux Mastering Development

My screens are auto moving to the right and when I press ctrl, it zooms out of whatever I’m in

I’m running Elementary OS, which is based on Ubuntu. My screens are auto moving to the right, and when I press Ctrl it zooms out of whatever I’m in. To try and solve this I have Unplugged my keyboard and mouse, it still happens when they’re unplugged (not the zooming because that would require me […]

Categories
Linux Mastering Development

Unbound over tor configuration

I am trying to torify unbound by adjusting the unbound.conf to include: server: do-not-query-localhost: no forward-zone: name: "." forward-addr: 127.0.20.1@53 forward-first: no But when running dig, the command completes with no address the ";; ANSWER SECTION:" It does report taking 200-300 msec as expected, so I am confident it is reaching out over my tor […]

Categories
Linux Mastering Development

Calculate the rate of change of a number over time

I have a program that processes files. I can use ls | wc to see the count of files drop like so: ubuntu@h:/home/user/data/013176$ ls -1 | wc 3245666 29210987 246670579 ubuntu@h:/home/user/data/013176$ ls -1 | wc 2768811 24919292 210429599 ubuntu@h:/home/user/data/013176$ ls -1 | wc 2662466 23962187 202347379 I was wondering if there is a tool to […]

Categories
Linux Mastering Development

Hardware for encryption

I have a server with an AMD N36L (HP ProLiant MicroServer N36L). It works fine except it is too slow for encrypting 1 Gbps network data and full-disk encryption: $ openssl speed aes-256-cbc The ‘numbers’ are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 […]