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

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


Name of basic keys
KEY_PLAY
KEY_STOP
KEY_PAUSE
KEY_ENTER
KEY_LEFT
KEY_RIGHT
KEY_UP
KEY_DOWN
KEY_MENU
KEY_EXIT
KEY_FORWARD
KEY_REWIND
KEY_SUBTITLE
KEY_MUTE
KEY_FASTFORWARD

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

Files
My example file, generated with several TV handlers in raw mode(-f)
lircd_nevir.conf
lircd_ansonic.conf





domingo, 26 de abril de 2015

Android apps Analysis

Internet browsers:


Browser - Version - App file size - RAM used*
-Atlas 1.0.2.3 - 1.30 MB - 40 MB
Desktop/Mobile mode, no autostarts, content filter, works with m.youtube. Has an "Exit" button
-CMbrowser 5.1.80 - 4.29 MB -50MB
It requires few rights and has few autostarts. Works with m.youtube. 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 3.2.0.1 - 4.30MB -36MB
Opensource and very light, it requires standard rights. works with m.youtube. 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 m.wikipedia.org
-Firefox for Android/Fennec (APKs)
http://ftp.mozilla.org/pub/mozilla.org/mobile/releases/latest/android/multi/

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 :)
beos














Licencia CC.



lunes, 12 de enero de 2015

My best opensource IT resources

Free and Opensource resources




Icons
http://openiconlibrary.sourceforge.net/
http://techwiki.openstructs.org/index.php/Open_Source_Icons
http://p.yusukekamiyamane.com/
map icons
http://mapicons.nicolasmollet.com/
www.flaticon.com  (All or many with Creative Commons license)

Photos and icon/vectors...

http://www.freepik.com  (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.

http://openfontlibrary.org/en/catalogue?view=sentence

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.
i.e
D:\Ejecutables\LibreOfficeportable\Data\fonts

http://www.pendriveapps.com/search/Boot+It

Media

Wikimedia Commons
https://commons.wikimedia.org  (a huge database of  freely usable media files)

Software
http://portableapps.com/
http://sourceforge.net/
F-Droid (Android)
https://f-droid.org/repository/browse/




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
http://fsfe.org/campaigns/android/android.en.html


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
http://www.xda-developers.com/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
  https://f-droid.org/   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
      DejaOffice
      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
    Email
    Factory mode (required)
    Google+
    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
-Talk
-Google+
-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)


http://forum.xda-developers.com/showthread.php?t=2242278


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,...

ROM
Samsung ROM naming convention

B5330XXAL4 :
B5330(=model)XX(=Region)A(=Year)L(=Month)4(=Revision)
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)


YEAR CODES
K 2011
L 2012
M 2013
...

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

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


Root your device


Requirements:
Settings, Developer options
ON
USB debugging(Checked)


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

Check XDA developers for information and procedure
http://www.xda-developers.com/root/

Suggested Utilities:

Superuser
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 default raspberry OS images lacks of some useful features, such as:

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

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 fat 32 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

XBMC

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

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

Raspbian

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


Gparted

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

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

Map Keys:
/home/pi/pimame/pimame-menu/controller.yaml

Default pasword: pi / raspberry


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

Emulation
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
   Games:
         Armoredwar         
         Mpang (Mighty Pang)
         Dino (Cadillac dinosaurs)
         Winjammer CD  (failing)
 
Final Burn Alpha (Arcade Cabinet and Neogeo emulator)
PSX Joystick (same than neogeo)
Games:
     Metalslug2
     Magical crystals

SNES
PSX Joystick
         Plug in port2 psx2usb adapter
Games:
     All - OK

Neogeo pocket
  PSX Joystick
  Games
     Metal slug 2

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


ZxSpectrum
Games cannot be in zip files
Unzip to folder




c64
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

GBA
   Bios missing warning (Gba_bios)

NES
   Failing

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

http://elinux.org/RPiconfig#
System configuration parameters that would normally be kept and set using the BIOS are now stored in a text file named "config.txt". 

http://elinux.org/R-Pi_ConfigurationFile
http://www.raspians.com/Knowledgebase/raspberry-pi-configuration-file/
Including an example configuration file with comments

i.e
Make display smaller to stop text spilling off the screen
## overscan_left
##     Number of pixels to skip on left
overscan_left=20


http://elinux.org/RPi_cmdline.txt
File is for passing arguments to the Linux kernel and it can be found in /boot/
i.e   ip=192.168.0.10    (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
blog.tvalacarta.info/plugin-xbmc/

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

Kore
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
->storage/XBMC

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

>>>from https://github.com/KenT2/tboplayer
tboplayer
A GUI interface using jbaiter's pyomxplayer wrapper to control omxplayer

Required pexpect:
wget http://pexpect.sourceforge.net/pexpect-2.3.tar.gz
     tar xzf pexpect-2.3.tar.gz
     cd pexpect-2.3
     sudo python ./setup.py install

Installing tboplayer:
From a terminal window open in your home directory type:
     wget https://github.com/KenT2/tboplayer/tarball/master -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:

    python tboplayer.py

TBOPlayer is developed on Raspbian Wheezy with python 2.7
<<<<

Useful software for Raspbian:

gnumeric
abiword
sylpheed
gmusicbrowser (music browser)
gstreamer
GNOME partition editor (gparted)
xarchiver
pyneighborhood
mp3
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 https://127.0.0.1:8004
from remote https://192.168.1.109:8003

Packages from CLI:
nmap
apt-get install nmap --no-install-recommends
pistore
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.


viernes, 4 de julio de 2014

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

CAPA (from Oracle UPK)
Player - Version 11.1.0
Build 11.1.0.14160

Compatible ff 3.6.28

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

Tested with:
Win7
Office 2007
IE11



BO /Infoview
 
Logs on the BO server
<>/CA/SharedComponents/CommonReporting3/bobje/logging

Address for Query Builder
....AdminTools/querybuilder