Meta
December 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Blogroll
IP info
Programs
Category Archives: Linux
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
Network interfaces on cloned (KVM) VMs
Yesterday I was cloning a few KVM VMs and to my disappointment the clones did not have an eth0 but rather got an eth1 and clones of clones would actually get eth2 and so forth. Because my /etc/network/interfaces referred to … Continue reading
Posted in EN, Linux, Unix and unixoid
Leave a comment
cvsnt [server aborted]: Couldn’t open default trigger library: No such file or directory
To my surprise I noticed CVSNT is now only available for money (and compared with my other development tools for a lot of money, so I’ll stick with Mercurial which comes with plenty of better features for which I would … Continue reading
Argh … must suppress hateful thoughts …
Great, looking for flex any web search is now tainted and will actually return results for Adobe Flex. // Oliver
Posted in EN, Linux, Programming, Unix and unixoid
2 Comments
ecryptfs and sshd, again
In January I described an issue with ecryptfs and sshd. Now I wanted to get X11 forwarding to work with it, but the problem essentially remains the same. All I got this time was: /usr/bin/X11/xauth: timeout in locking authority file … Continue reading
Posted in EN, IT Security, Linux, Software, Unix and unixoid
Tagged Linux, sshd, ubuntu, X11, x11 forwarding, xming
4 Comments
Not Valgrind, CDPATH
The problem I described just yesterday (here) seems not be to with Valgrind in particular. Today I was trying to build the file(1) utility and mysteriously failed with the same symptoms. So that made me curious. Apparently the cd command … Continue reading
Posted in EN, Linux, Programming, Unix and unixoid
Tagged autoconf, automake, bash, debian, file, Linux, valgrind
Leave a comment
Getting Valgrind to build on Debian 5.0.3
I’ve been trying this already several times over the last three months, but always failed to build the latest Valgrind from sources on my Debian box. At last I had success. The problem appears to be that for some unknown … Continue reading
Posted in EN, Linux, Programming, Unix and unixoid
Tagged autoconf, automake, Linux, valgrind
3 Comments
Annoying use of GNU make
Whenever I download some source code and find that the respective maintainer/author has a Makefile or makefile inside the source tree but requires GNU make specifically I can get really annoyed really fast. Dear maintainer/author: there are literally dozens of … Continue reading
ecryptfs and sshd …
I just made a discovery on the Ubuntu box I run. After being unable to log into it using SSH and my public key which it refused with a laconic Permission denied (publickey), I tried to dig deeper. So obviously … Continue reading
Lesson learned
Today I was trying to treat an SVN dump file with sed in order to modify a few of the Node-path values. After finding out that GNU sed has no problem with binary files, I went on to formulate the … Continue reading
Little changes with big effects …
I’m using screen more and more, but this night I ran into a problem I hadn’t anticipated. I was trying to establish SSH sessions inside “pre-created” windows (using a specific screen profile). Now I wanted to automatically call an initial … Continue reading
Posted in EN, Linux
Leave a comment
Screen and byobu
So far when using screen I was always using very simple steps and using the simplest features. But given that PuTTY doesn’t feature tabs, it’s pretty cool what you can do with screen. You can either start one or multiple … Continue reading
Posted in EN, Linux, Software
Leave a comment
Nested GNU make files …
Sometimes you want to build potential goals of nested make files, i.e. make files that reside in a different folder. The best method I’ve been able to come up with so far was this one: # Declare some (immediate) constants … Continue reading
Posted in EN, Linux, Programming, Software
Leave a comment
Slay ’em!
Today I found a highly useful tool called slay. It allows one to kick all processes of a particular user. So if I wanted to kick user joe I’d say: slay joe // Oliver
Posted in EN, Linux
4 Comments
Maybe helpful for others …
Check out this comment to an old post about the WD MyBook World Edition. Maybe it helps you as well. // Oliver
Posted in /dev/null, EN, Linux, Programming, Software
Leave a comment
Ubuntu giving me a headache
If we consider the scenario where you want to grant only remote access to an account (e.g. user) and know you will only do this via SSH and using key-based authentication, it makes sense to lock the user account for … Continue reading
Posted in /dev/null, EN, Linux
Leave a comment
Wow, GCC is pretty patronizing …
Trying to compile the following code in GCC yields an error: #define __dbgprintf /##/ The error reads error: pasting “/” and “/” does not give a valid preprocessing token. As far as C99 is concerned, this should be perfectly valid … Continue reading
Posted in /dev/null, EN, Linux, Programming
Comments Off on Wow, GCC is pretty patronizing …