Tuesday, January 20, 2015

Unable to play YouTube videos in VLC Player


Download file updated youtube.lua [1] and put that in /usr/lib/vlc/lua/playlist/youtube.lua


References:

[1] http://jslover.secsrv.net/VLC/playlist/youtube.lua

Sunday, October 12, 2014

CentOS 6.5 OpenCV compilation & execution problems

$echo `pkg-config --cflags --libs opencv`               
Package opencv was not found in the pkg-config search path.                    
Perhaps you should add the directory containing `opencv.pc'                    
to the PKG_CONFIG_PATH environment variable                                    
No package 'opencv' found  

$ ls /usr/local/lib/pkgconfig
libnl-1.pc  libnl-3.0.pc  libnl-cli-3.0.pc  libnl-genl-3.0.pc  libnl-nf-3.0.pc  libnl-route-3.0.pc  opencv.pc

$export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

$ echo `pkg-config --cflags --libs opencv`

-I/usr/local/include/opencv -I/usr/local/include /usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_ocl.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -lrt -lpthread -lm -ldl   


$g++ letter_recog.cpp -o letter_recog `pkg-config --cflags --libs opencv`



$./letter_recog                                                                                              
./letter_recog: error while loading shared libraries: libopencv_calib3d.so.2.4: cannot open shared object file: No such file or directory
                                                                                                                 
$export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib  


Tuesday, June 17, 2014

How to remove Bill Gates botnet (Fedora)



1) identify and kill process running
 #top
 #killall cupsdd
 . . .

2) verify crontab

#ss -t (show current socket connections)
#crontab -l (list entries)
#crontab -e (edit current)
#crontab -r (remove all entries)

3) remove calls from start scripts
#vi /etc/rc.local   (here anotate entries )
#vi /etc/init.d
#rm /etc/*.lock  (bill.lock and gates.lock)
4) remove physical files
  atddd, cupsdd, cupsddh,ksapdd, kysadd,sksapdd, skysapdd

References

[1] http://lpages.info/billgates-linux-botnet/
[2] https://isc.sans.edu/forums/diary//17282
[3] crontab https://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/cron-jobs-c37727/delete-a-cron-job-a757264.html

Monday, June 02, 2014

Audacity Ubuntu 12.04


$ sudo add-apt-repository ppa:audacity-team/daily
$ sudo apt-get update
$ sudo apt-get install audacity

Thursday, May 15, 2014

Grasa Corporal, omron, plicometro

La verdad es que esto de medir la grasa es todo un Expediente X..

Con cada uno es un mundo, y si te la mides hoy, no te da lo mismo que mañana...

Yo opte por utilizar un metodo que me dijo alguien en el gimnasio..

"...Tu mirate al espejo y si te ves de puta madre, tienes mejor estado fisico.. corres 4 kilometros o los que sean, estas bien contigo... que mierda importa la grasa?¿.."

Daniel.

referencias
[1]  http://www.hispagimnasios.com/foro-de-musculacion-y-nutricion-f3/topic55248.html

Friday, May 02, 2014

Plantillas CSS

News Letter
http://www.templatesbox.com/free-newsletter-templates/index.htm

Plantilla Web

[1] (buena calidad) http://www.mejoresplantillasgratis.es
[2] http://www.interspire.com/templates/

http://www.opendesigns.org/view-designs/44/
http://www.ex-designz.net/template/tempdetail.asp?temp_id=301
http://www.freecsstemplates.org/css-templates/23
http://www.free-css-templates.com/css-templates/13

Sunday, April 13, 2014

Package opencv was not found (CentOs 6.5)

$g++ `pkg-config --cflags --libs opencv` anycode.cpp -o anycode

Package opencv was not found in the pkg-config search path.                                             
Perhaps you should add the directory containing `opencv.pc'                                              
to the PKG_CONFIG_PATH environment variable                                                              
No package 'opencv' found

Solution
1) find opencv.pc
$ locate opencv.pc

/mnt/vol3/installers/opencv/opencv-2.4.8/build/unix-install/opencv.pc      
...    
/usr/local/lib/pkgconfig/opencv.pc  

2) then add to enviroment variable the path
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/



Friday, April 11, 2014

Virtual Machine over Ubuntu 12.04

1) KVM

$sudo egrep '(vmx|svm)' --color=always /proc/cpuinfo
$sudo apt-get install ubuntu-virt-server python-vm-builder kvm-ipxe virtinst libcap2-bin
$sudo adduser `id -un` libvirtd
$sudo adduser `id -un` kvm
$sudo virsh -c qemu:///system list
$sudo apt-get install bridge-utils
$sudo /etc/init.d/networking restart
$sudo vi /etc/network/interfaces
#add this lines
auto kvmbr0
iface kvmbr0 inet dhcp
bridge_ports eth0

$ sudo /etc/init.d/networking restart


References:
[1] http://www.mrxuri.com/2013/11/22/install-kvm-on-ubuntu-server-12-04-lts-and-create-a-virtual-machine.html
[2] http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-12.04-lts

Thursday, April 10, 2014

Latex recursos

Cuando queremos colocar varias imágenes en una misma fila [4] y [5], nos dan un ejemplo para colocar 3 imágenes en una, cada una usa comandos diferentes.

\begin{figure} 
  \begin{subfigure} [b]{0.3\textwidth}
     \includegraphics{}
  \end{subfigure}
  ...
\end{figure}

\begin{figure}
  \minipage{0.32\textwidth}
    \includegraphics{}
  \endminipage
  ...
\end{subfigure}

Cuando las imágenes se desordenan es decir no conservan el lugar que queremos podemos usar [6], que resumido seria:

\begin{figure}[htpb]
  ...
\end{figure}



Referencias:
[1] TexMaker   http://www.xm1math.net/texmaker/
[2] Other editor http://www.texniccenter.org/
[3] Manual/Lo necesario para trabajar con Latex(Crear Pdf)http://copa.uniandes.edu.co/software/latex/manual.html

[4] Floats, Figures, Captions http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
[5] http://tex.stackexchange.com/questions/10245/how-to-order-3-images-horizontally
[6] http://stackoverflow.com/questions/518284/problem-with-float-and-pictures-in-latex

Virtual Printer over Ubuntu


$sudo apt-get install cups-pdf
$sudo /etc/init.d/cupsys restart
 
references
[1] http://ubuntuportal.com/2012/04/easy-way-to-create-pdf-printer-in-ubuntu-12-04.html
[2] http://ubuntuforums.org/showthread.php?t=140815

Latex over Ubuntu 12.04/Centos 6.5

Ubuntu
$sudo apt-get install texlive-full
$sudo apt-get install texmaker

Centos
#yum install tetex
#yum install texlive-*



references:
[1] http://www.linuxhispano.net/2010/11/16/instalar-latex-ubuntu/
[2] http://askubuntu.com/questions/392102/how-to-install-latex-in-ubuntu-13-10

Tuesday, April 08, 2014

Photoshop CS6 Over Ubuntu 12.04

1) Prerequisites
wine installed
winetricks installed

2) Add complements (this take many minutes)
$winetricks -q atmlib gdiplus ie6 vcrun2005sp1 vcrun2008 fontsmooth-rgb corefonts msxml3 msxml6 vcrun2010

3) Download Photoshop
https://www.dropbox.com/s/lzg1hdwwjsy0550/Adobe%20Photoshop%20CS6%20Extended-FOR-UBUNTU%20WIN.zip

4) Install using wine
$wine Adobe\ Photoshop\ CS6\ Extended.exe

5) Post install
$winetricks fontsmooth-rgb

 

references:
[1] https://www.winehq.org/download/ubuntu
[2] http://wiki.winehq.org/winetricks
[3] http://ibuxcomputer.wordpress.com/2013/10/24/como-instalar-photoshop-en-ubuntu-13-04/

Sunday, April 06, 2014

OpenCV Centos 6.5 VideoCapture doesn't work with video files

You need recompile

when  you make configure files
#cmake ..
Or
#cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..


Verify summary

# yum search ffmpeg

ffmpeg-devel.xxxx

gstreamer-ffmpeg.xxxx

# yum search gstreamer
gstreamer-devel.xxxx
gstreamermm.xxxx

install using yum

finally

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib


references:
[1] http://prateekvjoshi.com/2013/10/18/package-opencv-not-found-lets-find-it/

Tuesday, March 25, 2014

Latex Editor on CentOS 6.0/6.5

I trying install latex editor texmaker(good over ubuntu) on centos 6.5 but i get many errors, then i search other app, texstudio works fine.

#rpm -Uvh texstudio-2.7.0-6.1.i686.rpm

Resources
[1] http://texstudio.sourceforge.net/

Thursday, March 20, 2014

Install VLC (Media Player) on Centos 6.5



#yum localinstall --nogpgcheck http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
#yum localinstall --nogpgcheck http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
 
#yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
#yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm 
 
//verify repository 
#yum --enablerepo=remi-test info vlc
 
#yum --enablerepo=remi-test install vlc
 
#vlc 
//if you like update
# yum --enablerepo=remi-test update vlc
 
References:

[1] http://www.tecmint.com/install-vlc-media-player-in-rhel-centos-6-3-5-6-fedora-17-12/

Wednesday, February 26, 2014

Webinars (Videoconferencias)

a) Any Meeting , $0/Month, 200 attenders, include ADS, not record [1]
b) oovoo, $0/Month, 12 attenders,
c) Vyew, $0/Month Unlimited, 10 attenders

Resources
[1] https://www.anymeeting.com
[2] http://www.oovoo.com/home.aspx
[3] http://vyew.com/s/


References
[1] http://www.dreig.eu/caparazon/2009/01/17/herramientas-libres-para-videoconferencia-webinars-online/

Ubuntu Forware port 80

  #!/bin/bash iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 iptables -t nat -A PREROUTING -i eth0 -p tc...