Linux.com

Community Blogs



Compiling Boxee 0.9.11.5777 on openSUSE 11.*

Having used Miro before, I liked the ability to play videos from different sources in a single program without having to visit every site. Miro was recently updated to version 2.0 and I could not find an RPM for openSUSE 11.0. The Packman repository had and RPM for 11.1 and not 11.0  :-(. Attempts at compiling from source failed..

News about Boxee everywhere. I decided to give it a try. Took a while to get it right.  Posting my experience here.

Download

Download boxee source rev 0.9.11.5777 from boxee.tv. Requires registration. Usage requires registration anyway!

Build Requirements

glew and glew-devel
libmad-devel
libtre-devel
SDL_image_devel
SDL_mixer_devel
libbz2-devel
fribidi-devel
lzo-devel
sqlite3-devel
libmysqlclient-devel
libjasper-devel
libcurl-devel
libhal-devel
cmake
nasm

and maybe more.. autoconf..etc., Install missing ones using YaST . An rpm -q package name will tell if it is installed or not.

Compile

Move to the downloaded folder. Uncompress and untar using

#in my case

cd /home/vimal/Software

tar -jxvf boxee-0.9.11.5777-src.tar.bz2

cd boxee-0.9.11.5777-src

#since there was no configure script present, I did an autoconf to generate it

autoconf

#i could only compile and run Boxee from the current folder. I could not get it installed in the final step. Hence, did not specify --prefix to configure

#run configure now
./configure

#followed by make
make

#and make again!
make

#for  reasons unknown, Boxee was not compiled in the first make. There were no errors either.  Issuing make again fixed the problem. This was an accidental find!

At this point the Boxee binary should exist in the directory and it can be launched by

./Boxee

Notes/Tips

  1. It takes a really long time to compile. If you have a dual core cpu, make -j2 really speeds up the compilation. This tip was from the README. 
  2. I disabled vertical sync. Otherwise, the response was very slow. This can be set from within the program under
    Settings ->Appearance->Screen
    or by editing ~/.boxee/UserData/guisettings.xml
    change  value under to 0
    0
  3. Fullscreen and windowed mode can be toggled using \ 
  4. If you have a Wii, and bluetooth on your PC, you can use the wii remote with Boxee. Check out http://antrix.net/journal/techtalk/boxee_wiimote.html

 Boxee in Action

 

No Gaming on Linux.com?

I've noticed a distinct lack of gaming sections on this site.  Sure, the Linux gaming scene isn't exactly thriving, but then those who do use Linux for gaming haven't got an appropriate section.

The areas I'm referring to are the Software Directory and the Answers section, particularly the latter as there are so many other categories.  In fact it's almost notable by its absence.  The only place which does have a place for games is the Forum, where it appears to be one of the busier topics.

The Software Directory really could do with it so we can build a list of what games are actually out there that are natively compatible with Linux.  And while we're on the subject of the Software Directory, it could really do with subcategories.  I've added PostgreSQL to the Applications section, but someone may be looking for a disk partitioner.  They aren't really related, yet they are in the same section.  Plus, Applications is very generic, and probably needs replacing with several other sections.

Unfortunately I have no experience of Joomla (which is what this site appears to be based on), so I'm not sure how configurable it is.

 

Checking out Linux.com for the first time.

All I can say is, great job with the new site.  Linux.com is finally the portal to Linux that it should have been over a decade ago. 

Thanks!

 

Windows 7

A few boring hours today so I decided to give the Windows 7 RC a shot. I've never really used Vista and while I use Win XP at work, this was all a rather new experience to me. Since it is currently free-as-in-beer until March or so (which is a looong time in the beer world) I didn't feel that bad about embracing the monopolists for a short while.

 So after roughly an hour of installation including partitioning and updating I  booted into Windows 7. Frankly, my first impression was that it seems pretty good. I know there's been a lot of flaming over this, but the interface reminds me a great deal of KDE4 and that's entirely a good thing in my book. Still haven't figured out how to disable that annoying double-click-to-do-anything feauture though. 

First problem: No sound. Woo, 

I've heard a lot about it looking and feeling similar to KDE4, and since I've been following that project for quite some time 

 

Wont be good

With new Linux.Com we got many opportunity for share our experiences. Blogs, groups, submitting articles. all of these good. But one thing about the site will be problem. "Guru Wars" because some of pll want the rewards so badly, they can simply take every unneccesary steps for being number one. This kind ranking systems can be huge problem for our community.

Make c/p and post unlimited blog entries

Join all groups

Be everyones friend

Send some sort answers to all topics at the forums(yeah, gg^^, yow yow)

and be number one! Linux.Com can continue this race, but they must make some changes for the  safety of our minds :D First of all they should close the ranking system to members with this ppl wont know whats their status. Second they should remove guru status from the main page. I really dont care whose ranking better. If they are good i can read their work by myself.

Your Fan

Ceyhun Alyesil

 

Keyboard shortcut for Gwibber

I've recently joined Twitter and its great! I installed Gwibber and its a nifty client. Being the rodent averse person I am, I had to find a way to have a keyboard shortcut for this trivial task. So, what did I do? I wrote this:

#!/bin/bash

ppath=/usr/bin/gwibber
prg=Gwibber
prgstr=gwibber
if [ -z "$(ps -eaf |grep -i $ppath|grep -v grep)" ] ; then
    nohup $prgstr &
    sleep 1
fi
[ -z "$(wmctrl -l |grep -i $prg|grep -v grep)" ] && $prgstr
wmctrl -a "${prg}"

This launches Gwibber if its already not running. Otherwise, it just brings the window to the foreground. Best part of Gwibber is, it ensures you only have one instance running so this works even when Gwibber is iconified on gnome-panel.Bless you wmctrl

My HP Laptop had an "Information" key which was lying idle. So, I fired up "xev", got the keycode, assigned it to a virtual key (F21 in this case) and attached the above script to it in Compiz! So now, I just need to press one key to check my Twitter feeds :)

 Next step, modify it to work as a toggle key...

 

Congratulations Linux.com!

Well i think this website its quite impressive and renewing. More interactive and openminded. Well done!
 

grnotify in den Jaunty Quellen

Die Vorgeschichte: Neben Linux besitze ich noch eine weitere Sache des WWW, welche mich sehr interessiert und wo ich mich auch etwas auskenne: Google. Da liegt es nahe, wenn man versucht diese beiden Sachen zu kombinieren. Da ich mich, wie bereits erwähnt, sehr mit Linux beschäftige, lese ich jeden Tag etliche Nachrichten und Blogs mit Linux als Themenschwerpunkt - und das an verschiedenen Standpunkten. Also brauche ich einen Feedreader im Web: der Google Reader.

Die Programmvorstellung: Diesen kann man sehr leicht und sehr gut mit einem Linuxdesktop verknüpfen: das in den Ubuntu-Quellen enthaltene Paket "grnotify"ist ein Applet, welches sich so lange ruhig verhält, bis es neue Feeds gibt. Diese kann man dann aus dem Applet heraus öffnen. Das geniale daran: es prüft die Anzahl der ungelesenen Feeds vom Google Reader. Also kann man auch im Google Reader Feeds lesen und bei der nächsten Abfrage verringert sich die Anzahl der ungelesenen Feeds in grnotify. Hat man also 10 ungelesene Feeds und öffnet fünf aus dem Google Reader heraus, weiß auch grnotify, dass es nur noch fünf ungelesene gibt.

 Das Problem: In der Version die in den Jaunty Paketquellen enthalten ist aber gibt es mit grnotify ein Problem: Es will nicht mehr starten. In der Fehlermeldung heißt es, das Modul "GoogleReader" würde nicht gefunden werden, es ist aber da. Ob es ein Bug im Programm oder in Python ist, ist mir nicht bekannt, aber wie man es umgeht: Man nutzt einfach eine ältere Version, da das Programm schon immer zum Feedabrufen gedacht war, funktioniert also auch eine ältere Version, und sogar noh besser als die Aktuellste: sie startet nämlich. Auf  gnomefiles.org gibt es diese funktionerende Version von grnotify. Die Versionsnummer (1.0.2) zeigt: sehr nahe an 1.0, also bestimmt stabil. Kann ich nur bestätigen ;-).

Viel Spass

 

Fsniper

Fsniper is a tool to watch for files, and execute commands on them. It can be aquired by anyone running archlinux via these commands

 wget  http://aur.archlinux.org/packages/fsniper/fsniper/PKGBUILD

sudo makepkg -i

 

and that's it. Installed. To start fsniper use the fsniper binary. This will start in the foreground by default, which negligates it's use. Instead of executing it with a "&" appended, we just use the --daemon option. This executes it as, you guessed it, a daemon. Don't execute it yet though, as we have no configuration file

Fsniper uses one configuration file, located in ~/.config/fsniper/config. It  has a very simple structure, but it is a bit littered with curley brackets, so be carefull. Here's the layout:

  watch {

                Directory/you/want/to/watch {

                                 files {

                                       handler = comand you want to execute on file

                                  }

                  }

}

 

The files can be defined via name or mime type. The program takes wildcards (* and so on) aswell as enviroment variables. For the handler, "%%" is the full file path, while "%" is just the file name.

  As you can see, it's a simple setup, but hugley usefull. Here is my configuration file:

 watch {

                $HOME/bin {

                                * {

                                               handler = chmod 755 %%

                                 }

                  }

                $HOME {

                                 Desktop {

                                                    handler = rmdir %%

                                 }

                 }

}

The first one makes every new file in my bin directory executable, and the second one deleats the Desktop folder everytime it is created (kde desktop keeps making one)

 

I can't see much more to say about fsniper apart from one thing, DON'T use it on file types you are likly to download with firefox (*.tar.gz, *.zip, *. jpg ect, ect,) as they are first put into a *.*.part file, while a seperate *.* file is created, meaning that the *.* file is acted upon, but before it has had any data inputed into it from the *.*.part file.

 

Youtube-audio

Over the past few weeks, I've been working on a script that downloads files from youtube, and then extracts the audio from them. Well, it dosn't actualy, it just acts as a wrapper for several different programs that actualy do the work. It adds several fetures though:

Interactive execution 

Search function

Tagging

Previews

Renaming and moving files

 Its dependencies are:

 youtube-dl - actual downloads the .flv files

pacpl - encodes the files

id3 - tags the files

 All of these can be install via one command on archlinux systems:

 sudo pacman -S id3 youtube-d; yaourt -S pacpl

once you have done that, you need to get the actual script. For this, we use git (pacman -S git) to download it. Once that is installed, we can fetch an up to date copy with the following comand.

git clone  git://github.com/bluepeppers/Youtube-audio.git

Once that has been done, you will have a new folder called Youtube-audio in your current directory. Inside that will be another file called youtube-audio. That is the actual script. You can copy that to your personal bin directory, or if you want it to be acceseible globaly, to /usr/bin. Just remeber to make it executable with chmod 755.

 Once that has been done, we can actual use the program. To execute it, just type youtube-audio into a comand line (Gui coming later). You will be asked if you want to enter the url of the video you want, or want to search for it. I suggest searching. You will be prompted to enter your search queary, and a list of the top 5 results will apear. After that you will go though a dialoug that will let you tag the file, rename it, and move it to some where apropriate. The program is still very immature, so let me know if any finds any problems.

 

Galiza-Linux

¡Benvidos a Galiza-Linux!

Un novo blog no que impulsar a expansión de Linux en galego.

 
Page 118 of 132

Upcoming Linux Foundation Courses

  1. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
    Details
  2. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details
  3. LFS430 Linux Enterprise Automation
    13 Oct » 16 Oct - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board