Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Saturday, April 25, 2015

Install Tomcat on Ubuntu

sudo apt-get update
sudo apt-get install tomcat7

https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get

If Tomcat had been installed correctly you should be able to see the info below by url: http://localhost:8080

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!
This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html
Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.
You might consider installing the following packages, if you haven't already done so:
tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.
tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.
tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.

NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat7/tomcat-users.xml.

Saturday, March 21, 2015

Linux Ubuntu - where to store all application as Program Files in Windows

In Linux Ubuntu store all your applications under:

/usr/local

Create new directory in it e.g. apps and keep all your downloaded third-party apps there.

Linux Ubuntu - What does the asterisk mean after a filename

The asterisk after a filename means in Linux that that file is executable

Sunday, February 1, 2015

How to install Maven on Ubuntu Linux

Do it from terminal:
sudo apt-get update
sudo apt-get install maven

Saturday, January 31, 2015

Resolving Local in Ubuntu by fixing Avahi service

http://smallbusiness.chron.com/resolving-local-ubuntu-38861.html

Open for edit:
sudo gedit /etc/avahi/avahi-daemon.conf

Uncomment and change the value:
BEFORE
#domain-name=local

AFTER
domain-name=.alocal

If this did not fix the issue, add this line at the end of the file:
AVAHI_DAEMON_DETECT_LOCAL=0 

Save the changes and exit. 

What to do if Wi-Fi on Linux Ubuntu 14.04 does not work

In any case you will need to download two packages from the internet. How to do it if you still don't have the access? ))
 
Lets suppose that you have at least your mobile that is online. If so try to connect your mobile phone (in my case Samsung Galaxy SII) to Ubuntu by USB. Make sure Ubuntu could recognize your phone and let you see its internal folders. Thus, when you will be asked to download files by instruction given to you in the link below, download it first to your phone (e.g. into Download folder), then copy them to the Home directory of your Ubuntu.

So follow this instruction below:

Monday, January 5, 2015

How to install Apache Tomcat Server on Ubuntu

Here is the simplest way to install Tomcat 7 on Linux Ubuntu 14.04
Execute these commands from terminal

sudo apt-get update
sudo apt-get install tomcat7


Try run:
sudo /usr/share/tomcat7/bin/startup.sh 

If you've got an error do this:
sudo dpkg-reconfigure tomcat7

Can't run Tomcat from Intellij Idea?
cd /usr/share/tomcat7 
ln -s /etc/tomcat7 conf 
chmod -R 655 /etc/tomcat7/

Thursday, December 11, 2014

your current network has a .local domain which is not recommended and incompatible with the avahi

http://askubuntu.com/questions/339702/network-service-discovery-disabled-what-does-this-mean-for-me

It looks like avahi-daemon is started when the network connection is established (/etc/network/if-up.d/avahi-daemon). This notification is informing you that mDNS (Avahi) has been disabled. It's only used for a small number of applications that only work on the local network, it won't adversely affect your internet connection or DNS.
The most well known use for mDNS is sharing music with Rhythmbox (or iTunes) over your LAN. It's an Apple technology, but it's largely been ignored in favour of uPNP or DLNA.
To disable it, you must edit the file /etc/default/avahi-daemon as root:

sudo -i
gedit /etc/default/avahi-daemon
and add this line (or change it if already exists to):
AVAHI_DAEMON_DETECT_LOCAL=0 
 
Source: http://ubuntuforums.org/showthread.php?t=1632952 

Friday, December 5, 2014

How to resolve issues during the install of Skype 4.3.0 .37 on Linux Ubuntu 14.04

I could successfully resolve issues during the installing of Skype 4.3.0.37 on Linux Ubuntu 14.04 by these two commands:

sudo apt-get upgrade --fix-missing
sudo apt-get -f install

Check this link about this solution.

Saturday, February 1, 2014

LINUX UBUNTU 12.04 64-bit and Android SDK 32-bit issue - gradle: Cannot run program sdk build-tools android-4.4 aapt No such file or directory

If you got this kind of error during the building of Android app: Execution failed for task mergeDebugResources Cannot run program sdk build-tools android-4.4 aapt No such file or directory -- this happen because you run Android SDK 32-bit on Linux Ubuntu 12.04 64-bit.

You can fix it easily by installing this libraries:
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1

More about this issue here:
http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk
http://stackoverflow.com/questions/18928164/android-studio-cannot-find-aapt
 

Thursday, July 18, 2013

How to set correctly current date on linux, mac, etc


How to set timezone on Linux:
Find out your timezone here /usr/share/zoneinfo/
e.g. for Ukraine, Kiev it would be:
/usr/share/zoneinfo/Europe/Kiev

To apply it you need first to remove "localtime" file from etc/localtime
Then create from /usr/share/zoneinfo/Europe/Kiev soft link at /etc/ and name it "localtime", e.g.:
ln -s /usr/share/zoneinfo/Europe/Kiev /etc/localtime

Check created link:
ls -l
... /etc/localtime -> /usr/share/zoneinfo/Europe/Kiev


Update current time on your OS with NTP server:
ntpdate -b pool.ntp.org


Check your current date:
date
Thu Jul 18 13:55:20 EEST 2013

That's it.

Thursday, September 6, 2012

Check your laptop LINUX compatibility

If you want to check is it good idea or not to install LINUX on your notebook check this site: www.linlap.com

Example:

Samsung NP530U3B
http://www.linlap.com/wiki/samsung+np530u3b

Wednesday, January 18, 2012

How to login in Linux with X11 GUI


If you want login in Linux in graphical user interface X11 start to edit the inittab:

sudo vi /etc/inittab 

Then change number 3 in this line id:3:init:default: on 5 like this id:5:init:default: 
Restart Linux. That's all.

Thursday, November 3, 2011

Tuesday, May 10, 2011

How to Copy directory in Linux

Here is the command in Linux or Mac (in Terminal) that will make one directory to be copied into another:

cp -r one_directory other_directory.

Important add is the argument -r


Check this link about copy command in Linux.