Rocking the blogosphere

Archive for the 'FreeBSD' Category

A totally random FreeBSD tip

A totally random FreeBSD tip

FreeNX on FreeBSD

FreeNX is the new VNC. VNC is so…20th century. The performance of FreeNX blows VNC (including TightVNC and UltraVNC) out of the water. FreeNX is the server component. You actually can use the clients from the commercial NX product from NoMachine (NX technology is commercial, but GPL’d which is why we have FreeNX). I’ve been using the Mac client which is pretty good, except that it seems that if a connection fails, I must exit the program and relaunch it; otherwise the next connection attempt will hang.

There is no FreeNX Windows server, but you can connect to a VNC server with an NX client, using an NX server (including FreeNX) as a proxy, thereby gaining a bit of performance from the NX compression and caching. Thus, in some ways NX and VNC are complementary technologies.

This is roughly what it took to setup FreeNX on my FreeBSD 4.10 box. It wasn’t as easy as simply installing the FreeBSD port, but this might’ve been due to the uniqueness of the environment I was using or because my FreeBSD version is a bit old. I may have missed a step or two or added one that isn’t strictly necessary - if you try it and run into problems, let me know and I’ll try to help.

cd /usr/ports/net/freenx
sudo make install

# Create "nx" user
# nxsetup is supposed to do this, but it wasn't working for me
sudo pw user add nx
sudo pw usermod nx -s "/usr/X11R6/NX/bin/nxserver"
sudo passwd nx

# Test user "nx"
su nx

# Create some directories
sudo mkdir -p /var/lib/nxserver/closed
sudo mkdir -p /var/lib/nxserver/failed
sudo mkdir -p /var/lib/nxserver/running
sudo chown -R nx /var/lib/nxserver

sudo ./nxsetup --install --setup-nomachine-key
sudo ./nxserver --adduser marc
sudo ./nxserver --passwd marc


All You Can Meet

OpenCV FreeBSD port

It looks like the FreeBSD ports folks finally sorted out the troubles with the FreeBSD port for OpenCV that I submitted back in March of 2005

Problem Report ports/78473: OpenCV

PearPC and Darwin

So the pager went off again last night and woke me up. While I was waiting to see if a very long bzip operation would resolve the issue satisfactorally, I had a bit of time on my hands….

First, I downloaded PearPC, which is a PowerPC architecture hardware emulator, OS not included.

(Read the article)

This may be the most useful UNIX command ever

http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=leave

or just

man leave

if it’s already on your system. My FreeBSD system had it by default.

Got Zoidberg working

After quite a bit of futzing around, I got Zoidberg working. I had mentioned here that I had installed it, but that the cd command wasn’t working.

Well, here’s what I did…

(Read the article)