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:




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:

Build Phaser dev branch (html5 game dev framework) with node and grunt on ubuntu

Sunday, 3. August 2014

sudo apt-get install git

this installs git on your pc

git clone -b dev https://github.com/photonstorm/phaser.git

do this to get the latest phaser source of the dev branch

sudo apt-get install npm

install node

sudo npm install -g grunt-cli

install grunt commandline interface

 npm install

in your phaser directory to pick up the node packages that phaser uses

sudo ln -s /usr/bin/nodejs /usr/bin/node

do this to compensate for a ubuntu naming error


build phaser¬† and grab your new phaser js file(s) under ./dist/¬†¬† ūüôā


glhf !

German spellchecking in KDE Plasma

Monday, 30. June 2014

if you have an english installation but work in europe/germany/austria you eventually may want to  use  a german spellchecker

systemsettings Рlocale Рspellchecker  only lists the english  language


you need to install the aspell and maybe (for libre office) hunspell packages:

sudo apt-get install hunspell-de-de aspell-de

Installing Nginx with PHP on (k)ubuntu

Sunday, 15. June 2014

sudo apt-get install php5-common php5-cli php5-fpm

sudo apt-get install nginx

sudo service nginx start

Test that it’s working (should see “Welcome to nginx!”)

sudo service nginx stop

In your nginx site configuration (/etc/nginx/sites-available/default) scroll down to where it says “location ~ .php {” and uncomment lines so it looks like this:

location ~ \.php$ {
  fastcgi_split_path_info ^(.+\.php)(/.+)$
  fastcgi_pass unix:/var/run/php5-fpm.sock;
  fastcgi_index index.php;
  include fastcgi_params;


if you are using kubuntu 16.04 with php5 those lines should look like this:


location ~ \.php$ {  
        fastcgi_split_path_info ^(.+\.php)(/.+)$;   
        fastcgi_pass unix:/var/run/php5-fpm.sock; 
        include fastcgi_params;         
        include snippets/fastcgi-php.conf; 


and then:

sudo service php5-fpm restart
sudo service nginx restart

Your default web root is located at /usr/share/nginx/www (per the config file). (See root /usr/share/nginx/www;)

You could change it to root /home/user/webroot;


To enabel autoindex on nginx add:

autoindex on;

to your location section

linux user without password – just press enter to destroy everything ;-)

Saturday, 25. January 2014

i would definitely NOT RECOMMEND this but if you must do it..  here is a way to do it 


open a terminal…

sudo nano -B /etc/shadow

This will open the /etc/shadow file (the one that contains all the passwords) in a text editor called Nano.

Once you have it open, find the appropriate line for the account in question. It’ll look something like this:


Change the second part (in bold here) to match this second part (also in bold):


Then save the file (Control-X, Y, Enter).

hide the cashew (kde plasma)

Thursday, 23. January 2014

hide the cashew 

i know that aaron seigo wouldn’t like this very much but if you are smart enough to NOT disable the rightclick on the desktop and NOT disable the run command interface while removing all the panels.. you could remove the cashew without ending up with an unconfigurable desktop..

how to remove the cashew? 

sudo chmod 600 /usr/lib/kde4/plasma_toolbox_desktoptoolbox.so

this will last until the next plasma update that touches this file.. (unless you make it immutable)
but it’s a oneliner.. just do it again after the update ūüôā