Posts Tagged linux

Map a FTP folder to a local directory on Ubuntu OS

This tutorial will explain how to mount a ftp folder to a local directory in Ubuntu. The software to use is Curlftpfs, which is a filesystem for accessing FTP hosts based on FUSE and libcurl.

1. Install CurlFtpFS in Ubuntu

sudo apt-get install curlftpfs

2. Use linux command to map the ftp folder to local mount point.

curlftpls /mnt/ftp

Assume that you created the ftp directory in /mnt. If not please do that.

3. Create a soft link at your home directory

ln -s /mnt/ftp ftp

Now you can access your ftp server from you home directory quick easy.


Tags: , , , ,

Share data and files in the wireless personal area network (WPAN) created by Windows 7 machines

In the last post, I described how to enable and create a virtual wireless access point (SoftAP) in Windows 7 machines. See details through the following link:

This time, let us look at how to share data and files with in the WPAN. I will use the Windows 7 machine with the SoftAP and an iPod touch as an example to demonstrate the method.

After the SoftAP on the Windows machine is started, iPod touch can connect to the Windows machine through the SoftAP. First, we should know the ip addresses of the machines. Check the iPod touch’s IP address through its setting->wireless application. For demonstration, we say the IP address is So the Windows machine must have an IP address of

To access on the Widows 7 machine with SoftAP, you need create a valid user account and share folder with the user or install a FTP server and configure it and allow others to access it. FileZilla provides both FTP client and FTP server. You can install both application on the windows machine.

To access the data in the iPod touch, you have a lot of choices. I found that TIOD is a really good app that provides many excellent functions,  such as FTP server and FTP client. It also provides function to directly access Windows shared folder or Samba shared folders on Linux machines. Please find more detail at


Tags: , , , , , , , , ,

A fastest and easy to use web programming environment – Geany

I used to use gPHPEdit to do web programming. One big problem I have it is too slow to respond to some command. That forced me to search for other alternative tools. One tool I found by reading some nice posts is Geany. It is a small and lightweight Integrated Development Environment for web programming. Some basic features of Geany are listed below:

  •  Syntax highlighting
  • Code folding
  • Symbol name auto-completion
  • Construct completion/snippets
  • Auto-closing of XML and HTML tags
  • Call tips
  • Many supported filetypes including C, Java, PHP, HTML, Python, Perl, Pascal (full list)
  • Symbol lists
  • Code navigation
  • Build system to compile and execute your code
  • Simple project management
  • Plugin interface (see Plugins)

One thing I wish it provides is the nice features in TopStyle in the Windows environment. TopStyle helps me to develop nice CSS style sheet for website. Overall I am very happy about the tool. Once it was installed, I completely switched from gPHPEdit to Geany.


Tags: , , , ,

A good remote desktop application – TeamViewer

At home, my computer systems are Windows 7 Home Premium. I really love remote desktop and use this a lot at work. Unfortunately, the Home Premium edition does not provide Remote Desktop Host. You only can use Windows 7 Home Edition as a client to connect to other machines with Windows 7 Professional Edition installed. That is big limitation to me. How to get around this barrier? One solution is to use Dameware Mini Remote Control. I explained how to use it in Windows 7 in the following article.

Install Dameware Mini Remote Control to Windows 7

This works but there are a lot of moments that you will feel frustrated. Not mention about the installation. It is a nightmare to use this one. I kept hunting about this. Finally I found a good one, called TeamViewer. Before I tested it I did not have ideas about how good it is.

I downloaded the application, which is very small. Then installed it to my Windows XP and 7 machines. It only tool me a few minutes to finish installation and setting. Then I started to test it by connection my computers. It works like a charm. The connection interface looks simple and nice.

To connect to another computer with TeamViewer installed is pretty easy. All you need is the Partner ID and a permanent password. There are three options to connect to the host computer: 1) Remote Control, 2) File Transfer and 3) VPN. I did test the first two options. Remote control interface is good enough. One flaw of the interface is the windows size is fixed not adjustable, like the Windows Remote Desktop. That could be a problem when you connect to a computer with a much larger screen than your computer has. In that case, the screen will become blurry and hard to read. The File Transfer is really nice. the interface looks like a FTP client. However, the transfer speed is not you want. So it will only work for files with very small size. Keep this in mind when you do this remotely through internet.

Another nice thing TeamViewer has is its cross-OS functionality. I installed TeamViewer on my iPod and I can connect to my computer and control it even it is not as convenient as I sit in front of my computer. Next I will try the Linux systems.

New discovery: if you do not want to remember the PartnerID, which is hard to remember, you can use your LAN address. To do this, you have to change the default settings in Options. In the General tab under the Connection in local network (via IP address), for incoming LAN connections, select “Accept”.  Click “Ok” and then you are good to go.


Tags: , , , , , , , , , , , , , ,

Use AWFFULL to analyze website log files

Awffull is a fork of open source web log analyzer, Webalizer. Ubuntu server edition already has webalizer installed. Webalizer has been stopped updating since 2002. Awffull improved the original Webalizer in several areas: Segmentation, Eyeball Analysis, Greater than 12 Month Display, Cascading Style Sheet Support (CSS), Resizable Graphs, Internationalisation Support, Automatic Log Type Detection, Fast, and GeoIP Country Detection.

To install Awffull is easy.

apt-get install awffull

Once it is installed to your system. You have to edit its config file at /etc/awffull. If you have multiple virtual websites running in same machine, you can make several copies of the default config file. Give each copy a meaningful name that corresponds to your website. Then use nano or vi to edit these config files.

You mainly need change the following to lines:

LogFile /var/log/apache2/access.log.1
OutputDir /var/www/awffull

Provide a full path of your website’s log file to the LogFile and a full path to the OurputDir. Then you can run Awffull to analyze the log file and generate html pages by the following commands:

awffull -c <your config file name>

After the command complete, you can use your web browser to view the results. Repeat this procedure for all other sites.

To automate the process, you can create a shell script file as the following and set it as a cron job to run at a given time.


 awffull -c /etc/awffull/articles.conf
 awffull -c /etc/awffull/sunfinedata.conf
  awffull -c /etc/awffull/bookmarks.conf
 awffull -c /etc/awffull/2010newyear.conf

Read details for other server monitor tool at Use munin to monitor Ubuntu server performance


Tags: , , , ,