Thunderbird hidden option: sync all subfolders

 Uncategorized  Comments Off on Thunderbird hidden option: sync all subfolders
Oct 312019
 

I have a nice procmail setup, but thunderbird by default does not show/update the subfolders:

Open the Config Editor (Hamburger menu (top right) –> Preferences –> Preferences -> Advanced –> General -> Config Editor), and change the mail.server.default.check_all_folders_for_new setting to true.

It’s like about:config for thunderbird :)

Source site
 Posted by at 17:20

Bash while loop input (stdin reading from while-input) fix

 Uncategorized  Comments Off on Bash while loop input (stdin reading from while-input) fix
Oct 262019
 

while read line <&3; do echo “==== $line ====”; yes y | sqlmap -u http://$line/ –crawl=1; read -p press\ enter; done 3< webservers.ip

Using input 3 to read your list, leaving stdin untouched.

 Posted by at 08:11

Go compile error checksum mismatch (lnd)

 Uncategorized  Comments Off on Go compile error checksum mismatch (lnd)
Oct 162019
 
verifying github.com/btcsuite/btcd@v0.20.0-beta: checksum mismatch
        downloaded: h1:PamBMopnHxO2nEIsU89ibVVnqnXR2yFTgGNc+PdG68o=
        go.sum:     h1:DnZGUjFbRkpytojHWwy6nfUSA7vFrzWXDLpFNzt74ZA=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

Well that is annoying. For me it helped to move the go.sum away (mv go.sum go.sum.bak). Feels insecure, and please research this, but at least it compiled. In this case, the developers let me know it was not a problem.

 Posted by at 05:17

Track data usage using iptables

 Uncategorized  Comments Off on Track data usage using iptables
Oct 122019
 

iptables -I INPUT 1 -s 1.0.0.9 -j ACCEPT


iptables -I OUTPUT 1 -d 1.1.2.2 -j ACCEPT
iptables -Z #CLEARCOUNTERS

 Posted by at 11:07

Openvas service start timeout

 Uncategorized  Comments Off on Openvas service start timeout
Oct 122019
 

Make sure to kill all redis

apt-get purge –auto-remove openvas*

apt-get install openvas

wait for background tasks to complete ( watch ‘ps aux| grep -Ei vas|green|redis’)

run openvas-setup

on kali: the 1% complete problem: reduce concurrency

(reset openvas password: openvasmd –user admin –new-password=karlo )

 Posted by at 10:41

Centos 8 enable cockpit (minimal install)

 Uncategorized  Comments Off on Centos 8 enable cockpit (minimal install)
Oct 112019
 

yum install cockpit && systemctl enable –now cockpit.socket && sleep 4 && ss -nlap | grep 9090 >/dev/null 2>&1 && echo “https://$(hostname -i):9090/”

 Posted by at 14:48

Fix “failed to start jnprTdi”

 Uncategorized  Comments Off on Fix “failed to start jnprTdi”
Oct 072019
 

What I did:

  1. Remove ALL pulse related programs
  2. Also remove activex pulse programs
  3. Reinstall
  4. Import settings again manually
 Posted by at 06:26

LVM device excluded by a filter (mpath / multipath )

 Uncategorized  Comments Off on LVM device excluded by a filter (mpath / multipath )
Oct 022019
 

first find out what is going on:

pvcreate /dev/sdb -vvv 2>&1| less

Look for errors. In my case it said the volume was mpath managed.

So exclude from mpath, put the

vi /etc/multipath.conf && systemctl restart multipathd.service

Add a block at the bottom:

blacklist {
wwid WD40EFRX-68N32N0_WD-WCC7K2KD8PV5
wwid WD40EFRX-68N32N0_WD-WCC7K7NUFLSF
}

Find the WWID by doing:

ls -al /dev/disk/by-id/*

in my case:

lrwxrwxrwx. 1 root root 9 Oct 2 19:24 /dev/disk/by-id/ata-WDC_WD40EFRX-68N32N0_WD-WCC7K2KD8PV5 -> ../../sdb
lrwxrwxrwx. 1 root root 9 Oct 2 17:13 /dev/disk/by-id/ata-WDC_WD40EFRX-68N32N0_WD-WCC7K7NUFLSF -> ../../sdc

 Posted by at 17:38

Rpmfusion fedora and h264/codecs

 Uncategorized  Comments Off on Rpmfusion fedora and h264/codecs
Sep 162019
 

yum install https://download1.rpmfusion.org/{free/fedora/rpmfusion-free,nonfree/fedora/rpmfusion-nonfree}-release-$(rpm -E %fedora).noarch.rpm

yum install install compat-ffmpeg28 ffmpeg-libs

 Posted by at 16:52

Spotify on fedora

 Uncategorized  Comments Off on Spotify on fedora
Sep 162019
 
dnf config-manager --add-repo=http://negativo17.org/repos/fedora-spotify.repo && yum update && yum -y install spotify-client 
 Posted by at 16:46

xfce4 terminal shortcut

 Uncategorized  Comments Off on xfce4 terminal shortcut
Sep 162019
 

open xfce4-settings-manager

keyboard

(while you are there, set Restore Num Lock on startup)

application shortcuts

add

xfce4-terminal

shortcut

 Posted by at 16:44

Fix: Digital ID name cannot be found by underlying security system

 Uncategorized  Comments Off on Fix: Digital ID name cannot be found by underlying security system
Jun 252019
 

I got this error when sending signed emails using my outlook cert by Digicert.

Solution:

  1. Open certmgt
  2. Navigate to Personal/Certificates
  3. Delete the signing cert
  4. Import your cert from backup (or request a new one)
  5. Select again in Security center in outlook

 Posted by at 06:12

Bash array operations and examples

 Uncategorized  Comments Off on Bash array operations and examples
Jun 112019
 

Split to array:

while IFS=’;’ read -ra ADDR; do
for i in “${ADDR[@]}”; do
# process “$i”
done
done <<< “$IN”

Define:

distro=(“redhat” “debian” “gentoo”)

Element:


${ArrayName[subscript]}

Length:


echo “${#distro[@]}”

Example

!/bin/bash

define array

name server names FQDN

NAMESERVERS=(“ns1.nixcraft.net.” “ns2.nixcraft.net.” “ns3.nixcraft.net.”)

get length of an array

tLen=${#NAMESERVERS[@]}

use for loop read all nameservers

for (( i=0; i<${tLen}; i++ ));
do
echo ${NAMESERVERS[$i]}
done

 Posted by at 06:58