Archive for Systems

Klik and Breezy

According to this comment, klik now works out of the box with breezy. Followups to this thread.

I haven’t updated to bleezy yet, but this gives me a good excuse when I find some time at the end of the week. Personally, I think it would be brillant if the OSX-like package management became a standard feature in Linux.

Comments off

spellbound, firefox 1.0.4 and ubuntu

For a while I haven’t been able to get spellbound working. Today I got annoyed and discovered the following hint: Re: Firefox & Spellbound & Hoary – Solved.

The following worked for me:

* unzip spellbound\_lib\_linux_1.0.2.xpi
* cd bin/component/
* sudo cp \* /usr/lib/mozilla-firefox/components/
* sudo mkdir /usr/lib/mozilla-firefox/components/myspell
* unzip spell-en-NZ.xpi; rm install.js
* sudo cp * /usr/lib/mozilla-firefox/components/myspell
* finally install spellbound as normal

Comments (1)

Debian, lighttpd and phpmyadmin

Short recipe for getting lighttpd and phpmyadmin to work on Debian.

Lighttpd is quite easy to build for debian. Once you’ve built that apt-get install php4-cgi phpmyadmin. During the install process for php4-cgi, some apache packages might get added. I suggest you remove them, they aren’t needed: sudo apt-get remove apache2-utils apache-common libapache-mod-php4 –purge.

Next step is to edit /etc/lighttpd/lighttpd.conf. Add “mod_alias”, to server.modules and alias.url = ( “/phpmyadmin/” => “/usr/share/phpmyadmin/”)

Finally, add or uncomment the following, making sure to note the bin-path.
fastcgi.server = ( “.php” => ( “localhost” => ( “socket” => “/tmp/php-fastcgi.socket”, “bin-path” => “/usr/bin/php4-cgi”) ) ).

You’ll need to access phpmyadmin via http://server.name/phpmyadmin/index.php. For some reason it doesn’t work without the index.php. Haven’t figured that bit out yet. (server.indexfiles is set appropriately.)

Comments (12)

HostRAID (AIC-7901A ) and Debian, plus Xen and booting of a md root

I meant to post this a while back, but its been sitting in my queue. Back in February I purchase a x335. After some trials I got mpt-status and native hardware RAID functional under XEN. Although, testing the performance is still on my TODO list. Then April I got a x206 to replace a x205. The x206 said it had RAID 1 built-in with linux drivers, and thus didn’t require an additional RAID card. I should have recalled that linux drivers, most often for RAID means Redhat only binary drivers.

Read the rest of this entry »

Comments off

OpenOffice.org2 and Ubuntu

Unfortunately using Debian experimental, which currently has debs for 1.9.108, in Ubuntu is probably a bad idea. So here is a recipe for converting the official RPMs for use on Ubuntu. First thing, make sure java. is installed, otherwise follow this and install jre from backports. Next download OOo\_1.9.109\_LinuxIntel_install.tar.gz. Both these will take a while. (150Mb+). Finally make sure you (apt-get) install alien.

Now you have a couple choices. Either this guide or the modifed script from this comment based on this guide. Personally I used the later method.

Comments (1)

NX, OSX and the ALT key

In OSX the ALT is mapped to Option. When running a X11 application like the !M NX client, things like ALT-TAB, or ALT-MENU wont work unless you add the following to dot-Xmodmap.

Basic method:

keycode 66 = Alt_L
clear Mod1
add Mod1 = Alt_L Alt_R

More complicated method:

! Make the Alt/Option key be Alt_L instead of Mode_switch
keycode 66 = Alt_L

! Make Meta_L be a Mod4 and get rid of Mod2
clear mod2
clear mod4
add mod4 = Meta_L

! Make Alt_L be a Mod1
clear mod1
add mod1 = Alt_L

In order to get this to load automatically, you need to to add something to dot-xinitrc or similar. I still haven’t comfirmed the exact details for this. The more complicate method link about also has a discussion about Customizing Fullscreen X11 on Mac OS X. There also some useful tips about keyboards and mice at these two sites. This guy is also running a similar setup with OSX and FreeNX. I think I probably need a larger screen, as well, to improve the combined Ubuntu-NX/OSX experience. 😉

Comments (3)

Building FreeNX (0.4) on Ubuntu Hoary

From a clean install of Ubuntu/Hoary, I used the following to build FreeNX from source. This also works with Debian/Sarge.

Add the following to your apt source.list and run an update:

deb http://debian.tu-bs.de/project/kanotix/unstable/ ./
deb-src http://debian.tu-bs.de/project/kanotix/unstable/ ./

Install the following build-depends packages:
sudo apt-get install cdbs autotools-dev patchutils autoconf bzip2 zlib1g-dev libpng12-dev libjpeg-dev xlibs-dev libfreetype6-dev libmikmod2-dev libssl-dev libxaw7-dev automake1.9

On Debian sarge you might need this as well:
sudo apt-get install build-essential

Pull the sources (~40Mb):
apt-get source nx freenx.

Build the debs:
cd nx-1.4.0.2; fakeroot dpkg-buildpackage -b; cd ..; sudo dpkg -i *.deb; cd freenx-0.4.0/; fakeroot dpkg-buildpackage -b; cd .. ; sudo dpkg -i freenx_0.4.0-0pre1_all.deb .

Bob’s your uncle.

I’ve got FreeNX working well in a Xen based instance of Hoary using the FreeNX defaults with the !M keys. I’m able to connect from the three !M NX clients I tried: Linux, Windows and OSX. Sound was working with the Windows client, it required the esound daemon. I found this a little chompy, and turned it off for now. I haven’t tried this with the Linux client yet. There are a couple notes here about LTSP and sound that I might investigate at a later stage. Session suspend works, although with OSX it seems you have to kill the X11 server, as the NX client itself refuse listen to the close button.

Its possible to use a similar process for nxclient at:
deb-src http://kanotix.com/files/debian/ ./

Comments (29)

Bash, looping over stdin

I usually forget when install samba for the first time in Debian it pulls the whole /etc/passwd db into the samba passwd TDB. ie:


[nic@base-field:~] sudo pdbedit -L
games:5:games
nobody:65534:nobody
proxy:13:proxy
www-data:33:www-data

Here’s a quick clean out bash scriptlet.


for VAR in `sudo pdbedit -L | cut -d: -f1`; do
sudo pdbedit -x $VAR;
done

Comments (1)

Debian, simscan and qmail

I was using gadoyanvirus with some local modifications, but I was finding it having dfifficultly with Worm.Mytob.DK and viruu zip attachments. Simscan was a quick and easy install and it seems to work perfectly. Here are some notes about installing simscan on Debian. Requires QMAIL-QUEUE patch installed, which is part of the most recent debian packages.

Read the rest of this entry »

Comments (1)

Openbsd: ‘interface groups and pf’

PF and Openbsd keep getting better: MARC: msg ‘interface groups and pf’.


block in on egress from (customer:network)…

….
there is an “egress” interface group now which follows the default routes. This interface group contains all interfaces which IPv4 and IPv6 default routes point to … So, imagine that on your notebook, where you are sometimes on wireless and sometimes on wired network connections – just write your pf.conf so that it refers to the egress group instead of wi0 and em0, and it will Just Work 🙂

Comments (2)