Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

January 13 2010

little bash helper: mkcd

mkcd - mkdir & cd directly into it

phaidros@42:~/ #$ echo 'mkcd() { mkdir -p "$@" && cd $_; }' >> ~/.bashrc
phaidros@42:~/ #$ . ~/.bashrc
phaidros@42:~/ #$ mkcd /path/to/a/new/folder/
phaidros@42:/path/to/a/new/folder/#$ echo "Well done :) !"

Little, easy, damn useful.
We give back to the connected funk-haeusers!

December 30 2009

aptitude search in package descriptions

List all packages containing the words route or routing in their description:

aptitude search '~drout(e|ing)'

List installed packages that are not official Debian packages:

aptitude search '~S~i!~Odebian'

List packages installed from experimental:

aptitude search ~S~i~Aexperimental

List packages with 'ruby' and 'gtk' in their names:

aptitude search 'ruby gtk'
aptitude search ~nruby~ngtk

List installed packages that depend on bash:

aptitude search ~S~i~Dbash

Purge all packages that have been removed except for their config files:

aptitude purge ~c
Sponsored post

December 04 2009

xm console not working (blank)

xm console not working (blank)

on some xen domUs I recently figured that the xm console didn't come
up. so investigating the issue I found out that you gotta set the
tty in the machine's config like this:

extra       = 'xencons=tty1'

but still I get a blank screen instead of the login. solution is simple,
for systems still having an inittab (eg. debian) look for the following

nano /etc/inittab

1:2345:respawn:/sbin/getty 38400 tty1

for systems which utilize upstart already (ubuntu) look for another file:

nano /etc/event.d/tty1

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

exec /sbin/getty 38400 tty1

makes the xm console work on all my machines again.

November 09 2009

Unable to boot - please use a kernel appropriate for your CPU

if you are using virtualbox and seeing this:

This kernel requires the following features not present on the CPU:
Unable to boot - please use a kernel appropriate for your CPU

or the like, it could be you are trying to run an *buntu server kernel.
just enable PAE/NX for the vm guest. this should solve the issue.

June 21 2009

OpenWrt as Xen instance

preparing the guest system

you need to put following

  1. /etc/preinit

    • add "mknod /dev/hvc0 c 229 0"
    • before "exec /sbin/init"
  2. /etc/inittab

    • add "hvc0::askfirst:/bin/ash --login"

in the domU.conf, aside the usual settings:

  • disk = ['tap:aio:/path/to/openwrt-x86-ext2.fs,xvda1,w']
  • root = '/dev/xvda1 rw'
  • extra = "console=hvc0 init=/etc/preinit"

June 08 2009

mailman, again.

as I did, you might also wonder if mailman is capable of running on multiple domain names with a single instance.

yes it is, easy. configure mailman for your default host and for the next ones, just add the following line to /etc/mailman/


add a vhost for your webserver to point to the mailman. nicely you can add now (with the sooperdooper password) new lists via webif.

now the wondering point: your new list will still be listed on the webif of the default mailman host. I tried to patch mailman, as I remembered it was not a feature offered upstream. by reading the code, I just wondered, that there is a comparison alread done if the list belongs to the web url. well, all you need to do is changing the web_page_url variable of your new list of the virtual domain, because by default all new lists belong to - who guessed - default host. easy thing:

bin/withlist -l -r fix_url listname -u

well, now it just shows up onlt on the webif of the vhost it belongs to, ez, eh?

June 06 2009

how I dreamed about a new system

ubuntu stable sucked, so I just went alpha!

grep -r jaunty /etc/apt/sources.list* | grep -v "#" | gawk {'print $1'} | sed 's/:.*$//' | xargs sed -i 's/jaunty/karmic/g

set all used apt sources from jaunty to karmic.

sudo aptitude update
sudo aptitude dist-upgrade    

for a t41p (or other harware using Rxxx ATI card) follow the instructions here:

get your card running. nice, latest DRI, and works. (don't forget to:

aptitude install xserver-xorg-video-ati


I then again got troubles with supend/hibernation. so tetzlav pointed me once moar to uswsusp.

sudo aptitude install uswsusp
s2ram -f -p -m

for suspend to ram.


for suspend to disk. roxx!

and, well, still splash was buggy. kick it. now I got radeonfb used for 1440x1050 on console

nano /boot/grub/menu.list

add the following to the line with #defoptions (do not remove the '#', remove all other vga= or video= settings)

vga=835 video=radeonfb

so, that to work, you must edit /etc/initramfs/modules. just add


fb_ddc is used to detect the screen resolution, i2c is needed by it. radeon, of course ..

now get your changes into place

sudo update-grub
sudo update-initramfs -u -k all

reboot, see, suspend, wake up .. \o/ ..

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.
No Soup for you

Don't be the product, buy the product!

YES, I want to SOUP ●UP for ...