Tips&Tricks |
Syntax highlighting of spec files in buildservice web clientMonth ago I had to fix small typo in my spec file and ... no osc command-line tool around ... so I used buildservice webclient. I found that, it can colorize content of spec files in view mode (using syntaxhighlighter), but in edit mode you got clean text. So I created openFate#309852 request. I looked around what could by used to colorize spec file in in-browser editor and I found codemirror js library. I played with it and after while I created simple plugin to colorize spec files - it isn't perfect, but could be improved easily . Check sources and live demo (don't be scarred by virtualbox-ose spec file:). Codemirror library looks realy good and I was surprised how easily could by integrated in to our obs webclient. (Thanks to prusnak for hints...) ... maybe, in the future would be also great to add code completition support and some early pre-checks for spec file.
Virtualbox guest-tools on SUSE LiveCDHi all! Good news ! We will have virtualbox guest tools on our openSUSE 11.3 liveCD (see my request bnc#589416). I already test latest KDE live CD build from http://download.opensuse.org/factory/iso/ and features like : screen resizing, seamless mode, shared clipboards works fine and automatically after boot-up! Check this (~8,5MB) ogv video to see guest additions features.
Cronie daemon in OpenSUSEHi SUSE folks ! Maybe you already know that vixie-cron is used as default cron in openSUSE. Currently there is no chance to push our ~20 patches to upstream (it's already dead), so my suggestion is : switch to cronie. I prepared simple wiki page about this step and also cronie package is waiting for testing in Base:System repo. So if you want test cronie, just add Base:System repo (for opensuse 11.2) : zypper ar http://download.opensuse.org/repositories/Base:/System/openSUSE_11.2/Base:System.repo and install cronie (vixie-cron will be deleted): zypper in cronie
Please let me know your opinions or suggestions :)
VirtualBox : mouse integration and messagebox warningHi SUSE folks ! here are some changes in our VirtualBox package which will be present in 11.2 ls -la /usr/lib/virtualbox/VirtualBox I got many complains from users: "Why virtualbox just silently failed in this case?", so I decide to fix this issue and I add simple messagebox which warn you if you are not member of vboxusers group and if you try to start virtualbox:
-rwsr-x--- 1 root vboxusers 23096 2009-09-30 00:02 /usr/lib/virtualbox/VirtualBox As we use wrapper script /usr/bin/VirtualBox which starts real vbox binary from /usr/lib/virtualbox/VirtualBox, I put check to this wrapper : /usr/bin/id -nG | grep -v -e "root" -e "vboxusers" >/dev/null && /usr/lib/virtualbox/VBoxPermissionMessage && exit So if user is not in vboxusers group or is not root, VBoxPermissionMessage is started. Because of VirtualBox GUI dependency on qt, I wrote this simple messagebox also in qt.
Jackd and lowering latencyMost linux distro's use pulseaudio server, this is great project but not suitable for low latency usage. Jackd is low latency sound server. But if you realy want beat down latency, you must install real time kernel. On openSUSE just type: zypper in kernel-rt an reboot your linux with new real time kernel You could check what is connected to your sound device: fuser -v /dev/snd/* When pulseaudio use your sound card, jackd could not connect to sound device. I think simplest solution is just kill pulseaudio: killall pulseaudio then you could start jackd /usr/bin/jackd -R -dalsa -r44100 -p128 -n3 -D -Chw:0 -Phw:0 -i2 if you fall in to : (1: Operation not permitted) check if your user is on audio group, add lines to limits.conf and relogin your account: # /etc/security/limits.conf # REALTIME support for audio group users @audio - rtprio 90 @audio - nice -5 @audio - memlock 512000 instead of starting jackd from command line you could use qjackctl, this app is realy cool |