Silence crontab

Sometimes you don’t want to get any notifications from your cronjob, but somewhere in the code someone echos something and so you get an email each time. That could be very annoying. The following snipped will help you to immobilize the cron. */5 * * * * /var/wwww/whatever.php > /dev/null 2>&1 The important part is > […]

Get MAC address from file system

On Debian based Linux distributions you can get the MAC address of the respective network adapter from the filesystem like shown below: $> cat /sys/class/net/wlan0/address # WLAN adapter $> 81:82:83:4:85:86 $> cat /sys/class/net/eth0/address # LAN adapter $> 1a:1b:1c:1d:1e:1f As you can see, all adapters have their own folder under  /sys/class/net/ that contains  a address file with the corresponding MAC […]

Cleanup Ubuntu

In the last time I had the problem, that my system became very slow and wasn’t usable anymore. Here are the steps I’ve taken to get rid of this problem: Cleanup old packages in the terminal: $> sudo synaptic got to  Settings -> Preferences -> Files activate the bullet point Delete downloaded files after installation under Temporary […]