urxvt / rxvt-unicode extended | running deamonized and config update

Posted on March 17th, 2007

This article is deprecated. You can find an updated version here.

running deamonized

Just yesterday I presented my urxvt / rxvt-unicode config and promised to check out the deamon mode as it is saving ressources if you have lots of urxvt windows open and increases startup time to nearly zero.

To run urxvt deamonized you first need to start the deamon and fork it to the background with:

# urxvtd -q -f

after that simply start urxvt as client

# urxvtc

The startup options like tinting color and so on are the same as if you would start the “normal” urxvt session. Running urxvt deamonized has at least one big disadvantage: if the deamon is killed or crashes all terminal windows will be gone too as the deamon provides them. As I didn’t have a single urxvt crash the last year I would be heavily surprised if it happened now and will tell you immediately ;)
I suggest putting the urxvtd in the the startup configuration of your desktop environment or, if you aren’t using a complete one but only a wm like myself, to your .xinitrc.

little config update

I just decided to set all options in the Xdefaults and updatet it. There are _no_ options necessary any more for urxvt looking like that any more:

irssi in screen

here the config file:

my Xdefaults

transparent & borderless urxvt / rxvt-unicode with readable colors

Posted on March 16th, 2007

This article is deprecated. You can find an updated version here.

Playing around with my urxvt and Xdefaults config I thought decided to leave them as they are for the moment.

My aim was getting a borderless terminal emulator supporting transparency (if true or via inherit pixmap wasn’t important to me) and, as my whole system is running with unicode, with unicode-support.

I won’t bother you with every step of getting urxvt/rxvt-unicode like that but show a screenshot and present the configs necessary.
But first some important things to know: I achieve the look not only with one config file but a mixture of Xdefaults settings and startup parameters for urxvt/rxvt-unicode. Everything except tinting color and transparency value are set in the Xdefaults, means colors, fonts, aso. With the current settings most fontcolors should be readable on dark and bright backgrounds.

I just read about the possibility of grouping some urxvt terminals in one terminal via the perl extension but didn’t try it so forgive me if it’s not the perfect way of having 4 terminals open on one display at the same time :) I also haven’t tried running urxvt deamonized but I will and tell you about it.

Enough talking, here are the results:

Screenshots:

Here you see urxvt with irssi (irc client), moc (music on console, very nice console based music player) and 4 urxvt on one display. I will present the moc config too when it’s ready.

irssi in screenmoc in urxvt4x urxvt

Config-files:

Here is my /home/$user/.Xdefaults with most configuration for urxvt:

Xdefaults

you have to start urxvt with the following options to get it looking like mine:

# urxvt -tint white -sh 35

libsdl not compiling because of yasm-0.5.0 error installing zsnes

Posted on March 14th, 2007

Problem:

I love playing old SNES games so I use zsnes as emulator. Trying to emerge it I got the problem that libsdl wasn’t compiling (it’s an dependency of zsnes) and aborted with:

./src/hermes/mmx_main.asm:75: invalid argument to [SECTION]
./src/hermes/mmx_main.asm:75: undefined symbol `.note.GNU’ (first use)
./src/hermes/mmx_main.asm:75: undefined symbol `stack’ (first use)
./src/hermes/mmx_main.asm:75: (Each undefined symbol is reported only once.)
make: *** [build/mmx_main.lo] Error 1
make: *** Waiting for unfinished jobs….
./build-scripts/strip_fPIC.sh /usr/bin/yasm -f elf -I ./src/hermes/ -DHIDDEN_VISIBILITY ./src/hermes/mmxp2_32.asm -fPIC -DPIC -o build/.libs/mmxp2_32.o
/usr/bin/yasm -f elf -I ./src/hermes/ -DHIDDEN_VISIBILITY ./src/hermes/mmxp2_32.asm -o build/.libs/mmxp2_32.o
./src/hermes/mmxp2_32.asm:406: invalid argument to [SECTION]
./src/hermes/mmxp2_32.asm:406: undefined symbol `.note.GNU’ (first use)
./src/hermes/mmxp2_32.asm:406: undefined symbol `stack’ (first use)
./src/hermes/mmxp2_32.asm:406: (Each undefined symbol is reported only once.)
make: *** [build/mmxp2_32.lo] Error 1

!!! ERROR: media-libs/libsdl-1.2.11-r1 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call ’src_compile’
environment, line 3571: Called src_compile
libsdl-1.2.11-r1.ebuild, line 160: Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at ‘/var/tmp/portage/media-libs/libsdl-1.2.11-r1/temp/build.log’.

Searching through the gentoo forum and bugtracker I found out that the problem isn’t gentoo specific as some Slackware users also have that problem and it’s caused by the current version of yasm which is yasm-0.5.0. With yasm-0.4.0 everything is just fine.

Solution:

Gentoo users just mask the package with

# echo “=dev-lang/yasm-0.5.0″ >> /etc/portage/package.mask

Users of other distributions have to look in the manpage of their package manager ;)

hf, I’m going to play some “zelda, a link to the past” now :P

complete GNU-software gentoo-laptop and lightweight programms

Posted on March 13th, 2007

Buying a new harddisk with 5400rpm for my IBM Thinkpad X31 replacing the 4200rpm one I had to decide wether simply copying it with dd or reinstalling the whole system. Just copying it is the easiest way and in fact I had _no_ problems with my gentoo installation but there are some points why I decided to make a completely fresh install:

1. I wanted to try -* USE-flags with package based flags in /etc/portage/package.use so there are only packages I really need
2. I already had every config I would need, especially kernelconfig and xorg.conf so there won’t be much configuring work needed to be done
3. experimenting a lot on the system I was quite sure there were at least some packages I wouldn’t need as I already tried running KDE, GNOME and finally Openbox without any “complete” desktop environment and crappy things like graphical login managers ;)
4. >500 packages seemed to be quite a lot on my laptop as my workstation running KDE+beryl has about 600…
5. in the end it would be save to try installing it this way because I always could just change it to my old running system as I won’t delete it on the old harddisk till the new “minimal” system is running

I won’t explain every step on my way, my aim is to present the software I found on my way to a minimal productive system without limitting the range of functions.

First thing was to change the make.conf as I like running an unstable/testing system. I haven’t experienced problems with that so I added ACCEPT_KEYWORDS=”~x86″ to it. Much more important was the next step: adding -* to the USE-flags. As I said my primary aim was setting up USE-flags on a per-package-basis via package.use. Thinking about it there are in fact some USE-flags which still can be set globally activating CPU-features like mmx oder 3dnow. As my thinkpad has a pentium-m i my USE-flags finally were:

USE=”-* mmx nls nptl nptlonly sse sse2 unicode”

Unicode and nls aren’t affecting CPU-features but I recommend setting them nontheless as Unicode support is preferable on most systems…

After installing the base gentoo system and booting it for the first time I suggest doing an “emerge -pve world” and “emerge -pve system” to see which USE-flags would be affected at the moment by the flags, as there are still no per package flags set in package.use. As I didn’t find anything special I needed except wget with ssl, the only thing I did was:

# echo “net-misc/wget ssl” >> /etc/portage/package.use

I suggest doing an emerge -ev system and world at this point for haveing a system with the useflags set enabled. After that run “emerge -av –depclean” to remove packages that aren’t needed any more.

Next step was setting up X which was quite easy already having my xorg.conf on the other harddisk :) Emerging it I needed to set some useflags in package.use as I wanted DRI. As xorg also includes dependencies like xclock and xterm or twm I wanted to get rid of that (I just don’t need it) but in the end I resigned as I didn’t want to edit ebuilds all the time and there is no other way. If you are willing to do that kind of extra work, do it, I wanted to have a running system without editing ebuilds except it was absolutely necessary.

X and GUI software

By now the only thing I did was searching for adequate software. I tried to avoid qt applications and kde/gnome apps as most of them bring in a huge amount of dependencies like kdelibs or half of the gnome package. Here is the list of programms I chose and use. Everyone should do the work it’s supposed to do quite well and till now I don’t miss a thing. I didn’t list things like firefox, thunderbird, and openoffice as they are well known and don’t produce unecessary deps. All programms are extremely lightweight and very fast and don’t lack in funcionality.

Imageviewer: mirage
PDF-reader: epdfview
Text-editor: tea
Filemanager: rox
Sysmonitor: conky
Pager: netwmpager
Terminal: urxvt
Image-editing: gimp

Additional Software:

I also think it might be useful to mention software like pypanel and xchat. Both are very nice if you like having a panel or a graphical IRC client and are lightweight and have many dependencies. One really nice programm I found on my way through portage was Gliv. It’s an imageviewer which uses opengl to render images (try it, its really nice). I liked to use it but its getting kind of slow watching pictures >1mb with the radeon7000 in my laptop so I had to switch to mirage. If your GPU is a little faster (not very hard indeed :P ) you will like it.
If you need a “full” music player you should take look at Exaile. It’s an GTK based amarok clone and quite nice. Another nice app if you need or like a graphical archiving tool is archive.

Conclusion:

I think it was a good decision making a fresh gentoo install. I have about 320 packages now and can do most things I need with my laptop. In fact I don’t miss any functionality atm. One thing I feared was setting the useflags manually could be a lot of work but it was _really_ easy. If you download the package.use you will see that it counts only about 20 entries.

For those who are interested, here are some config files I created. The package.use and rox.conf for example and screenshots of the programs. Conky and netwmpager are seen on nearly every screenshot so I didn’t make seperate ones for them:

Screenshots:

mirageepdfviewepdfviewtea-editorgimpurxvt

Here the config files:

package.use
my rox config
my Xdefaults (for urxvt)

If you are interested in the conkyrc look in the blogpost for the conkyrc ;)

Radeontool-1.5-r3 fails with linux-headers-2.6.20-r1

Posted on March 11th, 2007

## teh problem

I just tried to emerge radeontool to switch the LCD-Backlight of my Thinkpad X31 and got the following compile error:

>>> Emerging (1 of 1) app-laptop/radeontool-1.5-r3 to /
* radeontool-1.5.tar.gz MD5 ;-) … [ ok ]
* radeontool-1.5.tar.gz RMD160 ;-) … [ ok ]
* radeontool-1.5.tar.gz SHA1 ;-) … [ ok ]
* radeontool-1.5.tar.gz SHA256 ;-) … [ ok ]
* radeontool-1.5.tar.gz size ;-) … [ ok ]
* checking ebuild checksums ;-) … [ ok ]
* checking auxfile checksums ;-) … [ ok ]
* checking miscfile checksums ;-) … [ ok ]
* checking radeontool-1.5.tar.gz ;-) … [ ok ]
>>> Unpacking source…
>>> Unpacking radeontool-1.5.tar.gz to /var/tmp/portage/app-laptop/radeontool-1.5-r3/work
* Applying radeontool-1.5-mmap.patch … [ ok ]
* Applying radeontool-1.5-vga-ati.patch … [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-laptop/radeontool-1.5-r3/work/radeontool-1.5 …
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer radeontool.c -o radeontool
radeontool.c:24:22: error: asm/page.h: No such file or directory
radeontool.c: In function ?map_devince_memory?:
radeontool.c:97: error: ?PAGE_SIZE? undeclared (first use in this function)
radeontool.c:97: error: (Each undeclared identifier is reported only once
radeontool.c:97: error: for each function it appears in.)
make: *** [radeontool] Error 1

!!! ERROR: app-laptop/radeontool-1.5-r3 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call ’src_compile’
environment, line 3040: Called src_compile
radeontool-1.5-r3.ebuild, line 35: Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at ‘/var/tmp/portage/app-laptop/radeontool-1.5-r3/temp/build.log’.

## teh solution

just do the following as root:

# ln -sf /usr/src/linux/include/asm/page.h /usr/include/asm/page.h

and it should install without problems. I already posted it to the gentoo bugtracker: http://bugs.gentoo.org/show_bug.cgi?id=170502

hf


design: makequick.com | modificashuns and bugfixes by jesse
bottom