Friday, 29 June 2012

How To Install Android SDK On Ubuntu 12.04/11.10



The official instructions to install Android SDK do not appear to be really up-to-date for Ubuntu 12.04, so I’ll post how I’ve installed the Android SDK and Eclipse on Ubuntu 12.04.





First download and decompress Android SDK for Linux:
wget http://dl.google.com/android/android-sdk_r20-linux.tgz
tar xzvf android-sdk_r20-linux.tgz
on 64-bit Ubuntu:
apt-get install ia32-libs
Sun Java is not part of Ubuntu packages anymore, so you’ll need to use openjdk instead
apt-get install openjdk-6-jdk
Now install the SDK
cd android-sdk-linux/tools
./android sdk
Android SDK Manager should show up.
Android SDK Manager in Ubuntu 12.04
Use the default recommended packages and platforms, as well as any extra packages you may need, and click on Install x packages, accept all licenses and after installation is complete, the Android SDK is installed.

Eclipse IDE is optional, but it’s the most widely used IDE to develop Android apps. You can install Eclipse as follows:
sudo apt-get install eclipse-jdt
Once both Android packages and platforms, and eclipse are installed, start eclipse:
eclipse
Then in the top menu, click on Help->Install New Software, then click on Add and enter “ADT Plugin” for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click on OK, and Check “Developer Tools” and click Next, and complete a few more easy steps until the installation completes.

The final step after you’ve installed ADT and restarted Eclipse, is to set the location of the Android SDK directory. 

Select Window->Preferences…, select  Android and click on Browse to set the location of your Android SDK directory (android-sdk-linux), then click on Apply and you should see a list of Android SDK targets.

Click on OK. That’s it, you’ve now installed and configured the Android SDK and Eclipse in Ubuntu, and are ready to get started with App development.

Android SDK (Release 18)


Android SDK is a development kit targeted at mobile devices running the Android operating system. With Android SDK, you can develop, debug, and test apps via a built-in emulator that emulates the Android OS in many platforms (Linux, Windows, etc.).

In this page we will help you install the latest vesrion of Android SDK (Release 18) under Ubuntu 12.04/11.10 via our PPA. If you want to install it manually, you can check this page for more information.


Android SDK (Release 18) Installation


Open the terminal and run the following commands to install Android SDK + Eclipse on Ubuntu 12.04/11.10:

sudo add-apt-repository ppa:upubuntu-com/devel


sudo apt-get update


sudo apt-get install android-sdk

Note: Android SDK will be installed in the "/usr/bin/android-sdk-linux" folder), you should include this path in Eclipse (Preferences window) after adding the ADT plugin.


You can now start Android SDK Manager from the Unity dash to start adding Android platforms and other related packages:

===========================================

Android SDK for Ubuntu 11.04/10.10/11.10

How to Install and Configure Android SDK with Eclipse IDE

before diving into installing steps for android sdk in Ubuntu 11.04, 

  1. JDK (Java Development Kit)
  2. Eclipse IDE
If my assumption is wrong (I mean you haven’t installed the Java SDK and Eclipse IDE) , then follow these link :

how to install jdk on Ubuntu 11.04

Ubuntu 11.04 (Natty Narwhal) ) is one of the most popular Linux distribution on this planet while Java, the most popular programming language (Platform independent features makes Java Great! and superior to any other programming language, for building web and Desktop Applications). Due to a number of free( and of course they’re good) tools, compilers and other options Ubuntu has become the No. 1 choice, as a development platform, among the Java Developers (specifically young programmers).
If you are just a common user then you need only JRE (Java Runtime Environment) to execute java programs but If are going to write java programs or develop Apps then you need to install Java Development Kit (JDK, complete suite for Java Developers) along with some IDE like Eclipse or Netbeans (Not really necessary for absolute beginners). A lot of JDK’s are available, so if you have programmed before then choose the one you like, but on the other hand, try open-jdk-6, an open source Java Development Kit (contains Javac, an open source Java compiler and ). This post will explain – about installation procedure of Open-JDK on a freshly installed Ubuntu 11.04.
Java logo

Installing Java Development Kit (JDK) on Ubuntu 11.04

#1 : Open Synaptic Package Manager (and click on update button, it’s not necessary but it’s usually a good practice because in this way you will get the latest details about the packages), and search for ‘JDK’ or ‘open jdk’ in the quick search bar.



installing-jdk-ubuntu-11-04

#2 : Then select the package for installation ( by checking the small square box) and click on ok, if it asks for dependencies.

#3 : Now, click on ‘Apply’ button to begin the installation procedure…and wait for the installation to complete.

#4 : That’s All..to verify, open Terminal (CTRL+ALT+T) and type javac, you will see a lot info about the Java Compiler and …

Install JDK from command Line

Open Terminal and enter the following command(s), then enter your ubuntu login password followed by ‘y’ when prompted for yes/no.

sudo apt-get install openjdk-6-jdk

 

 

 

Now, you can install Android in two simple steps :

step #1 : Download and install the android package(s).

Then extract the package(s) either by right clicking -> extract or do it from Terminal :
Open Terminal (CTRL+ALT+T) and move on (use cd target_directory) to the directory where you have downloaded the packages.

tar -xf android-sdk_r12-linux_x86.tgz

#cd android-sdk-linux/tools
 
#./android
 
Android SDK and AVD Manager will be started with the above command,
Android SDK and AVD Manager
now you just need to select the packages (first one you get after expanding Android Repository, is probably mandatory and select the SDK platform version for your targeted device, documentation, sample apps…or any third party Add ons if required) you want to install, then click on ‘Installed Selected’ button; wait for the Download/Installation to complete. (Since the selected packages will be fetched from Internet you need an active internet connection during installation procedure)

ADT Plugin Installation in Eclipse


Use the dash to start Eclipse and go to Help > Install Software:


In the pop-up window, click the Add button and enter the following details and click OK:

Name: ADT Plugin
Location: https://dl-ssl.google.com/android/eclipse/


Check on Developer Tools and click Next:


You will shortly get a list of tools to be downloaded. Click Next:


Accept terms of the license agreements and click Finish to start the installation of selected items:


When the installation finishes, restart Eclipse so that changes take effect. You can now start developing your Android apps and games!


Wednesday, 27 June 2012

Win Tips1:Thunderbird profile backup ?

(1) Thunderbird profile backup in Windows?

Restoring the mail backup

1. Install Mozilla Thunderbird first if it is not installed yet, after installation do not run Mozilla Thunderbird when prompted to.
2. Move or copy the backup Thunderbird folder and place in c:\documents and settings\your-username\application data. If Thunderbird folder already exist then rename the existing folder and move it again.
3. After you have finished moving the Thunderbird folder, Open the Mozilla Thunderbird. You should have a fully configured and restored mail by now.

 Find the profile Thunderbird folder

They are located in different places for different versions of Windows and they may be assigned random file names that make them difficult to recognize.
On Windows 2000/XP/2003/Vista machines the location for your Thunderbird profile is:
C:\Documents and Settings\Shankar/Application Data\Thunderbird\Profiles\ickz8bn7.default---->

then copy this file remote system----->rename xxxx.default....

---------
LINUX:
Mozilla thunderbird stores your email and profile setting in a special directory called ~/.thunderbird i.e. /home/you/.thunderbird/ or ~/.thunderbird directory. All you have to do is backup this directory.

Task: Backup Thunderbird mail and profile

You need to backup thunderbird mail and profile to tape drive, use:
$ tar zcvf /dev/st0 /home/you/.mozilla-thunderbird/
To backup files to USP pen driver mounted at /media/disk, enter
$ cp -avr /home/you/.thunderbird/ /media/disk
You need to backup thunderbird mail and profile to a /backup directory:
# tar zcvf /backup/email-vivek-22jan2007.tar.gz /home/vivek/.thunderbird/
You can copy /backup/email-vivek-22jan2007.tar.gz file to a CD/DVD or USB pen.

Task: Restore Thunderbird mail and profile

Make sure Thunderbird is not running. Simply copy backup files from tape, USB pen or CD to your /home/you/.mozilla-thunderbird/ directory:
$ tar –zxvf /backup/email-vivek-22jan2007.tar.gz -C /home/vivek



How to Backup Thunderbird Email on Windows7

Backing up Mozilla Thunderbird email on Windows 7 is a simple process of archiving your Thunderbird profile. Follow these steps to backup emails for Thunderbird on Windows 7:
Step 1 Close Mozilla Thunderbird
Step 2 Viewing Hidden Files and Folders
  • select Start menu
  • search “folder options” and select Folder Options
  • select View tab
  • select “Show hidden files, folders, and drives
  • select Apply
  • select OK to close
Step 3 Locate and Archive your Profile
  • select file explorer
  • navigate to C:\Users\[Your Username]\AppData\Roaming\Thunderbird\Profiles
  • On Windows 7 & Vista Thunderbird data is stored at: C:\Users\<user name>\AppData\Roaming\Thunderbird\
  • locate *.profile (preceded with random 8 character set: ie. v03180j5.profile)
  • zip *.profile (right click v03180j5.profile and Add to Zip)*

Tuesday, 26 June 2012

Ubuntu Tips

==============================

How to use Update Manager to update your Ubuntu system 12.04

1.Click the gear icon on the far right end of the panel at the top of your Ubuntu 12.04 desktop.

2. Choose the Updates Available option.

3. Update Manager will open and refresh itself (or you can click the Check button to manually do it). 

4. By default all of the updates will be checked, but you can uncheck the ones you don't want. 

5. When you're ready to update, click the Install Updates button. 

6. Type in your password.

7. Click the Authenticate button to begin updating your Ubuntu 12.04 system.

============================== 

Howto- Install Skype in Ubuntu 12.04 Precise Pangolin

To get started go to this website and download a version for your system. You can choose a 32-bit or 64-bit version for your system.

When prompted, choose ‘Open with Ubuntu Software Center (default)’

skype_4_precise

Then click the ‘Install’ button to install it.

skype_4_precise_2

Enjoy!

skype_4_precise_3

 

===========================

Installing jdk7 in ubuntu 12.04 (64 bit)


This way has always worked for me:
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

 

 

error:eclipse

/home/velammal/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1340727186784.log.

 velammal@dcimobileteam1:~/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration$ tail 1340727186784.log
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

 

 

Monday, 25 June 2012

Boot Ubuntu Linux into Rescue mode to fix system

 Q:How do I boot my Ubuntu Linux server into Rescue mode to fix system?

A. You can boot Ubuntu Linux into rescue mode when things go wrong, there are several ways to work on fixing them. However, you must understand your system and what to fix in case of emergency.

Use this mode only if your system is unbootable. It is also recommended that you make backup of important data.

=> Start Computer / reboot computer

=> Put your Ubuntu install CD
=> Make sure BIOS is set to boot from CD

=> Now booting will start from Ubuntu install CD

=> You will see various option screen - select Recover a broken system

You will system is booting in to rescue mode; system will ask about Network and other information. This is required to setup rescue environment.

Now you will prompted to select root partition or device.
Next it will try to mount root device and it will notify the same.
Now you will see common rescue mode option such as Reinstall GRUB or open / execute a shell etc.

Now you are in rescue mode and you need to use your own knowledge to rescue the system. When things go wrong, there are several ways to work on fixing them.

Few things to remember....

The rescue-mode CD mounts your root filesystem at /target directory. Open or execute a shell and change directory to /target

# ls /target
# cd /target
# mount
 
If you need to run fsck command use fdisk -l command to find out partition name. Usually they are located at /dev/discs/discX/partY. For example repair 2nd partition (not mounted as /target) you may type command:

# ls -l /dev/discs/disc0
# fsck.ext3 /dev/discs/disc0/part1

To exit type command : # sync ;sync
# exit
# reboot
 
As I said earlier in rescue mode, there is no single command that I can recommend to fix problem. You need to use your own knowledge to rescue the system and don't forget to read command documentation before using any command.

Ubuntu Rescue Mode Step by step:

1.How to gain root user access without login?

  1. Easiest method (will not work if GRUB menu password is set)
    1. Boot-up computer
    2. If GRUB menu is hidden, press Esc to enter the GRUB menu
    3. Select Ubuntu, kernel 2.6.12-8-386 (recovery mode)
       
    4. Press Enter to boot
  2. Another method is described at How to use a Ubuntu installation CD to gain root user access?
2. How to modify kernel boot-up arguments, to gain root user access?

  1. Boot-up computer
  2. If GRUB menu is hidden, press Esc to enter the GRUB menu
  3. If GRUB password is set, press p to unlock the GRUB menu
  4. Select Ubuntu, kernel 2.6.12-8-386
     
  5. Press e to edit the commands before booting
  6. Select kernel /boot/vmlinuz-2.6.12-8-386 root=/dev/hda2 ro quiet splash
     
  7. Press e to edit the selected command in the boot sequence
  8. Add rw init=/bin/bash to the end of the arguments

    grub edit> kernel /boot/vmlinuz-2.6.12-8-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
     
  9. Press b to boot
3. How to use a Ubuntu installation CD to gain root user access?

  1. Boot-up computer into Ubuntu Installation CD
  2. At “boot:” prompt, add “rescue” to the argument
    boot: rescue
     
  3. Follow the instructions on screen
4. How to change root user/main user password if forgotten?

  1. Read How to gain root user access without login?
     
  2. To change root user password
    # passwd root
     
  3. To change main user password
    # passwd system_main_username
5. How to change GRUB menu password if forgotten?


  1. grub
    
    grub> md5crypt
    Password: ****** (ubuntu)
    Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
    grub> quit
    
    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    sudo gedit /boot/grub/menu.lst

  2. Find this line
    ...
        password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    ...
  3. Replace with the following line
    password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
                                
  4. Save the edited file (sample/menu.lst_changegrubpasswordforgotten)
6. How to restore GRUB menu after Windows installation?

  1. Read How to use a Ubuntu installation CD to gain root user access?
     
  2. Assuming that /dev/hda is the location of /boot partition

  3. # grub-install /dev/hda

7. How to add Windows entry into GRUB menu?

  1. If you need to reinstall GRUB, read How do I check disk space and view the partition table?
     
  2. Launch System->Administration->Boot
     
  3. Click on Add.
  4. Choose a name such as "Windows XP" and the OS type is unknown.
  5. Assuming that /dev/hda1 is the location of Windows partition, choose that from the drop-down list
8. How to read Linux partitions (ext2, ext3) in Windows?

  1. Download Ext2fs

Linux Real Time Issue4

1. After our EMC storage admin had attached (only one) LUN to this server ,output of "fdisk -l " contain a lot of    /dev/sd* which don't have valid partition. You mean that all of them are belong to thae EMC storage LUN? And I have to make file system on all of them?

Thanks in advance

I currently have Oracle Linux RHEL5 running and have installed a HBA to
connect to the SAN(EMC). You can see the HBA from the SAN but cannot
see the SAN storage from the Linux box.
The question is how do I connect the Linux box to that space?
I have no port_name file in /sys/class/scsi_host/host* folder.something is wrong with it?


# uname -a
Linux mapor-linux 2.6.18-128.el5xen #1 SMP Wed Jan 21 09:07:41 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p5 95G 54G 37G 60% /
/dev/cciss/c0d0p8 48G 26G 20G 58% /home
/dev/cciss/c0d0p7 48G 359M 45G 1% /tmp
/dev/cciss/c0d0p6 54G 3.0G 48G 6% /usr
/dev/cciss/c0d0p2 474G 180G 270G 40% /u01
/dev/cciss/c0d0p1 680M 36M 609M 6% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/mpath0p1 493G 393G 75G 85% /backup
172.27.8.31:/storage 296G 189G 92G 68% /net
# fdisk -l

Disk /dev/cciss/c0d0: 899.8 GB, 899898718208 bytes
255 heads, 32 sectors/track, 215393 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 176 718064 83 Linux
/dev/cciss/c0d0p2 177 125917 513023280 83 Linux
/dev/cciss/c0d0p3 125918 151015 102399840 82 Linux swap / Sol aris
/dev/cciss/c0d0p4 151016 215393 262662240 5 Extended
/dev/cciss/c0d0p5 151016 176113 102399824 83 Linux
/dev/cciss/c0d0p6 176114 190293 57854384 83 Linux
/dev/cciss/c0d0p7 190294 202842 51199904 83 Linux
/dev/cciss/c0d0p8 202843 215391 51199904 83 Linux

Disk /dev/sda: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 65270 524281243+ 83 Linux

Disk /dev/sdb: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 65270 524281243+ 83 Linux

Disk /dev/sdc: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 65270 524281243+ 83 Linux

Disk /dev/sdd: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 65270 524281243+ 83 Linux

Disk /dev/sde: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sde1 1 65270 524281243+ 83 Linux

Disk /dev/sdf: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdf1 1 65270 524281243+ 83 Linux

Disk /dev/sdg: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdg1 1 65270 524281243+ 83 Linux

Disk /dev/sdh: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdh1 1 65270 524281243+ 83 Linux

Disk /dev/dm-0: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/dm-0p1 1 65270 524281243+ 83 Linux

Disk /dev/dm-1: 536.8 GB, 536863993344 bytes
255 heads, 63 sectors/track, 65269 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/sdi: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdi doesn't contain a valid partition table

Disk /dev/sdj: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdj doesn't contain a valid partition table

Disk /dev/sdm: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdm doesn't contain a valid partition table

Disk /dev/sdp: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdp doesn't contain a valid partition table

Disk /dev/sdq: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdq doesn't contain a valid partition table

Disk /dev/sdr: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdr doesn't contain a valid partition table

Disk /dev/sdw: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdw doesn't contain a valid partition table

Disk /dev/sdx: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes

Disk /dev/sdx doesn't contain a valid partition table

Filezilla Errors

FileZilla connection timed out error message




If you get this error message, you will need to go to Edit, Settings
Under the Connection option, find the timeout section
You will need to change the timeout in seconds to a higher number (i.e. 160)
Click ok
Try to connect again; the error message should be resolved


To View Overall:::Network Configrutaion
http://wiki.filezilla-project.org/Network_Configuration

Testing:
http://ftptest.net/

==============================
Filezilla Error: Failed to retrieve directory listing

 
Filezilla Error: Failed to retrieve directory listing
Error: Connection timed out

You might have faced this issue because of default setting of Connection in your Filezilla like this :

FTP >> Active Mode: Get External IP Address From This URL, Which pointed to http://ip.filezilla-project.org/ip.php .

This is the source of the problem. If you go to above mentioned URL, you will probably get a result of 127.0.0.1. If the Filezilla client needs the external address and is given 127.0.0.1 (localhost) then there will be problems in connection.

You need to configure your Filezilla client as mentioned below :

Open Filezilla, go to Edit >> Settings >> Click on Connection >> FTP: Choose Active >> Click on Connection >> FTP >> Active Mode: Select “Ask your operating system for the external IP address” >> Click on Connection >> FTP >> Passive Mode: Choose Fall Back to Active Mode >> Press OK.

Try connecting to your FTP site once again and it should work now.

If you are behind any firewall/security settings then make sure that they are configured to allow FTP access or disable the firewall/security settings and try again connecting to your FTP site.

If you have root access to your server then you may have a look to the logs (/var/log/secure and /var/log/messages files) for more information regarding FTP connectivity issue.

Connection Time Out in FTP

Usually Time Out Error occurs when we try to upload large files. We need to check following at our local system:

1. Make sure that the FTP settings in your client is correct like as hostname, username and password, port to connect etc.

2. Try enabling “passive mode” in FTP client.

3. Check personal firewall/security settings, programs like Norton Anti-Virus to make sure that they are configured to allow FTP access. Try turning these programs completely off and retry FTP.

4. Check for any timeout settings in local FTP client and try increasing this.

4. If you continue to have trouble, the time out via the FTP is most likely because of one or more dropped packets at your ISP or at any of the intermediate routers. When you connect to our server, you are usually going through 14-20 other routers before it gets to remote destination. If any one of them lose a packet it can cause problems with FTP. One way to get around this is to have a constant PING open – this keeps the connection through the different servers alive.

In Windows Machine :

open a DOS window on your computer and type the following, it will keep a ping open:
ping -t domainname.com

In Linux Machine, use the command line below:

ping domainname.com

PS : Replace “domainname.com” with your domain name. Then once your upload has completed, press Control-C to cancel the ping.
==============================
use Filezilla FTP client to manage files on many servers. I had a specific Filezilla client that refused to retrieve a directory listing. Other computers could connect to the same server just fine. Thusly I knew it was a client configuration problem.
I ended up with messages like this:
Response: 200 PORT command successful. Consider using PASV.
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
I ran the Filezilla configuration wizard to diagnose the problem. The configuration wizard utility ran for a while reporting success until the very end. After timing out, I received the following messages:
Response: 200 PORT command successful
LIST
Response: 150 opening data connection
Response: 503 Failure of data connection.
Server sent invalid reply.
Connection closed
Searching the Internet led to not so helpful posts such as "Please read the Network Configuration guide.". After analyzing the situation, it turns out the solution isn't so obvious. My Client had the default setting of Connection -> FTP -> Active Mode: Get External IP Address From This URL. Which pointed to http://ip.filezilla-project.org/ip.php . This is the source of the problem. If you go to that URL, you will probably get a result of 127.0.0.1. If the Filezilla client needs the external address, and is given 127.0.0.1, then there will be problems indeed!
If you have a similar problem with Filezilla, and the problem persists even when the Windows Firewall is disabled,

here is what you need to do:
  • Open Filezilla, go to Edit -> Settings
  • Click on Connection -> FTP: Choose Active
  • Click on Connection -> FTP -> Active Mode: Select "Ask your operating system for the external IP address"
  • Click on Connection -> FTP -> Passive Mode: Choose Fall Back to Active Mode
  • Press OK.
Try connecting to your FTP site once again. Works!

Update: In some cases, and for reasons unknown, Filezilla just won't work. I have found that coreFTP is a nice FTP program that is free Windows software which includes the client FTP features you need. Features like SFTP (SSH), SSL, TLS, IDN, browser integration, site to site transfers, FTP transfer resume, drag and drop support, file viewing & editing, firewall support, custom commands, FTP URL parsing, command line transfers, filters, and much, much more!

==============================
I was connecting fine in active mode then this:
Command: PORT 10,0,0,101,235,118
Response: 501 Server cannot accept argument.
Command: PASV
Response: 227 Entering Passive Mode (22,11,55,33,195,182).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out
Error: Failed to retrieve directory listing

it was switching to passive mode and trying port:
256*195+182=50102
I didn't see how to configure in filezilla what ports it used in the switch over. Seemed to use the same one each time so just opened ports 49152 - 50300 in the firewall.
Worked! got the directory listing.
===============================
I found two solutions that worked for me:

1, go to http://www.hotspotbot.com and down load Hot Spot Bot. Basically, the VPN will help you bypass firewall settings that could be on LAN or WAN routers. This solution worked but it was very slow. So,

2. Enable SFTP on the server and conect via SFTP. You may have to contact your hosting company or server administrator. In my case, I actually had to email a photo of my picture ID, but it was well worth it. It is fast, secure and reliable.

=================================

Status:   Resolving IP-Address for www.addinall.net
Status:   Connecting to 65.254.60.9:21...
Status:   Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [TLS] ----------
Response:   220-You are user number 2 of 50 allowed.
Response:   220-Local time is now 15:15. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 15 minutes of inactivity.
Command:   USER addinall
Response:   331 User addinall OK. Password required
Command:   PASS ********
Response:   230-User addinall has group access to: addinall
Response:   230 OK. Current restricted directory is /
Command:   SYST
Response:   215 UNIX Type: L8
Command:   FEAT
Response:   211-Extensions supported:
Response:    EPRT
Response:    IDLE
Response:    MDTM
Response:    SIZE
Response:    REST STREAM
Response:    MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:    MLSD
Response:    ESTP
Response:    PASV
Response:    EPSV
Response:    SPSV
Response:    ESTA
Response:    AUTH TLS
Response:    PBSZ
Response:    PROT
Response:   211 End.
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/" is your current location
Command:   TYPE I
Response:   200 TYPE is now 8-bit binary
Command:   PASV
Response:   227 Entering Passive Mode (65,254,60,9,160,49)
Command:   LIST
Error:   Connection timed out
Error:   Failed to retrieve directory listing
Status:   Resolving IP-Address for www.addinall.net
Status:   Connecting to 65.254.60.9:21...
Status:   Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [TLS] ----------
Response:   220-You are user number 2 of 50 allowed.
Response:   220-Local time is now 15:23. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 15 minutes of inactivity.
Command:   USER addinall
Response:   331 User addinall OK. Password required
Command:   PASS ********
Response:   230-User addinall has group access to: addinall
Response:   230 OK. Current restricted directory is /
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/" is your current location
Command:   TYPE I
Response:   200 TYPE is now 8-bit binary
Command:   PASV
Response:   227 Entering Passive Mode (65,254,60,9,234,232)
Command:   LIST
Error:   Connection timed out
Error:   Failed to retrieve directory listing
Status:   Resolving IP-Address for www.addinall.net
Trace:   ControlSocket.cpp(1003): CRealControlSocket::ContinueConnect(0p13a7fe0) m_pEngine=0p130d1c0 caller=0p1382d10
Status:   Connecting to 65.254.60.9:21...
Status:   Connection established, waiting for welcome message...
Trace:   CFtpControlSocket::OnReceive()
Response:   220---------- Welcome to Pure-FTPd [TLS] ----------
Response:   220-You are user number 3 of 50 allowed.
Response:   220-Local time is now 15:29. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 15 minutes of inactivity.
Trace:   CFtpControlSocket::SendNextCommand()
Command:   USER addinall
Trace:   CFtpControlSocket::OnReceive()
Response:   331 User addinall OK. Password required
Trace:   CFtpControlSocket::SendNextCommand()
Command:   PASS ********
Trace:   CFtpControlSocket::OnReceive()
Response:   230-User addinall has group access to: addinall
Response:   230 OK. Current restricted directory is /
Status:   Connected
Trace:   CFtpControlSocket::ResetOperation(0)
Trace:   CControlSocket::ResetOperation(0)
Status:   Retrieving directory listing...
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::ChangeDirSend()
Command:   PWD
Trace:   CFtpControlSocket::OnReceive()
Response:   257 "/" is your current location
Trace:   CFtpControlSocket::ResetOperation(0)
Trace:   CControlSocket::ResetOperation(0)
Trace:   CFtpControlSocket::ParseSubcommandResult(0)
Trace:   CFtpControlSocket::ListSubcommandResult()
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::TransferSend()
Command:   TYPE I
Trace:   CFtpControlSocket::OnReceive()
Response:   200 TYPE is now 8-bit binary
Trace:   CFtpControlSocket::TransferParseResponse()
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::TransferSend()
Command:   PASV
Trace:   CFtpControlSocket::OnReceive()
Response:   227 Entering Passive Mode (65,254,60,9,159,9)
Trace:   CFtpControlSocket::TransferParseResponse()
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::TransferSend()
Command:   LIST
Error:   Connection timed out
Trace:   CFtpControlSocket::ResetOperation(2114)
Trace:   CControlSocket::ResetOperation(2114)
Trace:   CFtpControlSocket::ResetOperation(2114)
Trace:   CControlSocket::ResetOperation(2114)
Error:   Failed to retrieve directory listing

Go to your site manager, click on Transfer Settings Tab.
Select the Transfer mode as "Active"
=============================
Status: Resolving address of xxx.com.ph
Status: Connecting to xxx.xxx.xxx.xxx:21...
Status: Connection established, waiting for welcome message...
Response: 220 FTP Server ready.
Command: USER ftp
Response: 331 Password required for ftp.
Command: PASS ********
Response: 230 User ftp logged in.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PORT 203,177,6,3,24,247
Response: 200 PORT command successful
Command: LIST
Response: 425 Unable to build data connection: Connection refused
Error: Failed to retrieve directory listing

----->Response: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,172,252).


=====================================
Status: Resolving address of xxx.com.ph
Status: Connecting to xxx.xxx.xxx.xxx:21...
Status: Connection established, waiting for welcome message...
Response: 220 FTP Server ready.
Command: USER ftp
Response: 331 Password required for ftp.
Command: PASS ********
Response: 230 User ftp logged in.
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,172,252).
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

-------> 
See if you can change the transfer type under the transfer menu. If it is set to auto, change it to binary, and try that. If that doesn't work, try it in ascii.

=====================================


Try Cmd Promt:

ftp yourservername.com

it asks for username and password.

type help for commands

use dos or unix type commands

cd directoryname
for change directory to directoryname

try listing out directories by typing dir
dir for current directory and dir directoryname for listing directoryname

If a directory doesn't list with dir then try using ls instead of dir

I'm finding that the listing problem only occurs when listing with dir and only with directories with a larger number of files. The dir is the equivalent to the LIST (ls -l) used by filezilla.

I would like to know if this is the same with anybody else.  
========================