ETV Services Powered by ETV Services

Fun with mod_rewrite.  

Let's say you have a site with nice graphics on it.. Beautifull pictures.. nice art.. or smileys..
Some people, especialy n00bs with 'profile sites' have a tendency to deeplink to those images..
That is nice for them.. Content on their site for free..
But who pays for the bandwidth ?? you !!

So what to do..
Thanks to the wonderfull apache mod_rewrite it is not that hard to do something about it..
In your main webfolder place a .htaccess file containing something like this:
RewriteEngine On
RewriteBase /

#allow users coming from friendly sites
RewriteCond %{HTTP_REFERER} !^http://(www.|)yoursite.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.|)afriend.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.|)lame.tld/~friend.*$ [NC]

#otherwise, send warning
RewriteRule .*\.(jpg|gif|png|bmp)$ http://etv.cx/yousuckandthatssad.gif

But that's too friendly in some cases..

» Read More

I'd like to watch whatever pr0n I downloaded on my linux box..
I remember having to download QuickTime RealPlayer WindowsMediaPlayer9 etc. to watch movies on windows..
How do I do it on linux ?

First we need a descent player, xine is my choise..
Download a package or install it from your distro..
Or be cool and download the source here..
Install both xine-lib and atleast one frontend..

Now to get them weird codecs like wma, wmv, ra, ram and mov to work..
Go to http://www.mplayerhq.hu/ from the driver section, go to codecs, and download the essential or the all package..
Unpack the contents and move them to /usr/lib/win32

If you are not using mplayer or xine, you might need to change the path to 'Win32 codecs' in your video players config..

Have fun !!
You have found your old linux box..
ah.. nostalgia
you just can't remember that fucking root password..


you could boot from a bootdisk and eddit the /etc/shadow but that's not the nicest way..

on most computers you can give the kernel added options in the lilo bootscreen..

you can use the init= option to set an aplication to be started after boot :D

adding the line  init=/bin/bash rw should boot the puter and drop you into a root console on the read-write (rw) mounted root filesystem..

» Read More

So you've got linux.. now you want some kewl software..

You go to SourceForge or FreshMeat or something

You download the source because all your friends say that
compiling your own binaries gets you a highly optimized system..
plus it makes you 1337 and ub3r and stuff ;p

Now you are proppably stuck with a .tar.gz or a .tar.bz2

» Read More

2005 12 10: easy kernel update

Say you've got your linux system nice and running..
And all of a sudden you surf a site like this
and you seen oh.no!!! A new linux kernel... I just configured my kernel to my liking..

You download the thirty fourty odd megs.. and are stuck with a file..
linux-2.x.x.tar.x
the x's are version numbers and filetypes, wich I'll discuss in a while..
now what to do:

» Read More