linux – Creating GPG encrypted tar.gz Backup fails

I hope this kind of question is ok here 😉

I am on Debian 10 Buster, trying to create an (GPG) encrypted, compressed tar file without intermediary files. I found this article(1) on the web which pointed me to this command:

tar -cvzf - /path/to/folder/ | gpg2 -e -r "key-id" > /mnt/backup/backup.enc.tar.gz

But to me, it looks like I only get an encrypted tarball with no compression. What am I doing wrong?

(1) https://linuxconfig.org/how-to-create-compressed-encrypted-archives-with-tar-and-gpg
in the mix with
https://wiki.ubuntuusers.de/GnuPG/#Verschluesseln (German, sorry) and
https://linuxconfig.org/how-to-encrypt-and-decrypt-individual-files-with-gpg#h8-basic-encryption

PHP HTML form submit fails in frame

I am using PHP to generate an HTML page with a form. The form has a submit tag. The calling page is in a frame. When I click the submit button, nothing happens. I have done this a thousand times and it has always just worked. Can someone spot what I am doing wrong? Here is a capture of the “View Source” for the page:

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2 Final//EN'>
<html>
<head> 
<title>'menu'</title>
</head>
<BODY TEXT='#000000' BGCOLOR='#34ebc6' LINK='#0000ff' VLINK='#551a8b' ALINK='#ff0000'>

<center><h2>Shopping List</h2></center>
   <br>
<form method="post" action="addItem.php">
  Add Item to shopping items: 
  <input type="text" name="item" > </input>
  <input type="text" name="catigory" > </input>
  <input type="text" name="stores" > </input>
  <input type="submit" value="ADD" > </input>
 </form>
<br>
</body>
</html>

linux – Jenkins installation fails on Ubuntu 20.04 with dpkg: error processing package jenkins (–configure)

I was trying to install Jenkins in my server Ubuntu 20.04 with the following commands

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install jenkins

But installation fails with dpkg: error processing package jenkins (--configure):

Job for jenkins.service failed because the control process exited with error code.
See "systemctl status jenkins.service" and "journalctl -xe" for details.
invoke-rc.d: initscript jenkins, action "start" failed.
● jenkins.service - LSB: Start Jenkins at boot time
     Loaded: loaded (/etc/init.d/jenkins; generated)
     Active: failed (Result: exit-code) since Sun 2021-01-24 20:09:16 UTC; 13ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 1620107 ExecStart=/etc/init.d/jenkins start (code=exited, status=1/FAILURE)

Jan 24 20:09:16 ubuntu-s-1vcpu-1gb-nyc3-01 systemd(1): Starting LSB: Start Jenkins at boot time...
Jan 24 20:09:16 ubuntu-s-1vcpu-1gb-nyc3-01 jenkins(1620107): ERROR: No Java executable found in current PATH: /bin:/usr/bin:/sbin:/usr/sbin
Jan 24 20:09:16 ubuntu-s-1vcpu-1gb-nyc3-01 jenkins(1620107): If you actually have java installed on the system make sure the executable is in the aforementioned path and that 'type -p java' returns the java executable path
Jan 24 20:09:16 ubuntu-s-1vcpu-1gb-nyc3-01 systemd(1): jenkins.service: Control process exited, code=exited, status=1/FAILURE
Jan 24 20:09:16 ubuntu-s-1vcpu-1gb-nyc3-01 systemd(1): jenkins.service: Failed with result 'exit-code'.
Jan 24 20:09:16 ubuntu-s-1vcpu-1gb-nyc3-01 systemd(1): Failed to start LSB: Start Jenkins at boot time.
dpkg: error processing package jenkins (--configure):
 installed jenkins package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’ve tried this, removing and again installation, changing the content of /etc/securetty here but none of them is working. I’m only facing this problem when I try to install Jenkins in server, while I tried to install my own laptop having Ubuntu 20.04 it works fine.

Iphone stuck in start cycle (occasionally enters recovery mode but itunes fails – storage full)

Have read the other related posts (and must confess to not understanding all technical hacks people have tried), but so far not solved my difficulties.

My iPhone XR is stuck in a restart cycle with just the apple logo on constantly (but every now and then the screen goes black and then relights with the logo again). I have tried the volume up / volume down / side button and it doesn’t change things. I have also tried holding the side button down for a minute which mostly does nothing but twice entered the phone into recovery mode (I think that’s what it’s called where it shows me the connection to a computer with the restore link).

I have tried connecting it to my pc and it can’t be found either in iTunes or file explorer. Once, when in recovery and when connected, itunes briefly recognised it and gave me the update/restore option. I tried to update, but it got stuck at the ‘iPhone Stuck on ‘support.apple.com/iphone/restore’ loop before ejecting it again. At this time, I still couldn’t see it in File Explorer, but could briefly see the apple USB drivers under device manager.

I strongly suspect the root of my problems is that the phone storage is too full (i know, i know). I was trying to delete apps when it crashed. This means that it will be impossible for an itunes update to install, i suspect?

The last backup was in October (again, I know). I am desperate not to lose the data from what has been a horrendous three months. Is there anything else I can try?

I am based in the North East of England, so suggestions to contact drivesavers etc. don’t seem to be feasible from here.

Thanks so much!

script – Applescript osacompile fails if user input contains apostrophe / single quote

I have created a script which takes some user input from me (prompts with basic dialogs), then generates a standalone script that sends me a text message and an email, which I can then schedule as a calendar alert to trigger at a desired date/time.

Everything works fine, until there is an apostrophe/single quote in the user input. For example if my email body is:

Here’s my email

the script will fail to run, with:

sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file

Here’s the relevant code sction:

set savePath to (path to desktop as text) & _appName & ".app"

set code to "osacompile -e '
tell application "Messages" 
    set imessageservice to 1st service whose service type = iMessage 
    set iMessageBuddy to buddy "" & _smsNumber & "" of imessageservice 
    send "" & _smsBody & "" to iMessageBuddy
end tell
tell application "Mail"
    set theMessage to make new outgoing message with properties {visible:true, subject:"" & _emailSubject & "", content:"" & quoted form of _emailBody & ""} 
    tell theMessage 
        make new to recipient at end of to recipients with properties {address:"" & _emailAddress & ""} 
    end tell 
    send theMessage
end tell' -o " & quoted form of POSIX path of savePath

do shell script code

Again it works great as long as I don’t pass in an apostrophe. In my searching, it appears that escaping apostrophes in script is really, really tricky to get right. I’ve tried numerous approaches (heredoc, multiple -e lines, quoted form of, etc.) but so far I haven’t been able to get any to work. If anyone knows how to get around this I’d love to hear it.

Python3 fails to launch program on 20.04.1

Both python3 and Ubuntu 20.04.1 were loaded into a new computer less than a week ago. Having loaded all listed dependencies and followed the FlatCAM 8.994 instructions The launch instruction {Python3 Flatcam.py} fails to launch. Error code indicates FlatCAM.py cannot be found.
Help is much needed and thanks in advance
Barry

lighting – Why real time lightning fails to show shadows on terrain in Unity?

Flicking shadows on terrain can often be fixed by adjusting the “Bias” and “Normal bias” of the light source. However, adjusting those settings does have side effects, so you should pay attention to how the settings affect your shadows in different areas (especially on high-detail objects close to the camera). In the worst-case scenario, you might have to use tricks, like rendering nearby objects with one camera/directional light, and distant objects with a different camera/directional light, to get close and distant objects to both look right.

Other possible causes of flickering shadows:

  • The camera’s near clipping plane is set too low (it should usually be at least 0.3 and may need to be set higher if the far clipping plane is very large).
  • The camera is very far away from the world center (more than 100,000 units if I remember correctly).

Baked lighting doesn’t cast real-time shadows (e.g. character shadows) because it’s baked. Baking your lighting essentially renders the shadows into a texture that is applied on top of the meshes. For traditional baked lighting, there’s very little performance cost but it’s completely static. However, you can combine real-time and baked lighting using mixed lighting.

Baked and real-time lighting are important concepts, so if you weren’t already familiar with the differences between them, you should take some time to thoroughly read the Unity documentation on the different lighting modes.

My mac is in internet recovery, it is a 2017 MBA. The install always fails

The error in the log is: Commerce:DownloadManifest: Failed to write to the manifest at /var/folders/zz/<some random letters>/C/com.apple.appstore/manifest.plist

Haproxy fails to start – Ask Ubuntu

I am running Ubuntu 18.04
My config files and other info are below. I installed using apt-get.

log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemon

defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000

frontend http_front
bind *:80
stats uri /haproxy?stats
default_backend http_back

backend http_back
balance roundrobin
server server1 ip:port check
server server2 ip:port check

I typed in haproxy -f /etc/haproxy/haproxy.cfg -db and I received this output.

(ALERT) 359/031621 (6151) : parsing (/etc/haproxy/haproxy.cfg:2): unknown keyword ‘log’ out of section.
(ALERT) 359/031621 (6151) : parsing (/etc/haproxy/haproxy.cfg:3): unknown keyword ‘chroot’ out of section.
(ALERT) 359/031621 (6151) : parsing (/etc/haproxy/haproxy.cfg:4): unknown keyword ‘stats’ out of section.
(ALERT) 359/031621 (6151) : parsing (/etc/haproxy/haproxy.cfg:5): unknown keyword ‘user’ out of section.
(ALERT) 359/031621 (6151) : parsing (/etc/haproxy/haproxy.cfg:6): unknown keyword ‘group’ out of section.
(ALERT) 359/031621 (6151) : parsing (/etc/haproxy/haproxy.cfg:7): unknown keyword ‘daemon’ out of section.
(ALERT) 359/031621 (6151) : parsing (/etc/haproxy/haproxy.cfg:20) : unknown keyword ‘jstats’ in ‘frontend’ section
(ALERT) 359/031621 (6151) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
(ALERT) 359/031621 (6151) : Fatal errors found in configuration.

My Haproxy status.

Dec 25 02:41:58 admin systemd(1): haproxy.service: Scheduled restart job, restart counter is at 5.
Dec 25 02:41:58 admin systemd(1): Stopped HAProxy Load Balancer.
Dec 25 02:41:58 admin systemd(1): haproxy.service: Start request repeated too quickly.
Dec 25 02:41:58 admin systemd(1): haproxy.service: Failed with result ‘exit-code’.
Dec 25 02:41:58 admin systemd(1): Failed to start HAProxy Load Balancer.

sql server – Trying to deploy sp_blitzIndex – but fails

I’m trying to deploy the sp_blitzIndex procedure from Brent Ozar. I’m running it in a query window, in SSMS and get the following error:

Msg 208, Level 16, State 1, Line 1
Invalid object name ‘tempdb..SQLServerCheckup_2A98B846_4179_496B_AAF8_60B405E3ED68_waits’.
Starting run. sp_BlitzIndex(TM) v7.99999 – December 11, 2020

This is being done on the master DB. I’m running SQL Server 2019 developer edition on my local machine.
Any suggestions on a fix?