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
 

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

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com