Category Archives: Linux

Finding the kernel command line …

Something I’ve been looking for for some time now: cat /proc/cmdline

Posted in Linux, Software, Unix and unixoid | Tagged | Leave a comment

nullmailer-queue: Could not write envelope sender

Less than obvious reason, /var ran out of disk space. And /var/spool is located on that volume.

Posted in Linux, Unix and unixoid | Tagged | Leave a comment

Vim tabs and viewports …

Two very nice articles: www.linux.com/learn/tutorials/442415-vim-tips-using-viewports www.linux.com/learn/tutorials/442422-vim-tips-using-tabs // Oliver

Posted in Linux, Software, Unix and unixoid | Tagged | Leave a comment

beroot

… don’t confuse with reboot 😉 alias beroot=”sudo su -l root -c \”$(which bash) –rcfile $HOME/.bashrc\”” I like to feel home in my environment, even when I assume root rights. Since not everyone likes my .bashrc file in scenarios where … Continue reading

Posted in EN, Linux, Unix and unixoid | Leave a comment

Installing php5 on Ubuntu requires apache2?

When I wanted to install lighttpd today I added php5 to the apt-get install. But then it would tell me that apache2 and numerous other packages would also get installed. Turns out that instead of php5 I actually wanted php5-cgi. … Continue reading

Posted in EN, Linux, Unix and unixoid | Tagged | Leave a comment

Little annoyance

Lately in Ubuntu 10.04 I got upon login two times the output about the number of packages available to be updated. One of them always outdated. I have long tried to find the reason and finally managed to. The problem … Continue reading

Posted in EN, Linux, Software | Tagged , , , , | Leave a comment

Damn …

Trying to break into my Yoggie Open Firewall Pico via SSH since I forgot the password. Using the current method it will take approximately 41 days and 6 hours to finish around 1.5 million passwords. *gnarf*

Posted in /dev/null, EN, IT Security, Linux | 4 Comments

mydumper – nice alternative for mysqldump

I’m using MariaDB. Now, I had the idea for smaller DBs to use the SQL dump and store that in a version control system such as Mercurial or Git. However, the ordinary mysqldump creates quite unreadable dumps. Since the version … Continue reading

Posted in C/C++, EN, Linux, Programming, Python, Software, Unix and unixoid | 2 Comments

GNU screen to the rescue

So I’m talking to a veeeeery slow device over serial connection. Meanwhile I have managed to talk to it using kermit from within Linux – from within a GNU screen (actually byobu) session to be more precise. The output that … Continue reading

Posted in EN, Linux, Software | Leave a comment

Peculiar problems with mc under byobu

I’m using byobu on a daily basis, but occasionally I also use mc (Midnight Commander). Midnight Commander is a terminal-based two-panel file manager as they became well known with Norton Commander. If you look for a similar solution for Windows, … Continue reading

Posted in EN, Linux, Software, Unix and unixoid | Tagged , , | Leave a comment

XMPP S2S with Google and no TLS?

I’m running an ejabberd instance and it’s configured to use TLS in S2S (server to server) communications. It works perfectly fine with jabber.ccc.de, but Google’s server does not seem to like TLS. Very awkward. First I thought it may be … Continue reading

Posted in EN, IT Security, Linux, Software, Unix and unixoid | 3 Comments

iptables flowchart

Just uploaded a flowchart that shows the order of packet processing in iptables to my downloads. You can find it here. There is the Visio file from which I created it in the same folder, just in case you want … Continue reading

Posted in EN, IT Security, Linux | Leave a comment

Top ten disk space hogs in current folder

du -cks *|sort -rn|head -11|awk ‘{printf “%-8.2f MiB\t%s\n”, $1/1024, $2}’ NB: first item is the total size, so it outputs eleven lines. Update: a better version is this one: du -cks *|sort -rn|head -11|awk ‘{printf “%-8.2f MiB\t”, $1/1024;\ for(i=2; i

Posted in /dev/null, Bash, EN, Linux, Unix and unixoid | Leave a comment

More issues with MariaDB

… but solved. When trying to install WordPress 3.1 as a vanilla installation, it failed: WordPress database error: [Invalid default value for ‘comment_date’] … this got repeated for several columns in several tables and obviously table creation failed. However, WordPress … Continue reading

Posted in Linux, Unix and unixoid | Tagged , , , | 6 Comments

Installing MariaDB on Debian 6 (Squeeze)

Had some trouble installing MariaDB on Debian 6. The system was pretty much a vanilla Lenny (hadn’t used it much that’s why) upgraded to Squeeze only one week ago – and I wanted to install MariaDB instead of MySQL. This … Continue reading

Posted in EN, Linux, Unix and unixoid | Tagged , | 1 Comment

Debian bug 581612

etckeeper (go look it up, it’s very useful) is a tool I use. Now, some behavior in cron changed recently in Debian and apparently also Ubuntu, causing my log files to show the same as fetchmail in the bug report. … Continue reading

Posted in EN, Linux, Unix and unixoid | Leave a comment

fdupes

To remove all but the first of a number of duplicate files in a subfolder on Linux, use: yes 1|fdupes -rd <folder>

Posted in EN, Linux, Software, Unix and unixoid | Leave a comment

Encounter of the third kind

When I flew back to Iceland, there was a guy who literally had a red hat (or fedora) on. Initially I thought I should ask him whether he’s a user of Linux – guessing some “red hat” connection, but then … Continue reading

Posted in EN, Linux, Programming, Software, Thoughts | Leave a comment

DNAT for a Jabber/XMPP service

Problem: you have one external IP and want to run separate services on different hosts behind the router. Here’s a small script to DNAT the router to the host behind it. Netfilter will take care of the return traffic (so … Continue reading

Posted in Bash, EN, Linux, Software | Leave a comment

Byobu on Debian Lenny

Apparently it is possible to use Byobu even on Debian. It was to be expected, as it should be fairly distribution-independent. You need to install screen, python-newt and then you can run: sudo dpkg -i byobu_3.16-0ubuntu1_all.deb Of course the package … Continue reading

Posted in EN, Linux, Software | Leave a comment