Guy Rutenberg

Keeping track of what I do

Archive for the ‘Linux’ Category

NVRM: not using NVAGP, kernel was compiled with GART_IOMMU support

without comments

For the past several weeks I had a strange problem. Sometimes when I booted my computer, it would refuse to start the X server and would give the following error in dmesg:

NVRM: not using NVAGP, kernel was compiled with GART_IOMMU support!!
NVRM: failed to allocate stack!

The weird thing about it is that normally if I rebooted the computer it would magically work again. So this error only showed up once-in a while and seemed to disappear at will. Today, it happened again, so I decided to fix it.
Read the rest of this entry »

Written by Guy

August 2nd, 2008 at 9:24 am

Posted in Linux

Tagged with

rzip vs. bzip2 – A short comparison

with one comment

I decided to benchmark rzip against bzip for my backup needs. The benchmark was performed on a 89M tar archive of a directory which I regularly backup using my Amazon S3 backup script. The directory contains mostly LaTeX, PDF and Open Office files, so this benchmark may reflect very different results than what you will get if you will test it on other kinds of files.
Read the rest of this entry »

Written by Guy

July 3rd, 2008 at 12:33 pm

Posted in Linux,Tips

Tagged with ,

usb 1-4: device descriptor read/64, error -71

with one comment

When I try to connect my Sansa Clip MP3 player to the linux box I see the following error in dmesg:

usb 1-4: device descriptor read/64, error -71

and the device recognition fails. The player’s battery gets reloaded but I can’t mount it and transfer songs.
Read the rest of this entry »

Written by Guy

June 26th, 2008 at 2:28 pm

Posted in Linux,Tips

Tagged with

Start Trac on Startup – Init.d Script for tracd

with 15 comments

As part of a server move, I went on to reinstall Trac. I’ve tried to install it as FastCGI but I failed to configure the clean URLs properly. I got the clean URLs to work if the user access them, but Trac insisted on addeing trac.fcgi to the beginning of every link it generated. So I’ve decided to use the Trac standalone server, tracd.

The next problem I faced was how to start the Trac automatically upon startup. The solution was to use an init.d script for stating Trac. After some searching, I didn’t find an init.d script for tracd that were satisfactory (mostly poorly written). So I went on an wrote my own init.d script for tracd.
Read the rest of this entry »

Written by Guy

June 4th, 2008 at 10:12 am

Posted in Linux,Python,Tips,Uncategorized

Tagged with

Backup Directories To Amazon S3 Script

without comments

This is a small script I wrote today, to automate my backups, which I do on Amazon S3. This is fairly short, yet useful bash script that utilize the s3cmd to do the actual sending of the files.
Read the rest of this entry »

Written by Guy

March 1st, 2008 at 11:12 pm

Posted in Bash,Linux,Projects,Tips

Tagged with ,

Activating Guarddog Settings on Startup

without comments

Like many Linux users, I use Guarddog as a frontend to my iptables firewall. At some point, I noticed that Guarddog started acting strangely. Every time I restarted my computer, all internet traffic was blocked (both in and out). The only way to fix this situation was to open Guarddog and press “Apply” (without doing any changes). While it was annoying, it didn’t bother me much because I used to restart my computer about once a month. But few days ago, I decided to solve this problem once and for all.
Read the rest of this entry »

Written by Guy

February 1st, 2008 at 10:50 pm

Posted in Linux,Tips

Tagged with

Delete Unversioned Files Under SVN

with 25 comments

Sometimes svn switch fails because unversion files exist in the working copy, and the need to erase them comes up. This is also true when updating to an old revision (usually one that misses directories that exist in the head revision), doing some work (like compiling), and then trying to update back to the head revision. Subversion (SVN) will fail complaining that directories/files already exist.
Read the rest of this entry »

Written by Guy

January 18th, 2008 at 1:20 pm

Posted in Linux,Tips

Tagged with

Creating Local SVN Repository (Home Repository)

with 40 comments

In this tutorial I will explain how to create a local Subversion (SVN) repository, intended for a single user. I assume that you already know the benefits of keeping track of old revision of projects or important documents such as a resume or a thesis you have been writing. Subversion offers you a very convenient yet strong method to do so, and the easiest way to do so with Subversion (SVN) is to create a local, home, repository intended for a single user – you.
Read the rest of this entry »

Written by Guy

October 29th, 2007 at 9:39 am

Posted in Linux,Tutorials

Tagged with

spass – A Secure Password Generator Utility

with one comment

spass is a secure password generation tool. spass was designed under the assumption that a password generator is as good as its random number generator, so spass uses the Random class, a /dev/random based cryptographically strong random number generator class. As always, I tried to make the command-line interface as user-friendly as possible (as much as a command-line interface can be friendly).
Read the rest of this entry »

Written by Guy

October 20th, 2007 at 9:22 pm

Posted in Linux,Projects,spass

Tagged with ,

ssh-keygen Tutorial – Generating RSA and DSA keys

with 23 comments

In this post I will walk you through generating RSA and DSA keys using ssh-keygen. Public key authentication for SSH sessions are far superior to any password authentication and provide much higher security. ssh-keygen is the basic way for generating keys for such kind of authentication. I will also explain how to maintain those keys by changing their associated comments and more importantly by changing the passphrases using this handy utility.
Read the rest of this entry »

Written by Guy

October 5th, 2007 at 12:32 pm

Posted in Linux,Tutorials

Tagged with