Archive for the ‘gnu’ Tag

Ubuntu 9.10 serving the PS3… pt 1

Ubuntu 9.10 serving the PS3 and everything involved… pt 1 : MediaTomb
Ubuntu 9.10 serving the PS3 and everything involved… pt 2 : HandBrake
Ubuntu 9.10 serving the PS3 and everything involved… pt 3 : Mashpodder
Ubuntu 9.10 serving the PS3 and everything involved… pt 4 : cron

A PS3 for Christmas this year?… Lets get started. My original plan was to just feed some movies from a server/PC in my basement to the PS3 but things have changed. This will be a multiple part series so I’ll do the best I can to explain it. I’m doing this for my benefit, so I can set the whole thing up again once the next Ubuntu LTS comes out. If I can do this, most anyone else should be able to do this.

Parties involved:
Ubuntu 9.10
A couple of bash scripts

So in pt 1, I’ll be installing and setting up MediaTomb.

The PC involved/Hardware:
MB: Epox: EP 8RDA3+ Pro
CPU: AMD Athlon XP 2400+ (2Ghz)
Ram: 1.5 Gig
Video Card: Nvidia GeForce 4 Ti 4200

Installed from synaptic:(make sure these are installed)
mediatomb 0.12.0

The Idea here is to have Mediatomb serve up some video to my PS3.
The OS on the PC is Ubuntu 9.10 . I installed MediaTomb right from Synaptic. The version in the repo’s is fine. Once installed, go to Applications > Sound_&_Video > MediaTomb. That will launch MediaTomb in your default browser(Firefox). It should look something like this:

Now you need to add which folders you want Mediatomb to scan/serve. At the top of the Mediatomb page you have Database and Filesystem. Click on Filesystem. Now if you have specific folders that you have your media in(video/audio) then specify each folder. Lets say you want to scan the video folder in your home directory. Then under Filesystem, click home > Your_user_name > videos.

Now to start scanning that folder, you click on the plus sign with the little arrows going around it. It’s in the upper right corner of the MediaTomb page.You will now get this page:

I have selected
Scan Mode: Timed – I want it to scan in specific intervals.
Scan Level: Full – I want a full scan.
Recursive: Checked – I want it to scan all subfolders.
Include hidden files/directories: Checked – Yes I want it too.
Scan Interval (in seconds): 1800(default-30min)

Do this for each folder that you want scanned. Now you should be set. If your MediaTomb and PS3 are plugged into the same network and MediaTomb is running, the PS3 will see it and display your Video folder and it’s supported contents. Look around on the PS3 menu’s under Video. You’ll see the MT icon.

Next set up your config.xml file. The location of that file is:
I used gedit to open and edit the file. Type at the commandline:
$ sudo gedit /etc/mediatomb/config.xml
Read through the file. I added ogg support because the PS3 does not support ogg. I left comments in my file above the 2 changes I made for the ogg addition. Also for ogg support, install VLC. It’s involved in the transcoding. VLC is in the repo’s. And turn on transcoding. The transcoding change is also in red.

For preview/thumbnail support, enable ffmpegthumbnailer. Enabling ffmpegthumbnailer is also in red. Then install ffmpegthumbnailer if you haven’t already. I installed it using synaptic.

This is my current config.xml file. All my changes/additions are commented and/or in red. I was going to set up MediaTomb to auto start on start up but I appears that it does that automatically. Maybe because I also installed mediatomb-daemon. I’ve done nothing else make it do this… but I like it.

Part 2 will cover converting DVD’s with Handbrake and the file format for the PS3.

More on the way… I just have to remember what I did. I will rewrite this whole thing on the next install. This install was more of an experiment that worked.

*A little bit of confusion*
If you haven’t noticed, there are two different locations for the config.xml file. One is in your home directory. It’s hidden:
The other location is:
The version that I have installed uses the config.xml file in the etc/mediatomb location. This is also the config.xml file that is used during the auto start when Ubuntu boots. If you open MediaTomb from the command line, The config.xml file in your home directory is used. I’m not using that one. So, just open MediaTomb from the drop down menus and edit the config.xml file located at etc/mediatomb/config.xml and everything will be fine.

* I’m sure I’ve missed something. I’ll add them in and fix my spelling and grammar errors as I go.*

Update: This auto start thing isn’t 100%. I’ve had to reboot on more than one occasion to get it to start on it’s own. I’ll have to look into it more.

Debian Lenny: Installing the Nvidia Driver the Debian Way

nvidia settings

nvidia settings

Debian 5 (Lenny)
Video Card: Nvidia GeForce 7300 GT
Linux kernel: 2.6.26-2-686
Gnome: 2.22.3

The following was done after I set up Debian. See my previous post.

The Nvidia site says I need the 185.18.31 driver.
I’m installing an older 173.14.09…. driver because that’s what’s available in the repos. You can install the 185.18.31 driver the Nvidia way but that’s much more involved. If I’m unhappy with the 173, I’ll do the 185 by hand.

Using Synaptic Package Manager I installed:
nvidia-kernel-2.6.26-2-686 (version: 173.14.09+3+lenny1)
nvidia-glx (version: 173.14.09-5)
nvidia-kernel-common (version: 20080825+1)

Then from a terminal I ran:
$ sudo nvidia-xconfig

That produced this:

Using X configuration file: “/etc/X11/xorg.conf”.
VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
At least one Device section is required.
Backed up file ‘/etc/X11/xorg.conf’ as ‘/etc/X11/xorg.conf.backup’
New X configuration file written to ‘/etc/X11/xorg.conf’

I then rebooted. I got the NVIDIA splash screen during the boot.
Driver install done.

Now from Synaptic Package Manager I installed:
Your resolution should be set to auto which is the native resolution of the monitor. With the next command, you should be able to change that.

At a terminal type: $ sudo nvidia-settings to get to the NVIDIA X Server Settings window (GUI) to adjust settings. Everyones happy…. I hope.

Some problems I have had in the past:
A Monitor out of range error is a HorizSync VertRefresh issue.
If this happens, you will find yourself at an unusable
scrambled screen. Type: ctrl-alt-f1
Now fix it. Open etc/X11/nano xorg.conf and make the
adjustments…or you might have installed the wrong driver. Doh!
Adjust your HorizSync VertRefresh to:
HorizSync 31.5 – 57.0
VertRefresh 50.0 – 70.0

Debian Lenny setup

Ok. A fresh install of Debian Lenny. I used the net install. I started the install and let it do it’s thing. It took about an hour and a half with my connection. I went and watched Bourne Supremacy while it was installing. I’m not going to go over the install. There are a bunch of guides and examples on the net Here’s a link to a quick over view. Remember, you do want the base system and desktop environment installed.

Debian 5 (Lenny) Step-by-Step

First thing I want to do is add myself to the sudoers list. This is how.

Add user(me) to sudoers list. In a terminal type:
$ su
Then type in the root password.
Then type:
# visudo
Now you can add a username to the list.
Under: root ALL=(ALL) ALL
Add:Your_username ALL=(ALL) ALL
Now press Ctrl+X and press Y when prompted to save. Then press enter.
Now you should be on the sudo list.


In a terminal type:
$ su
Type in root password.
Then navigate to etc/apt
then type:
# nano sources.list

My sources list looked like this:

deb lenny main
deb-src lenny main
deb lenny/updates main
deb-src lenny/updates main
deb lenny/volatile main
deb-src lenny/volatile main

I changed to to this:

deb lenny main contrib non-free
deb-src lenny main contrib non-free
deb lenny/updates main contrib non-free
deb-src lenny/updates main contrib non-free
deb lenny/volatile main contrib non-free
deb-src lenny/volatile main contrib non-free

Now press Ctrl+X and press Y when prompted to save. Then press enter.
At a terminal type:
$ sudo apt-get update


In a terminal type:
$ sudo apt-get install ntfs-3g
This will also mount external hard drives formatted as NTFS.


To do this we must add backports. Here’s how.
In a terminal type:
$ su
Type in root password.
Then navigate to etc/apt
then type:
# nano sources.list
Add this to the source list.
deb lenny-backports main contrib non-free
Now press Ctrl+X and press Y when prompted to save. Then press enter.
At a terminal type:
$ sudo apt-get update
Now from a terminal type:
$ sudo apt-get install debian-backports-keyring
Press y when asked.
Now the backports work. Lets install flash.
In a terminal Type:
$ sudo apt-get install flashplugin-nonfree
Press Y when prompted.
Now you are officially a freedom hater. Congratulations.
That’s enough for tonight.

Open Office Writer Auto Complete

My daughter is writing her Christmas list right now. She’s getting an early start. The auto complete is throwing her off so she asked me to turn it off. I said I would as soon as I learned how. So here’s how. Go to TOOLS > AUTOCORRECT…
Then go to the WORD COMPLETION tab. Uncheck ENABLE WORD COMPLETION. Done. She is using Open Office 3.0 . A few pics below.





IBM Linux ad: Prodigy



screenshot gpodder

gpodder is an app that I use daily. I always update my feeds and sync my portable ogg player because I’m attached to the thing. The media player has replaced the radio in my world. I have an adapter for the car and ear buds for everywhere else. Check it out.

website: gpodder

Texas Hold’em Poker

scareenshot pokerth

screenshot pokerth

PokerTH is a Texas Holdem style poker game.

I myself am not a big poker player but I do know a few people that are. I just switched my dad over to Linux Mint 6 on one of his machines. He is tired of his windows machine running like crap all of the time so I figured I’d let him try Mint for a while. Thing is that he likes quite a few games that run on windows. I’ve never been able to get wine to work very well so I’ve been looking for replacement games. One of the games is Texas Holdem Poker and I think that PokerTH will do nicely. It’s fun and runs very well.

It is in the Debian repositories. I’ve installed it on Debian(Squeeze), Ubuntu(8.04) and Mint(5 & 6).

Install through Synaptic or at the terminal type:

sudo apt-get install pokerth

website: PokerTH


screenshot convertall

screenshot convertall

ConvertAll is a conversion program for just about any unit of measurement that you can imagine. I found a similar program many years ago for windows and I still use it at work. I would recommend everyone have this installed on something somewhere.

It is in the Debian repositories. I’ve installed it on Debian(Squeeze), Ubuntu(8.04) and Mint(5 & 6).

Install through Synaptic or at the terminal type:

sudo apt-get install convertall

website: convertall

Serious Red Hat Linux Commercial

You don’t see many if any Linux commercials anywhere. Well, I’m going to link to a few as I find them. Just for my amusement.

Text to Speech under Linux

This was accomplished with a little nudge in the right direction from a Mr Dave Yates…and a few beers.

Parties involved: Linux Mint 5(Ubuntu Hardy), Packages: festival, festvox-kallpc16k.  And some Blue Moon Spring Ale.

Install the above packages. In a text editor, I use gedit, write your text. Save your text. I applied a txt extension to it. Without the txt, festival didn’t find it. Go figure. From the command line type:
text2wave yourfile.txt -o newname.wave. Not sure what the -o is for.  So lets say my text file name is oatmeal.txt. I want to name the wave(sound) file beer.wave. So the command would be
text2wave oatmeal.txt -o beer.wave. The -o is an option meaning save file to wave form. That should land that wave file in your home directory. That should do it.