Use apt-cachesearch to find the desired package name, for example: # sudoapt-cacheserachjava6openjdk-6-jdk-OpenJDKDevelopmentKit (JDK) openjdk-6-jre-OpenJDKJavaruntime, usingHotspotJITopenjdk-6-jre-headless-OpenJDKJavaru
Use apt-cache search to find the required software package name
For example:
# Sudo apt-cache serach java6
Openjdk-6-jdk-OpenJDK Development Kit (JDK)
Openjdk-6-jre-OpenJDK Java runtime, using Hotspot JIT
Openjdk-6-jre-headless-OpenJDK Java runtime, using Hotspot JIT (headless)
# Sudo apt-cache serach tomcat6
Libtomcat6-java-Servlet and JSP engine -- core libraries
Tomcat6-Servlet and JSP engine
Tomcat6-admin-Servlet and JSP engine -- admin web applications
Tomcat6-common-Servlet and JSP engine -- common files
Tomcat6-docs-Servlet and JSP engine -- documentation
Tomcat6-examples-Servlet and JSP engine -- example web applications
Tomcat6-extras-Servlet and JSP engine -- additional components
Tomcat6-user-Servlet and JSP engine -- tools to create user instances
1. install ProFTP
Sudo apt-get install-y proftpd
Add/bin/false to/etc/shells
Mkdir/home/ftpuser
Create a user ftpuser that can only be used to read ftp
Useradd ftpuser-p anything-d/home/ftpuser-s/bin/false
Create a download and an upload directory under the ftpuser directory:
Sudo chmod 777 ftpuser
Now go to the proftpd configuration file:
Sudo vi/etc/proftpd. conf
If inetd,/etc/init. d/proftpd start is selected for ServerType, an error is returned because you have selected inetd to run.
ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.
To manually execute ProFTPD, set ServerType to standalone.
Useradd ftpuser-p anything-d/home/ftpuser-s/bin/false // Add a user
Ftpasswd -- home =/home/ftpuser -- shell =/bin/false -- name = ftpuser -- uid = 1002 -- gid = 1002 -- passwd
Chown-R ftpuser: ftpuser
Passwd ftpuser: Set the ftpuser Password
You also need to modify the permissions of the ftp home directory and the corresponding options in/etc/proftpd. conf.
Modify DefaultRoot as the user's main directory
2. install Tomcat 6
# Sudo apt-get install-y openjdk-6-jdk
# Sudo apt-get install-y openjdk-6-jre
# Sudo apt-get install-y openjdk-6-jre-headless
# Sudo apt-get install-y tomcat6
Wait a moment. Tomcat 6 will be automatically installed in the/usr/share/Tomcat6 directory.
Set the JAVA environment for Tomcat running
First, make sure that Sun's Java Development Toolkit has been installed. If not, refer to Java.
Start and Stop Tomcat
To start Tomcat, run
Qii @ Ubuntu :~ $ Sudo/etc/init. d/tomcat6 start
* Starting Tomcat servlet engine tomcat6 [OK]
Open the browser and enter http: // localhost: 8080 in the address bar.
Tomcat is successfully installed.
To stop Tomcat, run
Qii @ ubuntu :~ $ Sudo/etc/init. d/tomcat6 stop
* Stopping Tomcat servlet engine tomcat6 [OK]
Tomcat configuration file path
Tomcat home directory:/usr/share/tomcat6
Tomcat base directory:/var/lib/tomcat6
Set the Tomcat Administrator Account
Tomcat user account information is saved in the tomcat-users.xml file, run
Sudo nano/var/lib/tomcat6/conf/tomcat-users.xml
InAdd a line before the label
Save and close. Run tomcat again and enter the user name and password to log on to the Tomcat Management page.
Disadvantages
By default, Ubuntu divides Tomcat into two directories. When the Eclipse Server is configured later, it will drive people crazy. If no path is configured, Eclipse cannot identify the installed Tomcat. Solution: sudo ln-s/var/lib/tomcat6/conf/usr/share/tomcat6/conf sudo ln-s/etc/tomcat6/policy. d/03catalina. policy/usr/share/tomcat6/conf/catalina. policy sudo ln-s/var/log/tomcat6/usr/share/tomcat6/log sudo chmod-R 777/usr/share/tomcat6/conf
Download and install the latest Tomcat version
This method bypasses the Ubuntu Package Manager and downloads and uses the Tomcat software directly from the Apache Tomcat homepage. This method is convenient and quick to install the old version or new test version of Tomcat without affecting system stability, easy to use.
Download from the official tomcat page
Http://tomcat.apache.org/download-70.cgi
Download the zipw.tar.gz package in Binary-> corecategory, decompress it locally, and rename the newly generated directory to tomcat for ease of use. Move this folder to a PATH /. Please refer to the preceding steps to set environment variables and ports! Run directly
PATH/tomcat/bin/./startup. sh
Tomcat immediately serves in the background. (Replace PATH with the appropriate PATH)
Tomcat started successfully
Configure the development environment
Eclipse
Take the downloaded Eclipse for Java EE as an example. Right-click the panel at the bottom and select Servers-New-Server. Select the Tomcat version and add it to the path.
Add Tomcat to Eclipse
Preferences-Server-Runtime Environments
Add Tomcat to Eclipse
3. Install FFmpeg
# Wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-2.1.3-64bit-static.tar.bz2 Green Edition
# Tar-zxvf ffmpeg-2.1.3-64bit-static.tar.bz2
# Cd ffmpeg-2.1.3-64bit-static/
# Cp ffmpeg/usr/sbin
# Cp ffmpeg/usr/bin
# Cp ffmpeg/usr/local/sbin
# Cp ffmpeg/sbin
# Cp ffmpeg/bin
The ffmpeg installation is complete.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2