Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff


Combine PDF-Files on Linux (Ubuntu)

First install pdftk sudo aptitude install pdftk Now combine the files with: pdftk file_1.pdf file_2.pdf file_3.pdf cat output combined.pdf

, , ,

Install Apache Tomcat 8 on Debian 7 (Wheezy) with virtual hosts and Apache2 integration

1. Install OpenJDK Java 7 runtime:1. Installation von OpenJDK Java 7 runtime: aptitude install openjdk-7-jre 2. Download Tomcat Download Tomcat 8 fromvon der Tomcat 8 Download pageSeite. For example:Zum Beispiel: wget 3. Install Tomcat3. Installation von Tomcat tar -xzvf apache-tomcat-8.0.5.tar.gz mv apache-tomcat-8.0.5 /opt/tomcat 4. Create tomcat user and group4. Tomcat Benutzer und Gruppe anlegen […]

, , , ,

Fix broken ext4 partitions

Boot from a live distribution like ubuntu ( fsck.ext4 -cDfty -C 0 /dev/sda Note: Replace “sda” with your harddrive. Explanation: -c check for bad sector check -D optimize directories if possible -f force check -t print timing stats -y assume answer “yes” to all questions -C 0 print progress info to stdout


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 […]


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 […]

, , ,

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 […]

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.

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 […]


Notebook Backup to external crypted disk

Here is the documentation, how i making backups of my notebook. I use a external USB harddisk, which is connected to my docking station. On system logon, i check if the external disk is present and mount it. A cronjob starts a backup script, which creates backups with rsync if the backup partition is mounted. […]

, , , ,

List of Ubuntu Based Linux Distributions and Live Cd’s

A great list of Ubuntu Based Linux Distributions and Live Cd’s

Previous Posts Next posts