Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, February 16, 2022

Solved Error: configure DNS BIND for DKIM: opendkim-testkey: key not found

Problem

Whenever you try to install dkim and Postfix without cpanel, you have to face the error on configuring DNS record (BIND):

opendkim-testkey: key not found

or 

opendkim-testkey: unknown key

Solution

to cut long story short, to store the longer text on a DNS record (i.e Bind9 or Bind), we need to split the data into rows with brackets "( ... )" and quotes ("...") and store it sequentially on different lines. The notation makes me more confusing, just let's see in the example:

default._domainkey      IN      TXT     ("v=DKIM1; h=sha256; k=rsa;"
"p=HalfOfTheKeyHereHalfOfTheKeyHereHalfOfTheKeyHere"
"andAnotherHalfHereAnotherHalfHereAnotherHalfHereAnother")

this key is using 3 consecutive lines.

Testing

you can directly test the configuration from DKIM

opendkim-testkey -d your-domain-name -s default -vvv

this will show that the OK result.

Additional 

you can check the consistency of DNS using this command, please change your-domain-name with your appropriate domain name or as your settings on bind dns zones

named-checkzone default._domainkey.your-domain-name db.your-domain-name

 

Thursday, December 22, 2011

Install eclipse SDK 3.7.1 on Ubuntu

arranged by Oman (from http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/)

adopted for Ubuntu

- download eclipse-SDK-3.7.1-linux-gtk.tar.gz

terminal:
>> root mode
sudo -i
>> locate eclipse-SDK-3.7.1-linux-gtk.tar.gz
>> untar SDK on /opt
tar -xvzf eclipse-SDK-3.7.1-linux-gtk.tar.gz -C /opt
>> add permission for /opt/eclipse
chmod -R +r /opt/eclipse
>> create executable file
touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
nano -w /usr/bin/eclipse
>> add following to file
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
>> create shortcut
>> open shortcut
gedit /usr/share/applications/eclipse.desktop
>> add/replace the existing with following
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse SDK 3.7.1
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

>> call from commandline: eclipse
>> or from desktop shortcut

Saturday, August 20, 2011

Powerpoint error di Linux Ubuntu

Penyelesaian ini untuk pengguna Linux Ubuntu yang masih menggunakan MS Office melalui Wine, dan mendapatkan error:
"Power point failed to start correctly last time....."

Jika ada error saat memanggil MS Powerpoint dari wine Linux Ubuntu, silakan lakukan langkah berikut:
  1. Application - Wine - Configure Wine
  2. klik tab Libraries
  3. pada combo, cari library "riched20" (riched20.dll)
  4. pilih riched20, klik add
  5. rubah override menjadi native (windows)
  6. buka lagi MS Powerpoint