HOW GEEK!

geek notes for advice seekers

Linux

Alvotech Vserver VPS with OpenVPN

Renting a server at Alvotech and thinking about installing OpenVPN? Then follow this tutorial. This tutorial has been done on the default configuration of the Alvotech VPS: Debian 5 64bit, and on Debian 6 64bit. The specs page of the vservers show that TUN/TAP is usable, but when you rent the VPS, no TUN interface […]

, ,

xauth + (X11Forwarding Yes and X11UseLocalhost yes) == Still no Forwarding ?

I was searching for this fix for quite some time. I couldn’t forward X anymore using “ssh -Y” or “ssh -X” on my debian server (i have xauth installed), i was always getting this error: ~$ xterm xterm Xt error: Can’t open display: xterm: DISPLAY is not set “X11UseLocalhost no” was making it working but […]

, , ,

Apache PROXYPASS, NEGATIVE PROXYPASS AND AUTH_BASIC

Today i had to face a weird problem with Apache 2. I wanted to setup a webmail on the SAME virtualhost that i was using to proxy to another host. Here’s a summary of my configuration: <VirtualHost *:80> ServerAdmin sysadmin@localhost DocumentRoot /var/www/folder ServerName localhost Alias /mail /var/lib/roundcube/ <Directory /var/lib/roundcube/> Options Indexes Includes FollowSymLinks AllowOverride All […]

, , ,

ffmpeg-php – error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)

/tmp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zim_ffmpeg_frame_toGDImage’: /tmp/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function) /tmp/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once /tmp/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.) /tmp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zim_ffmpeg_frame_ffmpeg_frame’: /tmp/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function) make: *** [ffmpeg_frame.lo] Erreur 1 To fix this, replace PIX_FMT_RGBA32 with PIX_FMT_RGB32 […]

, ,

Compiling Micropolis (Simcity) on Ubuntu Intrepid (8.10) and Jaunty (9.04)

Update: Starting from Ubuntu Karmic (9.10), Micropolis is in your apt! You need the following: sudo apt-get install libx11-dev libxpm-dev x11proto-xext-dev libxext-dev You also need yacc, it will fail if you use bison or btyacc: btyaccpa.ske:111: erreur: expected specifier-qualifier-list before ‘yyparsestate’ btyaccpa.ske:128: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token btyaccpa.ske:131: erreur: […]

Best Linux graphical editor for large files

You might need a graphical editor to edit large dump files. Most of the graphical editors on linux cannot handle large files, so check out nedit, using it i was able to edit a 17mb file without delay.