Nov 9, 2008

opensolaris graphical boot

Sep 18, 2008

XMMS is back in Slackware!

As you may know XMMS was removed on Mar 15 2007 from Slackware.

But on Sep 11 2008 was re added:

xap/xmms-1.2.11-i486-1.tgz: Added xmms-1.2.11. This is an audio player that
is similar to audacious, but uses about a third of the CPU power.


Well done Pat!

Jul 15, 2008

Boggle For Linux (with Maemo support)

GBoggle is a classic boggle game for GTK+ platform.
you can download it at the official page at http://gboggle.sourceforge.net

Features

* Support for internationalization of dictionaries and alphabets. Currently English and Hungarian are supported.
* Visual feedback is provided on the board for input words.
* Shows missed words at the end of the game.
* Support for maemo platform (Nokia Internet Tablets)

Jun 26, 2008

Confused

I started a thread on desktop-discuss with title "mplayer with sun studio"
I asked them if somebody hacks mplayer to be compilable with sun studio, dennis clarke said that blastwave has it but still not pushed to their repo, ok we asked about the patches, he said that they will pushed to the svn repo too, [...] and he said:

"don't be so whiney about a *free* software package service that tries to *give* you what you need."

if I understand correctly: we do not need the sources, use the software and stfu.

I only wanted to see those patches upstream, my dream is "./configure;make;make install" on solaris without any additional effort.

The funny thing is that in another thread he said:

"I support the open source needs of the Solaris customer."

so, he talks about only the "open source" philosophy not about the actual source, or the patches are not sources or what? don't understand.


PS: I dont like blastwave's repo, but that's another story

May 27, 2008

Egg attack !!

Want to throw eggs at ballmer?

Click here: http://www.egg-attack.com

Quote from the site:
"Live as a CEO is not easy. Especially when your company is Microsoft.
Last week Steve Ballmer was egged by an angry student during a speech at a Hungarian University. Ballmer showed great reflexes and dodged the attack, hiding behind the desk."

May 2, 2008

MPlayer from source with 3GP support on Ubuntu

UPDATE: Instead of amrnb,wb you need to use opencore-amr for now.


* Download the required packages .
# sudo apt-get build-dep mplayer
# sudo apt-get install subversion

* Download MPlayer, MPlayer skin (for the gui), 3GP AMR codecs.
NOTE: we will get the current sources of MPlayer not the stable RC2. It has more features, bugfixes.

# svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
# wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
# wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz



* Extract the files.
# tar xvf opencore-amr-0.1.2.tar.gz
# tar xvjf Blue-1.7.tar.bz2


* Compile and install opencore-amr
# cd opencore-amr-0.1.2
# ./configure --prefix=/usr
# make
# sudo make install

* We can now compile MPlayer.
# cd ../mplayer
If you need GMPlayer (GUI) please use --enable-gui.
For more configuration options see:
# ./configure --help

I will enable GUI this time because I want to show how we can install Skins for it.
# ./configure --enable-gui
After this you can read what will be enabled and disabled, what you will see will be enough.

Now we can compile and install it:
# make
# sudo make install

NOTE: it seems that the current Makefile is broken so the GUI wont be installed we need to execute:
# sudo make install-gui

* Install the Skin and Font.
# cd ..

This will copy the Blue directory recursively to /usr/local/share/mplayer/skins
# sudo cp -R Blue /usr/local/share/mplayer/skins

We need to create a symlink because else MPlayer won't recognize it:
# sudo ln -s /usr/local/share/mplayer/skins/Blue /usr/local/share/mplayer/skins/default

For subtitles and menus we need a font:
So, we create a symlink.
# ln -s /usr/share/fonts/truetype/freefont/FreeSans.ttf ~/.mplayer/subfont.ttf

* Remove the "working directry".
# cd ..
# rm -rf ~/build
NOTE: You can keep this time at least the mplayer directory if you want to weekly checkout the sources and rebuild it.

Now you can enjoy your movies :)

PS: if something is not clean or it fails somewhere, please leave a comment or:
- you can subscribe to MPlayer mailing lists at the MPlayer site
- you can enter #MPlayer at Freenode
mplayervbox

Apr 26, 2008

Install XMMS on Ubuntu ( 8.04 ) Hardy Heron

First: I'm not an Ubuntu user, but I would like to help newbies to get XMMS working on Ubuntu Hardy Heron.
Why: a) A guy entered #xmms on Freenode and wanted to install XMMS on him Ubuntu, so I tried to help him.
b) XMMS is still a good player, and if somebody wants to use it, why not help him?

We will install XMMS from source, but there are alternatives though like:
1) change your distro
2) try gutsy packages

OK, let's start

First Step:
We need to download the required packages to compile XMMS
# sudo apt-get install autotools-dev automake1.9 libtool gettext libasound2-dev libaudiofile-dev \
libgl1-mesa-dev libglib1.2-dev libgtk1.2-dev libesd0-dev libice-dev libmikmod2-dev libogg-dev \
libsm-dev libvorbis-dev libxxf86vm-dev libxml-dev libssl-dev build-essential make

Depending on your internet connection and your machine this may take some minutes.

Second Step:
Prepare the XMMS for compiling
Create a directory in your HOME directory:
# mkdir ~/build
Change the working directory to it:
# cd ~/build
Download XMMS sources:
# wget http://legacy.xmms2.org/xmms-1.2.11.tar.gz
Unpack it:
# tar xvf xmms-1.2.11.tar.gz
Change the working directory to the source directory:
# cd xmms-1.2.11/
Third Step:
Compiling it:
This generates the necessary files, and checks your system:
# ./configure --prefix=/usr
The actually compiling
# make
Fourth Step:
Install it:
# sudo make install
After install we no longer need the source directory:
# cd
# rm -rf ~/build

That's it, now we can run XMMS: press ALT+F2 write xmms there and hit enter and enjoy your music.

NOTE: many people say that XMMS is old, buggy,no UTF-8 support, etc. Yes maybe all is true, but it's an audio player not a media library organizer, so it plays music and you listen, that's all and it does that job.

UPDATE:
Flac Plugin

We need to get the build dependencies
# sudo apt-get build-dep flac

You already know what's this ;)
# mkdir ~/build
# cd ~/build

Get flac's sources
# apt-get source flac

Another well known step:)
# cd flac-1.2.1
# ./configure
# make

It's enough to copy the plugin, not to install the whole flac stuff, this is good if will be flac update, note, an update wont break the plugin.
# cp src/plugin_xmms/.libs/libxmms-flac.so ~/.xmms/Plugins
# cd
# rm -rf ~/build

UPDATE2:
Knuta's Ubuntu & Debian repo

Check out here

hardyxmms

Apr 21, 2008

Nexuiz On OpenSolaris

I knew nexuiz for a while, to be honest it's not my style, but I need something to play here, so I tried to build it, finally I got it work.. if you are interested "howto" follow me:

So, we need to get nexuiz from here: http://alientrap.org/nexuiz

unzip it:
# unzip nexuiz-24.zip

change the working directory:
# cd Nexuiz/sources/

unzip the engine's source:
# unzip enginesource20080229.zip

# cd darkplaces

now, we need to change some files:
1. open `makefile` with your favorite text editor
add `SHELL=/usr/bin/bash` at the beginning, and if you have installed OSS (opensound system) add `DP_SOUND_API=OSS` I added it after `ifndef DP_MAKE_TARGET`
save & close

2. run this command:
# perl -pi -e 's/\bmodel_t\b/lh_dp_model_t/g' *.c *.h
it will replace the `model_t` function with `lh_dp_model_t`, we need this because `model_t` it's an internal solaris function

3. open `vid_glx.c` comment out line 292:
// vid_usingdgamouse = !!vid_dgamouse.integer;
save & close

4. open `snd_bsd.c`
a) comment out line 95
// break;
b) comment out line 197 and add `SndSys_Shutdown ();`
// SNDDMA_Shutdown ();
SndSys_Shutdown ();

5. now we can compile it:
# gmake cl-nexuiz
it should compile OK.

6. move the data files from Nexuiz to our folder:
# mv ../../data .

7. we can now play!

here are some screenshots:
nexuizopensolaris1
nexuizopensolaris2
nexuizopensolaris3

thanks goes to guys @ #alientrap on irc.anynet.org

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:
oss1
oss2

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 http://opensound.com
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: libamrnb.so.3: cannot open shared object file: No such file or directory
OK.. we said him to edit ld.so.conf 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...
Thoughts:
<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:

grublive

It takes some minutes to load:

booting

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

keyb

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

dontlogin

It's up:)

livegnome

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

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

disk

After clicking Next we need to set the Time Zone:

timezone


Now let's set up the users:

users


Carefully verify the settings:

install

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

installing

Finally done :happy:

finally

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:

diskboot

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

firstboot

Finally let's log in:

gdm

Here's the default desktop:

firstlogin

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:

drivercd

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

unpack

I opened a terminal ( right click on the desktop), and cd'ed into it, and executed the following commands:
# cp i386/ae /kernel/drv/
# ./addrv.sh
# 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)

nettest

Great, works:)
As you noticed the speaker icon in the top right is crossed, so let's download the driver from http://www.opensound.com
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:

getmusic

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

rhythmbox

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 http://opensolaris.org
VirtualBox' website is here: http://virtualbox.org




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://svn.cherokee-project.com/cherokee/branches/0.6 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
# ./autogen.sh --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: http://127.0.0.1:9090 if you are running on your host.
This will look like this

ch3


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")

ch4

"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

ch2

"Basics":
"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 ",".

ch1>

Press "submint query"
"Domain Names"
If you have one, type there, or when you will point your browser to your IP it will show
"Behaviour":
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
ch5



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:
<html>
<head><title>my site</title></head>
<body>Welcome to my new site @ Cherokee</body>
</html>
and point your browser to you IP address.

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

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