Evaggelos Balaskas - System Engineer

The sky above the port was the color of television, tuned to a dead channel

Blog
Posts
Wiki
About
Contact
rss.png twitter linkedin github gitlab profile for ebal on Stack Exchange

Next Page »
  -  
Dec
16
2015
MySQL UDF
Posted by ebal at 15:57:11 in blog, planet_ellak, planet_Sysadmin

A colleague asked me to install MySQL UDF (MySQL user defined functions) on a server.

So here are my notes on the subject, for a CentOS 6.7 linux box:

First you need to have mysql-devel on your system which install the mysql development headers on /usr/include/mysql/ directory:


# yum -y install mysql-devel

Then download the latest source code of mysqludf_udf:


# wget -c https://raw.githubusercontent.com/mysqludf/lib_mysqludf_udf/master/lib_mysqludf_udf.c

and compile it


# gcc -m64 -fPIC -Wall
        -I/usr/include/mysql -I.
        -L/usr/lib64/libstdc++.so.6
        -shared lib_mysqludf_udf.c
        -o /usr/lib64/mysql/plugin/lib_mysqludf_udf.so

confirm:


# ls -l /usr/lib64/mysql/plugin/lib_mysqludf_udf.so

Restart your MySQL and test it !

Tag(s): mysql
    Tag: mysql
Dec
16
2015
ODROID-C1 specs
Posted by ebal at 13:01:00 in blog

odroid-c1.jpg

CPU


# cat /proc/cpuinfo
Processor   : ARMv7 Processor rev 1 (v7l)
processor   : 0
BogoMIPS    : 3.27

processor   : 1
BogoMIPS    : 3.27

processor   : 2
BogoMIPS    : 3.27

processor   : 3
BogoMIPS    : 3.27

To see the entire article, click uppon article's title/link. 
Thank you.
    Tag: ODROID-C1
Dec
16
2015
Build your own Access Point
Posted by ebal at 12:57:19 in blog, planet_ellak, planet_Sysadmin

UPDATED: 14 February 2016
Blog Post: 16 December 2015

I have started (for some time now, to be honest) to transfer my router’s function to my ODROID-c1

odroid-c1.jpg

that runs Archlinux arm so I have my favorite distribution on this beautiful development board.


# uname -a
Linux myodroid To see the entire article, click uppon article's title/link. 
Thank you.
    Tag: ODROID-C1
Dec
13
2015
one step closer to 32c3
Posted by ebal at 13:52:35 in blog, planet_ellak, planet_Sysadmin

As we getting closer to the amazing 32nd Chaos Communication Congress (32C3) we must consider some privacy steps to our electronic devices.

Perhaps it’s idiotic to take a smartphone to this conference, as we all know that in such events hacking is fair play to everyone.

The below quote, from Person of Interest, reminds us exactly that:

If they don’t want you to get inside, they ought to build it better.

You should treat every network as a hostile, already compromised network.
It’s probably true, anyway !

For us mere people that we dont have many security knowledge, we need to take some extra security measures if we want to bring our smartphone together. It’s just for browsing, taking some picture from the event (and not the people, respect that please), check some emails or tweet...

To see the entire article, click uppon article's title/link.
Thank you.
    Tag: openvpn
Dec
11
2015
HestiaPi is more than just a thermostat
Posted by ebal at 14:31:44 in blog, planet_ellak, planet_Sysadmin

[UPDATE 2015 12 13]

How about if you could control your entire home temperature and hot water/central heating etc etc, through your smartphone over the internet ?

You are going to think that this is a dangerous IoT (Internet of Thing) that exposes your privacy to unknown attackers and your smart home is going to be under the control of an evil company.

What if I could tell you, that you can build your own smart controller with open-design/open hardware & free software that costs about €100 ?

Crazy, right ?

Actually there is a project that does exactly all the above and much more and it’s based on a Raspberry Pi.

Let me introduce you to HestiaPi .

To see the entire article, click uppon article's title/link.
Thank you.
    Tag: HestiaPi, hackerspace
Dec
09
2015
RHEL 7/CentOS 7 networking bonding without NetworkManager
Posted by ebal at 11:30:13 in blog, planet_ellak, planet_Sysadmin

First remove NetworkManager:



# systemctl stop NetworkManager

# systemctl disable NetworkManager
rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'
rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'
rm '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service'

# yum -y remove NetworkManager*

# /usr/bin/rm -rf /etc/NetworkManager

If you want to be more productive you should clean your system from FirewallD, install iptables-services and if you are going to install a redhat pro...

To see the entire article, click uppon article's title/link.
Thank you.
Dec
06
2015
Reproducible Builds
Posted by ebal at 13:20:02 in blog, planet_ellak, planet_Sysadmin

I had the opportunity to participate on an Athen’s Hackerspace event with a dozen debian developers about the issue with reproducible distribution’s package builds.

I had never thought of this thing before and the presentation blown me away !

So here is the deal, if you download the latest openssl package from an archlinux mirror (want archlinux users will going to do):


# pacman -Sw openssl

What if we tried to build openssl by our selfs from the PKGBUILD file ?


# cd /var/abs/core/openssl

$ makepkg -cf
==> Making package: open...
To see the entire article, click uppon article's title/link.
Thank you.
    Tag: diffoscope
Dec
06
2015
adaptation IPv6 the wrong way!
Posted by ebal at 03:10:16 in blog, planet_ellak, planet_Sysadmin

There are some companies that have just started to dual stack (IPv4 & IPv6) their infrastructure, like twimg (the twitter hosting images site).

Reminder that IPv6 is preferable on the Internet (by design)



query[AAAA] pbs.twimg.com from 192.168.1.4
pbs.twimg.com to xxx.xxxTo see the entire article, click uppon article's title/link. 
Thank you.
    Tag: twitter, IPv6
Nov
25
2015
Sender Policy Framework
Posted by ebal at 21:35:57 in blog, planet_ellak, planet_Sysadmin

UPDATE Thu Nov 26 11:28:05 EET 2015

Does SPF break forwarding?
(like in mailing lists)

  • Yes, it does break forwarding.

So learn from my mistake and think this through.

Wednesday, 25 November 2015

There is a very simply way to add spf [check] support to your postfix setup.
Below are my notes on CentOS 6.7

Step One: install python policy daemon for spf


# yum -y install pypolicyd-spf

Step Two: Create a new postfix service, called spfcheck


# vim + /etc/postfix/master.cf

spfcheck     unix  -       n       n    ...
To see the entire article, click uppon article's title/link.
Thank you.
    Tag: postfix, spf
Nov
15
2015
dns opennic dnscrypt
Posted by ebal at 19:21:30 in blog, planet_ellak, planet_Sysadmin

A few days ago, I gave a presentation on fosscomm 2015 about DNS, OpenNic Project and DNScrypt

So without further ado, here it is: dns_opennic_dnscrypt.pdf

Tag(s): dns, dnscrypt, opennicproject
    Tag: dns, dnscrypt, opennicproject
Oct
23
2015
dnscrypt-wrapper & libsodium
Posted by ebal at 09:59:52 in blog, planet_ellak, planet_Sysadmin

updated versions for rpm spec files here

  • dnscrypt-wrapper v0.1.17
  • libsodium v1.0.4


# rpmbuild -ba libsodium.spec
# rpmbuild -ba dnscrypt-wrapper.spec

Tag(s): dnscrypt
    Tag: dnscrypt
Oct
22
2015
I, Robot by Isaac Asimov
Posted by ebal at 19:53:29 in blog, planet_ellak, books, planet_Sysadmin

I did a road trip last week and had almost 11 hours to “kill” while driving.
So I’ve downloaded an audio book to accompany me all those hours.

I chose ‘I, Robot’ a collection of short stories by Isaac Asimov.

i_robot.jpg

I have to admit that although I was aware on the core beliefs and the Three Laws of Robotics, I had never had the change to read (or listen) I, Robot.

These dystopia stories captivate me from the start!
If anyone havent yet read these stories, PLZ make yourself a present and read (or listen) them.

After that, you should really watch the swedish TV series Real Humans / Äkta människor and/or the british version Humans which are about androids!

Tag(s): books, audiobook
    Tag: books, audiobook
Sep
29
2015
ipv6 autoconfigure
Posted by ebal at 13:36:19 in blog, planet_ellak, planet_Sysadmin

So … it seems that some router gives dhcp ipv6 prefixes for specific lans.

The default behaviour of CentOS is to autoconfigure the network interface with ifup script.

We havent finished our #ipv6 schema/deployment so we need to disable this ipv6 autoconfigure feature.

global



# vim /etc/sysconfig/network

NETWORKING_IPV6=no
IPV6FORWARDING=no
IPV6_AUTOCONF=no

interface


# vim /etc/sysconfig/network-scripts/ifcfg-eth0
IPV6INIT=no

Flushing


# ip -6 addr flush eth0

# ip -6 route flush scope global

and finally restart



# service restart network

Tag(s): ipv6, centos
    Tag: ipv6, centos
  • Add a comment
Sep
19
2015
locale-archive
Posted by ebal at 22:56:01 in blog, planet_ellak, planet_Sysadmin

remove unnecessary locales:


# localedef --list-archive | egrep -v '^el_GR|^en_US' | xargs localedef --delete-from-archive
# mv -f /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl
# build-locale-archive
Tag(s): locales, centos
    Tag: locales, centos
Sep
19
2015
book status
Posted by ebal at 22:30:47 in blog

Just finished

τα ουγγρικά ψάρια του Γιάννη Πλιώτα

ouggrikapsaria.png

Μπορείτε να διαβάσετε ολόκληρο το βιβλίο εδώ

Απίθανη, μυστηριώδης, κωμική απαγωγή !

Ματωμένο Μήνυμα του Jussi Adler-Olsen

matomeno_minima.jpg

Ενοχή του Jussi Adler-Olsen

enochi.jpg

Tag(s): books
    Tag: books
Sep
10
2015
botcast s02e01
Posted by ebal at 14:18:02 in blog, planet_ellak, planet_Sysadmin

So at athen’s hackerspace our bots made a new podcast for this season!

If you are a greek listener, take a look here: botcast s02e01

podcast

Tag(s): podcast
    Tag: podcast
Sep
09
2015
Create TRUE random passwords - Errata
Posted by ebal at 20:34:13 in blog, planet_ellak, planet_Sysadmin

This blog post is dedicated to “rwman os” for contacting me to suggest that I was wrong !

And indeed I was !! ( <— two exclamation marks)

So this blog post create true random passwords has some mistakes and I am here to make amens.

the correct syntax on creating random passwords is this:


$ cat /dev/urandom | tr -dc $'\x21-\x7E' | head -c 21

and after further investigation (with GNU coreutils 8.23) seems that you can use octal as well:


$ cat /dev/urandom | tr -dc '\041-\176'  | head -c 21
Tag(s): random, password
    Tag: random, password
Aug
28
2015
podcasts
Posted by ebal at 21:54:49 in blog, planet_ellak, planet_Sysadmin

This is a list with podcasts I listen on a regular base

  • Security Now Steve Gibson and Leo Laporte podcast about security news
  • Hacker Public Radio Various podcasts, mostly about free software
  • Talk Python To Me Podcast Podcast about python
  • The Changelog The Changelog is a member supported blog, weekly newsletter and podcast that covers the intersection of software development and open source.
  • ask-mrdns Matt Larson and Cricket Liu expound on DNS
  • Future Thinkers Podcast Various: Obsessed with all things future: singularity, technology, spirituality, and philosophy.
  • The Command Line Thomas Gideon’s podcast
  • cybersecurity-initiative American politics, prosperity, and purpose in the digital age through big ideas, technological innovation
Tag(s): podcast
    Tag: podcast
Aug
24
2015
The Keeper of Lost Causes - Jussi Adler-Olsen
Posted by ebal at 22:14:01 in books

Μου αρέσουν τα σκοτεινά βιβλία … δεν μπορώ να προσδιορίσω το γιατί. Ίσως μιλάνε υποσυνείδητα σε μέρη που δεν μπορώ ηθικά να φτάσω …

Ειδικά οι συγγραφείς των Σκανδιναβικών Χωρών έχουν γράψει αριστουργήματα κι ο Γιούσι Άντλερ-Όλσεν δεν αποτελεί εξαίρεση.

Στην αρχή του 2013 διάβασα το Βεβήλωση όπου ήταν το 2ο βιβλίο της σειράς Q. Το βιβλίο θυμάμαι το είχα ρουφήξει. Η σύγχυσή μου όταν διαπίστωσα πως είναι το 2ο στην σειρά κι ο Λιβάνης δεν είχε πουθενά το 1ο, απίστευτη. Μάλιστα θυμάμαι πως έχω κάνει φασαρία για το συγκεκριμένο θέμα σε περίπτερο του Λιβάνη σε έκθεση βιβλίων. Ο άνθρωπος στο περίπτερο μίλησε στο τηλέφωνο (καλοκαίρι 2013) μου είπε πως πράγματι δεν είναι διαθέσιμο γκρρρρρρ

Μιας κι η λίστα με τα todo list μου φτάνει στο φεγγάρι, το ξέχασα μέχρι πριν από μερικές μέρες. Όπου η αδελφή μου αγόρασε το 2ο βιβλίο (μετά από προτροπή μου). Μέσα σε 8 ώρες (σάββατο απόγευμα/κυριακή πρωί) ρούφηξα κι αυτό το βιβλίο!!!

Έχουν βγει και δύο ταινίες (βασισμέν...

To see the entire article, click uppon article's title/link.
Thank you.
    Tag: books
Aug
23
2015
forwarding logs with Fluentd
Posted by ebal at 18:06:16 in blog, planet_ellak, planet_Sysadmin

Server_A —> Server_B —> Server_C

Let’s say that we have our elasticsearch/kibana setup on Server_C
but Server_A can’t talk to Server_C.

Server_A


# tail /etc/rsyslog.d/20_central_logging.conf 

*.*      @192.168.1.100:42185
& ~

Server_B

install fluentd



# wget -c http://packages.treasuredata.com.s3.amazonaws.com/2/redhat/6/x86_64/td-agent-2.2.1-0.el6.x86_64.rpm
# rpm -ivh td-agent-2.2.1-0.el6.x86_64.rpm

configure fluentd


# vim /etc/t...
To see the entire article, click uppon article's title/link.
Thank you.
    Tag: Fluentd
Next Page »
  -  

Search

Admin area

  • Login

Categories

  • blog
  • wiki
  • pirsynd
  • midori
  • books
  • archlinux
  • movies
  • xfce
  • code
  • beer
  • planet_ellak
  • planet_Sysadmin
  • microblogging
  • UH572
  • KoboGlo
  • planet_fsfe

Archives

  • 2025
    • April
    • March
    • February
  • 2024
    • November
    • October
    • August
    • April
    • March
  • 2023
    • May
    • April
  • 2022
    • November
    • October
    • August
    • February
  • 2021
    • November
    • July
    • June
    • May
    • April
    • March
    • February
  • 2020
    • December
    • November
    • September
    • August
    • June
    • May
    • April
    • March
    • January
  • 2019
    • December
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2018
    • December
    • November
    • October
    • September
    • August
    • June
    • May
    • April
    • March
    • February
    • January
  • 2017
    • December
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2016
    • December
    • November
    • October
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2015
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • January
  • 2014
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2013
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2012
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2011
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2010
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2009
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
Ευάγγελος.Μπαλάσκας.gr

License GNU FDL 1.3 - CC BY-SA 3.0