Posts Tagged Linux

The Cherokee Webserver

Cherokee Webserver Logo

Cherokee Webserver Logo

After seeing some of the performance graphs on Alvaro’s blog, I decided to give Cherokee a shot with a project I am working on. The project I am working on has a web browser on kiosk machines, and runs Django on the backend. I was in need of a fast, secure web server. I have always used Apache in the past, and have used Nginx, so I figured I should investigate Cherokee.
Read the rest of this entry »

Tags: , , , , ,

Finding the difference between two files

Ever need to find what you changed between two files or directories? The universal way to find these differences is to use the ‘diff’ command. The diff command is used by most open source projects, and people use it to communicate their changes / bug fixes etc.

Console using diff

Console using diff

Sometimes I find the diff command to be boring. Much like my terminal prompt, I like consoles to have color. The color helps me figure out what is going on a bit quicker. Do get diffs in color, you can ‘sudo apt-get install colordiff’. The resulting output will look like this instead:

Console with color diff

Console with color diff

But there are some people out there who just don’t like consoles / terminals for one reason or another. There is also a GUI based diff tool called meld. You can install meld by running ‘sudo apt-get install meld’. Your diff will now look like this:

Screenshot of meld

Screenshot of meld

That is a brief overview of the tools I have found useful, using screenshots.

Tags: , , , , ,

Groupwise 8 + OpenSUSE 11.1

To use the Groupwise 8 client on OpenSUSE 11.1 x86_64 I had to:

sudo zypper in openmotif22-libs-32bit libstdc++33-32bit

After extracting the package, run ./install and it should work.

Tags: , , ,

Getting started with Xorg development

I am doing some work with thin clients, so I wanted to figure out if there is a way I can replicate what I saw in a kvm demo video (Live migration while the client was playing an HD video). I believe they are using a version of the RDP protocol.

I would like to implement an open source alternative, and I figure that starts with Xorg as the protocol itself isn’t optimal for video apps over the network. So like anyone else, I went and did a git clone of the repo.

The question I have now is: is the best way to learn about how it works to just read the source over and over? The xorg wiki is devoid of most details, and the branch I was looking at (dmx-2) is pretty sparse when it comes to comments. Suggestions?

Tags: , , ,

Ubuntu Device Report: Epson NX400

NX400 printer

This device is a multifunction device providing:

  • Printing
  • Scanning
  • Media Card Reading

Operating System
This was tested on Ubuntu Intrepid Ibex 8.10 AMD64 release with all updates installed.

Printing
Printer configuration dialog
Printing was recognized out of the box. After editing some gimp settings, was able to print photo quality prints to 4×6 borderless.

Scanning
Scanning did not work using current Sane drivers. This printer says it is supported in Linux using the Epkowa driver, and drivers are provided, but not working in Intrepid. Some people have it working in Hardy.

Media Card Reading
This worked out of the box, immediately prompted to open pictures.

Tags: , , , ,

Installing Bazaar Distributed Version Control on SLES 10 SP2

I chose to install from source, the process is (tested on SLES 10 SP2 i386):

  • wget –no-check-certificate https://launchpad.net/bzr/1.10/1.10/+download/bzr-1.10.tar.gz
  • zypper in python-devel python-xml
  • tar xvfz bzr-1.10.tar.gz
  • cd bzr-1.10/
  • ./setup.py install

Now you should be able to run bzr from the command line.

Tags: , ,

64-bit Java browser plugin

We now have flash and java in 64-bit browsers. What are you waiting for?

64-bit java

To install the 64-bit java-plugin:

  • Download the plugin
  • cd /opt
  • sudo sh location_of_download.bin
  • cd /usr/lib/mozilla/plugins
  • sudo ln -s /opt/jre1.6.0_12/lib/amd64/libnpjp2.so
  • Restart Firefox

Also I used Sun Java JRE, which is installed like this:

  • sudo apt-get install sun-java6-jre
  • sudo update-alternatives –config java
  • Pick the one with sun java

Tags: , , ,

Flash 64-bit on Ubuntu Intrepid

Download and install Ubuntu 8.10 AMD64 (or x86_64):
Ubuntu download screen

Download 64-bit flash from here.
Adobe Labs Logo

If you have flashplugin-nonfree installed, now is a good time to remove it as we will be using the labs version:

~$ sudo apt-get remove flashplugin-nonfree

This leaves behind some junk. To remove them:

cd /usr/lib
sudo find . -name "npwrapper.libflashplayer.so" | xargs rm

And now install the plugin:

cp path_to_so_file_you_extracted.so /usr/lib/firefox/plugins

Start firefox and have fun. Pandora.com no longer crashes:

Pandora.com website

And Hulu.com is working awesome:

Hulu.com website

Tags: , , , ,

ECS GF8200A under Ubuntu Intrepid

Bought a new motherboard, everything works out of the box so far except for sound.

For sound I had to:


echo "options snd-hda-intel model=auto probe_mask=1" >> /etc/modprobe.d/options
modprobe snd-hda-intel

Then everything was good. Taken from this thread.

Tags: , , ,

Self Explanatory Perl Code

For some reason I had to ask on IRC what this meant, because it doesn’t google well:


$| = 1;

I don’t know why I didn’t understand that intuitively :) At any rate, the answer is:

LeoNerd: No, it forces the currently selected output filehandle not to buffer its output

Tags: , ,