Skip to main content

Posts

Showing posts with the label Ubuntu

How To Solve "Error: Could not find or load main class org.codehaus.classworlds.Launcher while building Maven 3.0.4"

I was trying to solve this error in my Ubuntu. Since I need to build Hue /Spark Application and when run the "make apps" or "mvn --version" command on terminal, I was getting " Error: Could not find or load main class org.codehaus.classworlds.Launcher while building Maven 3.0.4 This error ate all my day almost. Finally found a solution on one website. Just you need to uninstall old maven versions or existing maven. and sudo apt-get purge maven maven2 maven3 sudo apt-add-repository ppa:andrei-pozolotin/maven3 sudo apt-get update sudo apt-get install maven3  Thanks a lot to those guys for a great help.

How To Change IPAddress of Linux/Ubuntu ?

Recently I needed to change the existing ipaddress of a linux machine. Since we migrated to our machines in to new cloud servers. Just follow the steps defined below: On terminal window type the following command.            sudo vi /etc/network/interfaces                 or             sudo gedit /etc/network/interfaces

Creating a Docker Group

The docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can access it with sudo. For this reason, docker daemon always runs as the root user. To avoid having to use sudo when you use the docker command, create a Unix group called docker and add users to it. When the docker daemon starts, it makes the ownership of the Unix socket read/writable by the docker group. Note: The docker group is equivalent to the root user; To create the docker group and add your user: Log into Ubuntu as a user with sudo privileges.

What is Docker? How To Install Docker on Ubuntu 14.04?

  Docker is an open source container based software framework that automates the deployment of applications inside a software contains by providing an additional abstraction layer and automation of operating system level virtualization on Linux. Docker uses resource isolation features of the Linux kernel such as cgroups and kernel namespaces to allow independent "containers" to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines. How to Install: Open Ubuntu Terminal Window and login as a root. Follow the below steps.

How To Install Tomcat on Ubuntu?

Recently, I started working on Ubuntu OS 14.04. I feel Ubuntu is much simpler than what I thought earlier. Lets leave about Ubuntu, I want to blog more about Ubuntu OS afterwards. Here I want to brief about how to install Tomcat webserver on Ubuntu.  Apache Tomcat is an open source webserver where we can deploy java applications. Go to terminal window on Ubuntu and login as a root user. 1. Install Java First: Before installing Tomcat server, it is better to install Java. Run the following command on terminal window to check Java is already installed.              java -version  If it returns "The program 'java' can be found in the following packages:" the Java is not installed on Ubuntu. To install Java, just run the below command. After this we have to add Java to environment variables in .bashrc. We will add both Java and Tomcat after the installation of Tomcat webserver.      ...