Thursday, March 29, 2018

Ubuntu 16 OpenCV 2.4.x disable ffmpeg and jpeg



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 -D WITH_FFMPEG=OFF -D WITH_JPEG=OFF ..


Ubuntu webm to mp4

ffmpeg -i video.webm -movflags faststart -profile:v high -level 4.2 video.mp4

Ubuntu 16 VMWare Player



$wget -c https://download3.vmware.com/software/player/file/VMware-Player-12.5.0-4352439.x86_64.bundle
$sudo chmod u+x VMware-Player-12.5.0-4352439.x86_64.bundle
$sudo ./VMware-Player-12.5.0-4352439.x86_64.bundle

Monday, March 26, 2018

Ubuntu how to get interval time for run Application



howmuchdelay.sh

T="$(date +%s%N)"
# Do some work here
$1 $2 $3 $4 $5 #sleep 2

# Time interval in nanoseconds
T="$(($(date +%s%N)-T))"

# Seconds
S="$((T/1000000000))"

# Milliseconds
M="$((T/1000000))"

printf "Take: %02d:%02d:%02d:%02d.%03d\n" "$((S/86400))" "$((S/3600%24))" "$((S/60%60))" "$((S%60))" "${M}"

Tuesday, March 20, 2018

Ubuntu 16: Arcade games


$sudo apt-get install zsnes  #super nintendo
$sudo apt-get install mupen64plus  #nintendo 64


Friday, March 16, 2018

Ubuntu CPU-G

Ubuntu 16

$sudo add-apt-repository ppa:atareao/atareao
$sudo apt-get update
$sudo apt-get install cpu-g


Ubuntu 14

sudo add-apt-repository ppa:cpug-devs/ppa
sudo apt-get update
sudo apt-get install cpu-g

Tuesday, March 13, 2018

Ubuntu 16 Using QEmu

Basic Commands:


*create drives 
$qemu-img create name.img size|M|G
$qemu-img create win98hda.img 400M 
*resize driver
$qemu-img resize filename [+|-]size[K|M|G|T]
$qemu-img resize win98hda.img +600M
$gparted win98hda.img #for expand physically 
 
 
$qemu [-boot ] -cdrom .iso [-m size]|128M -hda disk-name.img
$qemu -boot d -cdrom win98se.iso -m 512 -hda win98hda.img
 
other examples:
[1] install win98 using boot iso and installer iso (two disks)
$qemu-system-i386 -hda win98s2018.img -boot d -cdrom win98boot.iso -drive file=win98se.iso,index=3,media=cdrom
$qemu-system-i386 -hda win98s2018.img -boot c -cdrom win98boot.iso -drive file=win98se.iso,index=3,media=cdrom 
$qemu-system-i386 -drive file=win98s2018.img,format=raw -m 512 #other way to run
  
 

$qemu-system-x86_64 -hda driveubuntu.img -cdrom ubuntu-x86-14.1-r1.iso -boot d -m 1024   -usbdevice mouse



Images:
[1] Windows XP https://mega.nz/#!B4ZEiRyD!tIS4NFNqcShJtTvNcheujIfSVS8H3ejlU2VLJdN9C3o
[2] 95 https://mega.nz/#!tw4m2Z6K!XsrXdAODy0HGjNVzvpSNviDQfvQP0ULVI7UGbhFdJh0

References:
[1] https://www.unixmen.com/how-to-install-and-configure-qemu-in-ubuntu/
[2] http://www.helenos.org/wiki/UsersGuide/RunningInQEMU



Thursday, March 01, 2018

Raspberry PI 3 qemu



apt-get install libglib2.0-dev zlib1g-dev
$./configure --target-list=i386-softmmu  #for reduce time > 5hrs (normally)
$make
$sudo make install

https://b3n7s.github.io/update/2016/06/08/windows-xp-on-qemu.html
https://wiki.gentoo.org/wiki/QEMU/Windows_guest

Tuesday, February 20, 2018

Ubuntu Dark Wallpaper



http://www.misucell.com/group/best-ubuntu-backgrounds/

Ubuntu - Deploy Mono ASP.NET MVC




$vi /etc/apache2/apache2.conf  #verify includes external config files
...
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

..
$sudo vi /etc/apache2/mods-enabled/mod_mono.conf  #add/verify content

<IfModule !mod_mono.c>
     LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so</IfModule>
<IfModule mod_headers.c>
    Header set X-Powered-By "Mono"

</IfModule>

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx



May be you will get apache2: Syntax error on line 141 of /etc/apache2/apache2.conf: Syntax error on line 8 of /etc/apache2/mods-enabled/mod_mono.conf, then reinstall mono module for apache.


verify path, using :


$locate mod_mono.so

or reinstall module 

$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
$echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
$sudo apt-get update
 
$sudo apt-get install mono-devel
$sudo apt install libapache2-mod-mono 

 




References:

https://github.com/edgarrc/MonoUbuntu/blob/master/install.sh
[2] mod_mono.conf https://github.com/mono/mod_mono/blob/master/mod_mono.conf.in
[3] for update mono module repository http://www.mono-project.com/download/stable/


Monday, February 19, 2018

html css menu



References:
[1] http://css-snippets.com/drop-down-navigation/
[2] http://inspirationalpixels.com/tutorials/creating-a-dropdown-menu-with-html-css
[3] simple https://www.w3schools.com/howto/howto_css_dropdown.asp


Ubuntu 16, enable ASP.NET templates on MonoDevelop



$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF  
$echo "deb http://download.mono-project.com/repo/debian alpha main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list  
$sudo apt-get update 
 
$sudo apt-get install mono-devel mono-complete ca-certificates-mono mono-xsp4 #take time
 
$sudo apt-get install monodevelop=5.10.0.871-0xamarin2 #[1]
 

May be you will get this message at create project:Access to the path “/etc/mono/registry” is denied, then 
 
$sudo mkdir /etc/mono/registry

$sudo chmod uog+rw /etc/mono/registry
  



References:
[1] https://askubuntu.com/questions/770299/monodevelop-on-xubuntu-missing-asp-net

Ubuntu Radio


I) Install application
$sudo apt install radiotray python-xdg

II) Setting radio
1) PerĆŗ - Radio Planeta
https://17953.live.streamtheworld.com/CRP_PLAAAC.aac?csegid=1010&tdsdk=js-2.9&lat=-16.4&long=-71.5&pname=TDSdk&pversion=2.9&banners=300x250%2C728x90&sbmid=d3f8db5f-71cf-4c05-8764-bfbdf3857e4e
III) Radio PerĆ³ (online) http://www.emisoraperuana.com


References:
[1] http://www.webupd8.org/2017/02/5-cool-internet-radio-players-for-linux.html

Sunday, February 18, 2018

Ubuntu VB6 Application + mySQL


 
$winetricks corefonts eufonts lucida opensymbol tahoma cjkfonts 
$winetricks vb6run
$winetricks mdac28
$winetricks msxml4 mfc42 jet40 native_oleaut32
 
$winecfg #set libraries for overwrite

odbccp32
odbc32
oleaut32







 
$wine msiexec /i mysql-connector-odbc-5.1.13-win32.msi #choice best driver
$wine control 

references:

http://www.sanitarium.co.za/how-to-get-wine-windows-mysql-connectorodbc-and-ubuntu-13-10-to-all-be-friends/

[2]  Launch icon https://askubuntu.com/questions/21823/how-to-create-a-shortcut-to-start-a-windows-application-with-wine

Wednesday, February 14, 2018

Ubuntu moodle pre-requisites

$sudo ufw app list

$sudo apt-get install libapache2-mod-php
$sudo apt-get install php7.0-curl 
$sudo apt-get install php7.0-zip

$sudo chmod 777 /var/www/ -R

$sudo apt-get install php7.0-mysql
$sudo apt-get install php7.0-xml



$sudo apt-get install php7.0-gd


$sudo apt-get install php7.0-intl

$sudo apt-get install php7.0-xmlrpc
$sudo apt-get install php7.0-mbstring






Ubuntu Hard Drive Health Monitor

HDD Verification tool

$sudo apt-get install smartmontools
$sudo apt-get install gsmartcontrol

$sudo smartctl --all /dev/sda

Friday, February 02, 2018

Ubuntu 14 Lamp


https://www.godaddy.com/help/build-a-lamp-stack-linux-apache-mysql-php-ubuntu-14-17341
https://www.howtoforge.com/ubuntu-lamp-server-with-apache2-php5-mysql-on-14.04-lts
https://styde.net/como-instalar-lamp-en-ubuntu-linux/
https://www.digitalocean.com/community/tutorials/como-instalar-linux-apache-mysql-php-lamp-en-ubuntu-14-04-es
https://www.digitalocean.com/community/tutorials/how-to-install-lamp-on-ubuntu-14-04-quickstart

Update kernel to the latest mainline version without any Distro-upgrade?

To find out which kernel you have type uname -rin terminal.Now type this command to get list of available kernels.
apt-cache search linux-image
this will give you a very big output.Now chose one of them that you want to install and install it by following commands(Don't type these commands like this,replace the word kernal_version with the kernel version which you wish to install)
sudo apt-get install linux-image-kernal_version
sudo apt-get install linux-image-extra-kernal_version
sudo apt-get install linux-headers-kernal_version
Now in my case i choose linux-image-4.10.0-22-generic so my command will look like this
sudo apt-get install linux-image-4.10.0-22-generic 
sudo apt-get install linux-image-extra-4.10.0-22-generic
sudo apt-get install linux-headers-4.10.0-22-generic
now in the end remove old kernel by command
sudo apt-get autoremove
sudo reboot
 

Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Currently testing) Runna (Complex,...