TunesRemote+ with iTunes configuration

Apr 17th, 2011

I just configured it in my local network. By first open iTunes and go to Edit menu, then Preferences -> Sharing and check the box of Share my library on my local network, plus, check the “Require password” and fill it. That is all for now at iTunes.

Now let’s check the local IP for your computer
For Windows:
Start ->  Command Prompt
ipconfig and look for your local IP (most of times is like 192.168.1.*)

For OS X:
Applications -> Terminal
ifconfig and look  for your local IP (192.168.1.*)

Now download TunesRemote+ from Android Market and open it, if it detects the iTunes automatically is OK, if not use the menu button -> Add Manually. Just put the IP and the password you selected at iTunes. Now look at the sidebar of iTunes and you should see your device, now write the PIN that TunesRemote+ gave you.

Enjoy!

Tags:

How to remove Clockwork mode

Apr 5th, 2011

I have to return mine Android, so I had to remove any crap I had on it, like z4root and clockwork mode, sadly, theres no an explicit way to do it, so I write down how to.

By first, you need root access and root explorer installed.
2) Delete the files “hijack” and “logwrapper“. (/system/bin)
3) Search for “logwrapper.bin” and rename it to “logwrapper“.

This worked at Android 2.2, thanks to the www.droidxforums.com forums :D

Tags:

International Mechatronic Congress 2011

Mar 28th, 2011

Tags:

Compile OTServ under Mac OS X (Snow Leopard)

Mar 16th, 2011

This guide was originally writen by me for Otfans.net. Thanks to GriZzm0 for the cool format he give to the guide :D . This may work with Leopard.

Create the source directory

Start off by creating a directory for our source and navigate to it. In this tutorial we will use the directory ‘~/sources/OpenTibia/OTServ’.

mkdir -p ~/sources/OpenTibia/OTServ
cd ~/sources/OpenTibia/OTS

Downloading MacPorts and setting up the environment

Installing MacPorts

You can download MacPorts for your platform at MacPorts.org. Ports is a package management tool similar to apt and yum in Linux. Mount the .dmg file and follow the instructions to install it.

Setting up the environment

You need to setup the environment to use the packages you will be downloading from MacPorts.

echo -e '# MacPorts varsnexport PATH=/opt/local/bin:${PATH}nexport CPPFLAGS="${CPPFLAGS} -I/opt/local/include"nexport LDFLAGS="${LDFLAGS} -L/opt/local/lib"' >> ~/.profile

Before continuing, to install any packages you need to update MacPorts to the current version using this command:

sudo port selfupdate

Downloading the source

In this tutorial we will download the OTServ trunk, which is not considered to be stable but works very well most of the time.
First we need to install SVN to download the source.

sudo port install subversion

Now we need to download the OTServ source from Sourceforge using SVN and navigate to the source directory.

svn checkout https://opentibia.svn.sourceforge.net/svnroot/opentibia/otserv/trunk
cd trunk

Install packages

Now we will install most packages needed to compile OTServ using MacPorts. The list of packages below is not a full list of packages needed to compile OTServ, but all packages should be dependencies of these and should be installed automatically.

sudo port install automake autoconf libtool pkgconfig libxml2 gmp boost lua

Compiling the source

Compile with MySQL support

Install mysql5, edit ~/.profile and compile the source with MySQL enabled.

sudo port install mysql5
echo -e '# MySQL library pathsnexport CPPFLAGS="${CPPFLAGS} -I/opt/local/include/mysql5"nexport LDFLAGS="${LDFLAGS} -L/opt/local/lib/mysql5/mysql"' >> ~/.profile
./autogen.sh
./configure --enable-mysql
make

Compile with PostreSQL support

Install postgresql83 edit ~/.profile and compile the source with PostgreSQL enabled.

sudo port install postgresql83
echo -e '# PostgreSQL library pathsnexport CPPFLAGS="${CPPFLAGS} -I/opt/local/include/postgresql83"nexport LDFLAGS="${LDFLAGS} -L/opt/local/lib/postgresql83"' >> ~/.profile
./autogen.sh
./configure --enable-pgsql
make

Compile with SQLite support

Install sqlite3 and compile the source with SQLite enabled.

sudo port install sqlite3
./autogen.sh
./configure
make

And done, just run it!

Emesene doesn’t work at Kubuntu installation

Feb 15th, 2011

As I returned to Kubuntu yesterday, I just tried to use Emesene and I got lots of error (releated to some audio shitty) that can be solved installing this package(that are installed by default in Ubuntu installation, but not Kubuntu).

The error is this one (added for positioning this guide at Google to make it more accessible)

Exception
You are using emesene 1.6-dev PPA-r2042 so you’re free to complain here:

http://forum.emesene.org/index.php/board,19.0.html

Check already existing tickets for duplicates first, please.
Traceback (most recent call last):

File “/usr/share/emesene/Controller.py”, line 424, in on_login_successful
self.sound = Sound.SoundHandler(self, self.msn, action=None)

File “/usr/share/emesene/Sound.py”, line 137, in __init__
self.sound = Sound(self.theme)

File “/usr/share/emesene/Sound.py”, line 56, in __init__
self.player = gst.element_factory_make(“playbin”, “player”)

ElementNotFoundError: playbin

Exception
You are using emesene 1.6-dev PPA-r2042 so you’re free to complain here:

http://forum.emesene.org/index.php/board,19.0.html

Check already existing tickets for duplicates first, please.
Traceback (most recent call last):

File “/usr/share/emesene/TreeViewTooltips.py”, line 177, in show_tooltip
self._get_last_status_since(obj.email))

File “/usr/share/emesene/TreeViewTooltips.py”, line 252, in _get_last_status_since
logger = self.view.controller.pluginManager.getPlugin(“Logger”)

AttributeError: ‘NoneType’ object has no attribute ‘getPlugin’

Plus, this ones when openning preferences panel.

Exception

AttributeError: ‘Controller’ object has no attribute ‘sound’

You are using emesene 1.6-dev PPA-r2042 so you’re free to complain here:

http://forum.emesene.org/index.php/board,19.0.html

Check already existing tickets for duplicates first, please.
Traceback (most recent call last):

File “/usr/share/emesene/TreeViewTooltips.py”, line 177, in show_tooltip
self._get_last_status_since(obj.email))

File “/usr/share/emesene/TreeViewTooltips.py”, line 252, in _get_last_status_since
logger = self.view.controller.pluginManager.getPlugin(“Logger”)

AttributeError: ‘NoneType’ object has no attribute ‘getPlugin’

You are using emesene 1.6-dev PPA-r2042 so you’re free to complain here:

http://forum.emesene.org/index.php/board,19.0.html

Check already existing tickets for duplicates first, please.
Traceback (most recent call last):

File “/usr/share/emesene/MainMenu.py”, line 469, in on_preferences_activate
self.config, self.controller.mainWindow).show()

File “/usr/share/emesene/PreferenceWindow.py”, line 162, in __init__
self.sounds_page = SoundsPage(self.config, self.controller)

File “/usr/share/emesene/PreferenceWindow.py”, line 2316, in __init__
self.handler = self.controller.sound

For fixing just write this at the terminal:

sudo apt-get install rygel-gst-renderer

Now enjoy the best messenger-a-like application :P

Configuring LIRC for Windows Media Center Remote

Feb 8th, 2011

Although I have read that is fairy difficult to configure, and things alike that on wikis, but was so easy at here, I think I have luck and it detected it immediately and without any problem, here the easy setup.

sudo apt-get install lirc lirc-modules-source module-assistant

Now on configuration

Windows Media Center Transceivers/Remotes (all) -> None -> DONE!

To test out the controller, is

irw

while doing this, click the keys in your controller and they will appear if it was detected correctly. Here, all were detected.

If you want to make it work with KDE and KDE apps,

apt-get install kdelirc

And configure the keys in System Settings.

Tags: , ,

Great weekend

Feb 8th, 2011

Tags:

Dealing with Debian and Nvidia drivers

Feb 6th, 2011

You need to have closed your X server to make this work.
For 64 bits: Download the needed stuff, nvidia driver, the kernel headers, changing permissions and installing it

wget http://us.download.nvidia.com/XFree86/Linux-x86_64/260.19.36/NVIDIA-Linux-x86_64-260.19.36.run
apt-get install linux-headers-$(uname -r)
chmod +x NVIDIA-Linux-x86_64-260.19.36.run
sh NVIDIA-Linux-x86_64-260.19.36.run

For 32 bits: Download the needed stuff, nvidia driver, the kernel headers, changing permissions and installing it

wget http://us.download.nvidia.com/XFree86/Linux-x86/260.19.36/NVIDIA-Linux-x86-260.19.36.run
apt-get install linux-headers-$(uname -r)
chmod +x NVIDIA-Linux-x86-260.19.36.run
sh NVIDIA-Linux-x86-260.19.36.run

And depending of what desktop manager do you use, you will start it (gdm, kdm, w/e)

/etc/init.d/kdm start or restart //(depends if it is running)
/etc/init.d/gdm start or restart //(depends if it is running)

If it doesn’t run, just run

dpkg-reconfigure xserver-xorg
Tags: ,

Super-mega fast way to setup a media server on Ubuntu Jaunty

Feb 6th, 2011

This guide was copy/pasted from my old weblog and it might or NOT work now.

You need to start downloading ushare and the dependencies

sudo apt-get install ushare

Then

sudo nano /etc/ushare.conf

Or easier

Ubuntu: gksu gedit /etc/ushare.conf
Kubuntu: kdsu kate /etc/ushare.conf

And change the following lines

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=<strong>ANYTHINGYOUWANT</strong>
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=<strong>/YOUR/PATH</strong>
# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
ENABLE_DLNA=<strong>yes</strong>

Then just run it!

ushare -x

Done this and working perfectly with my Playstation 3, should work with other compatible devices as Xbox 360 or TVs.

Java Sound Synthesizer and TuxGuitar on Karmic (probably in newer)

Feb 6th, 2011

This guide was copy/pasted from my old weblog and it might or NOT work now.

Since I upgraded to Karmic Koala I missed using TuxGuitar, I found easier to install Virtual Box with Windows XP and then Guitar Pro 5 to search the guide, but well, I was quite bored this morning, I mean, is 6:52 am and I haven’t sleep nothing yet. So I started to see how make it work and thanks to ZaHACKieL on Ubuntu Forums found out how, and here an easy guide.

First of all, download and install TuxGuitar (if you got installed from repositories, uninstall them and install this) – this is for 64 bits, if you got 32 bits system or the download link on wget didn’t work, download the correct Ubuntu deb package from here

wget http://downloads.sourceforge.net/project/tuxguitar/TuxGuitar/TuxGuitar-1.1/tuxguitar-1.1-ubuntu-amd64.deb?use_mirror=softlayer
sudo dpkg -i tuxguitar-1.1-ubuntu-amd64.deb

Now, we need to get Java Sound API: Soundbanks, I selected the deluxe edition, that have better sound quality and weights a little more (4MB) for others or if the download link is broken, here is the site link. In this same step we will make a move the extracted file to the folder where it belongs to.

wget http://java.sun.com/products/java-media/sound/soundbank-deluxe.gm.zip
unzip soundbank-deluxe.gm.zip
sudo mv soundbank-deluxe.gm /usr/lib/jvm/java-6-openjdk/jre/lib

Now all is installed!

Open Tuxguitar and go to Tools -> Settings -> Sound -> On MIDI Port select: Java Sound Synthesizer.

Now is working; the only problem that you might find is that the timebar on TuxGuitar don’t work as supposed, you can still change the instrument do you want to see but actually, it doesn’t show but I am able to live with that until the bug is fixed (I wish I can), tried with the binary and the Live version of TuxGuitar, none worked.

Dont ask me why Timidity now just don’t appear in TuxGuitar, I don’t have a clue, and now that it is working I don’t care, so no questions about this please!