Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

April, 2014

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