Mar 31, 2008

That's NOT OSS!

I always see on mailing lists, irc and such forums that people speaks about OSS (Open Sound System), but that's NOT that OSS, if you ever saw a linux (kernel) configurator you may know that if not take a look at these pictures:

So: what are you using that's ALSA's emulation !
as you can see that OSS what is in the kernel only supports a few devices and it's deprecated.
If you want OSS, download it at
OSS is now available in 3 OSI licenses: BSD, CDDL and GPL!

Mar 25, 2008

So true!

On #MPlayer, a guy wanted to play 3GP files, he is using debian..
So he installed amr codecs from source.
As u may know it installs in /usr/local, so we said to him to (re)compile MPlayer.
All done, but when he tried to play any kind of file he gets:
./mplayer: error while loading shared libraries: cannot open shared object file: No such file or directory
OK.. we said him to edit and if /usr/local/lib isn't there.. add it.
After he added it the same problem...
I suggested to run MPlyer like this: LD_LIBRARY_PATH=/usr/lib:/usr/local/lib ./mplayer file
It works...
<iive> portwolf: debian/ubuntu are kind of apple products. If you use apt-get everything is just fine.
<iive> but if you try to step out of the known path you are getting in a world of pain.

That's true!

Opensolaris Developer Preview 2 ( Indiana ) in VirtualBox on Linux with screenshots

Just tried Indiana in VirtualBox on my "testing" (as in just experimenting with it) Debian.
I installed VirtualBox from svn.
What will i do ?
Install Indiana, configure the network and the audio card.

Well, I set up VirtualBox with NAT, Audio enable, gave 4.5Gigs, 57x RAM, and Mounted Indiana's ISO.
I started it:


It takes some minutes to load:


Now it's up, I choosed the default Keyboard layout (US-English):


After it configures devices, mounted some stuff, it gives a login prompt:
NOTE: Don't log in, it will start the graphical environment automatically.


It's up:)


Now let's install it!
Here's the welcome screen:

Choosing the disk, well being in VirtualBox I added only one disk:


After clicking Next we need to set the Time Zone:


Now let's set up the users:


Carefully verify the settings:


HIT Install !
This will take a while.. depending on you machine of course.


Finally done :happy:


Let's reboot..
You can remove the iso, from VirtualBox because it will boot from it, here's the bootmenu now from the disk drive:


Let's boot in, as before when the prompt comes up don't log in.


Finally let's log in:


Here's the default desktop:


There's no driver for VirtualBox' interface, so we need to get drivers from here we need the 13th "ae driver for AMD am79c97x PCNET ethernet chipset series".
Since we don't have internet connection in VirtualBox we need to create an ISO image with the file in it, I used the following commands:
# mkdir drv
# mv ae-2.6.0a.tar.gz drv/
# /opt/schily/bin/mkisofs -J -R -l -V "driver" -o driver.iso drv/

I rebooted Indiana and mounted it in VirtualBox, and started it, it mounted out ISO automatically so i saw this screen after login:


I clicked on it and dragged the contents to the desktop:


I opened a terminal ( right click on the desktop), and cd'ed into it, and executed the following commands:
# cp i386/ae /kernel/drv/
# ./
# modload ae

Well.. NWAM auto detected it.. but I made a reboot.
Let's test the internet:
NOTE: the 'ping' command not works (maybe a VirtualBox bug)


Great, works:)
As you noticed the speaker icon in the top right is crossed, so let's download the driver from
Select "Solaris 10/11 (x86/AMD64)".
After the download finished I executed the following commands:
# su -
# pkgadd -d oss-solaris-v4.0-1015-i386.pkg

Just hit enter and somewhere you need to type "y".
After it has been installed I made a reboot.
I logged in, now at the top right the speaker isn't crossed it must work!:)
So I downloaded an audio file from my NetBSD powered machine:


Fire up rhythmbox from the menu or use ALT+F2 and write it there and press enter.


It plays, so no driver issues, but I heard some garbage sound, on a real system it must work correctly ( this seems a VirtualBox bug too ).

Well that's it, I hope you enjoyed and you will install at least in VirtualBox ;)

More info about Indiana and OpenSolaris can be found at
VirtualBox' website is here:

Mar 24, 2008

Cherokee quick install guide

Cherokee is a "is a very fast, flexible and easy to configure Web Server."
I'll show you how to install and configure in a few steps:

1) Download it:
The current release is 0.6, although it was released on 17 March, there are some bug fixes in the "0.6" branch so I recommend to check out that:

# svn co svn:// cherokee0.6

You can download subversion a.k.a svn with your package manager.

2) Compile it:
There are some tools needed to compile it, being a "quick install guide" I won't tell it :) (if you have some problems with this, you are welcome to post comments)
Let's get started:

# cd cherokee0.6
# ./ --localstatedir=/var --prefix=/usr --sysconfdir=/etc --with-wwwroot=/var/www

You can customise these settings
NOTE: if you want to run php, u must install "php-cgi", not needed for compilation though.
If you want to "fine tune" the installation read ./configure --help

Now run: "make" and if no error occurs , run "make install" that will install it to: /usr

3) Configure it:
There's a binary called "cherokee-admin" with which you can configure quite good your cherokee server, so let's start "cherokee-admin":
If you are running on the same host just type:
# cherokee-admin
If on a remote-host, run:
# cherokee-admin -a
This will bind to all interfaces so you can access it worldwide.
Now point your browser to: if you are running on your host.
This will look like this


Navigate to "General":
Let's set up some things:
Disable ipv6 if you dont need it.
You can create a new user to run it "www" and a group with the same name or run as "nobody" user and "nobody" group (on some systems it's "nogroup")


"Virtual Servers":
NOTE: you can use the default one or you can add one,
I will do it now:
Here we go,
Name = userhome
Document Root = /home/user/public_html
These settings are up to you, let's add it.
Now click on the newly created virtual host


"Directory Indexes" if you want to run a html site put there "index.html" if a php site "index.php", or you can separate them with ",".


Press "submint query"
"Domain Names"
If you have one, type there, or when you will point your browser to your IP it will show
Here we need to add some stuff:
a) Entry: /icons
Type: directory
Handler: static content
Priority: 2
Submit it
Document Root: /usr/share/cherokee/icons/
NOTE: depends on your setup (--prefix=/usr)
Submit again. and click on "userhome"
b) Entry: /cherokee_themes
Type: directory
Handler: static content
Priority: 3
Submit it
Document Root: /usr/share/cherokee/themes/

Now will configure PHP, u can skip it if you dont need it.
c) Entry: php
Type: extensions
Handler: fastcgi
Priority: 4
Submit it.
Host: localhost:1234
Interpreter: the path to your php, if you have in your $PATH you can simply: php-cgi -b 1234, if not you must specify the full path like: /usr/pkg/libexec/cgi-bin/php -b 1234

Submit it!
Add "PHP_FCGI_CHILDREN" as a variable and 5 as a value and press add
Submit it again.
Now click on "Apply", and "Launch" the server!
If everything is OK it must run.
Now let's test it!
In your directory (/home/user/public_html) OR to /var/www (as u defined it) create a file called index.html put in the file these lines:
<head><title>my site</title></head>
<body>Welcome to my new site @ Cherokee</body>
and point your browser to you IP address.

If you dont put index.html, your page will look like this:

Want to know more about Cherokee? check the site:
NOTE: don't send me bug reports ! I'm not developer. thank you

Mocăniţa CFF Vişeu de Sus