Categories
Linux Mastering Development

gpg search path for public keys appears to vary. significantly with gpg version. What to do?

Having only recently realized that "chmod" accepts some parameters other than "777" I’m trying to send signed files to an automated email handler. I thought this would be easy using gpg at both ends but I can’t figure out where to put the public keys on the receiver. The signing side describes its search strategy […]

Categories
Linux Mastering Development

Simple tar extraction failing with file not found

I have a tarball called playground.tar with the following file: test.txt When I extract everything there is no problem but when I try and extract a single file it throws the following error when I run this command: tar xf playground.tar test.txt tar: test.txt: Not found in archive tar: Exiting with failure status due to […]

Categories
Linux Mastering Development

Create a “stupid” systemd unit that doesn’t care about state

I have an application that should be started during boot and terminated gracefully during shutdown. The problem is that I cannot ensure that the application is started/stopped using systemd, it’s quite a complex app that might sometimes need to be started "partially" using manual commands so there is therefore no real good way for systemd […]

Categories
Linux Mastering Development

Pipe multiple commands to socat reverse shell (network-namespaced)

I have a bash script that: does some thing connects/opens a reverse shell. does another thing my-script contents: #!/usr/bin/env bash # does ‘some thing’ sudo /usr/bin/nsenter –setuid 1000 –setgid 1000 –net=/var/run/netns/ns-a — socat file:$(tty),raw,echo=0 tcp:10.10.10.1:2222 # does ‘another thing’ Run interactively from the terminal this script stops and provides the remote shell for a user […]

Categories
Linux Mastering Development

How to gzip 100 GB files faster with high compression

We have 100+ GB files on a Linux machine, and while trying to perform gzip using below command, gzip is taking minimum 1-2 hours to complete: gzip file.txt Is there a way we can make gzip to run fast with the same level of compression happening when we use gzip? CPU: Intel(R) Core(TM) i3-2350M CPU […]

Categories
Linux Mastering Development

python3.9 installation missing files latest kali@win10

└─# cat /etc/issue Kali GNU/Linux Rolling \n \l ┌──(root💀DESKTOP-NF4O0MG)-[~] └─# uname -a Linux DESKTOP-NF4O0MG 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 GNU/Linux ┌──(root💀DESKTOP-NF4O0MG)-[~] └─# I am getting below error while trying to install p3.9 on kali linux installed on windows10. Has any one encountered these errors. The errors says about missing files. But […]

Categories
Linux Mastering Development

I’m following The Passthrough Post’s MacOS tutorial, and I got an error about systemctl

Is the error I get when Starting the serice: Failed to start and.service: Unit and.service not found How I start: systemctl start libvirtd.service and virtlogd.service. I’m Running Ubuntu 20.04 (LTS)64

Categories
Linux Mastering Development

After inserting m2 ssd only grub is starting but not Linux (Ubuntu)

I have Ubuntu(20.xx) on a 250gb ssd and win on an other 250gb ssd. As soon as I insert the 1tb m2 ssd in the motherboard (which had previously ubuntu 18.xx installed), ubuntu would not start only the gnu grub is opening. In the past the 2 ubuntu dis. worked fine along side each other, […]

Categories
Linux Mastering Development

Why is Electricsheep on Debian not using the mplayer configuration for display settings?

I have set electricsheep for screensaver in Debian. I want to run it in full screen, at 25 fps, but it runs at 23 fps with a very strange resolution. Checking on ps it return this ps -efww|grep mpla user 2481 2479 28 21:58 ? 00:02:24 mplayer -really-quiet -cache 8192 -monitoraspect 1280:800 -fps 23 -vo […]

Categories
Linux Mastering Development

Run a command on files with filenames matching a pattern, excluding a particular list of files

The following script searches files with the suffix .tex in a directory (i.e. TeX files), for the string \RequireLuaTeX, i.e. LuaTeX files in that directory, and creates a Bash array from the results. It then runs the command latexmk on the files in that array. I’d like to exclude a list of user defined files […]