Today I successfully installed Tomcat 7 on Ubuntu Server 12.4 LTS with the following commands (executed as root):
apt-get install default-jdk apt-get install tomcat7 apt-get install tomcat7-admin apt-get install tomcat7-examples
Today I successfully installed Tomcat 7 on Ubuntu Server 12.4 LTS with the following commands (executed as root):
apt-get install default-jdk apt-get install tomcat7 apt-get install tomcat7-admin apt-get install tomcat7-examples
Git installs as a normal package on Ubuntu:
sudo apt-get install git |
Configuring Git user is an optional step:
git config --global user.email "you@example.com" git config --global user.name "Your Name" |
Type the following command to create an empty repository wherever your code is:
cd ~ git init |
This is a draft version of the post. It’ll be revised.
Update the server:
aptitude update aptitude safe-upgrade
Install FTP server:
apt-get install proftpd
To jail all users in their home directories uncomment line
DefaultRoot ~
in /etc/proftpd/proftpd.conf. To jail all but one users modify this line as follows:
DefaultRoot ~ !<user1>
note that there is a space after ‘~’.
The first thing that I did after installing sendmail with
aptitude install sendmail
is I put “gate.localhost” (gate is my server name) to /etc/hosts so it looks like this:
127.0.0.1 localhost.localdomain localhost 127.0.1.1 gate.localhost gate # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
With default /etc/hosts containing only “gate” and “localhost” sendmail hangs up for a while and writes to /var/log/mail.log the following message:
My unqualified host name (gate) unknown; sleeping for retry.
By default, Apache on Ubuntu executes all PHP scripts under www-data user, hence in situations where multiple mutually distrusting users have the possibility to put their PHP scripts on the server they could potentially spy on each other private data.
For example, the user user1 could put a PHP script that access file ‘file1.txt’ belonging to user2:
echo file_get_contents("/home/user2/www/file1.txt");