mafflog
random stuff for teh interwebs
  • About
  • Projects
  • Archives
Home » Linux
Quickstart, the swiss army knife for Ubuntu

Quickstart, the swiss army knife for Ubuntu

August 14, 2008 · in Linux, Software

I just discovered “Quickstart”, the swiss army knife for Ubuntu which is a handy little tool for different tasks. For more information see here and here.

GNU Nano Tipps&Tricks, Shortcuts und Syntax Highlighting

August 4, 2008 · in How-Tos, Linux

Ich verwende auf der Kommandozeile bevorzugt nano gegenüber vim, ganz einfach deswegen weil mir vim zu umständlich ist, ich mir die Befehle nie merke und ich für die Bearbeitung von ein paar Configfiles nicht unbedingt einen “mächtigen” Editor benötige. Zum Programmieren verwende ich sowieso lieber eine graphische Umgebung. Trotzdem kann nano eigentlich mehr, als man auf den ersten Blick meinen könnte. In der Augustausgabe von freiesMagazin sind ab Seite 25 einige nützliche Tipps&Tricks, Shortcuts und die Möglichkeit des Syntax Highlighting für diverse Sprachen beschrieben.

Wem Syntaxhighlighting für eine bestimmte Sprache abgeht: auf dem LinuxHelp Wiki gibts noch ein paar rc-files für diverse Sprachen. Hier meine für PHP (aus dem Wiki leicht angepasst):

syntax "php" ".php[2345s~]?$"
color brightblue start="<?(php)?" end="?>"
color blue start="<[^?]" end="[^?]>"
color cyan "$[a-zA-Z_0-9]*"
color cyan "([)|(])"
color blue "<(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while|foreach|return|public|private|protected|require|require_once|new|true|false|as)>"
color red "="
color green "[,{}()]"
color green "=="
color white "('[^']*')|("[^"]*")"
color yellow start="<!--" end="-->"
color yellow start="/*" end="*/"
color yellow start="#" end="$"

Lazy Linux: 10 essential tricks for admins

August 1, 2008 · in How-Tos, Linux, Web

Sehr interessanter Artikel von IBM, der einige nützliche Tipps&Tricks für den Linux Admin beschreibt.

Lazy Linux: 10 essential tricks for admins.

Fetchmail and Sieve with Virtual Mail on Debian Etch

August 1, 2008 · in Development, How-Tos, Linux, Server

Update: This post is quite old and does not work out of the box with the current ISPMail tutorials. I posted an update here.

When it comes to mail servers, I really like the setup Christoph Haas describes in his Document Howto: ISP-style Email Server with Debian-Etch and Postfix 2.3. One thing I was missing on a server was the ability to automatically generate config files for fetchmail and sieve from the database in order to get mail from other servers and being able to apply server side filters on incoming mail. This howto is based on the mentioned tutorial.

The additional setup is quite simple: 2 more database tables hold the data for fetchmail and sieve rules and a set of PHP scripts called by cron every few minutes fetches the data and writes it into the appropriate config files. For fetchmail, a script creates a .fetchmailrc file in /home/vmail/. For sieve, another script creates a .dovecot.sieve config file for every user who got sieve rules in the database.

(more…)

Daten verschlüsseln mit TrueCrypt

Daten verschlüsseln mit TrueCrypt

July 29, 2008 · in How-Tos, Linux, Software, Windows

Da ich mir kürzlich einen neuen USB-Stick zugelegt habe, habe ich heute mal ein paar Portable Apps (unter anderem PuTTY, Firefox, Thunderbird und Notepad++) daraufkopiert, um auch unterwegs an fremden Rechnern Zugriff auf gewohnte Tools zu haben. Da auch einige sensible Daten dabei sind (private Keys, gespeicherte Firefoxpasswörter, …) und sich meine Freude, sollte der Fall eintreten, dass ich es in einem Zustand geistiger Abstinenz schaffe den Stick zu verlieren, über besagte Daten in fremden Händen in Grenzen halten würde, habe ich die PortableSuite einfach komplett in einen TrueCrypt-Container gesteckt, der auf dem Stick liegt. Somit sind bei Verlust zwar die Daten auf dem Stick futsch, aber ich kann zumindest sicher sein, dass auch niemand anderes daran kommt. Wie das funktioniert, werde ich in den folgenden Schritten kurz erklären.

(more…)

Quick and dirty: set up a local PHP and Ruby development environment on Ubuntu Hardy Heron (8.04)

July 21, 2008 · in Development, How-Tos, Linux, Server

This is a quick and dirty tutorial how to set up a local development stack on a fresh Ubuntu Hardy Heron (8.04) install.

Here is what we will install:

  • Apache 2.2
  • PHP 5 as apache module
  • Ruby 1.8 as apache module & Rails 2.0.2
  • MySQL 5
  • phpMyAdmin

(more…)

Gnome-Art Next Gen 0.6.0

July 17, 2008 · in Linux, Software

Bin gerade auf vimeo darüber gestolpert. Sieht klasse aus, damit spart man sich das ewige herumsuchen auf den üblichen Seiten.

Link zum Artikel: http://vadi-blog.com/2008/07/17/gnome-art-nextgen-060-released/

Reinstall grub using a Linux Live-CD

July 14, 2008 · in Linux

I just reinstalled Windows on my dual-boot system and had to reinstall grub as Windows setup overwrites the existing master boot record. Here’s how I did it using a Linux Live-CD (im my case an Ubuntu 7.04 CD I had lying around). My Linux root partition is /dev/sda6.

First it’s necessary to mount our Linux filesystem (including /proc and /dev). If you got /boot on an extra partition, you have to mount that partition too.

root@ubuntu:~$ mkdir /mnt/root
root@ubuntu:~$ mount -t ext3 /dev/sda6 /mnt/root
root@ubuntu:~$ mount -t proc none /mnt/root/proc
root@ubuntu:~$ mount -o bind /dev /mnt/root/dev

Then we can chroot into our system and re-install grub on /dev/sda.

root@ubuntu:~$ chroot /mnt/root /bin/bash
root@ubuntu:~$ grub-install /dev/sda

Done.

Adobe AIR unter Linux

Adobe AIR unter Linux

July 8, 2008 · in How-Tos, Linux, Software

Da ich mich in letzter Zeit vermehrt auf twitter herumtreibe, musste ein Desktop-Client dafür her. Dabei bin ich auf das auf Adobes AIR basierende thwirl gestoßen, das ich jetzt unter Windows einige Tage in Verwendung habe und das seine Aufgabe auch gut erledigt. Als ich AIR heute unter Ubuntu installieren wollte, erwartete mich folgende Meldung auf der Downloadseite:

Nach kurzer Recherche bin ich aber doch auf eine Möglichkeit gestoßen: es gibt eine Alpha-Version von AIR für Linux, die bei mir bislang problemlos funktioniert. Diese kann man folgendermaßen installieren:

  1. das binary auf der Downloadseite herunterladen
  2. die heruntergeladene Datei ausführbar machen
    maff@mafftop:~$ chmod +x adobeair_linux_a1_033108.bin
  3. die Datei ausführen und den Installer durchlaufen lassen
    maff@mafftop:~$ ./adobeair_linux_a1_033108.bin

Das wars auch schon. Wenn man thwirl installieren will, steht zwar unter "Install now" die nette Meldung “Adobe AIR is not available for your system“, ein Herunterladen und Öffnen der .air-Datei beweist jedoch das Gegenteil ;)

Nützliche bash-Tastaturkürzel

July 7, 2008 · in Linux

Einige nützliche bash-Tastaturkürzel:

Kürzel Beschreibung
ALT+B, ALT+F Cursor ein Wort zurück / weiter bewegen
CTRL+A, CTRL+E Cursor an den Anfang / Ende der Zeile setzen
CTRL+K Bis zum Ende der Zeile löschen
CTRL+T Die vorigen beiden Zeichen vertauschen
ALT+T Die vorigen beiden Wörter vertauschen
CTRL+L Bildschirm löschen
CTRL+R, CTRL+S Nach vorher eingegebenen Kommandos suchen
← Previous 1 2 3 4 Next →
github github github

Search

Categories

  • Android
  • Development
  • Fun
  • General
  • Hardware
  • How-Tos
  • Kitchen
  • Linux
  • No Comment
  • Projects
  • Server
  • Snippets
  • Software
  • Video
  • Web
  • Windows
  • Wordpress

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Copyright © 2008-2013 mafflog