viernes, 19 de junio de 2015

IR Remote - Configure any TV Handler

IR receiver Pinouts
IR diode/receviver - VS1838B (1838 requires a resistance between Vcc and Signal)
1 -Left - Signal/Out
2 -Middle - GND

3 - Right  - VCC+(3V)

Xinda board with a 1838B (top view) (this board includes a resistance and a led)
1-Left – GND-
2-Middle – VCC+ (3V)
3- Right – Signal/Out

38 kHz carrier frequency
Most IR remote controls use the 38 kHz carrier frequency.

Name of basic keys

List more names of KEYS with:
irrecord --list-namespace | grep KEY

From SSH

(if lirc is executing, stop it with
 sudo /etc/init.d/lirc stop)

irrecord -d /dev/lirc0 /home/pi/mi_mando_tv.conf

irrecord -f -d /dev/lirc0 /home/pi/my_nevir_tv.conf
(-f for raw mode; it was required for my tv handler. it writes more hex codes for each key) 
(irrecord will ask to press many buttons, have patience because it is a quite boring process, after it it will ask for KEY names, enter a previous keyname, press enter, press key in IR handler.)

cp my_nevir_tv.conf lircd.conf

From RaspBMC/Openelect GUI(GUI Graphical User Interface)

 If using RaspBMC, from Menu enter in "Raspbmc Settings", "IR Remote"
Then, verify following options.
"Enable GPIO TSOP IR Receiver" must be enabled
"GPIO TSOPremote profile"=Custom
and it will detect a new lircd.conf file and will ask for reboot. Select "Yes"

From RaspBMC/Openelect GUI(GUI Graphical User Interface)

 If using RaspBMC, from Menu enter in "Raspbmc Settings", "IR Remote"

From OSMC(GUI Graphical User Interface)

By default, it is enabled
Verify from:
"Pi Config"; "Hardware support";
Enable LIRC GPIO support=yes

From  "Remotes", "Browse" and load a config file

My example file, generated with several TV handlers in raw mode(-f)

domingo, 26 de abril de 2015

Android apps Analysis

Internet browsers:

Browser - Version - App file size - RAM used*
-Atlas - 1.30 MB - 40 MB
Desktop/Mobile mode, no autostarts, content filter, works with Has an "Exit" button
-CMbrowser 5.1.80 - 4.29 MB -50MB
It requires few rights and has few autostarts. Works with Also has a "Quit" button
-Firefox 34.0.1 - 41.33MB -88MB
Opensource and powerful but too heavy, moreover it autostart after too many events. it has not an "Exit" button. Available at F-droid
-Lightning - 4.30MB -36MB
Opensource and very light, it requires standard rights. works with Available at F-droid (acr.browser.lightning)
-Opera v14.0.1 (last browser with an Opera engine)
-Opera Mini 8.0.1807 - 5.57MB -26MB
It requires few rights and has few autostarts, moreover it is removed from memory when it is not used.

-UC browser 10.4.1 - 37.83MB
Trustfulness behaviour, it has an "Exit" option but it doesn't work as expected, and it keeps process on memory and even  open TCP/IP connections, why? where?  I consider too dangerous a software with this kind of behaviours.

Internet browsers Notes:
-* Approximated Memory used when  loading
-Firefox for Android/Fennec (APKs)

miércoles, 28 de enero de 2015

beOS - una opción a la sombra

Articulo publicado en Guía de ocio en Asturias nº29 (2ª quincena Abril 2004)

A veces haciendo limpieza en un disco duro uno se encuentra cosas, que dependiendo de la cantidad de años pasados pueden ser más o menos interesantes :)

Licencia CC.

lunes, 12 de enero de 2015

My best opensource IT resources

Free and Opensource resources

map icons  (All or many with Creative Commons license)

Photos and icon/vectors...  (Mix of Commercial and and license info linked to author page)

Typographic Fonts
 SIL Open Font License (OFL) is a free, libre and open source license specifically designed for fonts and related software based on our experience in font design and linguistic software engineering.

Following free fonts include IPA Phonetic symbols:
Download ""
Notes about free fonts and compatibility with non free fonts:
Liberation Sans  - Arial

Liberation Serif  - Times New Roman
Liberation Mono  - Courier New

Howto use new fonts in Windows without administrative rights.


Wikimedia Commons  (a huge database of  freely usable media files)

F-Droid (Android)

martes, 16 de diciembre de 2014

Android free of Google limitations

People trusted in Google because they were afraid of  Microsoft and Apple behaviour.

Having Linux inside of the Android base seemed to be a good point in order to feel free and  many IT professionals, gurus and some even free software fighters were in the first line of the Android army.

However applications for Android are not Linux compatible apps but a Java flavour apps, thus existing free apps for Linux, Maemo,... will not be easily ported to Android.
Furthermore accessing to the Linux layer and its services requires to root the device thus root your device should be a "todo" but it is not always easy and with no risks :(

Even very recognized organizations such as FSFE suggests to root Android

It is a pity that other operating system were not promoted, or bought by the community

An example of these better OS are:
  • Maemo, Meego,Mer  real linux environments and able to run linux compatible code
  • WebOS(from Palm) OS based in linux and apps based on HTML5/Web application

Now, the alternatives to Android/iOS/Windows comes from:
  • Jolla and its SailfishOS,  a phone created by some of the Nokia people, compatible with Linux code and QT SDK. Also able to execute Android apps
  • Firefox OS.
  • Blackberry  and BB10 OS based QNX (linux flavour), and probably the only alternative to phones based in a 100% touchscreen. Apps based in C++/QT, HTML5,...and also able to execute Android apps via the included "Android runtime"

After this overview of current mobile phone scene, see below how to fight against the many lacks of Android:

If you are going to buy an Android phone
Buy a device from the following list of phones with a procedure to root

Avoid using Google Play and use F-Droid repository as much as possible
  Settings, Security, (Device Administration), Unknown sources (check)
F-droid  It can be done even with a device not associated to a google account   and install apk from the Interner browser.

Reset your device
  If you feel that you don't have the control of your device, maybe you installed many apps from google play with 'abusive licenses' and too many rights
  Settings, Backup and reset, (Personal data), Factory data reset
Configure your Android for standalone use (avoid google cloud,etc)
   There are 3rd party software better than that included in Android
      Offline GPS/Maps(OSMAnd, Navit, Sygic, Tomtom..)
      K9 Mail 

Check and Disable things from Google Settings 
Open "Google Setting" app and check all sections.
from Security, disable "Verify apps" (optional)
from Location, disable "Access location"

Disable Location services
 in Settings, Location Services,
   Disable/Uncheck "Location and Google search"  
   There are 3rd party software for GPS and maps such as sygic
   Furthermore you can still using google maps entering your position manually
   and even you can disable it, and enable it only when you need it.

Checks running services/processes
Control what is happening ak paranoiac mode

 from Settings, Application manager, Running, "Show cached processes"
    Google play services(launched by apps)
       Google Analytics services
    Factory mode (required)
    Exchange services (required by SMS)

 from Settings, Application manager, Running, "Show services in use"

Stop apps/processes
Once you know what apps are being executed
from Settings, Application manager, All,

select app and Click "Force Stop"

Disable built-in apps or remove if you are root
from Settings, Application manager, All
-Google Play Music and Books
-Google Search
-ChatON (Samsung)
-Game Hub (Samsung)
-Samsung Account
-Samsung Apps
-Samsung Push services
-Samsung Browser
-Software update (if you are not expecting a new update)

execute free app "Autostarts", and check sections:
 "During Startup", "After Startup", " Wi-Fi state changed", "Power connected", "Connectivity changed",..
(to  disable them, root is required)

execute free app "OS Monitor" to display Android/linux processes, TCP/IP open connections,...

Samsung ROM naming convention

B5330XXAL4 :
XA Austria, France, Germany, Italy, Netherlands, Switzerland, United Kingdom
XW France, Germany, Italy, Netherlands, Portugal, Spain, Turkey, United Kingdom
XX Austria, Belgium, France, Germany, Hungary, Italy, Spain, United Kingdom

ALI4=Android 4.0.4 ICS (2012/9)
BMC2 =Android 4.1.2 JellyBean (2013/3)
BMD2= Android 4.1.2 JellyBean (2013/4)

K 2011
L 2012
M 2013

A January
C March
E May
G July
I September
K November
L December

1 = 1
2 = 2
A = 10
B = 11
C = 12

Root your device

Settings, Developer options
USB debugging(Checked)

App to verify:
root verifier (install from F-droid)

Check XDA developers for information and procedure

Suggested Utilities:

F-droid 0.76
OI Explorer 2.03   (File explorer, not root)
Ghost commander 1.52.2   (Advanced File explorer, apps,...)
All-In-One Toolbox 1.5  (processes, app2sd, filemanager)
BusyBox Pro v19

(Useful but not free as free beer or freedom)
System Tuner Pro  2.1.2 (tasks, root uninstall system apps, terminal, startups,)
Android tuner 0.12.9 (root, uninstall user apps, many tools, root explorer, terminal, firewall,startups,..)
Root Software

ROM Manager 5.5 (free includes ads)
 install ClockworkMod
 ROM download, backup, restore, fix permissions...

martes, 4 de noviembre de 2014

Deploying OS on Rasperry - partitions, filesystems,...

From my point of view, the default raspberry OS images or installation scripts, lack of some useful features, such as:

Deployment from and image
-a bigger fat partition (useful for data exchange; it able to insert this SD in a Windows computer and copy files there)
-additional partition for  data  (having system and data separated, it is possible to have smaller backups containing only system partition)
Deployment from a installation script
 - OSMC (installation script, creates a
     a 1st partition of 242MB FAT32-LBA
     a 2nd partition using the rest of the SD.

So, we can improve the default deployment with the following solutions:
  1. Deploy the standard image on a bigger SD card (default)
  2. Deploy the standard image on a bigger SD card and resize partitions (gparted)
  3. Manual method 1
  4. Manual method 2
    1. Deploy standard image on a bigger SD card
    2. Resize ext partition (decrease from begining) in order to free space after the fat32 partition
    3. Copy or pack (tar) files from fat32 partition
    4. Delete fat partition
    5. Create a new fat32 (lba) partition with desired size
    6. Paste, untar files on fat32 partition

Some examples


fat32 1GB(boot+media)
ext4 7GB(system+media)

SD 16GB 
fat32 8GB(boot+media)
ext4 8GB(system+media)


SD 16GB 
fat32 1GB(boot+media)
ext4 7GB(system)
ext4  8GB(data)

Partition backups on images

Backups to image can be done at partition level, using dd command or graphical tool (i.e Disks in Ubuntu)
To restore an image containing a partition, you have to create a partition on destination disk.
If you are using "Disks" and image size and destination partition have not the same size, it will alert you but don't worry it works.

Checking content of images

sudo fdisk /media/midisco/raspberry_cosas/OpenELEC-RPi.arm-4.0.5.img

Resizing OS from an image


In theory with gparted it is possible to resize fat and ext partitions but it

sometimes can have problems resizing a  fat32 filesystem, it means that partition have desired size but filesystem and available space still having the original size.
-usually works fine with ext2, ext3 partitions

Manual method for fat32 partition

dd partition1(fat32) on a disk

Copy or pack (tar) files from fat32 partition
Delete partition
Create a new fat32 (lba) partition with desired size
Paste, untar files 

jueves, 28 de agosto de 2014

Raspberry Pi - Pimame/Piplay

Piplay 8.0.5beta

Sudo raspi-config (overclocking)
press 'LeftCtrl+Q': quit to terminal   

Map Keys:

Default pasword: pi / raspberry

    PSX-Usb Joystick1 - OK
    PSX-Usb Joystick2 - OK

Neogeo (Final Burn Alpha )
    PSX Joystick
         Plug in port2 psx2usb adapter
         Select: insert coin
         Analog mode: to be able to use Up and down keys
   Audio: OK
         Mpang (Mighty Pang)
         Dino (Cadillac dinosaurs)
         Winjammer CD  (failing)
Final Burn Alpha (Arcade Cabinet and Neogeo emulator)
PSX Joystick (same than neogeo)
     Magical crystals

PSX Joystick
         Plug in port2 psx2usb adapter
     All - OK

Neogeo pocket
  PSX Joystick
     Metal slug 2

   Games cannot be in zip files
   Unzip to folders
   Manually Add game, from roms folder
  Audio: OK
  Joystick ¿failing left and right arrows??

Games cannot be in zip files
Unzip to folder

Games cannot be in zip files
Unzip to folder

Turbografx 16

   Failing, nothing is displayed in screen

pcsx-reARMed (PSX)
   Menu is not properly displayed
   Bios missing warning
.iso, .img, .bin/.cue or .mdf/.mds
.ecm file. These will not work in this emuator, but can be 'un-ECMed' by using the utility software unecm

   Bios missing warning (Gba_bios)


Mapping keyboard:
pygame module to work with the keyboard
KeyASCII ASCII      Common Name
K_BACKSPACE   \b      backspace
K_TAB         \t      tab
K_CLEAR               clear
K_RETURN      \r      return
K_PAUSE               pause
K_ESCAPE      ^[      escape
K_SPACE               space
K_RSHIFT              right shift
K_LSHIFT              left shift
K_RCTRL               right ctrl
K_LCTRL               left ctrl
K_RALT                right alt
K_LALT                left alt
K_RMETA               right meta
K_LMETA               left meta
K_LSUPER              left windows key
K_RSUPER              right windows key

lunes, 18 de agosto de 2014

Configuring Raspberry


Common Raspberry configuration
Configuring XBMC
Configuring Openelec
Configuring RaspBMC
Configuring Raspbian
Configuring RiscOS


Common Raspberry configuration
System configuration parameters that would normally be kept and set using the BIOS are now stored in a text file named "config.txt".
Including an example configuration file with comments

Make display smaller to stop text spilling off the screen
## overscan_left
##     Number of pixels to skip on left
File is for passing arguments to the Linux kernel and it can be found in /boot/
i.e   ip=    (Static ip for direct RJ45 cable connect)

Configuring XBMC

-Scrape directories to download art work, information, categories,...
Movie add-ons: filmaffinity,..
Over a folder, set content, select scraper.

-TV a la carta

Manage  xbmc  from an Android and WIFI:
XBMC Remote 
(default port:8080)

Seetings, Services, Webserver, Allow control via HTTP
(default port:80)
(activate in Raspberry)

Configuring Openelec

Network, programs, openelec configuration, Connections

Install addons
Programs, Openelec configuration, Addons
XBMC backups
CU lrc lyrics

Create a backup
programs, openelec settings, system, backup

Configuring RaspBMC

As backup feature is not included, addon XBMC backup can be installed  but it is not working  (tested on ver 2014-06) 
Install/config from Addons, Program Addons
Execute from from "Programs"; but it will not show an icon

SSH from a linux terminal, requires to specify that user is "pi"
ssh pi@x.x.x.x

Configuring Raspbian


multimedia player GUI for omx player

sudo raspi-config
configure keyboard layout
Raspbian on a old CRT TV

A GUI interface using jbaiter's pyomxplayer wrapper to control omxplayer

Required pexpect:
     tar xzf pexpect-2.3.tar.gz
     cd pexpect-2.3
     sudo python ./ install

Installing tboplayer:
From a terminal window open in your home directory type:
     wget -O - | tar xz

There should now be a directory 'KenT2-tboplayer-xxxx' in your home directory. Rename the directory to tboplayer

Open the tboplayer directory and from a terminal opened in THIS directory:


TBOPlayer is developed on Raspbian Wheezy with python 2.7

Useful software for Raspbian:

gmusicbrowser (music browser)
GNOME partition editor (gparted)
tightvnc-server  (launch with vncserver :1) ¿by default port 5901?

From PiStore
Pi-Web-Agent (l/p admin/admin)
sudo /etc/init.d/pi-web-agent start
from local
from remote

Packages from CLI:
apt-get install nmap --no-install-recommends
sudo apt-get install pistore

Configuring RiscOS

Its is not CRT friendly. Default image works with a CRT screen however, Risc OS has a screen resolution is too high for a CRT TV and it is impossible to use the OS.

Configuring OSMC

Install from AppStore:

SSH Server
Samba SMB
FTP Server

Addons from: "Programs" ,"Addons"

default login/password: osmc/osmc

viernes, 4 de julio de 2014

CA Clarity related software (BO, CAPA,...)

CAPA (from Oracle UPK)
Player - Version 11.1.0

Compatible ff 3.6.28

BOXI Xcelsius SP6 (from SAP)
-Ms Office installed
-Flashplayer for IE

Tested with:
Office 2007

BO /Infoview
Logs on the BO server

Address for Query Builder