Showing posts with label Ubuntu 16. Show all posts
Showing posts with label Ubuntu 16. Show all posts

Friday, May 4, 2018

Install PHPMyAdmin after installing Mysql on Ubuntu 16.04

 sudo apt-get update
    sudo apt-get install phpmyadmin php-mbstring php-gettext

After opening PHPMyAdmin if you create a database and open it you may see

CONNECTION FOR CONTROLUSER AS DEFINED IN YOUR CONFIGURATION FAILED

You have to open this file

/etc/phpmyadmin/config-db.php

and see if the configuration is like this

$dbuser='root';
$dbpass='password'; // set current password between quotes ' '
$basepath='';
$dbname='phpmyadmin';
$dbserver='';
$dbport='';
$dbtype='mysql';

save and close the file

restart mysql server by

sudo service mysql stop

sudo service mysql start


Thursday, February 22, 2018

Alias command in Ubuntu 16,linux Teacher Sourav,Kolkata 09748184075

aliases can be any name other than reserved word ,it can even be same name as a command with different options,aliases can be applied on global basis or per user basis


for global basis we have to modify the file
called /etc/bashrc

for user basis the file is 
/home/username/.bashrc

let's create a custom command


the alias command will show you the already set aliases

set a alias

alias ls='ls -l'

now using the alias command you will see 
the new alias set

when we use ls using the alias it will run 
ls -l

we can perform the same thing 

by changing df to df -h

alias df='df -h'

h is for human readable format,the output of df will be shown in human readable format by default from now instead of block sizes



now let's create a command which does not exist


alias delete='rm -i'

by defining the alias delete will be available to bash will also help in tab complition when typing delete

these aliases are also going to available to shell scripts

to remove the alias

unalias delete

to make these aliases permanenet we have to aliases to the /etc/bashrc(for parmanent) or /home/username/.bashrc for just the user

firefox or chrome can not run swf files solved on ubuntu 16,Linux Teacher Sourav,Kolkata 09748184075

Edit /usr/share/mime/packages/freedesktop.org.xml as root and replace the following:


With:


And then run:

sudo update-mime-database /usr/share/mime

Wednesday, May 10, 2017

using dd command on ubuntu 16 to create iso from dvd,Sourav Bhattacharya,RHCE Faculty,Kolkata 09748184075

First check the block size and volume size using this command

isoinfo -d -i /dev/cdrom | grep -i -E 'block size|volume size'

then

dd if=/dev/cdrom of=/home/sourav/centos.iso bs=block size found from previous command 

 count=volume size found from previous command

source://https://www.thomas-krenn.com/en/wiki/Create_an_ISO_Image_from_a_source_CD_or_DVD_under_Linux

Saturday, January 21, 2017

debugging not working for asp.net and asp.net mvc in monodevelop in ubuntu16 solved

install mono-xsp

copt xsp4.exe from /usr/lib/mono/4.5 and paste it to your applications bin directory

and run it specifying the browser

source:http://stackoverflow.com/questions/22622106/debugging-asp-net-mvc-apps-in-monodevelop-with-xsp4

access to the path /etc/mono/registry is denied in monodevelop ubuntu16 solved

Simple create the folder and assign the permission to it

sudo mkdir /etc/mono/registry

sudo chmod ugo+rw /etc/mono/registry



restart your application

source:http://stackoverflow.com/questions/24872394/access-to-the-path-etc-mono-registry-is-denied

Monday, January 9, 2017

VB.Net Monodevelop Project does not supprt dot net framework 4.5 solved

Using a text editor, change your *.vbproj file to add the following line:



    v4.0

source:http://stackoverflow.com/questions/9623964/new-default-vb-net-project-immediately-gives-an-error

asp.net template not found,fix monodevelop on Ubuntu 16



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

sudo apt-get install monodevelop=5.10.0.871-0xamarin2




Source:https://brendaningram.com/article/how-to-fix-monodevelop-on-ubuntu-16-04/


Source:https://stackoverflow.com/questions/36101232/asp-net-template-not-found-after-installed-monodevelop-ide-on-ubuntu-16-04

Monday, December 12, 2016

Unable to lock the administration directory /var/log/dpkg/,is another process using it,solved

sudo lsof /var/lib/dpkg/lock

Find the process PID which is using the lock

kill -9 (PID that you found using lsof)





source:http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process