apt-get update
apt-get install build-essential linux-headers-`uname -r` psmisc
mkdir /media/cdrom
mount /dev/cdrom /media/cdrom
cp /media/cdrom/VMwareTools*.tar.gz /tmp
cd /tmp
tar xzf VMwareTools*.tar.gz
cd vmware-tools-distrib
./vmware-install.pl -d
Versione stable
echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
Versione Developer
echo "deb http://ppa.launchpad.net/nginx/development/ubuntu lucid main" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
update-rc.d -f apache2 remove
Per visualizzare i moduli caricati dentro apache si può utilizzare il commando
apache2 -t -D DUMP_MODULES
Nel caso in cui il commando di cui sopra dovess fallire con errore
apache2: bad user name ${APACHE_RUN_USER}
Utilizzate questa serie di commandi
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
apache2 -t -D DUMP_MODULES
Per monitorare le connessioni su una macchina linux con tanto di banda utilizzata è possibile utilizzare un piccolo programmino dal nome tcptrack.
Installazione:
apt-get install tcptrack
Uso:
tcptrack -i eth0
(dove eth0 è la interfaccia di rete)
Alcuni link utili
http://www.cyberciti.biz/faq/rhel-track-monitor-tcp-connections-on-network/
http://www.cyberciti.biz/tips/netstat-command-tutorial-examples.html
Per alcune esigenze (ram) ho dovuto rimuovere apache dal mio sistema ed installare al suo posto lighttpd. Uno dei pochi problemi provocati da questo passaggio è rappresentato dal fatto che non posso più utilizzare i plugin di apache per svn, quindi ho ricorso al svnserve che non è altro che un server standalone il cui unico scopo è quello di fornire l’accesso alle repository.
Continua…
Per installare subversion 1.6 su ubuntu 8.04 si può procedere in seguente modo:
vi /etc/apt/sources.list
Dentro il file aggiungete queste due righe
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main
deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main
Aggiungete la chiave gpg
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 413576CB
Aggiornate il tutto
apt-get update
apt-get upgrade
Se tutto è andato bene vedrete tra i pachetti suggeriti anche subversion e le librerie correlate.
First of all install proftpd by launching
apt-get install proftpd
When you are asked about how would you like to run proftpd, choose standalone
Now let’s take a look on proftpd config file
There are a few options to change
UseIPv6 off
(unless you want to use ipv6 protocol)
ServerName "YourServerName"
Your server name
Umask 002
This option decide masking (chmod permissions) of new files created by proftpd. With this settings user and group has the same rights (775)
Then decomment following settings:
DefaultRoot ~
RequireValidShell off
And add to the end of file
UseReverseDNS off
IdentLookups off
AuthUserFile /etc/proftpd/ftpd.passwd
AuthOrder mod_auth_file.c
Now we need to create some virtual user. For this operation we can use ftpasswd tool, which is a perl script installed with proftpd.
cd /etc/proftpd/
ftpasswd \
--passwd \
--name=alekc \
--uid=9000 \
--gid=33 \
--home=/var/www \
--shell=/bin/false
It will output something like
ftpasswd: creating passwd entry for user alekc
ftpasswd: /bin/false is not among the valid system shells. Use of
ftpasswd: "RequireValidShell off" may be required, and the PAM
ftpasswd: module configuration may need to be adjusted.
Password:
Re-type password:
ftpasswd: entry created
Restart proftpd
/etc/init.d/proftpd restart
Sembrerebbe che checkinstall sotto ubuntu ha qualche bug che gli impedisce di funzionare correttamente.
Una soluzione da provare sarebbe
sudo checkinstall -D --fstrans=no --install=yes
Per rimuovere le notifiche del tipo
snmpd[4632]: Connection from UDP: [127.0.0.1]:33326
basta aggiungere in /etc/snmp/snmpd.conf la linea
dontLogTCPWrappersConnects true