Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Friday, 25 September 2015

dpkg was interrupted you must manually run dpkg configure a to correct the problem ubuntu

dpkg was interrupted you must manually run dpkg configure a to correct the problem ubuntu:

 when i run command

   $ sudo apt-get install <package-name>

there comes error 

dpkg was interrupted you must manually run dpkg configure

 

Solution: 

step 1:

run command

sudo dpkg --configure -a

 Step 2:

Now you can run

sudo apt-get install <package-name>


 

Wednesday, 9 September 2015

How to install mosquitto MQTT On Ubuntu

 Install mosquitto in ubuntu:

Mosquitto will be in the Ubuntu repositories so you can install as with any other package.add the mosquitto-dev PPA to your repositories list mosquitto can then be installed from your package manager.

sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto mosquitto-clients python-mosquitto


ubuntu@java:~$ mosquitto
1728292123: mosquitto version 0.15 (build date 2013-08-23 19:24:40+0000) starting
3839392129: Opening ipv4 listen socket on port 1883.
2829393939: Error: Address already in use









Error : address already in use comes because port 1883 used by other proccess. Mosquitto use  default  configuration . We can use custom configuration.








 

Thursday, 23 April 2015

How to Install Mysql in Ubuntu

Installing Mysql In Ubuntu

 follow these steps:
Step 1:

sudo apt-get update









Step 2:

sudo apt-get install mysql-server-5.6

How to Install Java In Ubuntu

Installing default JRE/JDK

 Step 1:
  
       sudo apt-get update
Step 2:
      sudo apt-get install default-jre  
Step 3:
  sudo apt-get install default-jdk
   
Step 4:

 java -version


Installing OpenJDK 7

 Step 1:

sudo apt-get install openjdk-7-jre

Step 2:

sudo apt-get install openjdk-7-jdk

 

 

 


 

 

 

 

Tuesday, 7 April 2015

Linux Tutorial for Beginners



Importance command for Java developer

Basic commands
How to create file.
How to create folder.
how to change permissions.
how to use vi editor.
grep commands.
how to install java on ubuntu using command
command for tomcat
sudo command
pipelines
filter
wildcards.

 Software Instalation

Adobe reader
Mysql
ellipse

Thursday, 2 April 2015

Basic Unix Commands For Java Developers

1. cd

       cd Directory name

 2. cd ..
 
     go to just one level above parent folder

3.

rm -rf repository/

remove repository folder and subfolder also

4. ps -ef

 show running processes.

5. ps -ef| grep tomcat7

show  tomcat7 's all processes.

6.  ifconfig

 show ip address in ubuntu

7. sudo service tomcat7 status

show tomcat running status

8.

sudo service tomcat7 stop

 stop tomcat7 if it is running state.

9.
sudo kill -9 PID

kill any processe.

10  ls -al 

show all file and folder in working directory.

11 pwd 

12. history

Show terminal history

13. unzip abc.zip

   extract the zip file

14.   tar -zxvf ellipse9.2.2.tar.gz

extract the tar file

15.  mysql -uroot -proot

For use mysql

16.   mysqldump -u root -p database_name > dump_file_name.sql

Create file name