mathz.nu Asterisk Blacklist Hobby webbhotell

2016/07/28

Install Tomcat 8 on Ubuntu 16.04

Filed under: Server — Mathz @ 22:56

https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04

2016/07/11

Tomcat 8 install Ubuntu 14.04

Filed under: Server — Mathz @ 20:38

https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-14-04

2016/05/25

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 http://download.telldus.com/debian/ 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 http://download.telldus.se/debian/telldus-public.key -O- | sudo apt-key add -

The key fingerprint is

70C4 10C9 D73D 53E8 38B3 1C58 5A94 9181 E501 EA76
Telldus Technologies AB <info.tech@telldus.se>

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:
http://download.telldus.se/TellStick/Software/telldus-core/

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

wget http://developer.telldus.com/export/4342bbaa1dcd90011b66e8c1540db6ba904877fe/telldus-core/Doxyfile.in

2016/05/14

Tomcat Jaas

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

http://www.byteslounge.com/tutorials/jaas-authentication-in-tomcat-example

2016/05/09

Tomcat Debug

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

Run

jvisualvm

2016/02/06

Bacula reset Tape

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

If
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
label
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
bconsole
*label pool=Scratch storage=DigitalTapeLibrary slot=2

2016/02/01

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-1.8.0.71-1.b15.el6_7.x86_64/jre/bin/
alternatives --install /usr/bin/java java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64/jre/bin/java 2
alternatives --config java

2016/01/28

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

2015/10/25

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

« Newer PostsOlder Posts »

Powered by WordPress