Sunday, April 25, 2010

Lucid Lynx installed

6 months ago, I installed Ubuntu 9.10 side by side with Windows XP on a laptop. I let Ubuntu livecd to do all the task, resize XP partition, create Linux root and swap partiton. It worked flawlessly. Each time I start this laptop, I have a chance to choose between Ubuntu and XP, by default Ubuntu.

Last week, Ubuntu 10.04 RC released. It's time to upgrade but the problems are:

  • Ubuntu 9.10 automatically assigned 6ish GB to Linux partitions (/ and swap). It's not big enough to upgrade directly.
  • if I remove these 2 partitions, I cannot get my Windows XP started because GRUB will be damaged.

It seems the only way is to accept previous partitions and install new version on them.

When I was just about to start, I got another idea, better and risky. I removed Linux partitions using GParted, resize XP partition to use this newly freed space. Note that I unchecked Round to cylinder, otherwise error occurred. At this time, I could not boot this laptop to Windows XP, grub rescue prompt is shown and I don't know what to do in it.

Then I booted the laptop with livecd and did just the same as I did 6 months ago. I worked and Linux partitions now occupied 12ish GB. I'm happy to work this out and happier to see a more confident Ubuntu.

Tuesday, April 13, 2010

FTP Dialects

I'm researching the possibilities of an FTP Proxy that can act as an authentication plugin of an FTP server. As a side product, I experienced totally different FTP dialects from popular FTP clients.

FileZilla 3.3.2.1
(000001) 13/04/2010 9:54:18 AM - (not logged in) (127.0.0.1)> Connected, sending welcome message...
(000001) 13/04/2010 9:54:18 AM - (not logged in) (127.0.0.1)> 220-FileZilla Server version 0.9.34 beta
(000001) 13/04/2010 9:54:18 AM - (not logged in) (127.0.0.1)> 220-written by Tim Kosse (Tim.Kosse@gmx.de)
(000001) 13/04/2010 9:54:18 AM - (not logged in) (127.0.0.1)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000001) 13/04/2010 9:54:18 AM - (not logged in) (127.0.0.1)> USER zhao
(000001) 13/04/2010 9:54:18 AM - (not logged in) (127.0.0.1)> 331 Password required for zhao
(000001) 13/04/2010 9:54:18 AM - (not logged in) (127.0.0.1)> PASS ********
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 230 Logged on
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> SYST
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 215 UNIX emulated by FileZilla
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> FEAT
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 211-Features:
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> MDTM
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> REST STREAM
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> SIZE
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> MLST type*;size*;modify*;
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> MLSD
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> UTF8
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> CLNT
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> MFMT
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 211 End
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> PWD
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 257 "/" is current directory.
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> TYPE I
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 200 Type set to I
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> PASV
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,4,27)
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> MLSD
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 150 Connection accepted
(000001) 13/04/2010 9:54:18 AM - zhao (127.0.0.1)> 226 Transfer OK

Firefox 3.6.3
(000002) 13/04/2010 9:59:59 AM - (not logged in) (127.0.0.1)> Connected, sending welcome message...
(000002) 13/04/2010 9:59:59 AM - (not logged in) (127.0.0.1)> 220-FileZilla Server version 0.9.34 beta
(000002) 13/04/2010 9:59:59 AM - (not logged in) (127.0.0.1)> 220-written by Tim Kosse (Tim.Kosse@gmx.de)
(000002) 13/04/2010 9:59:59 AM - (not logged in) (127.0.0.1)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000002) 13/04/2010 9:59:59 AM - (not logged in) (127.0.0.1)> USER zhao
(000002) 13/04/2010 9:59:59 AM - (not logged in) (127.0.0.1)> 331 Password required for zhao
(000002) 13/04/2010 9:59:59 AM - (not logged in) (127.0.0.1)> PASS ********
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 230 Logged on
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> SYST
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 215 UNIX emulated by FileZilla
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> PWD
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 257 "/" is current directory.
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> TYPE I
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 200 Type set to I
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> PASV
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,4,218)
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> SIZE /
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 550 File not found
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> MDTM /
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 550 File not found
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> RETR /
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 550 File not found
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> PASV
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,4,220)
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> CWD /
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 250 CWD successful. "/" is current directory.
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> LIST
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 150 Connection accepted
(000002) 13/04/2010 9:59:59 AM - zhao (127.0.0.1)> 226 Transfer OK

IE 8
(000003) 13/04/2010 10:01:42 AM - (not logged in) (127.0.0.1)> Connected, sending welcome message...
(000003) 13/04/2010 10:01:42 AM - (not logged in) (127.0.0.1)> 220-FileZilla Server version 0.9.34 beta
(000003) 13/04/2010 10:01:42 AM - (not logged in) (127.0.0.1)> 220-written by Tim Kosse (Tim.Kosse@gmx.de)
(000003) 13/04/2010 10:01:42 AM - (not logged in) (127.0.0.1)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000003) 13/04/2010 10:01:42 AM - (not logged in) (127.0.0.1)> USER zhao
(000003) 13/04/2010 10:01:42 AM - (not logged in) (127.0.0.1)> 331 Password required for zhao
(000003) 13/04/2010 10:01:42 AM - (not logged in) (127.0.0.1)> PASS ********
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> 230 Logged on
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> CWD /
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> 250 CWD successful. "/" is current directory.
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> TYPE A
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> 200 Type set to A
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> PASV
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,4,226)
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> LIST
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> 150 Connection accepted
(000003) 13/04/2010 10:01:42 AM - zhao (127.0.0.1)> 226 Transfer OK

It looks that Firefox has the ugliest commands, right?