Set Up Ubuntu Server 10.04.bashrc
umask 077
alias dir="ls -lX"
SSH Public Key AuthenticationCopy over the public key, then
> mkdir .ssh
> cat key.pub >> .ssh/authorized_keys
Packages
> dpkg -l
> sudo apt-get remove cups
> sudo apt-get remove openjdk*
> sudo apt-get install nmap
> sudo apt-get autoremove
JavaEdit /etc/apt/sources.list and uncomment the following two lines:
deb http://archive.canonical.com/ubuntu lucid partner Then
> sudo apt-get update
> sudo apt-get install sun-java6-jdk
Tomcat
> sudo apt-get install tomcat6 Once installed, Tomcat will be running at port 8080. The webapp directory is at /var/lib/tomcat6/webapps/ and the configuration files are under /etc/tomcat6/. Then install MySQL JDBC driver:
> sudo apt-get install mysql-java The JAR file will be under /usr/share/java with many other JAR files. MySQLIf MySQL is not installed already:
> sudo apt-get install mysql-server
To change the root password: > sudo dpkg-reconfigure mysql-server-5.1
|
This page has been viewed 45055 times.
