Archive for the 'Linux' Category

27
Mar

File image to LVM

lvcreate -n foobar-disk0 -L 5G vgroot
qemu-image convert /path/to/loopfile.img -O raw /dev/vgroot/foobar-disk0


by Al Tobey in Xen user list

17
Mar

Cherokee 0.6.0 relased

The cherokee team just relased version 0.6.0, as higlights:

  • Web based admin interface (cherokee-admin, USE=admin)
  • 20% 25% faster
  • Load balancing
  • Recover mechanism
  • More authentication modules
  • New documentation system
  • Theme support

The new ebuild is already in portage including cherokee-admin and cherokee-guardian. The configuration is totally different so you need to create a new one using cherokee-admin or use /usr/share/doc/cherokee-0.6.0/contrib/05to06.py to export your old config (doesn’t wokrs 100%).

25
Feb

Dell xps m1330 & Gentoo (back from FOSDEM)

Well is my first week with my new laptop (Alice) and i love it… This is only a list of tips/troubleshottings maybe usefull for other :

  • you need a 2.6.24 kernel + net-wireless/iwl4965-ucode for complete out-box wifi support
  • you need alsa-driver-1.0.16 (1.0.15 is in 2.6.24) to mic and sounds works corrrectly and define in /etc/modules.d/alsa :
    • options snd-hda-intel model=dell-3stack
  • If you are using 2.6.24 you need to use >=x11-drivers/nvidia-drivers-169.09-r1 (~x86)
  • If you want sleep/hibernate to work remember acpid & hald in the same runlevel
    • disble power button even handler in /etc/acpi/default.sh becuase it can conflict with hald
  • Some usefull links:

About FOSDEM was great again. I met old a lot of old friends, a few new ones ;) was great to see again Jonita adn Damian, and we enjoy like never in Delirium (the best bar), a lot of beer, girls and chocolat.

10
Aug

Cherokee + Gentoo + Trac micro HowTo

On today’s class we will configure our Cherokee web server to work with Trac :)

You need a system with trac, cherokee and apache-utils(htpasswd) installed (on Gentoo just emerge). We will use cherokee 0.5.6 (0.6.x is very stable so the config file is quite different). Remember to install Trac with FCGI support (on gentoo just USE=fcgi).

  • First we need to modify a bit the trac fcgi interpreter to work on cherokee. We must to bind the fcgi port, in this case to 8000. Edit:

"/usr/lib/python2.4/site-packages/trac/web/fcgi_frontend.py" change "_fcgi.WSGIServer(dispatch_request).run()" to "_fcgi.WSGIServer(dispatch_request, bindAddress=("localhost", 8000)).run()"

  • Now copy the trac cgi to a better location (the location depends on the trac version:

# cp /usr/share/webapps/trac/0.10.3.1/hostroot/cgi-bin/trac.fcgi /var/www/localhost/cgi-bin/

  • And the final step, configure cherokee:

Directory /trac/$PROJ {
Handler fcgi {
ErrorHandler on
CheckFile off
Server localhost:8000 {
Env TRAC_ENV “/var/lib/trac/$PROJ”
Interpreter “/var/www/localhost/cgi-bin/trac.fcgi”
}
}
}

Directory /trac/$PROJ/login {
Auth Basic {
Name “Trac auth”
Method htpasswd {
PasswdFile /etc/cherokee/trac.htpasswd
}
}
}

Request "^/trac/[^/]+/chrome/common/(.*)$” {
Handler redir {
Show Rewrite “/trac/chrome/common/$1″
}
}

Request "^/trac/[^/]+/login/chrome/common/(.*)$” {
Handler redir {
Show Rewrite “/trac/chrome/common/$1″
}
}


Directory /trac/chrome/common {
Handler file
DocumentRoot /usr/share/trac/htdocs/
}

I will explain a bit each section:

  1. We define our URL project, where to find it on our disk and where is the trac fcgi
  2. Use this to have auth on trac. The file is create with htpasswd
  3. 4 and 5 are nice redirectors to server static trac content without using the trac cgi

Remember to set perms on /var/lib/trac/$PROJ, to passwd and svn repos to user cherokee.

Now we have a fast and secure Trac system :)

20
Jul

Conky

I like conky :)

So you can use my config file if you like it.

Conky

29
May

GSoC updates

A blog to follow the GNAP CLI progress :)

24
Apr

The fastest squid redirector :)

ufdbGuard is now in portage (~x86). It is a really fast redirector for Squid. It can use proprietary blacklists or normal blacklists. ufdbguard is sponsored by  urlfilterdb. And of course it is GPL.

You can download the manual here.

It need some testing so enjoy!

23
Apr

GTK dark theme (Murrine engine)

You can download a new dark gtk theme here. It uses the Murrine Engine. It is light and eye friendly :)

Is not finished yet so any improvement is welcome.

I want in orange too the top horizontal line in active tabs, and left vertical line in menu.

12
Apr

GNAP in Google SoC (Road to GNAP^3)

Good news. GNAP have two students accepted in Google Summer of Code.

The idea is to create a Framwork for embedded systems using GNAP. Simple and easy as possible you will create a embedded system that fits your hardware. We have yet a lot of work, so if you can help you are welcome.

ToDo GNAP^3:

  • Crossdev support (SoC)
  • Cisco like CLI (SoC)
  • Live upgrade firmware
  • SquashFS packages (miniPMS)
  • RedHat kernel 2.6.18 (it is sweet stable)
  • UnionFS support
  • Premade profiles for several archs

Our students are Stoile (Philipp) and Alster (Alexandros) and at moment three mentors: Jaervosz, Eroyf and Me.

If you want to help us just ask in #gentoo-gnap (freenode) or in gentoo-embedded MailList.

Congratulations to Philipp and Alexandros!

22
Jan

Microsoft vs OpenDocument (ISO 29500)

The XML MS format for documents can be soon approved as ISO 29500. MS don’t want to lost the opportunity of own the worldwide “open”  standard document.

More info:

- estandares abiertos

- groklaw




del.icio.us

Flickr Photos

IMG_2621.JPG

IMG_2620.JPG

IMG_2619.JPG

More Photos