Trouble mounting encrypted drive from command prompt

I use this to see what drives I see:

fdisk -l

fdisk: cannot open /dev/loop0: Permission denied fdisk: cannot open /dev/loop1: Permission denied fdisk: cannot open /dev/loop2: Permission denied fdisk: cannot open /dev/loop3: Permission denied fdisk: cannot open /dev/loop4: Permission denied fdisk: cannot open /dev/loop5: Permission denied fdisk: cannot open /dev/loop6: Permission denied fdisk: cannot open /dev/nvme0n1: Permission denied fdisk: cannot open /dev/sda: Permission denied

Then try to unlcok it:

cryptsetup luksOpen /dev/nvme0n1 my_enc_hard

And get this message

Device /dev/nvme0n1 doesn’t exist or access denied.

I don’t understand what is the issue; When I use sudo crypt setup luksOpen /dev/nvme0n1 my_enc_hard I am not prompted to enter my password.

I also don’t understand why I can open the drive with Disks utility from USB, but I am not prompted to enter the password when I try cryptsetup luksOpen through command prompt. Can anyone help me to mount the drive. I just want to get my data out and reinstall Ubuntu.

CordovaError: Promise rejected with non-error: ‘Error code 65 for command

Tengo el siguiente problema al realizar un release en ios con el siguiente comando: ionic cordova build –minifyjs –release

Me arroja el siguiente error:

The following build commands failed:     ProcessProductPackaging "" /Users/milton/Library/Developer/Xcode/DerivedData/Coink-cdqcnaiibmlvbzgblljmcuobajtk/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/MGSwipeTableCell.build/MGSwipeTableCell.framework-Simulated.xcent     ProcessProductPackaging "" /Users/milton/Library/Developer/Xcode/DerivedData/Coink-cdqcnaiibmlvbzgblljmcuobajtk/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/Kingfisher.build/Kingfisher.framework-Simulated.xcent     (2 failures)     CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/Users/milton/Documents/Hector/app-clientes-ios-ionic/platforms/ios/cordova/build-release.xcconfig,-workspace,Coink.xcworkspace,-scheme,Coink,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone Xʀ,build,CONFIGURATION_BUILD_DIR=/Users/milton/Documents/Hector/app-clientes-ios-ionic/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/milton/Documents/Hector/app-clientes-ios-ionic/platforms/ios/build/sharedpch' at cli.catch.err (/Users/milton/Documents/Hector/app-clientes-ios-ionic/node_modules/cordova/bin/cordova:30:15) at process._tickCallback (internal/process/next_tick.js:68:7)     [ERROR] An error occurred while running subprocess cordova.      cordova build ios --release exited with exit code 1.      Re-running this command with the --verbose flag may provide more information. 

Por qué puede ocurrir este problema. Al realizar el build por xcode 10 con el sistema legacy funciona perfecto.

PCManFM 1.2.5 in Lubuntu 18.04 – custom command to batch rename all files in dir incl. subdir to subdir001, 002,

PCManFM 1.2.5 in Lubuntu 18.04 here.

want to add a custom command to right click menu to batch rename all files in the selected dir, including all files in all subdirs, to subdir001, subdir002, …

For example, if a directory x has subdirs abc and def containing files a1.mp3, a2.mp3, a3.mp3 each, I want the files in abc to be renamed abc001.mp3, abc002.mp3, abc003.mp3, in the same order. Same for the def dir, except to def001.mp3, etc…

How do I do this? I was searching for solutions, but they all seem to be PCManFM version dependent.

Apt update command took 213503982334601 days to complete (that’s what it says)

I ran sudo apt update command and to my surprise, it took 213503982334601 days to fetch 7945 kB from Internet. (all other output was normal)
The actual wall clock time, of course, wasn’t that big, not even comparable.
But I’d like to find what causes this, if possible. Anyone knows if this is a known issue?

screenshot

Command not found in Crontab

I am new with Crontab and Linux. I am trying to schedule this following command line instruction in Crontab:

speedtest-cli --csv &>> /home/pi/speedtestLog.txt

I am trying doing it:

*/1 * * * * speedtest-cli --csv >> /home/pi/speedtestLog.txt 2>&1

But I am getting the error appended in the file:

/bin/sh: 1: speedtest-cli: not found

How do I resolve it please?

Command that convert 4 images to 1 image [duplicate]

This question already has an answer here:

  • Merging two pictures 4 answers

For example:

I have 4 PNG images: image1.png, image2.png, image3.png, image4.png.

Every one of them is 200×200 pixels.

I want to convert them to image1234.png.

image1234.png is 400×400 pixels, what consist of:

  • image1.png is in the top-right.

  • image2.png is in the top-left.

  • image3.png is in the bottom-right.

  • image4.png is in the bottom-left.