Tuesday, September 29, 2009

Faster Netbeans startup

There are two easy ways for faster Netbeans startup

1. Un-install/Deactivate ununsed plugin from Tool|Plugin Menu
2. Go to /etc/conf and open netbeans.conf file, change the Java Heap size there
change -J-Xms32m To -J-Xms512m


Thursday, September 03, 2009

anonymous upload using vsftpd

Alright. I need to run an FTP server on my UBUNTU slice @ slicehost. The content is not very sensitive so I am okay with anonymous login but with a password. I had to make some changes to the default /etc/vsftpd.conf to make it work. My requirement is to allow anonymous users to upload content and then that content should be readable by other local accounts (change file permissions after vsftpd has uploaded them)
To allow anonymous upload and file mode changes with vsftpd on ubuntu I had to make following changes from default install

  • create a new directory called pub inside /home/ftp , make sure this directory is writable and not owned by ftp user, see man page of vsftpd
  • Adjust file_mode and anon_umask
  • Create an email password file
Here is the full configuration file


1:  listen=YES 
2: anonymous_enable=YES
3: write_enable=YES
4: anon_upload_enable=YES
5: anon_root=/home/ftp
6: anon_mkdir_write_enable=YES
7: dirmessage_enable=YES
8: xferlog_enable=YES
9: connect_from_port_20=YES
10: ftpd_banner=Welcome to indigloo art FTP service.
11: secure_chroot_dir=/var/run/vsftpd
12: pam_service_name=vsftpd
13: rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
14: rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
15: file_open_mode=0777
16: anon_umask=022
17: secure_email_list_enable=YES
18: email_password_file=/home/rjha/vsftpd.passwords
© Life of a third world developer
Maira Gall