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
Thursday, February 15, 2018
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
$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
$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 -r
in 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 commandsudo apt-get autoremove
sudo reboot
Thursday, February 01, 2018
Related to Certificates
Generate a CSR
https://www.digitalocean.com/community/questions/how-do-i-generate-a-csr-key
Create the self-signed certificate
https://help.ubuntu.com/lts/serverguide/certificates-and-security.html
Create thrid certificate using CSR
https://ssl.comodo.com/free-ssl-certificate.php
https://support.comodo.com/index.php?/comodo/Knowledgebase/Article/View/637/66/
Aditional information
https://www.ssl2buy.com/ssl-certificate-google-rankings
https://www.elegantthemes.com/blog/tips-tricks/how-to-get-a-free-ssl-certificate-and-why-google-is-forcing-you-to
Tuesday, January 30, 2018
Ubuntu 14 install sSMTP
Ubuntu
1.1) Install sSMTP
$sudo apt-get install ssmtp
$sudo vi /etc/ssmtp/ssmtp.conf #add or set
root=username@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=fileserver.local
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=YES
sudo vi /etc/ssmtp/revaliases
root:username@gmail.com:smtp.gmail.com:587
youruser:username@gmail.com:smtp.gmail.com:587
1.2) How to use
$ssmtp recipient_email@example.com #sSMTP will then wait for:
To: recipient_email@example.com
From: myemailaddress@gmail.com
Subject: test email
hello world!
#press Ctrl-D for send the message before closing.
$ssmtp myemailaddress@gmail.com < msg.txt
To: myemailaddress@gmail.com
From: myemailaddress@gmail.com
Subject: alert
The server is down!
1.3) Alternative to use
$sudo apt-get install heirloom-mailx -y
$echo testing|mail -s 'Test Mail' Insert email address to send to here
References:
[1] http://tombuntu.com/index.php/2008/10/21/sending-email-from-your-system-with-ssmtp/
Fedora/CentOs
[2.1] postfix https://kifarunix.com/configure-postfix-as-send-only-smtp-server-on-fedora-29/
[2.2] sendmail https://tecadmin.net/install-sendmail-on-fedora/
1.1) Install sSMTP
$sudo apt-get install ssmtp
$sudo vi /etc/ssmtp/ssmtp.conf #add or set
root=username@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=fileserver.local
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=YES
sudo vi /etc/ssmtp/revaliases
root:username@gmail.com:smtp.gmail.com:587
youruser:username@gmail.com:smtp.gmail.com:587
1.2) How to use
$ssmtp recipient_email@example.com #sSMTP will then wait for:
To: recipient_email@example.com
From: myemailaddress@gmail.com
Subject: test email
hello world!
#press Ctrl-D for send the message before closing.
$ssmtp myemailaddress@gmail.com < msg.txt
To: myemailaddress@gmail.com
From: myemailaddress@gmail.com
Subject: alert
The server is down!
1.3) Alternative to use
$sudo apt-get install heirloom-mailx -y
$echo testing|mail -s 'Test Mail' Insert email address to send to here
References:
[1] http://tombuntu.com/index.php/2008/10/21/sending-email-from-your-system-with-ssmtp/
Fedora/CentOs
[2.1] postfix https://kifarunix.com/configure-postfix-as-send-only-smtp-server-on-fedora-29/
[2.2] sendmail https://tecadmin.net/install-sendmail-on-fedora/
Mono Develop on Ubuntu 14
#monodevelop 4
sudo apt-get install monodevelop
#upgrade to monodevelop
5
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install monodevelop
References:
[1] Monodevelop versions https://download.mono-project.com/archive/
Sunday, January 28, 2018
Friday, January 26, 2018
Ubuntu 14 virtualize
Virtual box
$uname -a
$apt-get upgrade #for update kernel
$apt-get install virtualbox
Dependences
[1] https://www.virtualbox.org/wiki/Download_Old_Builds_4_3
$uname -a
$apt-get upgrade #for update kernel
$apt-get install virtualbox
Dependences
[1] https://www.virtualbox.org/wiki/Download_Old_Builds_4_3
Sunday, January 07, 2018
Bajaj Avenger 220 Especificaciones
Motor
Desplazamiento (cc)
219.89
A Partir
Eléctrica
Max. De alimentación (PS rpm)
19,03 @ 8400
Max. Torque (Nm @ rpm)
17.5 @ 7000
Tipo
4 tiempos, monocilíndrico, DTS-i, refrigerado por aire con el refrigerador de aceite
Frenos
Frente
Disco, Dia. 260 mm
Trasero
Tambor, Dia. 130 mm
Suspensión
Frente
Telescópico
Trasero
Amortiguador hidráulico
Electrónica
Cabeza de la lámpara
60 / 55W
Cuerno
12V, 30W
Batería
12V, 9Ah
Tiro
Frente
Con cámara unidireccional - 90 / 90 x 17 "
Trasero
Con cámara unidireccional - 130/90 x 15 "
Depósito de combustible
Total de litros (reserva, utilizable)
14 litros completo (3.4 litros de reserva)
Dimensiones
Separación de tierra
169 mm
Peso en orden de marcha
154,5 kg
Distancia entre ejes
1475 mm
Tuesday, November 21, 2017
Display Setting is not showing
For show unity setting
$unity-control-center
Setting in command line
$xrandr
...
DVI-I-2 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95*+
1600x1200 60.00
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
...
$xrandr --output DVI-I-2 1600x1200 #for choice
$xrandr --fb 1152x768 #another way
For problems in aspect ratio (wide mode), for us the better choice is:
$xrandr --output DVI-I-2 --scale 1.0x0.85
Other alternative is related to create new entry, using next commands
$cvt 1600 1200 60
# 1600x1200 59.87 Hz (CVT 1.92M3) hsync: 74.54 kHz; pclk: 161.00 MHz
Modeline "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
$xrand --newmode "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
$xrand --addmode "1600x1200_60.00" #but doesn't works for us
Friday, November 17, 2017
How to create war file for tomcat without eclipse
references:
[1] https://stackoverflow.com/questions/1001714/how-to-create-war-files
Wednesday, November 08, 2017
Installing Android on VMWare
VMWare paremeters
bios.forceSetupOnce = "TRUE"
bios.bootDelay = "xxxx"
Resources
Android images http://www.osboxes.org/android-x86/
References
[1] https://kb.vmware.com/s/article/1004129
[2] http://siliseed.com/2013/08/instalar-android-en-una-maquina-virtual-windows.html
[3] https://android.stackexchange.com/questions/141700/how-to-fix-android-x86-install-on-vmware
[4] https://android.stackexchange.com/questions/144535/android-x86-marshmallow-not-booting-on-virtualbox-and-vmware-workstation
Tuesday, November 07, 2017
Wednesday, November 01, 2017
Linux Drive Series/C210
Auxiliary Commands
$ journalctl
$ systemctl
$ alsactl
$ lsof | grep pcm #still using
$ lsmod | grep snd #modules
$ sudo apt-get remove pulseaudio
$ sudo apt-get remove alsa
$ sudo apt-get install alsa
$ lspci
Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller
$ vi /etc/modprobe.d/alsa-base.conf #for verify
*When is right installed
$ cat /proc/asound/card0/codec* | grep Codec
Codec: Realtek ALC887
$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
1 [NVidia ]: HDA-Intel - HDA NVidia
2 [U0x46d0x825 ]: USB-Audio - USB Device 0x46d:0x825
Upgrade
[*] https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS
$ rm -r ~/.config/pulse;
$ pulseaudio -k
Note: try to select previous version on grub
References
[1] https://help.ubuntu.com/community/HdaIntelSoundHowto
[2] https://askubuntu.com/questions/508692/intel-corporation-7-series-c210-series-isnt-being-detected-by-any-module
$ journalctl
$ systemctl
$ alsactl
$ lsof | grep pcm #still using
$ lsmod | grep snd #modules
$ sudo apt-get remove pulseaudio
$ sudo apt-get remove alsa
$ sudo apt-get install alsa
$ lspci
Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller
$ lspci -v | grep Audio
$ sudo modprobe snd-hda-intel
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.10.0-37-generic/modules.dep.bin'
modprobe: FATAL: Module snd-hda-intel not found in directory /lib/modules/4.10.0-37-generic
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.10.0-37-generic/modules.dep.bin'
modprobe: FATAL: Module snd-hda-intel not found in directory /lib/modules/4.10.0-37-generic
$ vi /etc/modprobe.d/alsa-base.conf #for verify
*When is right installed
$ cat /proc/asound/card0/codec* | grep Codec
Codec: Realtek ALC887
$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
1 [NVidia ]: HDA-Intel - HDA NVidia
2 [U0x46d0x825 ]: USB-Audio - USB Device 0x46d:0x825
Upgrade
[*] https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS
$ rm -r ~/.config/pulse;
$ pulseaudio -k
Note: try to select previous version on grub
References
[1] https://help.ubuntu.com/community/HdaIntelSoundHowto
[2] https://askubuntu.com/questions/508692/intel-corporation-7-series-c210-series-isnt-being-detected-by-any-module
Subscribe to:
Posts (Atom)
-
Resources: [1] Hela https://ome.grc.nia.nih.gov/iicbu2008/hela/index.html
-
Sunedu Renacyt 1) https://ctivitae.concytec.gob.pe/appDirectorioCTI/ 2) http://regina.concytec.gob.pe 3) https://www.gob.pe/9648-ser-p...
-
en inglés se llama “A potentially dangerous Request.Form value was detected from the client”. varias páginas indican dos cosas: 1. agrega...
Running apps
Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper (Wrong GPS tracking) Strava (Curr...