Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Remove old kernel packages from Ubuntu

I blog this because the original blog doesn’t exists any longer. I want to remove all old kernel packages from my system ( Ubuntu Linux ). I found this command: dpkg -l ‘linux-*’ | sed ‘/^ii/!d;/’”$(uname -r | sed “s/\(.*\)-\([^0-9]\+\)/\1/”)”‘/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d’ | xargs sudo apt-get -y purge But you shouldn’t use […]

,

Cyanogenmod on Samsung S III

Required Pakets I use Ubuntu 13.10 (saucy) the required software is available in the package manager. Install required packages with: sudo apt-get install heimdall-flash android-tools-adb Download Cyanogenmod and Addons * http://download2.clockworkmod.com/recoveries/recovery-clockwork-touch-6.0.3.1-i9305.img * http://download.cyanogenmod.org/get/jenkins/40515/cm-10.1.3-RC2-i9305.zip * http://goo.im/gapps/gapps-jb-20130812-signed.zip Please check on the Cyanogenmod Website for the latest versions. Install Clockwork * Poweroff * Poweron and press Volume Down […]

Linux KVM-Switch with Scroll Lock

For some reason the “Scroll Lock” button doesn’t work in an Xsession in Ubuntu. There is an Bug Report in Lunchpad. My KVM-Switch uses the Scroll Lock Key to switch. You can emulate the key with this command: xset led 3 && sleep 0.2 && xset -led 3 This enables the Scroll Lock and disable […]

, , ,

Racktables Extension 0.3.1

Small update of my racktables extension: Fixes and new features: – Fix: Variable Bug with new PHP versions – Fix: Custom Report now saved as UTF-8 char – Fix: Blade locations now complete – Feature: Custiom Report now with type column – Feature: Custiom Report now with container column – Feature: Custiom Report now with […]

Change the Subnet of VMWare Network Interfaces

If you install VMWare Player or Workstation the installer searches free subnets for the host-only network adapters vmnet1 and vmnet8. Sometimes this isn’t compatible with networks at other locations. Like Wifis, VPN connections or the networks at your work place. You can change this subnets if you want. On Linux open “/etc/vmware/networking” and change the […]

System Administrator Appreciation Day – 2013

To all other system adminstrators “HAPPY SYSADMIN DAY !”

Happy Birthday!

This Blog today runs for 5 years. It now has about 125 entries and 380 comments. It get’s about 200 visits per day mostly on weekdays The busiest day had 1100 visits. Thank’s a lot to all my followers

Ubuntu 12.10 Network printer problem

I tried to add a network (samba) printer on Ubuntu 12.10 with gnome and i get only this message: FirewallD is not running. Network printer detection needs services mdns, ipp, ipp-client and samba client enabled on firewall. The workaround was to run system-config-printer in terminal and configurate the printer.

Racktables has problems with NDOUtils from Nagios

Small script reads nagios problems from ndo database and set has_problems flag in racktables: Works with plain Nagios and NDOUtils Setup or an Centreon installation. But you have to use the same name of a server in both system ! #!/usr/bin/perl use strict; use DBI; # NDO Database Settings my $ndoHost = ‘localhost’; my $ndoUser […]

,

Reset MySQL Root Password

Quick tutorial to reset the root password of an MySQL server: (I know there are a lot of howtos out there, i make a documentation here for myself :-)) First stop the MySQL server: /etc/init.d/mysql stop Now start the server in “safe mode” without password and network: mysqld_safe –skip-grant-tables –skip-networking You can login to the […]

,

Previous Posts