Wifi Schedule on OpenWRT

Wednesday, 6. June 2018

if you prefert to deactivate your wifi APs during the night there is an easy solution.

for most architectures there is a package called “wifi-schedule”


if for some reasons you are out of luck and this package is not in your versions repository don’t worry.. just set up a cronjob – this basically does the same thing.


00 00 * * Mon,Tue,Wed,Thu,Fri /sbin/wifi down
00 02 * * Sat,Sun /sbin/wifi down
00 06 * * Mon,Tue,Wed,Thu,Fri /sbin/wifi up
00 09 * * Sat,Sun /sbin/wifi up


this will disable your wifi in the middle of the night and reactivate it in the morning (different settings for businessdays ūüėČ )



kdesudo for your own scripts – a little beautification

Tuesday, 29. November 2016

kdesudo --comment "Dieses Programm benötigt Administrator Rechte" -d -i /usr/share/icons/breeze/places/22/user-identity.svg $1


i place this script in /usr/bin  and name it mysudo

i can then run a program with “mysudo script.sh” and instead of the whole path and the script name in the title AND the description it will look like this:




Es ist endlich da.. das Scheibenwischeremoticon

Friday, 20. May 2016


Auf Grund hoher Nachfrage – Das √∂sterreichische Bundespr√§sidentschafts(wiederholungs)(stich)wahl-Emoticon ūüėČ






Kubuntu 16.04 LTS && KDE NEON

Friday, 29. April 2016

#kde #neon is not a fullblown distribution by now. It is based on a minimal installation of ubuntu 16.04 LTS and delivers nothing but a plain ubuntu base with an up2date plasmashell on it.  no applications and other usefull additions whatsoever!!

you will have to install everything by hand – starting with “konsole” and “gtk3-breeze-engines” or things like “kate” and other stuff.

Therefore it’s probably a good idea to just use plain #kubuntu and add the neon package archive.

this is how you do it:

get the key for the package archive..

wget -q -O - http://archive.neon.kde.org/public.key | sudo apt-key add -


add the following line to your /etc/apt/sources.list

deb http://archive.neon.kde.org/release xenial main

and update/upgrade your system

sudo apt update
sudo apt full-upgrade


or (instead of the last line)

sudo apt-get dist-upgrade -o dpkg::options::="--force-overwrite"



if you break something on your first upgrade attempt don’t worry.. ¬†just ¬† “sudo apt-get -f install” or “sudo dpkg –configure -a ” and run the upgrade again


HowTo setup ProFTPd an Users

Thursday, 3. December 2015

Install proftpd

sudo apt-get install proftpd

Add this line in /etc/shells file (sudo nano /etc/shells)


Create the folders an the user

sudo mkdir /home/www/userdir

sudo useradd userftp -p your_password -d /home/www/userdir -s /bin/false -G ftpusers

sudo passwd userftp /home/www/userdir

sudo chown userftp:ftpusers

Change your configuration according to your needs

cat /etc/proftpd/proftpd.conf

Include /etc/proftpd/modules.conf
UseIPv6 on
IdentLookups off
ServerName “students.europagymnasium.at”
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions “-l”
DenyFilter \*.*/
RequireValidShell off
TimeoutLogin 20
RootLogin off
UseFtpUsers off
AllowStoreRestart on

# Lock all the users in home directory, ***** really important *****
DefaultRoot ~
Port 21
<IfModule mod_dynmasq.c>
MaxInstances 30
User proftpd
Group nogroup
Umask 022 022
MaxClients 40
MaxClientsPerHost 40
MaxClientsPerUser 40
MaxHostsPerUser 40

AllowOverwrite on

Enabling WoL in the NIC

Thursday, 3. December 2015

copied from the Ubuntu Wiki:

Determining whether the NIC supports WoL

First, determine which NIC will be used, and then check whether it supports the Magic Packet‚ĄĘ using

sudo ethtool <NIC>

where <NIC> is the device name of your NIC, e.g. eth0. This command will output some information about your the capabilities of your NIC. If this output contains a line similar to the following:

Supports Wake-on: <letters>

where <letters> contains the letter g, the NIC should support the WoL Magic Packet‚ĄĘ method (for the other letters look at man¬†ethtool).

Enabling WoL in the NIC

To check whether WoL is enabled in the NIC, one could use

sudo ethtool <NIC>

and look for

Wake-on: <letters>

If <letters> contains g and not d, then Magic Packet‚ĄĘ is enabled. However, if <letters> does contain d, WoL needs to be enabled by running the following command:

sudo ethtool -s <NIC> wol g

On most systems, issuing this command is required after each boot. If the system’s networking is configured via ifupdown, then it is easy to add the line up¬†ethtool¬†-s¬†<NIC>¬†wol¬†g below the interface’s configuration stanza in /etc/network/interfaces. For example:

shahar@shahar-backup:~$ cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface

auto lo
iface lo inet loopback
# The primary network interface

auto eth0
iface eth0 inet static
        up ethtool -s eth0 wol g

This will ensure that WoL is enabled in the NIC on each boot. Fore more information see the interfaces manual.

Testing Wake-On-LAN

Test WoL by powering off the system and trying to send it the magic packet using:

cool cows on ice

Tuesday, 14. April 2015

i just released my first html5 android game (ever)


it is called “cool cows on ice” and features a cow (obviously) and some crazy kamikaze penguins that may, or may not help you finish a level…

you can touch and hold the cow and then throw it as precisely as you can into the target area.

the game is build completely with the amazing phaser.js framework and p2 physics
i used crosswalk 10 and intel xdk to package it
it also has ads (one interstitial in the menu – only once) and non-intrusive banners in the score screen – and the option to remove them
almost all the graphics and animations are created in gimp
the audio tracks are composed by good friend of mine (dj körner)

here is a screenshot:


and here the promo video :

cool cows on ice (google playstore)


thx for downloading and rating ūüôā

minimize you js files with closure-compiler

Tuesday, 7. April 2015

closure-compiler is part of every modern linux distribution. if it’s not installed hit “sudo apt install¬†closure-compiler” in a terminal and press enter ūüôā


to minimize your js file you can now write:

closure-compiler --js game.js --js_output_file game.min.js --language_in ES5 --compilation_level SIMPLE_OPTIMIZATIONS

this will minify your javascript file named “game.js” and store it as “game.min.js” in the same folder

the –language part makes sure that it runs through (in my case) even with some “reserved” names as custom variable names.. ¬† (i am using the phaser framework and “static” for example is a common (otherwise not allowed) name for an attribute)


using advanced_optimations instead of simple_optimations would lead to a more obfuscated output but is not working properly if you include several other js files because it’s heavily renaming everything – starting with classes, methods, attributes, etc.





Install Adobe Reader 9.5.5 in Kubuntu 15.04 vivid (and older)

Thursday, 5. March 2015

Adobe reader is no longer available for linux via the adobe website.

if you need for example pdfs with forms working properly you are unfortunately still going to need the original.

the version 9.5.5 is still available in old canonical repositories and it works ūüôā




sudo add-apt-repository 'deb http://archive.canonical.com/ precise partner'
sudo apt-get update
sudo apt-get install acroread

after installing adobe reader remove the repository again!

sudo add-apt-repository -r 'deb http://archive.canonical.com/ precise partner'
sudo apt-get update

Windows beats iOS and OS X and Linux and becomes the most vulnerable operating system of 2014

Tuesday, 24. February 2015

This is meant as response to all those Blogs that constantly repost the bullshit-comparison-chart that GFI “invented” – especially to this one.¬†http://mywindows8.org/ios-os-x-beats-windows-become-vulnerable-operating-systems-2014/

Here is a more accurate chart:


FYI – bugs like shellshock (bash) seem to be included in the linux-kernel numbers which is of course total nonsense but i managed to¬†resist adding the Internet Explorer vulnerabilities (242) to the numbers. I didn’t want to offend windows users. ; )


Please stop comparing public vulnerabilities of different importance of opensource systems to closed source systems. Guess why the number of LOW vulnerabilities is ? (or 0 in the original chart) – because the author doesn’t¬†know… did you really think there wasn’t even ONE single unimportant flaw in windows fixed in 2014 ?


This reminds me of the “average zero-day response time” chart of 2012 where they just happened to include already fixed bugs in linux just because the current ones were¬†related to them to tweak the numbers…

planned or accidentally Рthis totally fits in to microsofts strategy to control the mindshare: http://techrights.org/2015/02/21/corruptible-press-on-eee/

quote from an internal MS document:
‚Äú[t]o control mental output you have to control mental input. Take control of the channels by which developers receive information, then they can only think about the things you tell them. Thus, you control mindshare!‚ÄĚ