Asterisk Blacklist Hobby webbhotell


Telldus core install on Ubuntu

Filed under: Server — Mathz @ 21:47

Console based installation

Add the following lines to your /etc/apt/sources.list:

deb stable main

The Telldus public key for apt-secure can be downloaded  here. You can add this key with

sudo apt-key add telldus-public.key

or combine downloading and registering:

wget -q -O- | sudo apt-key add -

The key fingerprint is

70C4 10C9 D73D 53E8 38B3 1C58 5A94 9181 E501 EA76
Telldus Technologies AB <>

Update the repository

sudo apt-get update

To install telldus-core, do

sudo apt-get install telldus-core

Telldus SDK install Ubuntu from sources

Filed under: Server — Mathz @ 21:40

SDK Download here:

sudo apt-get install doxygen build-essential libftdi1 libftdi-dev libconfuse0 libconfuse-dev cmake



Tomcat Jaas

Filed under: Server,Tomcat — Mathz @ 22:47


Tomcat Debug

Filed under: Server,Tomcat — Mathz @ 12:47




Bacula reset Tape

Filed under: Backup,Server — Mathz @ 22:20

3920 Cannot label Volume because it is already labeled: “TAPE123”


sudo bconsole
* umount


Load Tape from Slot 1 to device
/etc/bacula/script/mtx-changer /dev/sg4 load 1 /dev/st0 0
mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof
mt -f /dev/nst0 rewind

sudo bconsole
update slots
* list media

sudo mtx -f /dev/sg5 status
Load slot 1
sudo mtx -f /dev/sg5 load 1

lsscsi -g
use /dev/sgX for changer
use /dev/stX for drive

Label to Scratch
*label pool=Scratch storage=DigitalTapeLibrary slot=2


Install Java 1.8 on Redhat

Filed under: Programering,Server — Mathz @ 13:25

yum install java-1.8.0-openjdk
yum install java-1.8.0-openjdk-devel
cd /usr/lib/jvm/java-1.8.0-openjdk-
alternatives --install /usr/bin/java java /usr/lib/jvm/java-1.8.0-openjdk- 2
alternatives --config java


Java 1.8 on Ubuntu 14.04 LTS

Filed under: Server — Mathz @ 10:15

sudo apt-get install python-software-properties (sudo apt-get install --reinstall software-properties-common)
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac


Solve missing /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts

sudo dpkg purge forcedepends cacertificatesjava
sudo aptget install cacertificatesjava


Cpanel backup

Filed under: Server — Mathz @ 21:35

If you want to move one account use:

/scripts/pkgacct accountname

This creates a backup of the account at the top level of /home which you can copy over to another server into /home and restore using:

/scripts/restorepkg accountname


Install OpenLDAP on Ubuntu 14.04

Filed under: LDAP — Mathz @ 13:11


apt-get update
apt-get install slapd ldap-utils

Set password for admin


vim /etc/ldap/ldap.conf (not existing)

# LDAP Defaults

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE dc=example,dc=com
URI ldap:// ldap://

#DEREF never

# TLS certificates (needed for GnuTLS)
TLS_CACERT /etc/ssl/certs/ca-certificates.crt

Start reconfigure

dpkg-reconfigure slapd

Omit OpenLDAP server config: No
DNS domain name:
Orgianization name: MyCompany
Administrato password:
Database backend to use: HDB
Do you want the database to be removed when slapd is purged: Yes
Move old database: Yes (backup of database)
Allow LDAPv2 protocol: No

Now you can see your config

ldapsearch -x


MySQL JDBC Connection in Glassfish

Filed under: Glassfish — Mathz @ 19:50

Start to add a new JDBC Connection Pools.

* Goto Resources-> JDBC -> JDBC Connection Pools
* Click New…
* Enter a pool name (identyfy the pool, free text)
* Choose java.sql.Driver
* Click Next
* Enter com.mysql.jdbc.Driver in Driver Classname
* Add additional properties:

Name Value
URL jdbc:mysql://localhost:3306/<databaseName>?zeroDateTimeBehavior=convertToNull
user <username>
password <password>

* Click on finish


Create a new JDBC Resource
* Goto Resources-> JDBC -> JDBC Resources
* Click New…
* Enter jdbc/ as JNDI Name
* Choose the Pool the you created above as Pool Name
* Click OK

Download mysql-connector-java-.jar to the glassfish4/glassfish/lib mapp (

« Newer PostsOlder Posts »

Powered by WordPress